/* ============================================================
   NAGLE NOTARY — Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122848;
  --navy-light: #2E5EB8;
  --gold:       #C4963A;
  --gold-light: #E8B84B;
  --white:      #FFFFFF;
  --off-white:  #F7F8FA;
  --light-gray: #EEF1F6;
  --mid-gray:   #8A97AD;
  --text:       #1E293B;
  --text-light: #4A5568;
  --border:     #D9E1EE;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(27,58,107,0.07);
  --shadow:     0 4px 20px rgba(27,58,107,0.12);
  --shadow-lg:  0 8px 40px rgba(27,58,107,0.18);

  --transition: 0.25s ease;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

address { font-style: normal; }

/* ---- Utility ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--navy-light);
  color: var(--white);
  border-color: var(--navy-light);
}
.btn-secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- Sections ---- */
.section  { padding: 80px 0; }
.section-alt  { background: var(--off-white); }
.section-dark { background: var(--navy-dark); color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.75); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-image {
  width: 74px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
}
.main-nav a:hover { background: var(--light-gray); color: var(--navy); }
.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 8px 18px;
}
.main-nav a.nav-cta:hover { background: var(--navy-light); }

.nav-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1.5px solid var(--navy);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.nav-quote-btn:hover { background: var(--navy); color: var(--white); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--light-gray);
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-phone:hover { background: var(--navy); color: var(--white); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-dark);
  color: var(--white);
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 20, 42, 0.9) 0%, rgba(8, 20, 42, 0.78) 42%, rgba(8, 20, 42, 0.62) 70%, rgba(8, 20, 42, 0.5) 100%),
    url("../images/office-entrance.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 28px 30px 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9, 24, 50, 0.72), rgba(9, 24, 50, 0.48));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 44px rgba(4, 12, 28, 0.35);
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero h1 .accent { color: var(--gold-light); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.25);
  background: rgba(5, 16, 35, 0.35);
  border-radius: 14px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 10px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
}
.info-item svg { color: var(--gold-light); flex-shrink: 0; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--gold);
  color: var(--white);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}
.announcement-bar strong { font-weight: 700; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-light);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
}
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.service-card .service-docs { font-size: 0.88rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--light-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 4px;
}
.service-card.featured .service-icon {
  background: rgba(27,58,107,0.08);
}

/* ============================================================
  ID REQUIREMENTS
  ============================================================ */
