/* ============================================================
   A.W Ndung'u Law Advocates — Main Stylesheet
   Vanilla CSS, no frameworks. All colours/spacing via custom properties.
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
  /* Colours */
  --navy:        #0F2A4A;
  --navy-card:   #1A3A5C;
  --navy-deep:   #0a1e35;
  --gold:        #C9A55C;
  --gold-hover:  #B89248;
  --gold-light:  #DFB97A; /* lighter gold for body text on navy, passes AA */
  --bg:          #FAFAFA;
  --bg-light:    #F4F6F9;
  --text:        #3A3A3A;
  --text-light:  #FFFFFF;
  --text-muted:  #B8C5D6;
  --whatsapp:    #25D366;
  --whatsapp-hover: #1da851;
  --border:      #E2E8F0;

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-navy { color: var(--text-light); }
.text-navy h1, .text-navy h2, .text-navy h3, .text-navy h4 { color: var(--text-light); }
.text-navy p { color: var(--text-muted); }

em { font-style: italic; color: var(--gold); }

/* Eyebrow labels */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
}

.section--light {
  background: var(--bg-light);
}

.section--navy {
  background: var(--navy);
}

.section--navy .eyebrow { color: var(--gold); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-16);
}

.section__header h2 { margin-bottom: var(--sp-4); }
.section__header p { color: var(--text); font-size: 1.05rem; }
.section--navy .section__header p { color: var(--text-muted); }
.section--navy .section__header h2 { color: var(--text-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* Fade-in on scroll — JS adds .is-visible */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   5. HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .logo__firm { color: var(--navy); }
.site-header.is-scrolled .logo__sub  { color: var(--navy); }
.site-header.is-scrolled .logo__icon { color: var(--gold); }
.site-header.is-scrolled .site-nav__link { color: var(--navy); }
.site-header.is-scrolled .nav-toggle { color: var(--navy); }

/* On non-hero pages, header is always opaque white */
.site-header.is-opaque {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-header.is-opaque .logo__firm { color: var(--navy); }
.site-header.is-opaque .logo__sub  { color: var(--navy); }
.site-header.is-opaque .logo__icon { color: var(--gold); }
.site-header.is-opaque .site-nav__link { color: var(--navy); }
.site-header.is-opaque .nav-toggle { color: var(--navy); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.logo__icon-wrap {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.site-header.is-scrolled .logo__icon-wrap,
.site-header.is-opaque .logo__icon-wrap { background: var(--navy); }

.logo__icon-wrap svg { width: 22px; height: 22px; }

.logo__text { display: flex; flex-direction: column; line-height: 1.1; }

.logo__firm {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.logo__sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after { width: 100%; }
.site-nav__link:hover { color: var(--gold); }
.site-nav__link.is-active { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  color: var(--text-light);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: #fff;
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  gap: var(--sp-4);
}
.site-nav.is-open .site-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.site-nav.is-open .site-nav__link { color: var(--navy); font-size: 1rem; }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--text-light);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  box-shadow: var(--shadow-sm);
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,30,53,0.88) 0%,
    rgba(10,30,53,0.75) 50%,
    rgba(10,30,53,0.50) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: calc(var(--header-height) + 18rem) var(--sp-6) var(--sp-16);
  margin-left: 2%;
  margin-right: auto;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(201,165,92,0.15);
  border: 1px solid rgba(201,165,92,0.35);
  border-radius: 3px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-6);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45), 0 0 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--sp-8);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.hero__credential {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

.hero__credential p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.4;
}

.hero__credential strong {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ============================================================
   8. CREDENTIALS STRIP (home page)
   ============================================================ */
.credentials-strip {
  background: var(--navy-deep);
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(201,165,92,0.2);
}

.credentials-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.credentials-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-6);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.credentials-strip__item span { color: var(--gold); font-weight: 600; }

.credentials-strip__sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   9. ABOUT SECTION (home snapshot)
   ============================================================ */
.about-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.about-snapshot__left {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--sp-4);
}

.about-snapshot__photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 420px;
}

.about-snapshot__photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-snapshot__card {
  background: var(--navy);
  border-radius: 6px;
  padding: var(--sp-6);
  color: var(--text-light);
}

