/* ═══════════════════════════════════════════════════════════
   KHOMO ATTORNEYS — Premium Redesign
   Target: High-Profile Clients
   Design: Magazine-quality, Gold + Teal luxury palette
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand Teal */
  --teal-900: #011e1f;
  --teal-800: #012b2d;
  --teal-700: #014345;
  --teal-600: #015d60;
  --teal-400: #1b8a8e;
  --teal-200: #adc3c4;
  --teal-100: #dff0f0;

  /* Gold Accent */
  --gold-700: #8a6418;
  --gold-600: #b8862a;
  --gold:     #C9A84C;
  --gold-400: #d4b568;
  --gold-200: #eedfa8;
  --gold-100: #faf5e4;

  /* Neutrals */
  --ink:      #0f1117;
  --ink-80:   #1e2330;
  --ink-60:   #394152;
  --ink-40:   #64748b;
  --ink-20:   #94a3b8;
  --ink-10:   #cbd5e1;
  --ink-05:   #f1f5f9;
  --white:    #ffffff;

  /* Functional */
  --border:   #e2e8f0;
  --bg-alt:   #f8fafb;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .08), 0 1px 2px -1px rgb(0 0 0 / .08);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / .10), 0 2px 6px -2px rgb(0 0 0 / .08);
  --shadow-lg: 0 16px 40px -8px rgb(0 0 0 / .14), 0 6px 16px -4px rgb(0 0 0 / .10);
  --shadow-xl: 0 28px 60px -12px rgb(0 0 0 / .22);
  --shadow-gold: 0 8px 32px -4px rgb(201 168 76 / .30);

  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms var(--ease);
  --t-norm: 300ms var(--ease);
  --t-slow: 500ms var(--ease-out);

  /* Spacing */
  --s1: 0.5rem;   --s2: 1rem;    --s3: 1.5rem;
  --s4: 2rem;     --s5: 3rem;    --s6: 4rem;
  --s7: 6rem;     --s8: 8rem;

  /* Radius */
  --r-sm: 4px;   --r-md: 8px;
  --r-lg: 16px;  --r-xl: 24px;
  --r-full: 9999px;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-60);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-norm); }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }

p { line-height: 1.75; color: var(--ink-60); }

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

/* ── UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.mt-8 { margin-top: var(--s3); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label.light { color: var(--teal-200); }
.section-label.light::before { background: var(--teal-200); }

.section-label.light-gold { color: var(--gold-400); }
.section-label.light-gold::before { background: var(--gold-400); }

.section-header {
  text-align: center;
  margin-bottom: var(--s6);
}

.section-header .section-label {
  justify-content: center;
}

.section-header .section-label::before { display: none; }

.section-header h2 { margin-bottom: var(--s2); }

.section-header p {
  font-size: 1.125rem;
  color: var(--ink-40);
  max-width: 560px;
  margin: 0 auto;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--t-norm);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::after { opacity: 1; }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -4px rgb(201 168 76 / .40);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-700);
}

.btn-outline-dark:hover {
  background: var(--teal-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ── MOBILE NAV ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgb(0 0 0 / .12);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem var(--s4);
  color: var(--ink-60);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink-05);
  transition: all var(--t-fast);
}

.mobile-nav a i { color: var(--gold); width: 18px; }

.mobile-nav a:hover {
  background: var(--ink-05);
  color: var(--teal-700);
  padding-left: 2rem;
}

.mobile-nav.active { display: flex; }

.nav-toggle {
  display: none !important;
  background: transparent;
  border: 2px solid var(--teal-700);
  border-radius: var(--r-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  transition: all var(--t-norm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-700);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none !important; }
  .nav-toggle { display: flex !important; }
  .header-topbar-left span:not(:first-child),
  .topbar-divider { display: none; }
}

/* ── SITE HEADER ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform var(--t-norm), box-shadow var(--t-norm);
}

.site-header.hidden { transform: translateY(-100%); }

/* Top bar */
.header-topbar {
  background: var(--teal-800);
  padding: 0.5rem 0;
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-topbar-left,
.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.header-topbar-left i,
.header-topbar-right i {
  color: var(--gold);
  margin-right: 0.35rem;
}

.header-topbar-right a,
.header-topbar-left a {
  color: rgba(255,255,255,0.85);
  transition: color var(--t-fast);
}

.header-topbar-right a:hover,
.header-topbar-left a:hover { color: var(--gold); }

.topbar-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.2);
}

