/* =========================================================
   Abdelkhalek Law — Design System v1.1
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071528;
  --navy-soft: #132a4a;
  --gold: #c4a056;
  --gold-dark: #a8843f;
  --gold-soft: #e8d5a8;
  --ink: #152033;
  --muted: #5c6b7e;
  --line: #e6ebf2;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --container: 1180px;
  --font: "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.section-header__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.22);
}

.btn--primary:hover {
  background: var(--navy-soft);
  color: #fff;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 132, 63, 0.28);
}

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

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.btn--lg {
  min-height: 54px;
  padding-inline: 1.8rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn--header {
  flex-shrink: 0;
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.92rem;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  min-width: 0;
  flex-shrink: 1;
}

.site-brand__mark {
  width: 44px;
  height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}

.site-brand__mark svg {
  width: 100%;
  height: 100%;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.site-brand__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-dark);
  white-space: nowrap;
}

.site-brand__text span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.site-nav {
  margin-inline: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu__item.is-active > a {
  color: var(--gold);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero — professional Arabic RTL composition
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100svh - var(--header-h)), 740px);
  overflow: hidden;
  background: #eef2f7;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(247, 249, 252, 0.45) 38%,
      rgba(247, 249, 252, 0.92) 62%,
      #f7f9fc 100%
    );
}

.hero__shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start; /* RTL: content sits on the right */
  align-items: center;
  width: min(100% - 2rem, var(--container));
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.hero__copy {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  width: min(100%, 31.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL start = right edge of block */
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero__eyebrow-line {
  width: 2.25rem;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__title {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__brand {
  display: block;
  color: var(--navy);
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero__tagline {
  display: block;
  color: var(--gold-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 500;
  line-height: 1.85;
}

.hero__features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 2rem;
  width: 100%;
  max-width: 22rem;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero__check {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  box-shadow: 0 4px 10px rgba(168, 132, 63, 0.25);
}

.hero__check svg {
  width: 0.8rem;
  height: 0.8rem;
}

.hero__cta {
  align-self: flex-start;
}

@media (min-width: 1400px) {
  .hero {
    min-height: 720px;
  }

  .hero__copy {
    width: min(100%, 33rem);
  }
}

@media (max-height: 720px) and (min-width: 981px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero__shell {
    padding-block: 1.75rem;
  }

  .hero__brand {
    font-size: 2.35rem;
  }

  .hero__tagline {
    font-size: 1.7rem;
  }

  .hero__features {
    margin-bottom: 1.5rem;
    gap: 0.75rem;
  }
}


/* =========================================================
   Services
   ========================================================= */

.services {
  background: var(--surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 160, 86, 0.45);
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  color: var(--gold);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.service-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.services__cta {
  margin-top: 2rem;
  text-align: center;
}

/* =========================================================
   Stats banner — responsive: desktop | tablet | mobile
   ========================================================= */

.stats {
  background: var(--surface-soft, #f5f7fb);
  padding: clamp(2rem, 4.5vw, 3.75rem) 0;
}

.stats__band {
  direction: ltr; /* panel LEFT, image RIGHT (mockup) */
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  align-items: stretch;
  min-height: clamp(210px, 26vw, 270px);
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 16px 44px rgba(11, 31, 58, 0.12);
}

.stats__panel {
  background: linear-gradient(135deg, #071528 0%, #0b1f3a 55%, #12304f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: 0 28px 28px 0;
  padding: clamp(1.25rem, 2.5vw, 1.85rem) clamp(0.75rem, 1.8vw, 1.5rem);
  position: relative;
  z-index: 1;
  min-width: 0;
}

.stats__grid {
  direction: rtl; /* Arabic reading order */
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.stat-item {
  text-align: center;
  padding: 0.4rem 0.45rem;
  position: relative;
  min-width: 0;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.stat-item__icon {
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  margin: 0 auto 0.5rem;
  color: var(--gold, #c4a056);
  display: grid;
  place-items: center;
}

.stat-item__icon svg {
  width: 100%;
  height: 100%;
}

.stat-item__value {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.3rem;
  color: var(--gold, #c4a056);
  word-break: keep-all;
}

.stat-item__label {
  display: block;
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.stats__media {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #152033;
}

.stats__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* =========================================================
   Steps
   ========================================================= */

.steps {
  background: var(--surface-soft);
}

.steps__timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.steps__timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 8%;
  left: 8%;
  border-top: 2px dashed rgba(196, 160, 86, 0.55);
  pointer-events: none;
}

.step-item {
  position: relative;
  text-align: center;
  padding-top: 0.25rem;
}

.step-item__num {
  display: block;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.step-item__dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px rgba(196, 160, 86, 0.35);
  position: relative;
  z-index: 1;
}

.step-item__title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.step-item__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  background: var(--surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr;
  gap: 1.15rem;
  align-items: stretch;
}

.contact-why,
.contact-form-card,
.contact-box {
  border-radius: var(--radius);
  padding: 1.4rem;
  min-width: 0;
}

.contact-why {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.contact-why__title,
.contact-form-card__title,
.contact-box__title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.contact-why__media {
  margin: 0 0 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-why__media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.contact-why__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  line-height: 1.45;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196, 160, 86, 0.15);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check svg {
  width: 13px;
  height: 13px;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form-card__lead {
  margin: -0.35rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 160, 86, 0.15);
}

.contact-form__status {
  margin: 0.85rem 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form__status.is-success {
  color: #1f7a46;
}

.contact-form__status.is-error {
  color: #b42318;
}

.contact-box {
  background: linear-gradient(160deg, #d8b56a, var(--gold) 40%, var(--gold-dark));
  color: #fff;
}

.contact-box__title {
  color: #fff;
}

.contact-box__lead {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.93rem;
}

.contact-box .btn--primary {
  background: var(--navy);
  margin-bottom: 1.25rem;
}

.contact-box__meta li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-box__meta strong {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.contact-box__meta a,
.contact-box__meta span {
  font-weight: 700;
  word-break: break-word;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fafbfd;
  padding: 1.25rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
}

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

.page-fallback {
  padding: 4rem 0;
}

/* =========================================================
   Motion
   ========================================================= */

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Large desktop tweak
   ========================================================= */

@media (max-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services__grid .service-card:nth-child(4),
  .services__grid .service-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 1100px) {
  .stats__band {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .stats__panel {
    border-radius: 0 0 18px 18px;
    order: 2;
    padding: 1.35rem 1rem 1.5rem;
  }

  .stats__media {
    order: 1;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    border-radius: 18px 18px 0 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    padding: 0.85rem 0.5rem;
    border: 1px solid rgba(196, 160, 86, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .stat-item__value {
    font-size: clamp(1.35rem, 5vw, 1.7rem);
  }

  .stat-item__label {
    font-size: 0.86rem;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box {
    grid-column: 1 / -1;
  }

  .steps__timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .steps__timeline::before {
    display: none;
  }

  .step-item:nth-child(4),
  .step-item:nth-child(5) {
    grid-column: span 1;
  }
}

/* =========================================================
   Tablet / small laptop
   ========================================================= */

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 16px 30px rgba(11, 31, 58, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    padding: 0.85rem 0.9rem;
    white-space: normal;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(220px, 38vw, 320px);
    flex-shrink: 0;
  }

  .hero__media img {
    object-position: center 22%;
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 21, 40, 0.1) 0%,
        rgba(247, 249, 252, 0.4) 55%,
        #f7f9fc 100%
      );
  }

  .hero__shell {
    width: 100%;
    padding-block: 1.85rem 2.6rem;
    background: #f7f9fc;
  }

  .hero__copy {
    width: 100%;
    max-width: none;
  }

  .hero__brand {
    font-size: clamp(1.9rem, 4.8vw, 2.45rem);
  }

  .hero__tagline {
    font-size: clamp(1.4rem, 3.8vw, 1.95rem);
  }

  .hero__lead {
    font-size: 1.02rem;
    max-width: 34rem;
  }

  .hero__features {
    max-width: 24rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .steps__timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "dot num"
      "dot title"
      "dot desc";
    column-gap: 0.9rem;
    text-align: start;
  }

  .step-item__dot {
    grid-area: dot;
    margin: 0.35rem 0 0;
  }

  .step-item__num {
    grid-area: num;
    margin: 0;
  }

  .step-item__title {
    grid-area: title;
  }

  .step-item__desc {
    grid-area: desc;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .site-brand__mark {
    width: 38px;
    height: 38px;
  }

  .site-brand__text span {
    display: none;
  }

  .site-brand__text strong {
    font-size: 0.95rem;
  }

  .btn--header {
    min-height: 40px;
    min-width: 40px;
    padding-inline: 0.75rem;
  }

  .btn--header__label {
    display: none;
  }

  .hero__media {
    height: clamp(200px, 48vw, 260px);
  }

  .hero__media img {
    object-position: center 18%;
  }

  .hero__shell {
    padding-block: 1.55rem 2.35rem;
  }

  .hero__eyebrow {
    font-size: 0.9rem;
    gap: 0.55rem;
  }

  .hero__eyebrow-line {
    width: 1.5rem;
  }

  .hero__brand {
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  }

  .hero__tagline {
    font-size: clamp(1.3rem, 6vw, 1.65rem);
  }

  .hero__lead {
    font-size: 0.98rem;
    max-width: none;
  }

  .hero__features {
    max-width: none;
    gap: 0.8rem;
  }

  .hero__features li {
    font-size: 0.95rem;
  }

  .hero__cta,
  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .services__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .stats__media {
    min-height: 170px;
    aspect-ratio: 16 / 10;
  }

  .stats__panel {
    padding: 1.15rem 0.85rem 1.35rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .stat-item {
    padding: 0.75rem 0.4rem;
  }

  .stat-item__icon {
    width: 30px;
    height: 30px;
  }

  .stat-item__value {
    font-size: 1.35rem;
  }

  .stat-item__label {
    font-size: 0.8rem;
  }

  .contact-box {
    grid-column: auto;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stat-item__value {
    font-size: 1.25rem;
  }

  .stat-item__label {
    font-size: 0.75rem;
  }

  .hero__brand {
    font-size: 1.6rem;
  }

  .hero__tagline {
    font-size: 1.28rem;
  }

  .hero__lead {
    font-size: 0.92rem;
  }

  .btn--lg {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
