/* East Bradford Dental — shared site styles */

:root {
  --bone: #f3f1ec;
  --bone-soft: #eae5dc;
  --cream: #faf7f1;
  --off-white: #fbfaf6;
  --ink: #0d1b2e;
  --ink-soft: #1f2d44;
  --ink-muted: #566273;
  --navy-deep: #091a30;
  --navy: #14335e;
  --navy-mid: #2a568a;
  --blue: #4a78a8;
  --blue-bright: #6ea5d0;
  --blue-soft: #a9cbe3;
  --line: #d8dce2;
  --line-soft: #e8ecf1;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(9,26,48,0.05), 0 2px 8px rgba(9,26,48,0.04);
  --shadow-md: 0 2px 6px rgba(9,26,48,0.08), 0 8px 24px rgba(9,26,48,0.08);
  --shadow-lg: 0 4px 14px rgba(9,26,48,0.12), 0 24px 60px rgba(9,26,48,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------------- TYPOGRAPHY ---------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.15; }
h4 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; }

em.accent {
  font-style: italic;
  color: var(--navy);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
em.accent-light {
  font-style: italic;
  color: var(--blue);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
em.accent-bright {
  font-style: italic;
  color: var(--blue-bright);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--navy);
  display: inline-block;
}

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 1;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

section {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  position: relative;
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); padding: 0.7rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: flex; align-items: center; text-decoration: none; height: 52px; }
.logo img {
  height: 100%;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.nav.scrolled .logo { height: 44px; }
.nav-links { display: flex; gap: 2.25rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(245,241,234,0.35); }
.btn-outline-light:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); }
.btn svg { width: 16px; height: 16px; }
.nav-cta { padding: 0.7rem 1.2rem; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--ink); }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.breadcrumb a:hover { border-bottom-color: var(--ink-muted); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }

/* ---------------- PAGE HERO ---------------- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 55%; height: 80%;
  background: radial-gradient(circle, var(--bone-soft) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.page-hero h1 { margin: 1.5rem 0 1.75rem; }
.page-hero-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ---------------- SECTIONS (generic) ---------------- */
.section-cream { background: var(--cream); }
.section-bone { background: var(--bone); }
.section-dark {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(110,165,208,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--blue-soft); }
.section-dark .eyebrow::before { background: var(--blue-soft); }

/* two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 2;
}
.two-col-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.col-head h2 { margin-top: 1.5rem; max-width: 14ch; }
.col-head p { margin-top: 1.5rem; color: var(--ink-muted); line-height: 1.6; }
.section-dark .col-head p { color: rgba(245,241,234,0.78); }

/* ---------------- CHECK LIST ---------------- */
.check-list { list-style: none; }
.check-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.check-list li:last-child { border-bottom: none; }
.check-icon {
  color: var(--navy);
  width: 26px; height: 26px;
  margin-top: 2px;
  flex-shrink: 0;
}
.section-dark .check-icon { color: var(--blue-bright); }
.section-dark .check-list li { border-color: rgba(245,241,234,0.12); }
.check-label {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--ink);
  line-height: 1.15;
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
}
.section-dark .check-label { color: var(--cream); }
.check-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.section-dark .check-desc { color: rgba(245,241,234,0.78); }

/* ---------------- MEDIA GRID ---------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-auto-rows: 200px;
}
.media-tile {
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.media-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.media-tile:hover img { transform: scale(1.05); }
.media-tile.tall { grid-row: span 2; }

/* ---------------- SERVICE CARDS (for /services hub and cross-sell) ---------------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.service-card-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--blue);
  font-variation-settings: "opsz" 30, "SOFT" 30, "WONK" 1;
}
.service-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  line-height: 1.1;
}
.service-card-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.service-card-arrow {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
}
.service-card-arrow svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.service-card:hover .service-card-arrow svg { transform: translateX(4px); }

/* ---------------- FAQ ---------------- */
.faq-list { list-style: none; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
}
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--ink-soft);
}
.faq-toggle svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.faq-item.open .faq-toggle { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.faq-item.open .faq-toggle svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--ink-muted);
  line-height: 1.6;
  padding-right: 3rem;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 1.25rem; }

