/* =====================================================================
   ATLAS Service — Unified design system
   One source of truth for colours, typography, header, footer and
   shared components across every page. Mirrors the homepage look.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cairo/cairo-v31-arabic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cairo/cairo-v31-arabic_latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cairo/cairo-v31-arabic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cairo/cairo-v31-arabic_latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/cairo/cairo-v31-arabic_latin-800.woff2') format('woff2');
}

/* ----------------------------- Tokens ----------------------------- */
:root {
  --atlas-green: #2da835;
  --atlas-green-dark: #1f7d27;
  --atlas-dark: #090909;
  --atlas-ink: #050505;
  --atlas-surface: #f1f1f1;
  --atlas-white: #ffffff;
  --atlas-muted: #666666;
  --atlas-border: #d8dadd;
  --atlas-border-soft: #eef0f2;

  --type-display: 'Inter Display', 'Inter', system-ui, sans-serif;
  --type-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
  --type-tight: -0.02em;

  /* one shared type scale used on every page */
  --fs-hero: clamp(3.25rem, 5.7vw, 5.75rem);
  --fs-h2: clamp(2.5rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 2rem);
  --fs-lead: 1.125rem;
  --fs-body: 1rem;

  --page: min(80rem, 100% - 3rem);
  --radius: 1rem;
  --radius-pill: 999px;
  --header-h: 80px;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.10);
  --ease: 0.3s ease;
}

/* ----------------------------- Base ------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--atlas-surface);
  color: var(--atlas-ink);
  font-family: var(--type-display);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--type-display);
  font-weight: 600;
  letter-spacing: var(--type-tight);
  line-height: 1.05;
  color: var(--atlas-ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  background: var(--atlas-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------- Header / nav ------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--atlas-border-soft);
}

.nav-shell {
  width: var(--page);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  color: #4b5563;
  transition: color var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--atlas-green); }

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--atlas-dark);
  color: #fff;
  font-weight: 600;
  transition: background var(--ease);
}
.site-nav .nav-cta:hover { background: #2b2b2b; color: #fff; }
.site-nav .nav-cta[aria-current="page"] { color: #fff; }
.site-nav .language-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0 0.8rem;
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius-pill);
  color: var(--atlas-ink);
  font-weight: 700;
}
.site-nav .language-link:hover { border-color: var(--atlas-green); color: var(--atlas-green); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--atlas-dark);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--atlas-border-soft);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--ease), opacity var(--ease);
  }
  .site-nav[data-open="true"] {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--atlas-border-soft);
    font-size: 1rem;
  }
  .site-nav .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    border-bottom: 0;
  }
  .site-nav .language-link {
    justify-content: center;
    margin-top: 0.5rem;
    border-bottom: 1px solid var(--atlas-border);
  }
  body.nav-open { overflow: hidden; }
}

html[dir="rtl"] body { direction: rtl; }
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
  font-family: var(--type-arabic);
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  letter-spacing: 0;
}
html[dir="rtl"] .site-nav { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .material-symbols-outlined { direction: ltr; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }

/* --------------------------- Buttons ------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--type-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.button:hover { transform: translateY(-2px); }

.button.primary { background: var(--atlas-dark); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2); }
.button.primary:hover { background: #2b2b2b; }

.button.secondary { background: var(--atlas-green); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22); }
.button.secondary:hover { background: var(--atlas-green-dark); }

.button.tonal { background: #f3f4f6; color: var(--atlas-dark); }
.button.tonal:hover { background: #e5e7eb; }

.button.outline { background: transparent; border-color: var(--atlas-border); color: var(--atlas-dark); }
.button.outline:hover { border-color: #9ca3af; background: rgba(0,0,0,0.03); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------- Layout / sections -------------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.alt { background: var(--atlas-white); }
.section-inner { width: var(--page); margin: 0 auto; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(9rem, 14vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    linear-gradient(30deg, transparent 0 72%, rgba(15, 23, 42, 0.05) 72.3% 72.9%, transparent 73.2%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 520px 320px, 84px 84px, 84px 84px;
  background-position: top right, top left, top left;
  -webkit-mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0 55%, transparent 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -20rem;
  right: -14rem;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 168, 53, 0.14), transparent 62%);
  pointer-events: none;
}
.page-hero .section-inner { max-width: 920px; }

.eyebrow,
.kicker {
  color: var(--atlas-green);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* page-hero eyebrow rendered as a bordered badge with a glowing dot */
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem 0.45rem 0.8rem;
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--atlas-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-hero .eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--atlas-green);
  box-shadow: 0 0 0 0.28rem rgba(45, 168, 53, 0.18);
}

.page-hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.92;
  text-transform: uppercase;
}

