/* ================================================================
   KHATMA AL-MALIYA — Stylesheet
   Modern, refined corporate identity for a financial advisory firm.
   Color system derived from logo: #23334B (deep navy) + #899EB6 (steel)
   ================================================================ */

/* ===========================
   1. DESIGN TOKENS
   =========================== */
:root {
  /* Brand */
  --navy-900: #11192a;
  --navy-800: #1a2740;
  --navy-700: #23334B;        /* Primary brand */
  --navy-600: #2c4063;
  --navy-500: #3a527d;

  --steel-500: #899EB6;        /* Secondary brand */
  --steel-400: #a3b5c8;
  --steel-300: #c2cfdc;
  --steel-200: #dde5ed;
  --steel-100: #eef2f7;

  --bone:    #f5f1ea;          /* Warm off-white from logo text */
  --cream:   #faf7f2;
  --white:   #ffffff;

  --gold:    #c9a961;          /* Subtle accent for highlights */

  /* Functional */
  --bg:           var(--cream);
  --bg-elevated:  var(--white);
  --ink:          var(--navy-700);
  --ink-soft:     #4b5b75;
  --ink-muted:    #7c8a9f;
  --line:         rgba(35, 51, 75, 0.10);
  --line-strong:  rgba(35, 51, 75, 0.18);

  /* Type */
  --fs-xs: 0.78rem;
  --fs-sm: 0.92rem;
  --fs-base: 1rem;
  --fs-md: 1.12rem;
  --fs-lg: 1.4rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.8rem;
  --fs-3xl: 4rem;
  --fs-4xl: 5.5rem;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, layered */
  --sh-sm: 0 1px 2px rgba(35,51,75,.06), 0 2px 8px rgba(35,51,75,.04);
  --sh-md: 0 4px 12px rgba(35,51,75,.08), 0 12px 32px rgba(35,51,75,.06);
  --sh-lg: 0 10px 40px rgba(35,51,75,.10), 0 24px 80px rgba(35,51,75,.08);
  --sh-xl: 0 30px 80px rgba(35,51,75,.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur: 420ms;
  --dur-slow: 720ms;

  /* Layout */
  --container: 1240px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--navy-700); color: var(--bone); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ===========================
   3. BACKGROUND ATMOSPHERE
   =========================== */
body {
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(137,158,182,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(35,51,75,.06), transparent 65%),
    linear-gradient(180deg, var(--cream) 0%, #f0eee8 100%);
  background-attachment: fixed;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35,51,75,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,51,75,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-glow--one {
  width: 520px; height: 520px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(137,158,182,.45), transparent 70%);
}
.bg-glow--two {
  width: 600px; height: 600px;
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, rgba(35,51,75,.18), transparent 70%);
}

main, header, section, footer { position: relative; z-index: 1; }

/* ===========================
   4. NAVBAR
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 247, 242, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.88);
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -0.01em;
}
.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  object-fit: cover;
  box-shadow: var(--sh-sm);
}
.nav__brand-text em {
  font-style: normal;
  color: var(--steel-500);
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav__links a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 50% 50%;
  bottom: 0;
  height: 2px;
  background: var(--navy-700);
  transition: inset var(--dur) var(--ease);
}
.nav__links a:hover {
  color: var(--navy-700);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  inset-inline: 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--navy-700);
  color: var(--bone);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__cta:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}
.nav__cta svg { transition: transform var(--dur-fast) var(--ease); }
.nav__cta:hover svg { transform: translateX(-3px); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   5. HERO — Rebuilt with strict 12-col grid
   =========================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Left column (text) — 7 of 12 */
.hero__inner > .hero__eyebrow,
.hero__inner > .hero__title,
.hero__inner > .hero__sub,
.hero__inner > .hero__actions,
.hero__inner > .hero__meta {
  grid-column: 1 / span 7;
}

/* Right column (visual) — 5 of 12, spans all text rows */
.hero__visual {
  grid-column: 8 / span 5;
  grid-row: 1 / span 5;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: fit-content;
  letter-spacing: 0.005em;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2dd07f;
  box-shadow: 0 0 0 3px rgba(45,208,127,.18);
  animation: pulse 2.4s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45,208,127,.18); }
  50% { box-shadow: 0 0 0 6px rgba(45,208,127,.06); }
}

.hero__title {
  font-family: var(--font-display);
  /* Tighter scale; balanced for 7-col width */
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-700);
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) { animation-delay: 0.12s; }
.hero__title .line--accent {
  background: linear-gradient(120deg, var(--navy-700) 0%, var(--steel-500) 60%, var(--navy-700) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s var(--ease-out) forwards, shimmer 6s linear infinite;
  animation-delay: 0.12s, 1.2s;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.hero__sub {
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.28s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.42s forwards;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
  padding-top: clamp(0.5rem, 1.5vw, 1.25rem);
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.56s forwards;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__meta-item span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
}

/* ----- Hero visual (right column container) ----- */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  opacity: 0;
  animation: rise 1.1s var(--ease-out) 0.5s forwards;
}

/* Center card — now correctly contained */
.card-float {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(280px, 100%, 360px);
  background: linear-gradient(155deg, var(--navy-700) 0%, var(--navy-800) 100%);
  color: var(--bone);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255,255,255,.08);
  --tx: -50%; --ty: -50%; --rot: -3deg;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) translateY(0); }
  50% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) translateY(-10px); }
}

