/* ============================================================
   AWAN LAWYERS — Front-end stylesheet
   v2: responsive overhaul, admin-controlled tokens, premium mobile nav
   ============================================================ */

:root {
  /* Brand colour tokens (overridable from admin Appearance) */
  --brand-bg:        #FAF7F2;
  --brand-text:      #2A2118;
  --brand-primary:   #8B6B4A;
  --brand-primary-2: #6E5238;
  --brand-accent:    #D4B483;
  --brand-soft:      #F5ECD8;
  --brand-dark:      #2A2118;
  --brand-darker:    #1A140F;
  --brand-nav-bg:    #A89480;
  --brand-muted:     #7A6A52;

  /* Typography scale (admin controlled) */
  --font-scale: 1;
  --font-base: calc(14px * var(--font-scale));

  /* Header spacing (admin controlled) */
  --header-py: 2px;
  --header-px: 2.5rem;
  --hamburger-size: 38px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Cormorant Garamond', 'Didot', 'Big Caslon', Georgia, serif;
  background: var(--brand-bg);
  color: var(--brand-text);
  font-size: var(--font-base);
  -webkit-text-size-adjust: 100%;
}

.sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

img, svg { max-width: 100%; height: auto; }

/* ===================== NAV ===================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--header-py) var(--header-px);
  background: var(--brand-nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--brand-accent);
  gap: 1.5rem;
}

.nav-logo { flex: 0 0 auto; line-height: 0; }
.nav-logo a { display: block; line-height: 0; text-decoration: none; }
.nav-logo svg { height: 70px; width: auto; display: block; }
.nav-logo img { display: block; max-height: 70px; width: auto; }

.nav-links { display: flex; gap: 2rem; align-items: center; flex-wrap: nowrap; }

.nav-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #0D0907;
  text-decoration: none;
  letter-spacing: 0.5px;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-enquire {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 22px;
  background: var(--brand-primary);
  color: #F2EBE0;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-enquire:hover { background: var(--brand-primary-2); }

/* ---------- DROPDOWN (Practice Areas) ---------- */
.dropdown { position: relative; }

.dropdown-trigger {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #0D0907;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 0;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.dropdown-trigger:hover,
.dropdown:hover .dropdown-trigger,
.dropdown.open .dropdown-trigger { opacity: 1; }

.dropdown-arrow { font-size: 9px; transition: transform 0.2s; }
.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow { transform: rotate(180deg); }

/* FIX: no hover gap. Invisible bridge so cursor can travel to menu. */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;            /* sit flush against the trigger */
  left: 0;
  background: #FFFEFB;
  border: 1px solid #ECE3D4;
  border-top: 2px solid var(--brand-accent);
  min-width: 360px;
  z-index: 1200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding-top: 0;
  margin-top: 10px;     /* visual gap */
}

/* Invisible bridge fills the visual gap so hover doesn't break */
.dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-group-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C9B49A;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #F0E8DC;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #7A6A52;
  text-decoration: none;
  padding: 11px 16px;
  border-bottom: 1px solid #F0E8DC;
  transition: background 0.15s, padding-left 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #FBF7F0; color: #2A2118; padding-left: 20px; }