.lead {
  margin-top: 1.5rem;
  max-width: 640px;
  color: var(--atlas-muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.muted { color: var(--atlas-muted); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.section-head h2 { font-size: var(--fs-h2); line-height: 0.98; }
.section-head p { margin-top: 1rem; color: var(--atlas-muted); font-size: var(--fs-lead); }

/* ------------------------------ Grids ----------------------------- */
.grid.two,
.grid.three {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
}

/* ------------------------------ Cards ----------------------------- */
.card {
  background: var(--atlas-white);
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--atlas-green); }
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.85rem; line-height: 1.1; }
.card p { color: var(--atlas-muted); line-height: 1.75; }

/* image-led service card (leistungen) */
.card.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.media-card .card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card.media-card .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card.media-card:hover .card__media img { transform: scale(1.05); }
.card.media-card .card__body { padding: clamp(1.5rem, 3vw, 2rem); }
.card.media-card .eyebrow { margin-bottom: 0.5rem; }
.card.service-icon-card {
  height: 100%;
}
.card.service-icon-card .card__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #f6f7f7;
}
.card.service-icon-card .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card.service-icon-card:hover .card__media img {
  transform: none;
}
.card.service-icon-card .card__body {
  flex: 1;
}

/* document page visual intro */
.document-visual-section {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.document-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.document-visual-main,
.document-image-pair figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f6f7f7;
  box-shadow: var(--shadow-sm);
}
.document-visual-main {
  aspect-ratio: 5 / 4;
}
.document-visual-main img,
.document-image-pair img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.document-visual-copy h2 {
  max-width: 640px;
  font-size: var(--fs-h2);
  line-height: 0.98;
}
.document-visual-copy > .muted {
  max-width: 560px;
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
}
.document-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.document-image-pair figure {
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .document-visual-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .document-image-pair {
    grid-template-columns: 1fr;
  }
}
.document-card-grid {
  align-items: stretch;
}
.document-type-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.document-type-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f7f7;
  border-bottom: 1px solid var(--atlas-border);
}
.document-type-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.document-type-card:hover .document-type-card__media img {
  transform: scale(1.04);
}
.document-type-card__body {
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* steps (ablauf) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
  counter-reset: step;
}
.step {
  position: relative;
  counter-increment: step;
  background: var(--atlas-white);
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--atlas-green); }
.step__media {
  aspect-ratio: 4 / 3;
  margin: calc(clamp(1.75rem, 3vw, 2.5rem) * -1) calc(clamp(1.75rem, 3vw, 2.5rem) * -1) clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  background: #f6f7f7;
}
.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.step:hover .step__media img { transform: scale(1.04); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.step h3::before {
  content: "Schritt " counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--atlas-green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.step p { color: var(--atlas-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* detail list */
.detail-list { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.detail { display: grid; gap: 0.25rem; }
.detail strong { font-size: 1.05rem; }
.detail .muted { font-size: 0.98rem; }

/* badge / chip list */
.badge-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.badge-list li {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: #e8f5e9;
  color: var(--atlas-green-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

/* stat cards (reused on städte, leistungen, kontakt) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
.stat-card {
  background: var(--atlas-white);
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--atlas-green); }
.stat-card .material-symbols-outlined { color: var(--atlas-green); font-size: 2rem; margin-bottom: 1.25rem; }
.stat-num {
  color: var(--atlas-ink);
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.stat-num span { color: var(--atlas-green); }
.stat-label {
  margin-top: 0.85rem;
  color: var(--atlas-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr; } }

/* flag accent in headings */
.flag {
  font-size: 0.78em;
  margin-left: 0.45rem;
  vertical-align: 0.06em;
  line-height: 1;
}

/* figure caption under maps */
.city-visual figcaption,
.map-caption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--atlas-border);
  background: var(--atlas-white);
  color: var(--atlas-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.city-visual figcaption .dot,
.map-caption .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--atlas-green);
  flex: 0 0 auto;
}

/* city columns */
.city-columns {
  columns: 4 180px;
  column-gap: 2.5rem;
  width: 100%;
  min-width: 0;
}
.city-columns li {
  break-inside: avoid;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--atlas-border);
  font-weight: 500;
  transition: color var(--ease), padding-left var(--ease);
}
.city-columns li:hover {
  color: var(--atlas-green);
  padding-left: 0.4rem;
}
.city-columns li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--atlas-green);
  vertical-align: middle;
}

.city-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.city-layout--map-right {
  grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
}
.city-visual {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  min-height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f6f7f7;
  box-shadow: var(--shadow-sm);
}
.city-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .city-layout {
    grid-template-columns: 1fr;
  }
  .city-visual {
    position: static;
    max-width: 30rem;
  }
}

/* --------------------------- Contact panel ------------------------ */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
  align-items: stretch;
}
.contact-card {
  background: var(--atlas-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-card h2 { color: #fff; font-size: var(--fs-h3); }
.contact-card a[href^="tel"] { font-size: 1.6rem; font-weight: 700; }
.contact-card .eyebrow { color: #9fe6a6; }
.contact-card p { color: rgba(255,255,255,0.8); }
.qr-card {
  background: var(--atlas-white);
  border: 1px solid var(--atlas-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.qr-card img { width: min(220px, 60%); height: auto; }
@media (max-width: 760px) { .contact-panel { grid-template-columns: 1fr; } }

/* ------------------------------- FAQ ------------------------------ */
/* Matches the homepage .faq-showcase look: black square toggle that
   rotates + turns green on open, with an inset grey answer panel. */
.faq-list { display: grid; gap: 1.25rem; }
.faq-item {
  background: var(--atlas-white);
  border-radius: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  min-height: 5.9rem;
  padding: 1rem 1rem 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--atlas-ink);
  font-size: clamp(1.2rem, 1.85vw, 1.55rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: var(--atlas-ink);
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.faq-item[open] summary span { background: var(--atlas-green); transform: rotate(45deg); }
.faq-item .faq-answer {
  margin: 0 0.5rem 0.5rem;
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border-radius: 0.55rem;
  background: var(--atlas-surface);
  color: var(--atlas-muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.72;
}
@media (max-width: 640px) {
  .faq-item summary { min-height: 5rem; padding-left: 1.25rem; font-size: 1.15rem; }
  .faq-item summary span { width: 2.75rem; height: 2.75rem; font-size: 1.7rem; }
}

/* Smooth open/close animation for <details> FAQ items (shared + homepage).
   Uses the modern ::details-content + interpolate-size approach; browsers
   without support simply snap open (no broken layout). */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content,
.faq-showcase__item::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 0.35s ease, opacity 0.3s ease, content-visibility 0.35s allow-discrete;
}
.faq-item[open]::details-content,
.faq-showcase__item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* --------------------------- Contact modal ------------------------ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 9, 9, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.contact-modal.is-open { display: flex; }
.contact-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  animation: contact-in 0.28s ease;
}
@keyframes contact-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #090909;
  cursor: pointer;
}
.contact-modal__close:hover { background: #e5e7eb; }
.contact-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.contact-modal__aside {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.5rem 0 0 1.5rem;
  background: var(--atlas-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-modal__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px, 70px 70px;
  -webkit-mask-image: radial-gradient(circle at 15% 100%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 15% 100%, #000, transparent 72%);
}
.contact-modal__aside > * { position: relative; }
.contact-modal__kicker {
  color: #9fe6a6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-modal__title {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.contact-modal__lead { color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.contact-modal__meta { margin-top: auto; display: grid; gap: 0.85rem; padding-top: 1.5rem; }
.contact-modal__meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}
.contact-modal__meta .material-symbols-outlined { color: var(--atlas-green); font-size: 1.2rem; }
.contact-modal__form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-field { display: grid; gap: 0.4rem; min-width: 0; }
.contact-field label {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0 0.9rem;
  border: 1px solid var(--atlas-border);
  border-radius: 0.8rem;
  background: #f7f8f8;
  color: #090909;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-field textarea { min-height: 6.5rem; padding: 0.7rem 0.9rem; line-height: 1.5; resize: vertical; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #9aa0a8; font-weight: 500; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--atlas-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 168, 53, 0.16);
}
.contact-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--atlas-green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-modal__submit:hover { background: var(--atlas-green-dark); transform: translateY(-2px); }
@media (max-width: 760px) {
  .contact-modal__grid { grid-template-columns: 1fr; }
  .contact-modal__aside { border-radius: 1.5rem 1.5rem 0 0; }
  .contact-modal__meta { padding-top: 0.5rem; }
  .contact-row { grid-template-columns: 1fr; }
}

/* ----------------------------- CTA band --------------------------- */
.cta-band { background: var(--atlas-green); color: #fff; }
.cta-band .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); line-height: 0.98; }
.cta-band .button.primary { background: #fff; color: var(--atlas-dark); }
.cta-band .button.primary:hover { background: #f1f1f1; }

/* ------------------------------ Footer ---------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--atlas-white);
  border-top: 1px solid var(--atlas-border-soft);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(30deg, transparent 0 70%, rgba(15, 23, 42, 0.06) 70.3% 70.8%, transparent 71.1%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 420px 280px, 92px 92px, 92px 92px;
  background-position: top right, top left, top left;
  -webkit-mask-image: radial-gradient(circle at 90% 0%, #000, transparent 70%);
          mask-image: radial-gradient(circle at 90% 0%, #000, transparent 70%);
}
.footer-grid {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-grid img { width: 150px; height: auto; margin-bottom: 1.25rem; }
.footer-grid > div > p { color: var(--atlas-muted); max-width: 320px; }
.footer-grid h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 1.25rem;
}
.footer-grid a,
.footer-grid address span {
  display: block;
  color: var(--atlas-ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.35rem 0;
  font-style: normal;
}
.footer-grid a:hover { color: var(--atlas-green); }
.footer-bottom {
  width: var(--page);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--atlas-border-soft);
  color: var(--atlas-muted);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Animations & scroll-driven motion
   - Native CSS scroll-driven animations via `animation-timeline`
     (Chrome/Edge 115+, supported browsers).
   - Graceful JS IntersectionObserver fallback (.in-view) elsewhere.
   ===================================================================== */

.hover-lift { transition: transform var(--ease), box-shadow var(--ease); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* --- Keyframes ----------------------------------------------------- */
@keyframes atlas-fade-up   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes atlas-fade-in   { from { opacity: 0; }                              to { opacity: 1; } }
@keyframes atlas-fade-left { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes atlas-fade-right{ from { opacity: 0; transform: translateX(46px); }  to { opacity: 1; transform: none; } }
@keyframes atlas-scale-in  { from { opacity: 0; transform: scale(0.92); }       to { opacity: 1; transform: none; } }
@keyframes atlas-progress  { from { transform: scaleX(0); }                     to { transform: scaleX(1); } }
@keyframes atlas-blur-in   { from { opacity: 0; filter: blur(12px); transform: translateY(20px); } to { opacity: 1; filter: blur(0); transform: none; } }

/* --- Page-hero entrance (runs on load, every page) ----------------- */
.page-hero .eyebrow { animation: atlas-fade-up 0.6s 0.05s ease both; }
.page-hero h1       { animation: atlas-fade-up 0.7s 0.15s ease both; }
.page-hero .lead    { animation: atlas-fade-up 0.7s 0.28s ease both; }
.page-hero .hero-actions { animation: atlas-fade-up 0.7s 0.4s ease both; }

/* --- Scroll-reveal: declared on elements via [data-reveal] --------- */
/* Default (fade up). Variants chosen by attribute value. */

@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: atlas-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  [data-reveal="in"]    { animation-name: atlas-fade-in; }
  [data-reveal="left"]  { animation-name: atlas-fade-left; }
  [data-reveal="right"] { animation-name: atlas-fade-right; }
  [data-reveal="scale"] { animation-name: atlas-scale-in; }
  [data-reveal="blur"]  { animation-name: atlas-blur-in; }
}

/* JS fallback for browsers without scroll-driven timelines.
   Gated on .js so content stays visible when JavaScript is disabled. */
@supports not (animation-timeline: view()) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].in-view { animation: atlas-fade-up 0.7s ease both; }
  .js [data-reveal="in"].in-view    { animation-name: atlas-fade-in; }
  .js [data-reveal="left"].in-view  { animation-name: atlas-fade-left; }
  .js [data-reveal="right"].in-view { animation-name: atlas-fade-right; }
  .js [data-reveal="scale"].in-view { animation-name: atlas-scale-in; }
  .js [data-reveal="blur"].in-view  { animation-name: atlas-blur-in; }
}

/* --- Auto-stagger for children of a [data-reveal-group] ------------ */
@supports (animation-timeline: view()) {
  [data-reveal-group] > * {
    animation: atlas-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 32%;
  }
}
@supports not (animation-timeline: view()) {
  .js [data-reveal-group] > * { opacity: 0; }
  [data-reveal-group].in-view > * { animation: atlas-fade-up 0.6s ease both; }
  [data-reveal-group].in-view > *:nth-child(2) { animation-delay: 0.08s; }
  [data-reveal-group].in-view > *:nth-child(3) { animation-delay: 0.16s; }
  [data-reveal-group].in-view > *:nth-child(4) { animation-delay: 0.24s; }
  [data-reveal-group].in-view > *:nth-child(5) { animation-delay: 0.32s; }
  [data-reveal-group].in-view > *:nth-child(6) { animation-delay: 0.40s; }
}

/* --- Scroll progress bar (scroll-linked) --------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--atlas-green), var(--atlas-green-dark));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: atlas-progress linear both;
    animation-timeline: scroll(root);
  }
}

/* --- Sticky-image parallax helper (scroll-linked) ------------------ */
@supports (animation-timeline: view()) {
  .parallax-img {
    animation: atlas-parallax linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    will-change: transform;
  }
}
@keyframes atlas-parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* --- Reduced motion: disable everything --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .scroll-progress { display: none; }
}