.card-float__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  gap: 0.6rem;
}
.card-float__title {
  font-size: 0.82rem;
  color: var(--steel-300);
  font-weight: 500;
}
.card-float__chip {
  font-family: var(--font-numeric);
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(137,158,182,.18);
  color: var(--steel-300);
  font-weight: 500;
  white-space: nowrap;
}

.card-float__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 0.85rem;
}
.card-float__row:last-of-type { border-bottom: 0; }
.card-float__row span { color: var(--steel-400); }
.card-float__row strong {
  font-family: var(--font-numeric);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.card-float__row .up { color: #4ade80; }
.card-float__row .down { color: #fb7185; }

.card-float__chart {
  margin-top: 0.9rem;
  height: 60px;
}
.card-float__chart svg { width: 100%; height: 100%; }

/* Floating badges — positioned relative to visual container */
.badge-float {
  position: absolute;
  background: var(--bg-elevated);
  padding: 0.65rem 0.95rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  white-space: nowrap;
  animation: floaty-soft 5s ease-in-out infinite;
  z-index: 2;
}
@keyframes floaty-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.badge-float strong {
  display: block;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
}
.badge-float span {
  color: var(--ink-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}
.badge-float--one {
  top: 6%;
  right: -4%;
  color: #16a34a;
  animation-delay: 1s;
}
.badge-float--two {
  bottom: 8%;
  left: -4%;
  animation-delay: 0.5s;
}
.badge-float .dot--pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(35,51,75,.15);
  animation: pulse 2s var(--ease) infinite;
  flex-shrink: 0;
}

/* ===========================
   6. BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn--primary {
  background: var(--navy-700);
  color: var(--bone);
  box-shadow: 0 8px 24px rgba(35,51,75,.25);
}
.btn--primary:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(35,51,75,.32);
}
.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--navy-700);
  color: var(--bone);
  border-color: var(--navy-700);
}
.btn--block { width: 100%; justify-content: center; }

/* ===========================
   7. MARQUEE
   =========================== */
.marquee {
  position: relative;
  padding: var(--sp-5) 0;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.marquee__label {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-3);
  font-family: var(--font-numeric);
}
.marquee__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row {
  display: flex;
  gap: 2.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  animation: scroll-rtl 38s linear infinite;
  width: max-content;
}
.marquee__row span:not(:last-child) {
  display: inline-block;
}
@keyframes scroll-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ===========================
   8. SECTIONS
   =========================== */
.section {
  padding: var(--sp-8) 0;
  position: relative;
}
.section--about { padding-top: var(--sp-7); }
.section--stats {
  background: var(--navy-700);
  color: var(--bone);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--sp-6);
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-numeric);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--steel-500);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.section--stats .section__eyebrow { color: var(--steel-300); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-700);
  margin-bottom: var(--sp-2);
}
.section__title em {
  font-style: normal;
  color: var(--steel-500);
  font-weight: 500;
}
.section--stats .section__title { color: var(--bone); }

.section__sub {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: 600px;
}

/* ===========================
   9. SERVICES GRID
   =========================== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service {
  position: relative;
  padding: 2rem 1.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(137,158,182,.18), transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.service:hover::before { opacity: 1; }

.service__num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-numeric);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.service__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--steel-100);
  color: var(--navy-700);
  border-radius: var(--r-md);
  margin-bottom: 1.4rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon {
  background: var(--navy-700);
  color: var(--bone);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.service p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.service ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.service ul li {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service ul li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--steel-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===========================
   10. ABOUT
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-6);
  align-items: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
}
.about__shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(137,158,182,.4), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(201,169,97,.18), transparent 50%);
}
.about__shape::before, .about__shape::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.about__shape::before {
  width: 280px; height: 280px;
  top: 20%; right: 20%;
}
.about__shape::after {
  width: 420px; height: 420px;
  top: 10%; right: 5%;
}

.about__quote {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(245, 241, 234, 0.96);
  border-radius: var(--r-md);
  padding: 1.6rem;
  color: var(--navy-700);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--sh-md);
}
.about__quote svg { color: var(--steel-500); margin-bottom: 0.6rem; }
.about__quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.about__quote span {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

.about__body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: var(--fs-md);
  line-height: 1.8;
}
.about__body strong { color: var(--navy-700); }

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-3);
}
.pill {
  padding: 0.5rem 1rem;
  background: var(--steel-100);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--navy-700);
  font-family: var(--font-numeric);
  letter-spacing: 0.02em;
}

/* ===========================
   11. STEPS
   =========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.step {
  position: relative;
  padding: 2rem 1.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); }

.step__num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--steel-300);
  line-height: 1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.04em;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 0.4rem;
}
.step p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===========================
   12. STATS (dark band)
   =========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  text-align: center;
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
}
.stat em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--steel-500);
  margin-inline-start: 0.2rem;
  font-weight: 500;
}
.stat span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--steel-300);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* ===========================
   13. TESTIMONIAL
   =========================== */
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-3);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy-700);
  margin-block: var(--sp-3);
  letter-spacing: -0.01em;
}
.testimonial__person {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: var(--sp-3);
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--steel-500));
  color: var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.testimonial__person strong {
  display: block;
  color: var(--navy-700);
  font-weight: 600;
}
.testimonial__person span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ===========================
   14. CTA / CONTACT
   =========================== */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  align-items: start;
}

