/* =========================================================
   Dr Phillips Dental Care — Main Stylesheet
   ========================================================= */

:root {
  --navy: #0f2a5c;
  --blue: #2b7fc4;
  --yellow: #ffc845;
  --yellow-dark: #ffb81c;
  --coral: #ff7a6b;
  --mint: #3cc6a0;
  --sky: #4fa3e0;
  --lavender: #9b8cf2;
  --green: #0f8a74;
  --cream: #fff6dd;
  --light-blue: #eaf5ff;
  --hover-bg: #edf1f6;
  --text: #1d2733;
  --text-body: #3a4652;
  --text-muted: #55626e;
  --text-label: #6a7a86;
  --border: #dfe6ee;
  --border-light: #e3e9f0;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-heading: 'Fredoka', sans-serif;
  --font-logo: 'Cormorant Garamond', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.site-main {
  flex: 1;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 24px;
}

.container-faq {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-md {
  padding-top: 80px;
  padding-bottom: 80px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-200 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-220 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-250 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-280 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.gap-12 {
  gap: 12px;
}

.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-32 {
  margin-bottom: 32px !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.mb-56 {
  margin-bottom: 56px !important;
}

.navy {
  color: var(--navy);
}

.strong-link {
  font-weight: 700;
  color: var(--navy);
}

/* Keep phone numbers on one line */
.nowrap {
  white-space: nowrap;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head.narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-head p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--navy);
  margin: 0 0 14px;
  text-wrap: balance;
}

.h2-light {
  color: #fff;
}

.subhead {
  font-size: 17px;
  color: var(--blue);
  font-weight: 700;
}

.body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prose p {
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  font-size: 14px;
  padding: 12px 20px;
}

.btn-lg {
  padding: 16px 28px;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  color: var(--navy);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--navy);
  padding: 12px 24px;
}

.btn-outline.btn-sm {
  padding: 10px 18px;
}

.btn-outline.btn-lg {
  padding: 14px 26px;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: var(--hover-bg);
  color: var(--navy);
}

.btn-white-navy {
  background: #fff;
  color: var(--navy);
}

.btn-white-navy:hover {
  background: var(--navy);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row.center {
  justify-content: center;
}

/* ---------- Image placeholders (replace with <img> later) ---------- */
.ph {
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, #e7edf4 0 10px, #dce4ee 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4f6378;
}

.ph-dark {
  background: repeating-linear-gradient(135deg, #6886a4 0 10px, #5f7d9b 10px 20px);
  color: #eef2f7;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(15, 42, 92, .12);
}

.ph-4x3 {
  aspect-ratio: 4 / 3;
}

.ph-16x10 {
  aspect-ratio: 16 / 13;
}

.ph-r20 {
  border-radius: 20px;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--navy);
  color: #dfe6f5;
  font-size: 13px;
}

.topbar-inner {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.topbar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.topbar-info span {
  white-space: nowrap;
}

.topbar-lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.topbar-lang a {
  color: #dfe6f5;
}

.topbar-lang a.current {
  font-weight: 700;
  color: #fff;
}

.topbar-lang .sep {
  opacity: .5;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(15, 42, 92, .05);
}

.header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px 28px;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo-text {
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-name {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: .08em;
  white-space: nowrap;
}

.logo-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .32em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex: 1;
  justify-content: space-between;
}

.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
}

.nav-item {
  position: relative;
}

.nav-item>a {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 12px;
  color: var(--navy);
  white-space: nowrap;
  position: relative;
}

.nav-item>a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-item .caret {
  font-size: 10px;
}

.nav-item.active>a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-item.has-dropdown.active>a::after {
  right: 24px;
}

.header-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 42, 92, .14);
  padding: 8px;
  display: none;
  flex-direction: column;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: flex;
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
}

.dropdown a:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

.dropdown-mega {
  left: -120px;
  width: 500px;
  padding: 16px;
  gap: 8px 16px;
}

.has-dropdown:hover .dropdown-mega,
.has-dropdown:focus-within .dropdown-mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
}

.dropdown-col a {
  padding: 8px 12px;
  font-weight: 600;
}

