/* ==============================================================
   Jabbar Salam Holdings Ltd. — style.css
   Design system informed by:
   · high-end-visual-design (double-bezel architecture, macro-whitespace)
   · emil-design-eng         (purposeful motion, active states, easing)
   · redesign-existing-projects (text-wrap, 65ch, no generic patterns)
   · impeccable              (contrast, no bounce-easing, clean copy)
================================================================ */

/* ==============================================================
   1. DESIGN TOKENS
================================================================ */
:root {
  /* ── Dark steel blue-charcoal backgrounds ──────────────────────
     The subtle cool-blue tint (#07080D) is what gives the site its
     steel/industrial feel — it reads as polished dark metal, not
     plain black. All surfaces are tinted the same hue for cohesion. */
  --bg:          #07080D;   /* page base — dark steel blue */
  --bg-raised:   #0C0D15;   /* alternate section bg */
  --bg-card:     #111420;   /* double-bezel card core */
  --bg-card-hi:  #181C28;   /* card hover */

  /* ── Text scale (Apple-inspired) ── */
  --text-1:   #F7F7F7;   /* primary   — near-white */
  --text-2:   #A3A3A3;   /* secondary — passes WCAG AA on all bg above */
  --text-3:   #6B6B6B;   /* tertiary  */

  /* ── Borders ── */
  --border-subtle:  rgba(255,255,255,0.07);
  --border-mid:     rgba(255,255,255,0.12);
  --border-strong:  rgba(255,255,255,0.20);

  /* ── Steel chrome gradient ──────────────────────────────────────
     Applied to section headings. Creates metallic variation through
     tone shifts within the grey range — no white flash, not garish.
     Peak is #BCBECE (~188 brightness) — reads as polished steel.    */
  --chrome-steel: linear-gradient(
    135deg,
    #707082 0%,
    #A0A0B4 20%,
    #BCBECE 35%,
    #9090A0 50%,
    #606070 62%,
    #9898A8 76%,
    #7A7A88 88%,
    #ACACBC 100%
  );

  /* ── Brand gold — used sparingly (eyebrows, accents, submit btn) ── */
  --gold:       #C8A434;
  --gold-dim:   rgba(200,164,52,0.12);
  --gold-border: rgba(200,164,52,0.30);

  /* ── Typography ── */
  --font:     'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'SF Mono', 'Cascadia Code', 'Menlo', monospace;

  /* ── Motion — from Emil Kowalski ── */
  --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:  cubic-bezier(0.77, 0, 0.175, 1);

  /* ── Layout ── */
  --max-w:      1200px;
  --nav-h:      52px;
  --pad-inline: 40px;
  --pad-block:  140px;   /* generous macro-whitespace */
  --r:          20px;    /* outer shell radius */
  --r-inner:    18px;    /* inner core radius = r - 2px */
}

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

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

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img, svg { display: block; }
address  { font-style: normal; }
button   { font-family: var(--font); cursor: pointer; }


/* ==============================================================
   3. UTILITIES
================================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

/* Eyebrow label — no border, no capsule.
   Plain gold small-caps with a short rule. Corporate, editorial. */
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Short gold rule before each eyebrow label */
.eyebrow-badge::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Centered section headers: center the rule too */
.section-header .eyebrow-badge {
  flex-direction: column;
  gap: 10px;
}

.section-header .eyebrow-badge::before {
  width: 32px;
}

/* Display heading — steel chrome gradient matches the dark blue palette */
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
  /* Steel chrome — polished metal look on the dark blue-charcoal bg */
  background: var(--chrome-steel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body prose — 65ch max per redesign-skill */
.body-text {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-2);
  max-width: 65ch;
  line-height: 1.85;
}

.body-text--center {
  text-align: center;
  margin-inline: auto;
}

/* Centered section header block */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}



/* Logo mark — shared between nav + footer */
.logo-mark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-1);
}


/* ==============================================================
   4. SCROLL ANIMATION (Emil: start scale(0.95) not scale(0))
================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  /* No will-change — GPU compositing layers cause colour banding
     in dark colour ranges, making identical cards look different. */
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==============================================================
   5. SITE HEADER / NAV
================================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background  0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out),
    border-bottom   0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(7,8,13,0.85);   /* steel-blue tint, not plain black */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-sep {
  width: 1px;
  height: 16px;
  background: var(--border-mid);
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--text-1); }

/* "Connect" — gold pill */
.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-cta:hover { color: #E8C050; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px;
}

.toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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


/* ==============================================================
   6. HERO
================================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;          /* dvh: avoids iOS Safari jump */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Steel-blue radial — centre slightly lifted to show the tint */
  background: radial-gradient(ellipse 90% 70% at 50% 45%, #141622 0%, var(--bg) 65%);
  padding-top: calc(var(--nav-h) + 16px);   /* tighter — was +48px */
  padding-bottom: 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: var(--pad-inline);
  max-width: 860px;
}

/* Hero headline */
.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;   /* tight — removes the block-span gap */
  color: var(--text-1);
  margin-bottom: 28px;
  text-wrap: balance;
  animation: heroIn 0.8s var(--ease-out) 0.1s both;
}

/* First line — steel chrome: the material being exported */
.hero-steel {
  display: block;
  background: var(--chrome-steel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Second line — same steel chrome as first line. Both lines consistent. */
.hero-accent {
  display: block;
  background: var(--chrome-steel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo monogram — same steel chrome as the headline first line */
.logo-chrome {
  background: var(--chrome-steel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-1);        /* bumped from text-2 to text-1 — more readable */
  font-weight: 400;
  opacity: 0.6;                /* subtle but legible */
  line-height: 1.75;
  margin-bottom: 48px;
  animation: heroIn 0.8s var(--ease-out) 0.25s both;
}



/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: heroIn 0.8s var(--ease-out) 0.4s both;
}

/* Primary: white pill (Apple's dark-mode CTA pattern) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--gold);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, gap 0.2s var(--ease-out);
}

.btn-primary:hover  { color: #E8C050; gap: 10px; }
.btn-primary:active { opacity: 0.8; }

/* Text link with animated arrow */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition:
    color 0.2s ease,
    gap  0.2s var(--ease-out);
}

.btn-text:hover {
  color: var(--text-1);
  gap: 10px;   /* arrow slides right on hover */
}

.btn-arrow {
  transition: transform 0.2s var(--ease-out);
}

.btn-text:hover .btn-arrow { transform: translateX(2px); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  opacity: 0.5;
  z-index: 1;
  animation: scrollBounce 2.5s var(--ease-in-out) infinite;
  transition: opacity 0.2s ease;
}

.scroll-hint:hover { opacity: 0.9; }

/* Keyframes */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}


/* ==============================================================
   7. SECTION SHARED
================================================================ */
.section {
  padding-block: var(--pad-block);
  position: relative;
}

/* Gradient divider between sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 700px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.08) 70%,
    transparent 100%
  );
}


/* ==============================================================
   8. ABOUT
================================================================ */
.about-section { background: var(--bg-raised); }

.about-lead {
  max-width: 680px;
  margin-bottom: 72px;
}

.about-lead .section-title { margin-bottom: 20px; }

/* Horizontal pillars row */
.pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.pillar { padding: 0 40px 0 0; }
.pillar:last-child { padding: 0 0 0 40px; }
.pillar:nth-child(3) { padding-inline: 40px; }

.pillar-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin-bottom: 12px;
  text-wrap: balance;
}

.pillar-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 28ch;
}

/* Vertical separator between pillars */
.pillar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border-subtle);
  margin-block: 4px;
}


/* ==============================================================
   9. SERVICES — Double-Bezel Architecture
   Ruled grid — no card backgrounds, no rounded corners, no distortion.
   Cells are defined by border lines only, sitting on the section bg.
================================================================ */
.services-section { background: var(--bg); }
.services-section::before { display: none; }

/* Ruled grid: outer border on the container, inner dividers between cells */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top:  1px solid rgba(255,255,255,0.09);
  border-left: 1px solid rgba(255,255,255,0.09);
}

/* Each cell gets a right + bottom border to complete the grid lines */
.service-shell {
  background: transparent;  /* no background — distortion impossible */
  border-right:  1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  border-radius: 0;
  padding: 44px 36px;
  transition: background 0.25s ease;
}

.service-core {
  background: none;
  padding: 0;
}

@media (hover: hover) and (pointer: fine) {
  .service-shell:hover {
    background: rgba(255,255,255,0.025); /* barely-there hover tint */
  }
}

/* ── Periodic table element tile ──────────────────────────────── */
.element-badge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #1C1E2C;
  border-radius: 14px;
  margin-bottom: 28px;
  transition: background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-shell:hover .element-badge {
    background: #242638;
  }
}