.cta__content p {
  color: var(--ink-soft);
  margin-block: var(--sp-2) var(--sp-3);
  font-size: var(--fs-md);
}
.cta__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cta__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--navy-700);
}
.cta__list svg {
  background: var(--steel-100);
  border-radius: 50%;
  padding: 4px;
  color: var(--navy-700);
  width: 24px; height: 24px;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--navy-700);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  resize: none;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(35,51,75,.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }

.form__note {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-align: center;
}
.form__note a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================
   15. FOOTER
   =========================== */
.footer {
  padding-top: var(--sp-6);
  background: var(--navy-700);
  color: var(--steel-300);
  margin-top: var(--sp-6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
}
.footer__brand img {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  margin-bottom: 0.8rem;
  background: var(--navy-800);
}
.footer__brand p { font-size: var(--fs-sm); line-height: 1.7; }

.footer__col h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 0.9rem;
}
.footer__col a {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 0.5rem;
  color: var(--steel-300);
  transition: color var(--dur-fast) var(--ease);
}
.footer__col a:hover { color: var(--bone); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.2rem;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--steel-400);
}
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-sm);
  color: var(--steel-300);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer__social a:hover {
  background: var(--bone);
  color: var(--navy-700);
  transform: translateY(-2px);
}

/* ===========================
   16. SCROLL-REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   17. RESPONSIVE
   =========================== */

/* Tablet & smaller laptops: 1024px and down */
@media (max-width: 1024px) {
  /* Hero stacks: text takes full width, visual goes below */
  .hero__inner {
    grid-template-columns: 1fr;
    row-gap: clamp(2rem, 5vw, 3rem);
  }
  .hero__inner > .hero__eyebrow,
  .hero__inner > .hero__title,
  .hero__inner > .hero__sub,
  .hero__inner > .hero__actions,
  .hero__inner > .hero__meta {
    grid-column: 1 / -1;
  }
  .hero__visual {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 11;
    max-height: 480px;
    width: 100%;
  }

  .about { grid-template-columns: 1fr; gap: var(--sp-4); }
  .about__visual { aspect-ratio: 16 / 10; max-height: 460px; }
  .cta { grid-template-columns: 1fr; padding: var(--sp-4); gap: var(--sp-4); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile: 768px and down */
@media (max-width: 768px) {
  :root { --nav-h: 64px; --sp-7: 4.5rem; --sp-8: 5.5rem; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: var(--sp-3);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    gap: 0;
  }
  .nav__links.is-open a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-md);
  }
  .nav__links.is-open a:last-child { border-bottom: 0; }

  /* Hero on mobile: tighter, cleaner stack */
  .hero {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
  }
  .hero__inner {
    row-gap: 1.5rem;
  }
  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.18;
  }
  .hero__sub { font-size: 0.98rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero__meta { gap: 1rem; padding-top: 1rem; }
  .hero__meta-item strong { font-size: 1.3rem; }
  .hero__meta-divider { display: none; }

  /* Visual: smaller, centered */
  .hero__visual {
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
  }
  .card-float { width: clamp(240px, 80%, 300px); padding: 1.2rem; }
  .badge-float--one { top: 4%; right: 0%; }
  .badge-float--two { bottom: 4%; left: 0%; }

  .services, .steps, .stats { gap: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column-reverse; gap: 1rem; }

  /* Tighter section headers on mobile */
  .section { padding: clamp(3rem, 10vw, 5rem) 0; }
  .section__title { font-size: clamp(1.7rem, 6vw, 2.4rem); }

  /* Stats grid 2x2 on mobile */
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero__title { font-size: 1.7rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ===========================
   18. ACCESSIBILITY & MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Hide elements with aria-hidden from the accessibility tree but keep visual */
[aria-hidden="true"] { pointer-events: none; }