.dropdown-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-label) !important;
  padding: 4px 12px 8px !important;
  font-weight: 700 !important;
}

a.dropdown-label:hover {
  background: none !important;
  color: var(--navy) !important;
}

.dropdown-col .dropdown-all {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--hover-bg);
  font-weight: 700;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(540px, 38vw, 720px);
  /* taller on wide screens so the photo isn't cropped */
  display: flex;
  align-items: center;
  background: repeating-linear-gradient(135deg, #2c3c6e 0 14px, #27366a 14px 28px);
  color: #fff;
  overflow: hidden;
}

/* Banner photo — the smiling patient sits on the right, clear of the text */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 28, 64, .85) 0%, rgba(18, 28, 64, .35) 60%, rgba(18, 28, 64, 0) 100%);
}

.dot {
  position: absolute;
  border-radius: 50%;
}

.dot-yellow {
  left: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  background: var(--yellow);
}

.dot-coral {
  right: 8%;
  top: 40px;
  width: 70px;
  height: 70px;
  background: var(--coral);
}

.dot-mint {
  right: 18%;
  top: 130px;
  width: 28px;
  height: 28px;
  background: var(--mint);
}

.ph-label {
  position: absolute;
  right: 24px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9fb0d6;
}

.hero-content {
  position: relative;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.stars {
  color: #ffd35c;
}

.stars-lg {
  font-size: 20px;
  letter-spacing: .1em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 680px;
  text-wrap: balance;
}

.hero p {
  font-size: 19px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 32px;
  color: #e3e9f7;
}

/* =========================================================
   COLORED SECTIONS
   ========================================================= */
.bg-blue {
  background: var(--blue);
  color: #fff;
}

.bg-blue h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 12px;
}

.bg-cream {
  background: var(--cream);
}

.bg-navy {
  background: var(--navy);
  color: #fff;
}

.bg-navy h2 {
  margin-bottom: 8px;
}

.bg-green {
  background: var(--green);
  color: #fff;
}

.bg-green .section-head p {
  color: #fff;
}

/* ---------- Care cards ---------- */
.care-card {
  border-radius: 28px;
  padding: 28px;
}

.care-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
}

.care-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 8px;
}

.care-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
}

/* ---------- Feature pills ---------- */
.feature-pill {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
}

.feature-pill .bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Reviews ---------- */
.review-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  height: 100%;
}

.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.review-text {
  --lines: 6;
  margin: 0;
  line-height: 1.65;
  color: #e6ecf3;
  font-size: 15px;
  height: calc(1.65em * var(--lines));
  /* fixed height = card never grows */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
  overflow: hidden;
}

.review-card.expanded .review-text {
  display: block;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .4) transparent;
}

.review-card.expanded .review-text::-webkit-scrollbar {
  width: 5px;
}

.review-card.expanded .review-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .4);
  border-radius: 4px;
}

.review-more {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
}

.review-more:hover {
  text-decoration: underline;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}

.review-name {
  font-weight: 700;
  color: #fff;
}

.review-meta {
  font-size: 13px;
  color: #aab8dc;
}

/* ---------- Slider ---------- */
.slider {
  --per-view: 3;
  --gap: 20px;
}

.slider-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 0 0 3px;
  transition: background .2s, color .2s;
}

.slider-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.slider-btn:disabled {
  opacity: .35;
  cursor: default;
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .3);
  transition: width .2s, background .2s;
}

.slider-dot.active {
  width: 28px;
  background: var(--yellow);
}

@media (max-width: 960px) {
  .slider {
    --per-view: 2;
  }
}

@media (max-width: 640px) {
  .slider {
    --per-view: 1;
  }
}

/* ---------- Services grid ---------- */
.services-grid {
  gap: 40px 28px;
}

.service-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s;
}

.service-item:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.service-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid;
  font-size: 11px;
  margin-bottom: 18px;
  background: repeating-linear-gradient(135deg, #e7edf4 0 8px, #dce4ee 8px 16px);
}

img.service-photo,
img.why-photo {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 19px;
  color: var(--blue);
  margin: 0 0 6px;
}