/* Main nav bar */
.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--t-norm);
}

.site-header.scrolled .header-main {
  box-shadow: 0 4px 24px rgb(1 67 69 / .10);
}

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

.logo { display: flex; align-items: center; }
.logo-img { height: 68px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: var(--ink-60);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  position: relative;
  transition: color var(--t-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-norm);
}

.main-nav a:hover { color: var(--teal-700); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal-700); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-700);
  color: var(--white);
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-norm);
}

.header-cta:hover {
  background: var(--teal-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.header-cta i { font-size: 0.7rem; transition: transform var(--t-fast); }
.header-cta:hover i { transform: translateX(3px); }

@media (max-width: 480px) { .logo-img { height: 52px; } }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  margin-top: 116px;
  overflow: hidden;
  background: var(--teal-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider, .slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 8s linear;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(1, 30, 31, 0.92) 0%,
    rgba(1, 43, 45, 0.80) 45%,
    rgba(1, 43, 45, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: var(--s6) 0;
}

.hero-text { max-width: 720px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--s4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  color: var(--white);
  line-height: 1.06;
  margin-bottom: var(--s3);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title em {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-description {
  font-size: 1.175rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--s5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s6);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-item span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: cue-float 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-extend 2.5s ease-in-out infinite;
}

@keyframes cue-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes scroll-extend {
  0%        { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%       { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100%      { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about {
  padding: var(--s8) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
}

/* Image col */
.about-image-col { position: relative; }

.about-image-wrapper {
  position: relative;
  padding: var(--s3) 0 var(--s3) var(--s3);
}

.about-image-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(1,30,31,0.6));
  z-index: 1;
}

.about-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gold frame accent */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - var(--s5));
  height: calc(100% - var(--s5));
  border: 2px solid var(--gold);
  border-radius: var(--r-md);
  z-index: 0;
  opacity: 0.5;
}

.about-badge-float {
  position: absolute;
  bottom: var(--s4);
  right: -var(--s4);
  right: 0;
  background: var(--teal-700);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.badge-float-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.about-badge-float strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.about-badge-float span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}

.about-decor-line {
  position: absolute;
  top: 50%;
  left: -32px;
  width: 32px;
  height: 2px;
  background: var(--gold);
  opacity: 0.6;
}

/* Text col */
.about-text-col { padding: var(--s3) 0; }

.about-text-col h2 {
  margin-bottom: var(--s3);
  line-height: 1.12;
}

.about-lead {
  font-size: 1.175rem;
  color: var(--ink-40);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: var(--s3);
  line-height: 1.55;
  border-left: 3px solid var(--gold);
  padding-left: var(--s3);
}

.about-text-col > p { margin-bottom: var(--s4); }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.pillar {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-700);
  font-size: 1rem;
  margin-top: 2px;
}

.pillar-text strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.pillar-text p {
  font-size: 0.875rem;
  color: var(--ink-40);
  margin: 0;
  line-height: 1.55;
}

/* ── CREDENTIALS BANNER ─────────────────────────────────── */
.credentials-banner {
  background: var(--teal-800);
  background-image:
    linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  padding: var(--s5) 0;
  position: relative;
  overflow: hidden;
}

.credentials-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.credentials-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.credential-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  text-align: left;
  padding: var(--s4) var(--s3);
}

.credential-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.credential-data strong {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.credential-data sup {
  font-size: 1rem;
  color: var(--gold);
  font-family: var(--font-serif);
}

.credential-data span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.credential-sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* ── SERVICES ───────────────────────────────────────────── */
.services {
  padding: var(--s8) 0;
  background: var(--bg-alt);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-norm), box-shadow var(--t-norm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card.featured {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
}

.service-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(201,168,76,0.3);
}

.service-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover .service-card-img img { transform: scale(1.07); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,30,31,0.55), transparent 50%);
}

.service-card-body {
  padding: var(--s4);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  user-select: none;
}

.service-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s2);
  padding-right: 3rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--ink-40);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--s3);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  transition: gap var(--t-fast), color var(--t-fast);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--teal-200);
  align-self: flex-start;
}