.about-snapshot__card h4 {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.about-snapshot__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.about-snapshot__card p:last-child { margin-bottom: 0; }

.about-snapshot__right {}

.about-snapshot__right h2 { margin-bottom: var(--sp-4); }
.about-snapshot__right .eyebrow { margin-bottom: var(--sp-3); }

.about-snapshot__right p {
  color: var(--text);
  margin-bottom: var(--sp-4);
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.value-card {
  background: var(--bg-light);
  border-radius: 6px;
  padding: var(--sp-5, 1.25rem) var(--sp-4);
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.value-card__icon svg { width: 20px; height: 20px; }

.value-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}

.value-card p {
  font-size: 0.83rem;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   10. PRACTICE AREAS GRID
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5, 1.25rem);
}

.practice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--sp-6);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.practice-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Featured card (Conveyancing on home) */
.practice-card--featured {
  border-color: var(--gold);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.practice-card__icon {
  width: 44px; height: 44px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: var(--sp-4);
  transition: background var(--transition);
}

.practice-card--featured .practice-card__icon {
  background: var(--navy);
  color: var(--gold);
}

.practice-card:hover .practice-card__icon {
  background: var(--navy);
  color: var(--gold);
}

.practice-card__icon svg { width: 22px; height: 22px; }

.practice-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.practice-card p {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-4);
}

.practice-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: gap var(--transition);
  margin-top: auto;
}

.practice-card__link:hover { gap: var(--sp-2); }

/* ============================================================
   11. WHY CHOOSE US
   ============================================================ */
.why-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.why-us__features { display: flex; flex-direction: column; gap: var(--sp-6); }

.why-feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.why-feature__icon {
  width: 44px; height: 44px;
  background: var(--navy-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.why-feature__icon svg { width: 22px; height: 22px; }

.why-feature__text h4 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: var(--sp-1);
}

.why-feature__text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.why-us__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.stat-tile {
  background: var(--navy-card);
  border-radius: 8px;
  padding: var(--sp-6);
  text-align: center;
  border-top: 2px solid rgba(201,165,92,0.3);
}

.stat-tile__number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-tile__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.why-us__note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.why-us__note p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   12. HOME CONTACT BLOCK
   ============================================================ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.contact-block__info h2 { margin-bottom: var(--sp-4); }
.contact-block__info p { color: var(--text); margin-bottom: var(--sp-6); }

.contact-details { display: flex; flex-direction: column; gap: var(--sp-4); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.contact-detail__icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail__icon svg { width: 18px; height: 18px; }

.contact-detail__text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

.contact-detail__text strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-block__cta {
  background: var(--navy);
  border-radius: 10px;
  padding: var(--sp-12);
  text-align: center;
  color: var(--text-light);
}

.contact-block__cta h3 {
  color: var(--text-light);
  margin-bottom: var(--sp-3);
}

.contact-block__cta p {
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  font-size: 0.9rem;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-muted);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-8);
}

.footer__brand .logo { margin-bottom: var(--sp-4); }
.footer__brand .logo__firm { color: var(--text-light); }
.footer__brand .logo__sub  { color: var(--text-muted); }

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.footer__col li + li { margin-top: var(--sp-2); }

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--gold); }

.footer__col p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__bottom { text-align: center; }

.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(184,197,214,0.65);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto var(--sp-3);
}

.footer__legal {
  font-size: 0.78rem;
  color: rgba(184,197,214,0.5);
  margin-bottom: var(--sp-3);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  font-size: 0.78rem;
}

.footer__links a {
  color: rgba(184,197,214,0.5);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold); }

/* ============================================================
   14. FLOATING WHATSAPP BUTTON
   — Pure CSS, JS adds .is-hidden to tuck it away when needed
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg { width: 28px; height: 28px; }

/* Tooltip */
.whatsapp-float::before {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-float:hover::before { opacity: 1; }

/* ============================================================
   15. ABOUT PAGE
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--header-height) + var(--sp-16)) 0 var(--sp-16);
  text-align: center;
}

.page-hero h1 { color: var(--text-light); margin-bottom: var(--sp-4); }
.page-hero p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.about-full {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.about-full__photo-wrap {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-8));
}

.about-full__photo {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.about-full__photo img {
  width: 100%; height: 480px;
  object-fit: cover;
  object-position: top center;
}

.about-full__card {
  background: var(--navy);
  border-radius: 8px;
  padding: var(--sp-6);
}

.about-full__card h4 { color: var(--gold); margin-bottom: var(--sp-4); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.about-full__card-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.about-full__card-list li:last-child { border: none; }
.about-full__card-list li svg { color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; }

.about-full__body h2 { margin-bottom: var(--sp-4); }
.about-full__body .eyebrow { margin-bottom: var(--sp-3); }
.about-full__body p { margin-bottom: var(--sp-4); font-size: 0.975rem; line-height: 1.75; }
.about-full__body h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); font-size: 1.2rem; }

/* ============================================================
   16. PRACTICE AREAS PAGE
   ============================================================ */
.practice-area-section {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border);
}