.service-item p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 14px;
  max-width: 260px;
}

.service-item .more {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

/* ---------- Why choose us ---------- */
.why-grid {
  gap: 36px 24px;
}

.why-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid;
  font-size: 11px;
  margin-bottom: 16px;
  background: repeating-linear-gradient(135deg, #6886a4 0 8px, #5f7d9b 8px 16px);
}

.why-item h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.why-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e6ecf3;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq-item.open {
  border-color: rgba(43, 127, 196, .45);
  box-shadow: 0 10px 28px rgba(15, 42, 92, .07);
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
}

/* Plus icon drawn with two bars; the vertical bar turns flat to make a minus when open */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .35s ease;
}

.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }

/* Answer slides open/closed smoothly (height animates from 0 to its natural size) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0;
  transition: opacity .25s ease, padding-bottom .35s ease;
}

.faq-item.open .faq-a-inner {
  padding-bottom: 22px;
  opacity: 1;
  transition: opacity .35s ease .05s, padding-bottom .35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-a-inner, .faq-icon::before, .faq-icon::after, .faq-item { transition: none; }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--light-blue);
}

.cta-band h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 12px;
}

.cta-band p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 640px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.rainbow-bar {
  display: flex;
  height: 8px;
}

.rainbow-bar span {
  flex: 1;
}

.rainbow-bar span:nth-child(1) {
  background: var(--yellow);
}

.rainbow-bar span:nth-child(2) {
  background: var(--coral);
}

.rainbow-bar span:nth-child(3) {
  background: var(--mint);
}

.rainbow-bar span:nth-child(4) {
  background: var(--sky);
}

.rainbow-bar span:nth-child(5) {
  background: var(--lavender);
}

.site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-grid {
  padding-top: 64px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: inline-block;
}

.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-col h4 {
  font-size: 17px;
  margin: 0 0 6px;
}

.footer-col a {
  color: #fff;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-col .muted {
  color: #e6ecf3;
  line-height: 1.5;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
  padding: 18px 24px;
  font-size: 13px;
  color: #e6ecf3;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1150px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 40px rgba(15, 42, 92, .12);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav-item>a {
    padding: 12px 4px;
  }

  .nav-item.active>a::after {
    display: none;
  }

  .nav-item.active>a {
    color: var(--blue);
  }

  .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    width: auto;
    min-width: 0;
    padding: 0 0 8px 12px;
  }

  .has-dropdown.sub-open .dropdown {
    display: flex;
  }

  .has-dropdown.sub-open .dropdown-mega {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-cta {
    flex-direction: column;
    padding-top: 12px;
  }

  .header-cta .btn {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-md {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero p {
    font-size: 17px;
  }

  .ph-label {
    display: none;
  }

  .logo img {
    height: 44px;
  }

  .logo-name {
    font-size: 22px;
  }
}

/* Hero photo: darker overlay on small screens where text spans the full width */
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(18, 28, 64, .82) 0%, rgba(18, 28, 64, .6) 100%);
  }
}

/* Footer address links to Google Maps */
.footer-col .footer-address {
  color: #e6ecf3;
  line-height: 1.5;
}

/* =========================================================
   INTERIOR PAGE HERO (service & sub pages)
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.page-hero .ph-dot-yellow {
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: var(--yellow);
  opacity: .9;
}

.page-hero .ph-dot-coral {
  right: 120px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  background: var(--coral);
  opacity: .85;
}

.page-hero .ph-dot-mint {
  right: 300px;
  top: 40px;
  width: 48px;
  height: 48px;
  background: var(--mint);
}

.page-hero .ph-dot-white {
  right: 360px;
  bottom: 30px;
  width: 22px;
  height: 22px;
  background: #fff;
  opacity: .7;
}

.page-hero-inner {
  position: relative;
  padding-top: 76px;
  padding-bottom: 84px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 860px;
  text-wrap: balance;
}

.page-hero p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 28px;
  color: #eef2f7;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  color: #dbe4ee;
}

.crumbs a {
  color: #dbe4ee;
  font-weight: 700;
}

/* Breadcrumb step without a page yet (plain text, not a link) */
.crumbs .crumb-text {
  color: #dbe4ee;
  font-weight: 700;
}