/* ---------------- CTA SECTION ---------------- */
.cta-section {
  background: var(--navy-deep);
  color: var(--cream);
  text-align: center;
  padding: clamp(4rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(110,165,208,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section .eyebrow { color: var(--blue-soft); }
.cta-section .eyebrow::before { background: var(--blue-soft); }
.cta-section h2 { color: var(--cream); margin: 1.5rem 0; }
.cta-section p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: rgba(245,241,234,0.85);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}
.cta-buttons {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: var(--navy-deep);
  color: rgba(245,241,234,0.6);
  border-top: 1px solid rgba(245,241,234,0.1);
  padding: 3rem 0 2.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-inner a { color: rgba(245,241,234,0.75); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--blue-bright); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(245,241,234,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .two-col, .two-col-even { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .media-grid { grid-auto-rows: 140px; }
  .page-hero { padding-top: 7rem; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
}


/* ---------------- MOBILE MENU ---------------- */
.nav-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 26, 48, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 98;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
@media (max-width: 960px) {
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(85vw, 360px) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 5.5rem 1.75rem 2rem !important;
    gap: 0 !important;
    box-shadow: -16px 0 60px rgba(9, 26, 48, 0.45) !important;
    border-left: 4px solid #14335e !important;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.2, .8, .2, 1);
    z-index: 99 !important;
    display: flex !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }
  .nav-open .nav-links { transform: translateX(0) !important; }
  .nav-links li {
    width: 100% !important;
    list-style: none !important;
    background: #ffffff !important;
  }
  .nav-links a {
    display: block !important;
    padding: 1.1rem 0.5rem !important;
    border-bottom: 1px solid rgba(9, 26, 48, 0.12) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #14335e !important;
    letter-spacing: normal !important;
    background: transparent !important;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a:hover,
  .nav-links a:focus { color: #4a78a8 !important; }
  .nav-open .nav {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .mobile-toggle {
    position: relative;
    z-index: 100;
    color: #14335e;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-open .mobile-toggle svg path { stroke: #14335e; }
  .nav-open .mobile-toggle .bar-1 { transform: translateY(6px) rotate(45deg); }
  .nav-open .mobile-toggle .bar-2 { opacity: 0; }
  .nav-open .mobile-toggle .bar-3 { transform: translateY(-6px) rotate(-45deg); }
  .mobile-toggle svg path {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  body.nav-open { overflow: hidden; }
  .nav-cta { display: none !important; }
}
@media (min-width: 961px) {
  .mobile-toggle { display: none; }
}
/* ---------------- EXPANDED FOOTER ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245,241,234,0.72);
  padding: 4rem 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.site-footer a { color: rgba(245,241,234,0.85); text-decoration: none; transition: color 0.2s; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--blue-bright); border-bottom-color: var(--blue-bright); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.footer-col p, .footer-col address { margin-bottom: 0.5rem; font-style: normal; }
.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
  background: #faf7f1;
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.footer-logo img {
  height: 44px !important;
  width: auto !important;
  display: block;
  max-width: 220px;
}
.footer-tagline { color: rgba(245,241,234,0.55); margin-bottom: 1.25rem; max-width: 260px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(245,241,234,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(245,241,234,0.15);
}
.footer-social a:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.footer-social svg { width: 15px; height: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 0.3rem 0; }
.footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-variant-numeric: tabular-nums;
}
.footer-hours li.closed { opacity: 0.5; font-style: italic; }
.footer-hours span:first-child { color: rgba(245,241,234,0.6); }
.footer-bottom {
  border-top: 1px solid rgba(245,241,234,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(245,241,234,0.5);
}
.footer-legal { display: flex; gap: 0.75rem; align-items: center; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 1000;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ---------------- ABOUT RECOGNITION ---------------- */
.about-recognition {
  padding: 3rem 0;
  background: var(--bone);
}
.about-recognition-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.about-recognition-inner img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  
}
.about-recognition-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.about-recognition-inner p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .about-recognition-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}


/* ============================================================ */
/* Nav dropdown — added for Care submenu                        */
/* ============================================================ */
.nav-links .has-dropdown { position: relative; }

.nav-dd-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.nav-dd-arrow {
  width: 10px;
  height: 7px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.has-dropdown:hover .nav-dd-arrow,
.has-dropdown:focus-within .nav-dd-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 110;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li { list-style: none; }

.nav-dropdown a {
  display: block !important;
  padding: 0.65rem 1.25rem !important;
  color: var(--ink-soft) !important;
  font-size: 0.9rem !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: none !important;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-dropdown a::after { display: none !important; }

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  color: var(--navy) !important;
  background: var(--bone-soft);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--line-soft, #e8ecf1);
  margin: 0.45rem 0;
}

.nav-dropdown a em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy) !important;
  font-variation-settings: "opsz" 14, "SOFT" 50, "WONK" 1;
}

@media (max-width: 960px) {
  .nav-dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .nav-dropdown::before { display: none; }  .nav-dropdown a {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.95rem !important;
    color: var(--ink-soft) !important;
    border-bottom: 1px solid rgba(9, 26, 48, 0.06) !important;
  }
  .nav-dd-trigger {
    justify-content: space-between !important;
    width: 100%;
  }
}

/* H1 eyebrow — keyword line inside H1 for SEO */
.h1-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-style: normal;
  font-variation-settings: normal;
}

.h1-eyebrow::before,
.h1-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--navy);
  vertical-align: middle;
  margin: 0 0.75rem;
}


/* ============================================================ */
/* v8: Remove Care dropdown from mobile view                    */
/* The dropdown was conflicting with the mobile menu's close    */
/* handler. On mobile, "Care" is now a normal link to /services/*/
/* ============================================================ */
@media (max-width: 960px) {
  .nav-dropdown { display: none !important; }
  .nav-dd-arrow { display: none !important; }
  .nav-dd-trigger {
    justify-content: flex-start !important;
    width: auto !important;
  }
}