.dropdown-item-icon {
  width: 28px; height: 28px;
  background: #F2EBE0;
  border: 1px solid #E0D5C0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.dropdown-item:hover .dropdown-item-icon { background: #F5ECD8; border-color: var(--brand-accent); }
.dropdown-item-name { font-size: 12px; color: #2A2118; margin-bottom: 1px; }
.dropdown-item-desc { font-size: 10px; color: #A89480; }

/* ---------- MOBILE NAV TOGGLE (hamburger) ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brand-accent);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2A2118;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { padding: 4rem 2.5rem 3.5rem; background: var(--brand-bg); }
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { font-size: calc(42px * var(--font-scale)); font-weight: 400; line-height: 1.25; color: var(--brand-text); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--brand-accent); font-style: italic; }
.hero-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: calc(14px * var(--font-scale));
  line-height: 1.85;
  color: var(--brand-muted);
  margin-bottom: 2.2rem;
  max-width: 420px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-oak {
  padding: 13px 26px;
  background: var(--brand-primary);
  color: #FAF7F2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-oak:hover { background: var(--brand-primary-2); }

.btn-rattan {
  padding: 13px 26px;
  background: transparent;
  color: var(--brand-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--brand-accent);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-rattan:hover { background: var(--brand-soft); }

.hero-right { background: var(--brand-soft); padding: 2.25rem; display: flex; flex-direction: column; }
.stat-row { padding: 1.1rem 0; border-bottom: 1px solid var(--brand-accent); }
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-num { font-size: calc(34px * var(--font-scale)); color: var(--brand-primary); line-height: 1; margin-bottom: 5px; }
.stat-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #7A5A38; }

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  background: var(--brand-dark);
  padding: 1.1rem 2.5rem;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; color: #C9B49A; letter-spacing: 0.8px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; }

/* ===================== YCL ===================== */
.ycl-banner { background: #3A2E22; padding: 2.5rem; }
.ycl-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.ycl-badge { display: inline-block; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #6A5A44; border: 1px solid #4A3828; padding: 4px 12px; margin-bottom: 0.9rem; }
.ycl-logo { font-family: 'Cormorant Garamond', serif; font-size: calc(22px * var(--font-scale)); color: #F2EBE0; letter-spacing: 2px; margin-bottom: 3px; }
.ycl-sub { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #6A5A44; margin-bottom: 0.9rem; }
.ycl-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #9A8A72; line-height: 1.75; max-width: 580px; }
.ycl-body strong { color: var(--brand-accent); }

.btn-rattan-solid {
  padding: 13px 26px; background: var(--brand-accent); color: var(--brand-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background 0.2s;
}
.btn-rattan-solid:hover { background: #C4A070; }

/* ===================== MOBILE SERVICE STRIP ===================== */
.mobile-strip { background: var(--brand-primary); padding: 1.25rem 2.5rem; }
.mobile-strip-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; }
.mobile-icon { width: 36px; height: 36px; border: 1px solid var(--brand-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-strip-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: var(--brand-soft); line-height: 1.55; }
.mobile-strip-text strong { color: var(--brand-accent); font-weight: 600; }

/* ===================== PRACTICE AREAS ===================== */
.services-wrap { padding: 5rem 2.5rem; background: var(--brand-bg); }
.services-inner { max-width: 1080px; margin: 0 auto; }
.section-eyebrow { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #A89480; margin-bottom: 0.75rem; text-align: center; }
.section-title { font-size: calc(30px * var(--font-scale)); font-weight: 400; text-align: center; color: var(--brand-text); margin-bottom: 0.75rem; }
.section-sub { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--brand-muted); text-align: center; line-height: 1.7; max-width: 520px; margin: 0 auto 3rem; }

.practice-block { margin-bottom: 3px; }
.practice-header {
  background: #C9B49A;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid #B5A088;
  border-left: 4px solid var(--brand-primary);
}
.practice-icon { width: 44px; height: 44px; background: var(--brand-bg); border: 1px solid var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.practice-name { font-size: calc(20px * var(--font-scale)); font-weight: 400; color: var(--brand-text); margin-bottom: 0.4rem; }
.practice-intro { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #3D2E1E; line-height: 1.7; margin-top: 0.4rem; }
.practice-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #E2D9CC; }
.psvc { background: var(--brand-bg); padding: 1.25rem 1.5rem; }
.psvc-name { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; font-weight: 500; color: var(--brand-text); margin-bottom: 0.25rem; }
.psvc-desc { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; color: #9A8A72; line-height: 1.5; }

/* ===================== FIRST HOME BUYERS ===================== */
.fhb-strip { background: #F2EBE0; padding: 4rem 2.5rem; }
.fhb-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.fhb-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.85; color: var(--brand-muted); margin-bottom: 1.75rem; }
.fhb-points { display: flex; flex-direction: column; gap: 0.85rem; }
.fhb-point { display: flex; align-items: flex-start; gap: 10px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #4A3828; line-height: 1.55; }
.fhb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; margin-top: 5px; }

.fhb-right { background: var(--brand-dark); padding: 2.25rem; }
.fhb-cta-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 0.9rem; }
.fhb-cta-title { font-size: calc(18px * var(--font-scale)); color: #F2EBE0; margin-bottom: 0.75rem; line-height: 1.3; }
.fhb-cta-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #9A8A72; line-height: 1.7; margin-bottom: 1.25rem; }

.res-input { padding: 10px 12px; background: #3D3025; border: 1px solid #4A3828; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #F2EBE0; outline: none; width: 100%; margin-bottom: 10px; transition: border-color 0.2s; }
.res-input::placeholder { color: #6A5A44; }
.res-input:focus { border-color: var(--brand-accent); }

.fhb-cta-btn { width: 100%; padding: 12px; background: var(--brand-primary); color: #FAF7F2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; font-weight: 500; transition: background 0.2s; }
.fhb-cta-btn:hover { background: var(--brand-primary-2); }

/* ===================== RESOURCES ===================== */
.resources-section { background: var(--brand-dark); padding: 5rem 2.5rem; }
.resources-inner { max-width: 1080px; margin: 0 auto; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; margin-top: 3rem; background: #3D3025; }
.resource-card { background: var(--brand-dark); padding: 2rem; border-top: 2px solid var(--brand-primary); position: relative; }
.resource-tag { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 1rem; display: inline-block; }
.resource-title { font-size: calc(20px * var(--font-scale)); color: #F2EBE0; margin-bottom: 0.75rem; line-height: 1.3; }
.resource-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: #9A8A72; line-height: 1.75; margin-bottom: 1.5rem; }
.resource-includes-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #C9B49A; margin-bottom: 0.75rem; }
.resource-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 0.5rem; line-height: 1.5; }
.resource-item-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #9A8A72; }
.resource-item-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; margin-top: 5px; }
.resource-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.resource-btn { padding: 12px; background: var(--brand-primary); color: #FAF7F2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; font-weight: 500; width: 100%; transition: background 0.2s; }
.resource-btn:hover { background: var(--brand-primary-2); }
.resource-disclaimer { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; color: #6A5A44; margin-top: 6px; line-height: 1.5; }

/* ===================== PRINCIPAL ===================== */
.principal-section { background: #F2EBE0; padding: 5rem 2.5rem; }
.principal-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 3.5rem; align-items: start; }

.principal-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--brand-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid #E0D5C0;
}
.principal-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-initials { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--brand-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; color: var(--brand-text); letter-spacing: 2px; }
.photo-placeholder-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-primary); }

.principal-eyebrow { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #A89480; margin-bottom: 0.75rem; }
.principal-name { font-size: calc(32px * var(--font-scale)); font-weight: 400; color: var(--brand-text); margin-bottom: 0.4rem; }
.principal-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #A89480; margin-bottom: 1.5rem; }
.principal-divider { width: 40px; height: 2px; background: var(--brand-primary); margin-bottom: 1.5rem; }

.principal-mission { font-size: calc(18px * var(--font-scale)); line-height: 1.7; color: var(--brand-primary); margin-bottom: 1.5rem; font-style: italic; border-left: 3px solid var(--brand-accent); padding-left: 1.25rem; }
.principal-bio-detail { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; line-height: 1.85; color: var(--brand-muted); margin-bottom: 1rem; }

.credentials { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.credential { display: flex; align-items: flex-start; gap: 10px; }
.cred-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; margin-top: 6px; }
.cred-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: var(--brand-muted); }

.btn-oak-solid { padding: 12px 26px; background: var(--brand-primary); color: #FAF7F2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; font-weight: 500; transition: background 0.2s; }
.btn-oak-solid:hover { background: var(--brand-primary-2); }

.cause-block { background: var(--brand-dark); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 3px solid var(--brand-accent); display: flex; gap: 1rem; align-items: flex-start; }
.cause-icon { flex-shrink: 0; margin-top: 2px; }
.cause-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 4px; }
.cause-text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #C9B49A; line-height: 1.65; }

/* ===================== WHY CHOOSE US ===================== */
.why-section { background: #C9B49A; padding: 5rem 2.5rem; }

/* ===================== CONTACT ===================== */
.contact-section { background: var(--brand-bg); padding: 5rem 2.5rem; }
.contact-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.detail-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 3px; }
.detail-item { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: var(--brand-text); word-break: break-word; }
.contact-detail { display: flex; flex-direction: column; gap: 1rem; }
.contact-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.85; color: var(--brand-muted); margin-bottom: 1.75rem; }

.enquiry-form { background: var(--brand-soft); padding: 2rem; }
.form-row { margin-bottom: 1.1rem; }
.form-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #6B4A2A; display: block; margin-bottom: 5px; }
.form-input, .form-select {
  width: 100%; padding: 10px 12px; background: var(--brand-bg); border: 1px solid var(--brand-accent);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: var(--brand-text);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus { border-color: var(--brand-primary); }
textarea.form-input { height: 80px; resize: vertical; }

.form-submit { width: 100%; padding: 13px; background: var(--brand-primary); color: #FAF7F2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: none; cursor: pointer; font-weight: 500; margin-top: 0.5rem; transition: background 0.2s; }
.form-submit:hover { background: var(--brand-primary-2); }

/* ===================== FOOTER ===================== */
footer { background: var(--brand-darker); padding: 3rem 2.5rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo svg { height: 52px; width: auto; display: block; margin-bottom: 0.5rem; }
.footer-trading { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #6A5A44; margin-bottom: 4px; }
.footer-ycl { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--brand-accent); letter-spacing: 2px; margin-bottom: 0.75rem; }
.footer-body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #9A8A72; line-height: 1.7; margin-top: 0.5rem; max-width: 260px; }
.footer-col-title { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #9A8A72; text-decoration: none; transition: color 0.2s; word-break: break-word; }
.footer-links a:hover { color: #C9B49A; }
.footer-bottom { max-width: 1080px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #2E2419; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 11px; color: #6A5A44; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ===================== FLOATING CTA ===================== */
.floating-cta { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; max-width: calc(100vw - 2rem); }
.floating-cta-btn { background: var(--brand-primary); color: #FAF7F2; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 1px; padding: 13px 20px; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(42,33,24,0.3); transition: background 0.2s; white-space: nowrap; }
.floating-cta-btn:hover { background: var(--brand-primary-2); }
.floating-cta-label { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 10px; color: #FAF7F2; background: var(--brand-dark); padding: 4px 12px; letter-spacing: 1px; text-align: center; }

/* ===================== TOAST ===================== */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--brand-dark); color: #F2EBE0; padding: 14px 28px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 13px; letter-spacing: 0.5px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 9999; opacity: 0; transition: opacity 0.25s; pointer-events: none; max-width: calc(100vw - 2rem); text-align: center; }
.toast.show { opacity: 1; }
.toast.error { background: #8B2A1A; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner, .fhb-inner, .contact-inner { gap: 2.5rem; }
  .principal-inner { grid-template-columns: 240px 1fr; gap: 2.5rem; }
  .practice-services { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile + small tablet */
@media (max-width: 900px) {
  :root { --header-px: 1.25rem; }

  /* Header: premium mobile layout — logo left, hamburger right */
  nav {
    flex-wrap: wrap;
    padding: var(--header-py) var(--header-px);
    gap: 0.75rem;
  }
  .nav-logo { order: 1; flex: 1 1 auto; }
  .nav-logo svg, .nav-logo img { height: 48px; max-height: 56px; }
  .nav-toggle { display: inline-flex; order: 2; flex: 0 0 auto; }

  .nav-links {
    order: 3;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--brand-nav-bg);
    margin: 0.5rem -1.25rem -0.75rem;
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links > a,
  .nav-links .dropdown,
  .nav-links #navMenuLinks > a,
  .nav-links .nav-enquire { width: 100%; }
  .nav-links > a,
  .nav-links #navMenuLinks > a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(13,9,7,0.08);
    text-align: left;
  }
  .nav-links .dropdown-trigger {
    width: 100%; justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(13,9,7,0.08);
  }
  .nav-links .nav-enquire {
    margin-top: 0.75rem;
    text-align: center;
  }

  /* Mobile dropdown: no absolute, no hover (click only) */
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    margin-top: 0;
    border: 1px solid #E2D9CC;
  }
  .dropdown-menu::before { display: none; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }

  /* Sections collapse */
  .hero-inner, .fhb-inner, .why-inner, .contact-inner, .principal-inner, .footer-inner, .ycl-inner { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .practice-services { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.5rem 1.25rem 2.25rem; }
  .services-wrap, .fhb-strip, .resources-section, .principal-section, .why-section, .contact-section { padding: 3rem 1.25rem; }
  .ycl-banner { padding: 2rem 1.25rem; }
  .mobile-strip, .trust-strip { padding: 1.1rem 1.25rem; }
  footer { padding: 2.5rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .principal-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 3/4; }
  .hero h1 { font-size: calc(32px * var(--font-scale)); }
  .section-title { font-size: calc(26px * var(--font-scale)); }
  .principal-name { font-size: calc(28px * var(--font-scale)); }
}

/* Phone */
@media (max-width: 600px) {
  .practice-services { grid-template-columns: 1fr; }
  .practice-header { grid-template-columns: 1fr; padding: 1.25rem 1.25rem; gap: 0.85rem; text-align: left; }
  .hero h1 { font-size: calc(28px * var(--font-scale)); }
  .hero-right { padding: 1.5rem; }
  .stat-num { font-size: calc(28px * var(--font-scale)); }
  .ycl-banner { padding: 1.75rem 1.25rem; }
  .enquiry-form { padding: 1.5rem 1.25rem; }
  .trust-strip { gap: 1rem; padding: 0.9rem 1rem; }
  .trust-item { font-size: 10px; }
  .floating-cta { bottom: 0.75rem; right: 0.75rem; }
  .floating-cta-btn { padding: 11px 16px; font-size: 11px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-logo svg, .nav-logo img { height: 42px; }
  .resource-card { padding: 1.5rem 1.25rem; }
  .cause-block { padding: 1rem 1.1rem; flex-direction: column; }
}

/* Principal photo uploaded image */
.principal-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ============================================================
   v3 RESPONSIVE & UX FIXES
   ============================================================ */

/* Tighter default header padding (admin can override) */
:root { --header-py: 2px; --hamburger-size: 38px; }

/* --- Desktop dropdown: float above page content, no hover gap --- */
@media (min-width: 901px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0 !important;
    padding-top: 8px;          /* invisible hover bridge */
    background-clip: border-box;
    box-shadow: 0 18px 40px rgba(42,33,24,0.16);
    border-radius: 2px;
  }
  .dropdown-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: -10px; left: 0; right: 0; height: 10px;
    background: transparent;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.open .dropdown-menu { display: block; }
}

/* --- Header / logo sizing so hamburger never overflows on phones --- */
@media (max-width: 900px) {
  nav { gap: 0.5rem; padding-left: 1rem; padding-right: 1rem; }
  .nav-logo { min-width: 0; max-width: calc(100% - 60px); }
  .nav-logo a { display: block; max-width: 100%; }
  .nav-logo svg,
  .nav-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 56px;
  }
  .nav-toggle { display: inline-flex !important; flex: 0 0 42px; }
}
@media (max-width: 480px) {
  .nav-logo { max-width: calc(100% - 56px); }
  .nav-logo svg, .nav-logo img { max-height: 44px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* --- Sitewide overflow guard --- */
html, body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
section, footer, nav, .why-section, .principal-section, .contact-section,
.resources-section, .services-wrap, .fhb-strip, .ycl-banner, .hero {
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- WHY section: inline 3-col grid overrides; force responsive collapse --- */
.why-section > div > div[style*="grid-template-columns"]:not([data-keep-grid]) {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .why-section > div > div[style*="grid-template-columns:repeat(3,1fr)"],
  .why-section > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Languages strip: stack heading + paragraph */
  .why-section > div > div[style*="grid-template-columns:auto 1fr"],
  .why-section > div > div[style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1.25rem !important;
    gap: 1rem !important;
    text-align: left;
  }
  .why-section > div > div[style*="grid-template-columns:auto 1fr"] p,
  .why-section > div > div[style*="grid-template-columns: auto 1fr"] p {
    max-width: 100% !important;
  }
}
@media (max-width: 600px) {
  .why-section > div > div[style*="grid-template-columns:repeat(3,1fr)"],
  .why-section > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .why-section > div > div[style*="grid-template-columns:auto 1fr"] div[style*="font-size:26px"],
  .why-section > div > div[style*="grid-template-columns: auto 1fr"] div[style*="font-size:26px"] {
    font-size: 20px !important;
    line-height: 1.35;
  }
  .why-section > div > div[style*="grid-template-columns:auto 1fr"] p,
  .why-section > div > div[style*="grid-template-columns: auto 1fr"] p {
    font-size: 13px !important;
  }
}

/* --- Generic safety for any inline 3-col grid on mobile --- */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- Word wrapping safety for long words / emails / URLs --- */
p, a, h1, h2, h3, h4, li, div, span { overflow-wrap: anywhere; word-break: break-word; }
.section-title, .hero h1, .principal-name { overflow-wrap: break-word; word-break: normal; }

/* --- Contact details: nicer mobile alignment --- */
@media (max-width: 600px) {
  .contact-section .contact-inner { gap: 2rem; }
  .detail-item { font-size: 13px; }
}

/* --- Hero stats not overflowing --- */
@media (max-width: 600px) {
  .hero-right { padding: 1.25rem; }
  .stat-num { font-size: calc(26px * var(--font-scale)); }
  .stat-label { font-size: 11px; }
}

/* ============================================================
   v4 FINAL MOBILE HEADER + OVERFLOW FIXES
   ============================================================ */

/* CSS-drawn hamburger: always three clean lines on every mobile browser. */
.nav-toggle svg { display: none !important; }
.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  display: block;
  width: var(--hamburger-size);
  height: clamp(3px, calc(var(--hamburger-size) / 10), 5px);
  border-radius: 999px;
  background: currentColor;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: calc(var(--hamburger-size) * -0.32); }
.nav-toggle-bars::after { top: calc(var(--hamburger-size) * 0.32); }
.nav-toggle.is-open .nav-toggle-bars,
.nav-toggle.is-open .nav-toggle-bars::before,
.nav-toggle.is-open .nav-toggle-bars::after { background: currentColor; }

/* Keep mobile header to one row: logo left, hamburger right. */
@media (max-width: 900px) {
  nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
    padding-top: var(--header-py);
    padding-bottom: var(--header-py);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .nav-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    overflow: hidden;
  }
  .nav-logo a {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .nav-logo svg {
    width: auto !important;
    height: 46px !important;
    max-width: 100% !important;
    max-height: 46px !important;
    flex: 0 1 auto;
  }
  .nav-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 46px !important;
    object-fit: contain;
    flex: 0 1 auto;
  }
  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-flex !important;
    width: max(44px, calc(var(--hamburger-size) + 14px)) !important;
    height: max(44px, calc(var(--hamburger-size) + 14px)) !important;
    min-width: max(44px, calc(var(--hamburger-size) + 14px));
    min-height: max(44px, calc(var(--hamburger-size) + 14px));
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #FFFFFF;
  }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
    margin: 0.5rem -12px calc(-1 * var(--header-py));
  }
}

@media (max-width: 480px) {
  nav { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.5rem; }
  .nav-logo svg { height: 38px !important; max-height: 38px !important; }
  .nav-logo img { max-height: 38px !important; }
}

@media (max-width: 360px) {
  .nav-logo svg { height: 34px !important; max-height: 34px !important; }
  .nav-logo img { max-height: 34px !important; }
}

/* Stop every mobile overflow source instead of only hiding the page scroll. */
body, p, h1, h2, h3, h4, li, span, div { word-break: normal; overflow-wrap: break-word; }
a, .detail-item { overflow-wrap: anywhere; }
section > *, footer > *, nav > *, .hero-inner, .ycl-inner, .mobile-strip-inner,
.services-inner, .fhb-inner, .resources-inner, .principal-inner, .contact-inner,
.footer-inner, .practice-block, .practice-header, .practice-services, .resource-card,
.resource-form, .enquiry-form, .cause-block { min-width: 0; max-width: 100%; }

@media (max-width: 600px) {
  .hero, .services-wrap, .fhb-strip, .resources-section,
  .principal-section, .why-section, .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .btn-oak, .btn-rattan, .btn-rattan-solid, .btn-oak-solid,
  .fhb-cta-btn, .resource-btn, .form-submit, .nav-enquire {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
    text-align: center;
  }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-oak, .hero-btns .btn-rattan { width: 100%; }
  .resource-form, .enquiry-form { width: 100%; }
  .res-input, .form-input, .form-select { min-width: 0; max-width: 100%; }
  .floating-cta {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    align-items: stretch;
    max-width: none;
  }
  .floating-cta-btn {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
  }
  .floating-cta-label {
    align-self: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
}

/* ============================================================
   v5 REQUESTED MOBILE POLISH: functional header controls, menu
   close polish, 2-column mobile benefits, centered language block
   ============================================================ */

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
}

body { position: relative; }

body.mobile-nav-open { overflow: hidden; }

nav,
section,
footer,
.hero,
.services-wrap,
.fhb-strip,
.resources-section,
.principal-section,
.why-section,
.contact-section,
.ycl-banner,
.mobile-strip,
.trust-strip {
  width: 100%;
  max-width: 100%;
}

.why-section > div,
.language-strip,
.why-feature-grid { min-width: 0; max-width: 100%; }

@media (max-width: 900px) {
  nav {
    padding-top: var(--header-py) !important;
    padding-bottom: var(--header-py) !important;
  }
  .nav-toggle { color: #fff !important; }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { background: #fff !important; }

  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links button { cursor: pointer; }

  .language-strip {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center !important;
    gap: 1.15rem !important;
    padding: 1.65rem 1.25rem !important;
  }
  .language-heading { width: 100%; max-width: 520px; }
  .language-label { margin-bottom: 0.7rem !important; }
  .language-list {
    font-size: 24px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
  .language-body {
    max-width: 560px !important;
    margin: 0 auto !important;
    text-align: center !important;
    line-height: 1.75 !important;
  }

  .why-section > div > .why-feature-grid[style],
  .why-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .why-feature-grid > div {
    min-width: 0;
    padding: 1.35rem !important;
  }
}

@media (max-width: 600px) {
  nav {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
  }
  .nav-links {
    width: calc(100% + 24px) !important;
    max-width: calc(100% + 24px) !important;
    overflow: hidden;
  }
  .why-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .why-feature-grid > div {
    padding: 1rem 0.9rem !important;
  }
  .why-feature-grid > div > div:first-child { font-size: 10px !important; }
  .why-feature-grid > div > div:nth-child(2) {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  .why-feature-grid > div > p {
    font-size: 11.5px !important;
    line-height: 1.6 !important;
  }
  .language-strip {
    padding: 1.5rem 1rem !important;
    margin-bottom: 3rem !important;
  }
  .language-list { font-size: 22px !important; }
  .language-body { font-size: 13px !important; }
}

/* v6: final overrides for the marked mobile issues. */
@media (max-width: 900px) {
  .nav-toggle {
    width: max(48px, calc(var(--hamburger-size) + 14px)) !important;
    height: max(48px, calc(var(--hamburger-size) + 14px)) !important;
    min-width: max(48px, calc(var(--hamburger-size) + 14px)) !important;
    min-height: max(48px, calc(var(--hamburger-size) + 14px)) !important;
    color: #fff !important;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    width: var(--hamburger-size) !important;
    height: max(3px, calc(var(--hamburger-size) / 9)) !important;
    background: #fff !important;
  }
  .nav-toggle-bars::before { top: calc(var(--hamburger-size) * -0.34) !important; }
  .nav-toggle-bars::after { top: calc(var(--hamburger-size) * 0.34) !important; }

  .nav-logo { max-width: calc(100vw - max(76px, calc(var(--hamburger-size) + 38px))) !important; }
  .nav-links {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 calc(-1 * var(--header-py)) !important;
    padding: 0.5rem 0 1rem !important;
  }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body > * {
    max-width: 100vw !important;
  }
  .hero, .services-wrap, .fhb-strip, .resources-section,
  .principal-section, .why-section, .contact-section,
  .ycl-banner, .mobile-strip, .trust-strip, footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .why-section > div > .why-feature-grid[style],
  .why-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .why-feature-grid > div { padding: 0.9rem 0.75rem !important; }
  .why-feature-grid > div > div:nth-child(2) { font-size: 14px !important; }
  .why-feature-grid > div > p { font-size: 11px !important; }
}

/* v7: requested desktop header/dropdown fix. Keep submenu outside the sticky header. */
nav { overflow: visible !important; z-index: 10000; }

#navMenuLinks { display: flex; align-items: center; gap: 2rem; }

@media (min-width: 901px) {
  .nav-links { flex-wrap: nowrap !important; }
  .dropdown { position: relative; }
  .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none;
    min-width: 430px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #FFFEFB;
    border: 1px solid #ECE3D4;
    border-top: 3px solid var(--brand-accent);
    box-shadow: 0 22px 50px rgba(42, 33, 24, 0.2);
  }
  .dropdown-menu::before {
    content: '';
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    top: -15px;
    height: 15px;
    background: transparent;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.open .dropdown-menu { display: block !important; }
}

@media (max-width: 900px) {
  #navMenuLinks { display: flex; flex-direction: column; gap: 0; width: 100%; }
}