.crumbs a:hover {
  color: #fff;
}

.crumbs .crumb-sep {
  opacity: .6;
}

.crumbs [aria-current] {
  color: #fff;
  font-weight: 700;
}

/* =========================================================
   SERVICE PAGE SECTIONS
   ========================================================= */
.bg-light-blue {
  background: #eef6fd;
}

.narrow-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mt-48 {
  margin-top: 48px;
}

/* Checklist (includes/check-list.php) */
.check-list {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* short last row stays centered */
  gap: 16px 20px;
}

.check-list li {
  flex: 0 1 calc(50% - 10px);
  position: relative;
  padding: 18px 20px 18px 56px;
  background: #fff;
  border-radius: 16px;
  color: var(--text-body);
  line-height: 1.55;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 42, 92, .06);
}

.check-list.cols-3 li {
  flex-basis: calc(33.333% - 14px);
}

.check-list li strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 4px;
}

.check-list li span {
  font-weight: 400;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bg-navy .svc-book-text {
  color: #c9d4ec;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .check-list.cols-3 li {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 700px) {

  .check-list li,
  .check-list.cols-3 li {
    flex-basis: 100%;
  }
}

.svc-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}

@media (max-width: 600px) {
  .page-hero .ph-dot-yellow {
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
  }

  .page-hero .ph-dot-coral,
  .page-hero .ph-dot-mint,
  .page-hero .ph-dot-white {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* Two-column sections: when they stack on small screens, show the photo above the text.
   .split stacks below 736px (two 320px columns + 48px gap + 48px side padding). */
@media (max-width: 735px) {
  .split>img:last-child {
    order: -1;
  }
}

/* =========================================================
   SERVICES OVERVIEW PAGE (services.php)
   ========================================================= */
.svc-group-title {
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--navy);
  text-align: center;
  margin: 0 0 8px;
}

.svc-group-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 32px;
}

/* Cards wrap in centered rows, so 7 cards show as 4 + 3 */
.svc-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.svc-card {
  flex: 0 1 calc(33.333% - 16px);
  /* 3 big cards per row (7 cards = 3 + 3 + 1) */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.svc-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 42, 92, .12);
}

.svc-card img,
.svc-card-ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.svc-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.svc-card-body h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}

.svc-card-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.svc-card-body .more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--blue);
}

@media (max-width: 1200px) {
  .svc-card {
    flex-basis: calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .svc-card {
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 560px) {
  .svc-card {
    flex-basis: 100%;
  }
}


.yellow_sec {
  background: #fff4d6;
}

/* =========================================================
   LEGAL PAGES (privacy-policy.php, terms-conditions.php)
   ========================================================= */
.legal-content {
  max-width: 1440px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.75;
}

.legal-content .legal-updated {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-label);
  margin: 0 0 24px;
}

.legal-content h2 {
  font-size: clamp(22px, 2.2vw, 26px);
  color: var(--navy);
  margin: 40px 0 12px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker {
  color: var(--blue);
}

.legal-content a {
  color: var(--blue);
  font-weight: 700;
}

/* =========================================================
   CONTACT PAGE (contact.php + js/contact.js)
   ========================================================= */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

/* Office details card */
.contact-info {
  background: #eef6fd;
  border-radius: 28px;
  padding: 40px;
}

.contact-intro {
  color: var(--text-body);
  line-height: 1.7;
  margin: 0 0 8px;
}

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(15, 42, 92, .1);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-item h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 8px;
}

.contact-item p {
  margin: 0 0 8px;
  color: var(--text-body);
  line-height: 1.6;
}

.contact-phone {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--text-body);
}

.contact-hours-row span:first-child {
  font-weight: 700;
  color: var(--navy);
}

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(15, 42, 92, .08);
}

.contact-form-card h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  margin: 0 0 8px;
}

.contact-form-text {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  padding: 13px 16px;
  border: 1px solid #d3dce7;
  border-radius: 12px;
  background: #fff;
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 127, 196, .15);
}