.service-link:hover {
  color: var(--gold-700);
  gap: 0.75rem;
  border-bottom-color: var(--gold);
}

/* ── WHY KHOMO ──────────────────────────────────────────── */
.why-khomo {
  padding: var(--s8) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.why-bg-decor {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
}

.why-text-col h2 { margin-bottom: var(--s3); }
.why-text-col p { margin-bottom: var(--s3); font-size: 1rem; }

.why-features-col {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.why-feature {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s3);
  border-radius: var(--r-md);
  border: 1px solid var(--ink-05);
  transition: border-color var(--t-norm), box-shadow var(--t-norm);
}

.why-feature:hover {
  border-color: var(--gold-200);
  box-shadow: var(--shadow-sm);
}

.why-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgb(1 67 69 / .20);
}

.why-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.why-feature-text p {
  font-size: 0.875rem;
  color: var(--ink-40);
  margin: 0;
  line-height: 1.6;
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  padding: var(--s8) 0;
  background: var(--bg-alt);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  align-items: start;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--t-norm), box-shadow var(--t-norm);
  border: 1px solid var(--border);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-200);
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: var(--s2);
  line-height: 1;
}

.testimonial-card > p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-60);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: var(--s4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s2);
  border-top: 1px solid var(--ink-05);
  padding-top: var(--s3);
}

.author-initials {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: var(--white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-sans);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--ink-20);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── CONSULTATION CTA ───────────────────────────────────── */
/* ── CONSULTATION CTA ───────────────────────────────────── */
.consultation-cta {
  position: relative;
  overflow: hidden;
  background: var(--teal-900);
}

/* Full-bleed background image */
.cta-bg-img {
  display: block;
  position: absolute;
  inset: 0;
  background-image: url('images/imgi_11_header.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 1;
}

/* Multi-layer overlay for depth */
.cta-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(1,22,23,0.55) 0%, rgba(1,22,23,0.72) 100%),
    linear-gradient(135deg, rgba(1,43,45,0.6) 0%, transparent 60%);
}

/* Decorative top gold bar */
.consultation-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  z-index: 2;
}

.cta-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--s4) 20px;
}

/* Centered content frame with gold border */
.cta-frame {
  max-width: 740px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s5);
  background: rgba(1,22,23,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}

/* Corner accents */
.cta-frame::before,
.cta-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.cta-frame::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: var(--r-lg) 0 0 0;
}
.cta-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 var(--r-lg) 0;
}

/* Eyebrow with lines */
.cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.cta-eyebrow span:not(.cta-eyebrow-line) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.cta-eyebrow-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.cta-frame h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 var(--s2);
}

.cta-frame h2 em {
  color: var(--gold);
  font-style: italic;
}

.cta-frame > p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--s3);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
}

.cta-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.cta-trust-item i {
  color: var(--gold);
  font-size: 0.8rem;
}

/* Stats strip at bottom */
.cta-stats-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1,10,11,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: var(--s2) var(--s4);
  gap: 0;
  flex-wrap: wrap;
}

.cta-strip-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: var(--s2) var(--s3);
}

.cta-strip-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.cta-strip-stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
}

.cta-strip-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact {
  padding: var(--s8) 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s5);
  margin-bottom: var(--s6);
  align-items: start;
}

.contact-info-card {
  background: var(--teal-800);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  color: var(--white);
  height: 100%;
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.6;
}