.practice-area-section:last-child { border-bottom: none; }

.practice-area-section:nth-child(even) { background: var(--bg-light); }

.practice-area-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-12);
  align-items: start;
}

.practice-area-inner--reverse { direction: rtl; }
.practice-area-inner--reverse > * { direction: ltr; }

.practice-area__sidebar {
  background: var(--navy);
  border-radius: 8px;
  padding: var(--sp-8);
  text-align: center;
}

.practice-area__icon {
  width: 64px; height: 64px;
  background: var(--navy-card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto var(--sp-4);
}

.practice-area__icon svg { width: 32px; height: 32px; }

.practice-area__sidebar h3 { color: var(--text-light); margin-bottom: var(--sp-3); }

.practice-area__enquire {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--sp-6);
  transition: background var(--transition);
}

.practice-area__enquire:hover { background: var(--gold-hover); }

.practice-area__body .eyebrow { margin-bottom: var(--sp-3); }
.practice-area__body h2 { margin-bottom: var(--sp-4); }
.practice-area__body p { margin-bottom: var(--sp-4); font-size: 0.975rem; line-height: 1.75; }

.practice-area__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.practice-area__tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact-page__info h2 { margin-bottom: var(--sp-4); }
.contact-page__info > p { margin-bottom: var(--sp-8); color: var(--text); }

.office-hours {
  background: var(--navy);
  border-radius: 8px;
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.office-hours h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-4);
}

.office-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
}

.office-hours__row:last-child { border-bottom: none; }
.office-hours__day { color: var(--text-muted); }
.office-hours__time { color: var(--text-light); font-weight: 500; }
.office-hours__time.closed { color: rgba(184,197,214,0.4); }

/* Map */
.contact-map {
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ============================================================
   18. CONTACT FORM
   — submission handled via mailto: — see main.js for details
   ============================================================ */
.contact-form {
  background: var(--bg-light);
  border-radius: 10px;
  padding: var(--sp-8);
}

.contact-form h3 {
  margin-bottom: var(--sp-6);
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}

.form-group label .required {
  color: #c0392b;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,42,74,0.08);
}

.form-control.is-error { border-color: #c0392b; }

.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: var(--sp-1);
  display: none;
}

.form-error.is-visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-submit {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.form-confirmation {
  display: none;
  text-align: center;
  padding: var(--sp-8);
}

.form-confirmation.is-visible { display: block; }
.form-confirmation svg { color: var(--gold); width: 48px; height: 48px; margin: 0 auto var(--sp-4); }
.form-confirmation h4 { margin-bottom: var(--sp-2); }
.form-confirmation p { color: var(--text); font-size: 0.9rem; }

/* ============================================================
   19. PRIVACY PAGE
   ============================================================ */
.privacy-content {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-content h2 { margin-top: var(--sp-10, 2.5rem); margin-bottom: var(--sp-3); font-size: 1.3rem; }
.privacy-content h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: 1.05rem; }
.privacy-content p  { font-size: 0.95rem; line-height: 1.8; color: var(--text); margin-bottom: var(--sp-4); }
.privacy-content ul { margin: var(--sp-3) 0 var(--sp-4) var(--sp-6); }
.privacy-content ul li { font-size: 0.95rem; color: var(--text); line-height: 1.7; list-style: disc; }

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .about-snapshot { grid-template-columns: 1fr; gap: var(--sp-8); }
  .about-full { grid-template-columns: 1fr; }
  .about-full__photo-wrap { position: static; max-width: 400px; }
  .why-us { grid-template-columns: 1fr; gap: var(--sp-8); }
  .why-us__stats { grid-template-columns: repeat(3, 1fr); }
  .contact-block { grid-template-columns: 1fr; gap: var(--sp-8); }
  .contact-page-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .practice-area-inner { grid-template-columns: 1fr; }
  .practice-area-inner--reverse { direction: ltr; }
  .hero__content { margin-left: 20%; margin-right: auto; }
}

@media (max-width: 768px) {
  :root { --sp-24: 4rem; --sp-16: 3rem; }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .hero__content { margin-left: 0; margin-right: 0; padding-left: var(--sp-4); padding-right: var(--sp-4); max-width: 100%; }
  .credentials-strip__inner { flex-direction: column; align-items: flex-start; padding: 0 var(--sp-6); }
  .credentials-strip__sep { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .why-us__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 640px) {
  .practice-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2rem; white-space: normal; }
  .contact-form { padding: var(--sp-6); }
  .why-us__stats { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 1.6rem; }
}