/* Atomic number — top-left corner */
.el-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,0.28);
  font-variant-numeric: tabular-nums;
}

/* Chemical symbol — large, centred, same chrome-steel as headings */
.el-symbol {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--chrome-steel);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Formula variant — smaller to fit "Cu + Zn" in the tile */
.el-symbol--formula {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Element name — small, bottom */
.el-name {
  position: absolute;
  bottom: 6px;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  white-space: nowrap;
}

.svc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.svc-body {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}


/* ==============================================================
   10. WHY US
================================================================ */
.why-section { background: var(--bg-raised); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
}

.why-block {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Gold left accent — thin gradient bar */
.why-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--gold) 0%,
    rgba(200,164,52,0.2) 60%,
    transparent 100%
  );
}

.why-icon {
  color: var(--text-2);
  width: 28px;
  height: 28px;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.why-body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 50ch;
}


/* ==============================================================
   11. CONTACT
================================================================ */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

/* ---- Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text-1);
  outline: none;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  transition:
    border-color 0.2s ease,
    box-shadow   0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.15),
    0 0 0 3px rgba(255,255,255,0.05);
}

/* Gold submit button */
.btn-submit {
  align-self: flex-start;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.02em;
  transition:
    filter    0.2s ease,
    transform 0.15s var(--ease-out);
}

.btn-submit:hover  { filter: brightness(1.1); }
.btn-submit:active { transform: scale(0.97); filter: brightness(0.95); }  /* Emil: active press */

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 48px 0;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 48ch;
}

/* ---- Info ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 4px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text-3);   /* icon color inherits */
}

.info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}


/* ==============================================================
   12. FOOTER
================================================================ */
.site-footer {
  background: #060710;   /* slightly deeper steel-blue for the footer */
  padding-block: 48px;
  position: relative;
}

/* Gold hairline top divider */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200,164,52,0.2) 20%,
    rgba(200,164,52,0.45) 50%,
    rgba(200,164,52,0.2) 80%,
    transparent 100%
  );
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-company {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}


/* ==============================================================
   13. RESPONSIVE — TABLET  ≤ 768px
================================================================ */
@media (max-width: 768px) {
  :root {
    --pad-block:   90px;
    --pad-inline:  24px;
    --nav-h:       54px;
  }

  /* Nav: hamburger */
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--pad-inline) 36px;
    gap: 24px;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
  }

  .nav-menu.open    { display: flex; }
  .nav-link         { font-size: 1.1rem; }
  .logo-name        { font-size: 0.7rem; }

  /* Hero */
  .hero-headline { font-size: clamp(2.6rem, 8vw, 4rem); }
  .bp            { display: none; }
  .hero-actions  { gap: 16px; }

  /* About */
  .about-lead    { max-width: 100%; }
  .pillars {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 32px;
  }
  .pillar,
  .pillar:last-child,
  .pillar:nth-child(3) { padding: 0; }
  .pillar-sep {
    width: 100%;
    height: 1px;
    align-self: auto;
    margin-block: 0;
  }
  .pillar-body { max-width: unset; }

  /* Services: 2-col */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why Us */
  .why-grid     { gap: 40px 48px; }
  .why-body     { max-width: unset; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row     { grid-template-columns: 1fr; }
  .btn-submit   { align-self: stretch; text-align: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ==============================================================
   14. RESPONSIVE — MOBILE  ≤ 480px
================================================================ */
@media (max-width: 480px) {
  :root {
    --pad-block:  70px;
    --pad-inline: 20px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; gap: 40px; }

  .hero-headline { letter-spacing: -0.025em; }
  .hero-actions  { flex-direction: column; align-items: center; }

  .section-header { margin-bottom: 52px; }
}


/* ==============================================================
   15. PREFERS-REDUCED-MOTION
   From Emil: "Reduced motion means fewer and gentler animations,
   not zero. Keep opacity transitions that aid comprehension."
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-headline,
  .hero-sub,
  .hero-actions { animation: none; opacity: 1; transform: none; }

  .scroll-hint  { animation: none; }
  .btn-text     { transition: color 0.2s ease; }
  .btn-arrow    { transition: none; }
}


/* ==============================================================
   16. BACKDROP-FILTER FALLBACK  (older Firefox)
================================================================ */
@supports not (backdrop-filter: blur(1px)) {
  .site-header.scrolled { background: rgba(10,10,10,0.97); }
  .nav-menu             { background: rgba(10,10,10,0.99); }
}