.form-field .input-error {
  border-color: #d64545;
}

.form-error,
.form-send-error {
  display: none;
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}

.form-error.show,
.form-send-error.show {
  display: block;
}

.form-send-error {
  margin: 0 0 16px;
  font-size: 14px;
}

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #6a7a86;
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.form-policies {
  font-size: 13px;
  margin: 4px 0 24px 30px;
  color: #6a7a86;
}

.form-policies a {
  color: var(--blue);
  font-weight: 700;
}

.contact-form .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.contact-form .btn:disabled {
  opacity: .7;
  cursor: wait;
}

/* Map */
.contact-map iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .contact-info,
  .contact-form-card {
    padding: 28px 22px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 340px;
  }
}
.legal-content h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 24px 0 8px;
}

/* =========================================================
   SITEMAP PAGE (sitemap.php)
   ========================================================= */
.sitemap-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 40px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.sitemap-card {
  background: #f4f8fc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
}

.sitemap-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sitemap-card h2 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sitemap-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-card li { margin: 0 0 10px; }
.sitemap-card li:last-child { margin-bottom: 0; }

.sitemap-card a {
  color: var(--text-body);
  font-weight: 600;
  transition: color .2s, padding-left .2s;
}

.sitemap-card a::before {
  content: "→";
  color: var(--blue);
  margin-right: 8px;
}

.sitemap-card a:hover {
  color: var(--blue);
  text-decoration: none;
  padding-left: 4px;
}