.id-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .id-card {
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 2px solid transparent;
  }

  .id-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .id-card--accept { background: #f0faf4; border-color: #86efac; }
  .id-card--accept h3 { color: #166534; }
  .id-card--reject { background: #fef2f2; border-color: #fca5a5; }
  .id-card--reject h3 { color: #991b1b; }

  .id-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .id-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
  }

  .id-list--accept li::before { content: "✓"; color: #16a34a; font-weight: 700; flex-shrink: 0; }
  .id-list--reject li::before { content: "✗"; color: #dc2626; font-weight: 700; flex-shrink: 0; }

  .id-noid {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
  }

  .id-noid h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 12px;
  }

  .id-noid p,
  .id-noid li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .id-noid ol {
    margin: 14px 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .id-noid-note {
    margin-top: 16px;
    font-style: italic;
    font-size: 0.9rem !important;
  }

  @media (max-width: 640px) {
    .id-grid { grid-template-columns: 1fr; }
    .id-noid { padding: 24px 20px; }
  }

  /* ============================================================
    PENNDOT GRID
    ============================================================ */
.penndot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.penndot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.penndot-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.penndot-card.coming-soon { opacity: 0.75; }

.penndot-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.penndot-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.penndot-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.65; }
.penndot-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.penndot-card ul li {
  color: var(--text-light);
  font-size: 0.88rem;
  padding-left: 16px;
  position: relative;
}
.penndot-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.transit-hours { margin-top: 12px; }
.transit-hours strong { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--navy); }
.transit-hours ul li { font-size: 0.85rem; }

.badge-soon {
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
}
.pricing-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.65; }

.fee-list { display: flex; flex-direction: column; gap: 10px; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}
.fee-name { font-weight: 500; font-size: 0.92rem; }
.fee-price { font-weight: 700; color: var(--navy); font-size: 1rem; }
.fee-note { font-size: 0.82rem; color: var(--mid-gray); line-height: 1.6; }

.stripe-pay-btn {
  margin-top: 12px;
  margin-bottom: 10px;
}

.pricing-cta {
  text-align: center;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
}
.pricing-cta p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 24px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   HOURS & LOCATION
   ============================================================ */
.hours-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hours-card, .location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.hours-card h3, .location-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.hours-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { font-weight: 500; color: var(--text); }
.hours-row span:last-child  { color: var(--text-light); }
.hours-row.closed span { color: var(--mid-gray); }

.appt-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(27,58,107,0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--navy);
}
.appt-note svg { color: var(--navy-light); flex-shrink: 0; }

.location-card address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.5;
}
.location-card address svg { color: var(--navy); margin-top: 3px; flex-shrink: 0; }
.location-note {
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin-bottom: 24px !important;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.contact-link svg { color: var(--navy-light); }
.contact-link:hover { color: var(--navy-light); }

.map-btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-text p strong { color: var(--navy); }

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cred-block {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.cred-block h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 12px;
}
.cred-block ul { display: flex; flex-direction: column; gap: 7px; }
.cred-block ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
}
.cred-block ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(196,150,58,0.14) 0%, transparent 42%),
    linear-gradient(160deg, #122848 0%, #0f223f 60%, #0c1b34 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.contact-icon { font-size: 2.2rem; margin-bottom: 14px; line-height: 1; }
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.contact-card p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-top: 8px; }
.contact-big-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  transition: color var(--transition);
}
.contact-big-link:hover { color: var(--white); }
.contact-address { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.5; }