.contact-link {
  color: rgba(255,255,255,0.85);
  transition: color var(--t-fast);
}
.contact-link:hover { color: var(--gold); }

.contact-assurance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.contact-assurance i { color: var(--gold); }

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s5);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--ink-40);
  margin-bottom: var(--s4);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--s3);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: max(16px, 0.9rem); /* min 16px prevents iOS auto-zoom */
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-10); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(1,67,69,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { appearance: none; cursor: pointer; }

/* Map */
.map-section { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }

.map-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.map-header-info {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex: 1;
}

.map-header-info i { color: var(--gold); font-size: 1.1rem; }

.map-header-info h4 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}

.map-header-info p { font-size: 0.8rem; color: var(--ink-40); margin: 0; }

.map-embed-wrapper iframe { display: block; }

/* ── GOLD SECTION DIVIDER ──────────────────────────────── */
.gold-divider {
  position: relative;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-200) 10%,
    var(--gold) 35%,
    #f5d97a 50%,
    var(--gold) 65%,
    var(--gold-200) 90%,
    transparent 100%
  );
  overflow: visible;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.25), transparent);
  pointer-events: none;
}

.gold-divider::before { top: -5px; }
.gold-divider::after  { bottom: -5px; }

.gold-divider-gem {
  display: none;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
}

.footer-top {
  padding: var(--s7) 0 var(--s5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s5);
  align-items: start;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--s3);
  filter: brightness(1.1);
}

.footer-brand-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s3);
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-quick a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}

.footer-contact-quick a i { color: var(--gold); width: 16px; }

.footer-contact-quick a:hover { color: var(--gold); }

.footer-nav-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
  padding-bottom: 10px;
  position: relative;
}

.footer-nav-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  box-shadow: 28px 0 0 0 var(--teal-400);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a,
.footer-nav span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
  line-height: 1.4;
}

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

.footer-offices {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer-office strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.25rem;
}

.footer-office p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  padding: var(--s3) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-disclaimer {
  max-width: 480px;
  font-size: 0.75rem !important;
  font-style: italic;
}

/* ── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--s4);
  right: var(--s4);
  z-index: 500;
  width: 48px;
  height: 48px;
  background: var(--teal-700);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--t-norm);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ── AOS OVERRIDE ───────────────────────────────────────── */
[data-aos] { transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }

/* ── SCROLLED HEADER ────────────────────────────────────── */
.site-header.scrolled .header-main {
  box-shadow: 0 4px 24px rgb(0 0 0 / .10);
}

/* ── RESPONSIVENESS ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { gap: var(--s5); }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .about-grid,
  .why-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about-image-col { order: -1; }
  .about-photo { height: 380px; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .service-card.featured { transform: none; }
  .service-card.featured:hover { transform: translateY(-8px); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-frame { padding: var(--s5) var(--s4); }
  .cta-strip-sep { display: none; }
  .cta-stats-strip { gap: var(--s2); }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .credentials-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .credential-sep { display: none; }
  .hero-trust { gap: var(--s3); }
  .map-header { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero { margin-top: 104px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .credentials-inner { flex-direction: column; align-items: flex-start; }
  .about-image-wrapper { padding: 0; }
  .about-image-wrapper::before { display: none; }
  .about-badge-float { position: static; margin-top: var(--s3); }
  .hero-scroll-cue { display: none; }
}

/* ── PRACTICE AREAS DETAIL SECTION ──────────────────────────────── */
.practice-detail {
  display: none;
  padding: var(--s10) 0;
  background: var(--clr-white);
}

.practice-detail-block {
  display: none;
  margin-bottom: 0;
  scroll-margin-top: 120px;
}