@media (max-width: 960px) {
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* Sitemap cards: each card gets its own soft color (same palette as the home page care cards) */
.sitemap-card:nth-child(5n+1) { background: #fff4d6; border-color: #f7e2a6; --card-accent: #d98a0b; }
.sitemap-card:nth-child(5n+2) { background: #ffe8e4; border-color: #f8cbc3; --card-accent: #e0503f; }
.sitemap-card:nth-child(5n+3) { background: #e2f7f0; border-color: #b9e9d9; --card-accent: #1a9a7a; }
.sitemap-card:nth-child(5n+4) { background: #e6f3fc; border-color: #bfdcf3; --card-accent: #2b7fc4; }
.sitemap-card:nth-child(5n+5) { background: #efeafd; border-color: #d6ccf7; --card-accent: #7a63d8; }

.sitemap-card h2 { border-bottom-color: rgba(15, 42, 92, .1); }
.sitemap-card h2 svg { stroke: var(--card-accent, var(--blue)); }
.sitemap-card a::before { color: var(--card-accent, var(--blue)); }
.sitemap-card a:hover { color: var(--card-accent, var(--blue)); }

/* =========================================================
   404 PAGE (404.php)
   ========================================================= */
.notfound {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.notfound-code {
  font-family: var(--font-heading);
  font-size: clamp(96px, 18vw, 168px);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: .04em;
}

.notfound-code span {
  color: var(--yellow);
}

.notfound h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--navy);
  margin: 18px 0 12px;
}

.notfound-text {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 28px;
}

/* =========================================================
   ANIMATIONS
   1) Banner text fades up on page load (pure CSS)
   2) Content fades up when scrolled into view (js/main.js adds .is-visible)
      The element list here must match REVEAL_SELECTOR in js/main.js.
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-content > *,
.page-hero-inner > * {
  animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-content > :nth-child(2),
.page-hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3),
.page-hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4),
.page-hero-inner > :nth-child(4) { animation-delay: .36s; }

/* Scroll reveal: hidden until visible (only when JS is running) */
.js:not(.reveal-off) :is(
  .section-head, .split > *, .care-card, .service-item, .svc-card, .why-item,
  .feature-pill, .slider, .faq-item, .check-list li, .contact-info, .contact-form-card,
  .sitemap-card, .cta-band .container-sm > *
):not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

/* While revealing (class removed afterwards so hover effects keep their own speed) */
.reveal-anim {
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s),
              transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .page-hero-inner > * { animation: none; }
  .js :is(
    .section-head, .split > *, .care-card, .service-item, .svc-card, .why-item,
    .feature-pill, .slider, .faq-item, .check-list li, .contact-info, .contact-form-card,
    .sitemap-card, .cta-band .container-sm > *
  ) { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   MOBILE MENU — slide-in drawer (includes/mobile-nav.php)
   Replaces the old drop-down menu on screens up to 1150px.
   ========================================================= */
.mnav-overlay,
.mnav { display: none; }

@media (max-width: 1150px) {
  .main-nav { display: none !important; }   /* desktop menu is not used on small screens */

  .mnav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(15, 42, 92, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .35s ease;
  }

  .mnav-overlay[hidden] { display: none; }
  .mnav-open .mnav-overlay { opacity: 1; }

  .mnav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: min(360px, 88vw);
    background: #fff;
    box-shadow: -16px 0 40px rgba(15, 42, 92, .18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
  }

  .mnav-open .mnav {
    transform: none;
    visibility: visible;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }

  html.mnav-open,
  .mnav-open body { overflow: hidden; }   /* the page doesn't scroll behind the menu */

  .mnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .mnav-head .logo img { height: 44px; }
  .mnav-head .logo-name { font-size: 21px; }

  .mnav-close {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hover-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }

  .mnav-close:hover { background: #dde6f0; }

  .mnav-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--navy);
    stroke-width: 2.2;
    stroke-linecap: round;
    fill: none;
  }

  .mnav-body {
    flex: 1;
    overflow-y: auto;
  }

  .mnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mnav-list > li { border-bottom: 1px solid var(--border-light); }

  .mnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 20px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
  }

  .mnav-link:hover { color: var(--blue); text-decoration: none; background: #f7fafd; }
  .mnav-link.active { color: var(--blue); }

  /* Chevron that flips when a section is open */
  .mnav-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .3s ease;
    margin-right: 4px;
  }

  .mnav-group.open .mnav-chevron { transform: rotate(-135deg) translateY(-2px); }
  .mnav-group.open > .mnav-toggle { color: var(--blue); }

  /* Sub-links slide open smoothly */
  .mnav-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
  }

  .mnav-group.open .mnav-sub { grid-template-rows: 1fr; }

  .mnav-sub-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f7fafd;
  }

  .mnav-group.open .mnav-sub-inner { padding: 6px 0 12px; }

  .mnav-sub-inner a {
    padding: 10px 20px 10px 32px;
    color: var(--text-body);
    font-weight: 600;
    font-size: 15px;
  }

  .mnav-sub-inner a:hover { color: var(--blue); text-decoration: none; }

  .mnav-label {
    padding: 12px 20px 4px 32px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-label);
  }

  .mnav-sub-inner .mnav-all { color: var(--blue); font-weight: 700; }

  .mnav-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--border-light);
  }

  .mnav-foot .btn { text-align: center; }
}

@media (max-width: 1150px) and (prefers-reduced-motion: reduce) {
  .mnav, .mnav-overlay, .mnav-sub, .mnav-chevron { transition: none !important; }
}

/* Narrow desktop (just above the 1150px mobile-menu breakpoint):
   tighten the header slightly so the menu stays on one line in English and Spanish */
@media (min-width: 1151px) and (max-width: 1250px) {
  .header-inner { gap: 12px 16px; }
  .main-nav { gap: 12px 16px; }
  .nav-item > a { padding: 10px 8px; font-size: 14.5px; }
  .logo img { height: 46px; }
  .logo-name { font-size: 23px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-sm { padding: 10px 14px; font-size: 13.5px; }
  .header-cta .btn-outline.btn-sm { padding: 8px 12px; }
}

/* =========================================================
   CURRENT PAGE HIGHLIGHT (link_attrs() in includes/header.php adds .current)
   ========================================================= */
/* Desktop dropdowns */
.dropdown a.current {
  background: var(--hover-bg);
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

/* Mobile menu sub-links */
.mnav-sub-inner a.current {
  color: var(--blue);
  font-weight: 800;
  background: #eaf3fc;
  box-shadow: inset 3px 0 0 var(--blue);
}

/* Footer quick links */
.footer-col a.current {
  color: var(--yellow);
  font-weight: 700;
}