.contact-quote-btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
}
.footer-brand .logo-main {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand span { font-size: 0.87rem; line-height: 1.5; }
.footer-contact-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-links a, .footer-links span {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.appt-highlight { color: var(--gold-light) !important; font-weight: 600; margin-top: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 36px; }
}

@media (max-width: 900px) {
  .hours-location-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .header-inner {
    height: auto;
    min-height: 68px;
    padding: 10px 0;
  }

  /* Mobile nav */
  .header-phone { display: none; }
  .mobile-menu-btn { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-quote-btn {
    width: 100%;
    padding: 14px 16px;
    min-height: auto;
    justify-content: center;
    margin-top: 12px;
  }
  .main-nav a.nav-cta { text-align: center; margin-top: 12px; }

  .logo-image {
    width: 60px;
    height: 22px;
  }
  .logo-main { font-size: 1.1rem; }
  .logo-tagline { font-size: 0.58rem; }

  .hero { padding: 60px 0 50px; }
  .hero-content {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .hero-info-strip {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .penndot-grid { grid-template-columns: 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .section { padding: 42px 0; }

  .header-inner {
    min-height: 60px;
    padding: 8px 0;
  }

  .main-nav {
    inset: 60px 0 0 0;
    padding: 14px;
  }

  .hero {
    padding: 34px 0 30px;
    min-height: auto;
  }
  .hero-content {
    padding: 16px 16px 14px;
    max-width: 680px;
  }
  .hero-badge {
    margin-bottom: 12px;
    font-size: 0.68rem;
    padding: 5px 11px;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    margin-bottom: 10px;
  }
  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }
  .hero-actions .btn {
    width: auto;
    max-width: none;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .hero-info-strip {
    padding-top: 12px;
    padding-bottom: 8px;
    gap: 8px 16px;
  }
  .info-item {
    font-size: 0.82rem;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 8px;
  }
  .modal-box {
    max-height: 90vh;
    border-radius: 14px;
  }
  .modal-header { padding: 14px 16px 12px; }
  .modal-body .quote-form { padding: 14px 16px 20px; }
}

@media (max-width: 640px) {
  .logo-main { font-size: 1rem; }
  .logo-tagline { display: none; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    margin-bottom: 18px;
  }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; line-height: 1.6; }
  .hero-actions .btn { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-big-link { font-size: 0.95rem; }
  .hours-card, .location-card { padding: 28px 22px; }
  .service-card { padding: 28px 24px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }

  .logo-image {
    width: 52px;
    height: 20px;
  }
  .logo-main { font-size: 0.92rem; }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 11px 16px;
  }

  .hero-content { padding: 18px 14px 14px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-info-strip { gap: 10px; }
  .info-item { align-items: flex-start; }
  .info-item span { line-height: 1.45; }

  .pricing-card,
  .service-card,
  .hours-card,
  .location-card,
  .contact-card {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) and (min-width: 481px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Scrolled header state */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(27,58,107,0.15);
}

/* ============================================================
   QUOTE MODAL
   ============================================================ */

/* ---- Overlay ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 54, 0.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  overscroll-behavior: contain;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---- Modal box ---- */
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 28, 54, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
  overflow: hidden;
  will-change: transform;
  overscroll-behavior: contain;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* ---- Modal header ---- */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.modal-header > div {
  flex: 1;
  min-width: 0;
}
.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.modal-header p { font-size: 0.88rem; color: var(--text-light); }

.modal-close {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-start;
  background: var(--light-gray);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
  margin-top: 2px;
}
.modal-close:hover { background: var(--border); color: var(--navy); }

/* ---- Modal body (scrollable two-column) ---- */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---- Form inside modal ---- */
.modal-body .quote-form {
  padding: 28px 32px 32px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ---- Sidebar inside modal ---- */
.modal-sidebar {
  background: var(--off-white);
  border-left: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.modal-sidebar .sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: none;
}
.modal-sidebar .sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.modal-sidebar .sidebar-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }
.modal-sidebar .sidebar-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.modal-sidebar .sidebar-phone:hover { color: var(--navy-light); }
.modal-sidebar .sidebar-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-sidebar .sidebar-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}
.modal-sidebar .sidebar-steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-sidebar .highlight-card { background: rgba(27,58,107,0.05); border-color: rgba(27,58,107,0.15); }
.modal-sidebar .highlight-card strong { color: var(--navy); }

/* ---- Form fields (shared styles) ---- */
.quote-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

fieldset.form-group {
  border: none;
  padding: 0;
}

fieldset.form-group legend {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
  width: 100%;
  display: block;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row + .form-row { margin-top: 18px; }
.form-row.two-col { flex-direction: row; gap: 18px; }
.form-row.two-col .field { flex: 1; min-width: 0; }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: #C0392B; }
.location-hint { font-weight: 400; color: var(--mid-gray); font-size: 0.82rem; }

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mid-gray); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(46,94,184,0.12);
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.field textarea { resize: vertical; min-height: 100px; }

.recaptcha-row .field label {
  margin-bottom: 4px;
}

.recaptcha-container {
  min-height: 78px;
}

.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238A97AD'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 38px;
}

/* ---- Form status ---- */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-status.success {
  display: block;
  background: #EAF7ED;
  border: 1px solid #A8DDB5;
  color: #1E6B30;
}
.form-status.error {
  display: block;
  background: #FDECEA;
  border: 1px solid #F5B8B2;
  color: #8B1A10;
}

/* ---- Form footer ---- */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--light-gray);
}
.form-disclaimer { font-size: 0.82rem; color: var(--mid-gray); line-height: 1.5; }

.btn-submit {
  flex-shrink: 0;
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Modal responsive ---- */
@media (max-width: 768px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }
  .modal-overlay.open .modal-box { transform: translateY(0); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-sidebar { display: none; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body .quote-form { padding: 20px 20px 32px; gap: 20px; }
  .form-row.two-col { flex-direction: column; }
}
@media (max-width: 480px) {
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
}