.practice-detail-inner {
  display: flex;
  gap: var(--s6);
  align-items: flex-start;
  background: var(--clr-bg, #f8f8f5);
  border-radius: 12px;
  padding: var(--s6) var(--s7);
  border-left: 4px solid var(--clr-gold, #b8972a);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.practice-detail-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--clr-gold, #b8972a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-top: 4px;
}

.practice-detail-content h3 {
  font-family: var(--ff-serif, 'Playfair Display', serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--clr-navy, #0d1b2a);
  margin-bottom: var(--s3);
}

.practice-detail-content p {
  color: var(--clr-text-muted, #5a6a7a);
  line-height: 1.75;
  margin-bottom: var(--s3);
}

.practice-types {
  margin: var(--s4) 0;
}

.practice-types h4 {
  font-family: var(--ff-serif, 'Playfair Display', serif);
  font-size: 1.1rem;
  color: var(--clr-navy, #0d1b2a);
  margin-bottom: var(--s3);
}

.practice-types ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.practice-types ul li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--clr-text-muted, #5a6a7a);
  font-size: 0.97rem;
}

.practice-types ul li i {
  color: var(--clr-gold, #b8972a);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.practice-detail-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-gold, #b8972a), transparent);
  opacity: 0.4;
  margin: var(--s6) 0;
}

@media (max-width: 768px) {
  .practice-detail-inner {
    flex-direction: column;
    padding: var(--s5) var(--s4);
  }
  .practice-detail-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED MOBILE RESPONSIVENESS
   Covers phones 320px–640px with progressive improvements
═══════════════════════════════════════════════════════════ */

/* ── All phones (≤ 640px) ────────────────────────────────── */
@media (max-width: 640px) {

  /* Tighter horizontal gutters */
  .container { padding: 0 1rem; }

  /* Hide the top bar — address/hours live in the footer & contact section */
  .header-topbar { display: none; }

  /* Hero margin now only needs to clear the main nav bar (80px) */
  .hero { margin-top: 80px !important; min-height: 92vh; }

  /* Allow buttons to wrap so they never cause horizontal scroll */
  .btn { white-space: normal; text-align: center; }

  /* Hero text */
  .hero-description { font-size: 1rem; max-width: 100%; }

  /* Hero CTA buttons: full width, stacked */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust row: 3-col grid with no dividers */
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s2);
    text-align: center;
    padding-top: var(--s3);
  }
  .trust-divider { display: none; }
  .trust-item { align-items: center; }
  .trust-item strong { font-size: 1.35rem; }
  .trust-item span { font-size: 0.7rem; }

  /* Reduce section padding */
  .about,
  .services,
  .why-khomo,
  .testimonials,
  .contact { padding: var(--s6) 0; }

  /* About photo height */
  .about-photo { height: 260px; }

  /* Services & testimonials: no max-width cap — use full column */
  .services-grid { max-width: 100%; }
  .testimonials-grid { max-width: 100%; }

  /* CTA section */
  .cta-inner { padding: var(--s5) var(--s2) var(--s4); }
  .cta-frame { padding: var(--s4) var(--s3); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Contact cards */
  .contact-info-card { padding: var(--s4) var(--s3); }
  .contact-form-card { padding: var(--s4) var(--s3); }

  /* Map header stacks */
  .map-header { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .map-header .btn { width: 100%; justify-content: center; }

  /* Section header */
  .section-header { margin-bottom: var(--s4); }
  .section-header p { font-size: 1rem; }

  /* Footer */
  .footer-top { padding: var(--s5) 0 var(--s3); }
  .footer-bottom-inner { gap: var(--s2); }
}

/* ── Very small phones (≤ 420px) ─────────────────────────── */
@media (max-width: 420px) {

  /* Even tighter gutters */
  .container { padding: 0 0.75rem; }

  /* Logo */
  .logo-img { height: 44px; }
  .header-inner { height: 68px; }
  .hero { margin-top: 68px !important; }

  /* Hero title: scale tighter on 320–420px screens */
  .hero-title { font-size: clamp(1.9rem, 9.5vw, 2.8rem); }
  .hero-description { font-size: 0.93rem; }

  /* Trust stats: still 3-col but smaller */
  .trust-item strong { font-size: 1.15rem; }
  .trust-item span { font-size: 0.65rem; }

  /* Buttons */
  .btn { padding: 0.75rem 1.25rem; font-size: 0.82rem; }
  .btn-lg { padding: 0.85rem 1.4rem; font-size: 0.84rem; }

  /* Section headers */
  h2 { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Service cards body */
  .service-card-body { padding: var(--s3); }

  /* Why features */
  .why-feature { flex-direction: column; gap: var(--s2); }
  .why-feature-icon { width: 42px; height: 42px; font-size: 1rem; }

  /* Pillars */
  .pillar { gap: var(--s2); }
  .pillar-icon { width: 38px; height: 38px; font-size: 0.9rem; }

  /* CTA frame heading */
  .cta-frame h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .cta-frame > p { font-size: 0.875rem; }

  /* Contact */
  .contact-info-card { padding: var(--s3) var(--s2); }
  .contact-form-card { padding: var(--s3) var(--s2); }
  .contact-icon { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Mobile nav links */
  .mobile-nav a { padding: 0.9rem var(--s3); font-size: 0.875rem; }

  /* Footer */
  .footer-logo { height: 48px; }
  .footer-bottom-inner { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE-FRIENDLY — comprehensive tablet + phone pass
   Fills the 641-900px gap and sharpens small-screen layout
═══════════════════════════════════════════════════════════ */

/* ── Tablets (≤ 768px) ────────────────────────────────────
   The 900px query stacks grids; this pass tightens spacing  */
@media (max-width: 768px) {

  /* Tighten section padding (base is 8rem — way too tall on tablet) */
  .about,
  .services,
  .why-khomo,
  .testimonials,
  .contact { padding: var(--s6) 0; } /* 4rem */

  /* Reduce section header margin */
  .section-header { margin-bottom: var(--s4); }

  /* Hero content padding */
  .hero-content { padding: var(--s4) 0; }

  /* About photo shorter on tablet */
  .about-photo { height: 360px; }

  /* CTA section — tighter frame */
  .cta-inner { padding: var(--s5) var(--s3) var(--s3); }
  .cta-frame { padding: var(--s4) var(--s4); }

  /* CTA buttons full-width and stacked */
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
  }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer top padding */
  .footer-top { padding: var(--s5) 0 var(--s4); }

  /* Map iframe — shorter on smaller screens */
  .map-embed-wrapper iframe { height: 320px; }

  /* Ensure service cards don't scale on tablet (already 1-col at 900px) */
  .service-card.featured { transform: none; }
  .service-card.featured:hover { transform: translateY(-8px); }
}

/* ── Small phones (≤ 640px) — section padding pass ──────── */
@media (max-width: 640px) {

  /* Further reduce section padding */
  .about,
  .services,
  .why-khomo,
  .testimonials,
  .contact { padding: var(--s5) 0; } /* 3rem */

  /* Hero content padding */
  .hero-content { padding: var(--s3) 0; }

  /* Map shorter on phone */
  .map-embed-wrapper iframe { height: 240px; }

  /* Stack map header direction button */
  .map-header { gap: var(--s2); }
  .map-header .btn { font-size: 0.8rem; padding: 0.65rem 1rem; }

  /* Testimonial cards: reduce padding */
  .testimonial-card { padding: var(--s4) var(--s3); }

  /* Contact form card: match info card padding reduction */
  .contact-form-card { padding: var(--s4) var(--s3); }

  /* Form row already stacks; ensure submit button is full-width */
  .contact-form .btn-full { width: 100%; }

  /* Footer columns gap */
  .footer-top-inner { gap: var(--s3); }

  /* Ensure no horizontal overflow */
  .why-bg-decor { display: none; }
}

/* ── Touch-friendly tap targets ─────────────────────────── */
@media (max-width: 960px) {
  /* Mobile nav links — minimum 44px touch target */
  .mobile-nav a { min-height: 44px; }

  /* Nav toggle already 44x44px */

  /* Ensure service-link, footer links are easy to tap */
  .footer-nav a { padding: 0.3rem 0; min-height: 32px; }
  .service-link { padding: 0.4rem 0; }
}
