/* ==========================================================================
   FYZ Gerüstbau — Design System
   Brand: anthracite / off-black steel tones + brushed-steel & cobalt-blue accent
   Type:  Archivo (display) + Inter (body), self-hosted variable fonts
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

:root {
  /* Brand palette: cool anthracite/steel, single brushed-steel-blue accent */
  --ink: #f3f4f4;
  --paper: #0a0a0b;
  --paper-alt: #131315;
  --dark: #0a0a0b;
  --dark-surface: #18191b;
  --dark-surface-2: #202224;
  --accent: #2568c7;
  --accent-deep: #143f83;
  --accent-bright: #5b9ae8;
  --accent-soft: rgba(37, 104, 199, 0.16);
  --steel: #9a9a9c;
  --steel-bright: #d8d6d8;
  --line: rgba(243, 244, 244, 0.1);
  --line-strong: rgba(243, 244, 244, 0.2);
  --dark-line: rgba(255, 255, 255, 0.12);
  --on-dark: #f5f5f4;
  --on-dark-muted: rgba(245, 245, 244, 0.66);
  --muted: rgba(243, 244, 244, 0.62);

  /* Type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Shape: technical, near-sharp everywhere. No pills. */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;

  /* Shadow, tinted to ink, never pure black */
  --shadow-sm: 0 1px 2px rgba(6, 7, 8, 0.3);
  --shadow-md: 0 14px 36px -14px rgba(6, 7, 8, 0.55);
  --shadow-accent: 0 14px 30px -12px rgba(37, 104, 199, 0.45);

  --container: 1280px;
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button {
  font-family: inherit;
}

svg {
  display: block;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

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

.on-dark .muted,
.section-dark .muted {
  color: var(--on-dark-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 15px 26px;
  border-radius: var(--r-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, background-color 0.22s, border-color 0.22s;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(243, 244, 244, 0.07);
}

.on-dark .btn-ghost,
.section-dark .btn-ghost {
  border-color: var(--dark-line);
  color: var(--on-dark);
}

.on-dark .btn-ghost:hover,
.section-dark .btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(245, 245, 244, 0.06);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.88rem;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 12, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, height 0.25s ease;
}

.site-nav.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line-strong);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.75);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
  display: none;
}

@media (min-width: 560px) {
  .nav-actions .btn {
    display: inline-flex;
  }
}

.nav-call {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: none;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1240px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1420px) {
  .nav-call {
    display: inline-flex;
  }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: 28px 24px;
  display: none;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.mobile-menu .mobile-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1240px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 68px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 116px 0;
  }
}

.section-tight {
  padding: 52px 0;
}

@media (min-width: 768px) {
  .section-tight {
    padding: 84px 0;
  }
}

.section-alt {
  background: var(--paper-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 1.4vw + 1.45rem, 2.7rem);
  text-transform: uppercase;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.04rem;
  max-width: 56ch;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 0;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero-copy h1 {
  font-size: clamp(2rem, 2.1vw + 1.15rem, 2.9rem);
  color: #fff;
  text-transform: uppercase;
}

.hero-copy .lead {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--on-dark-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.1);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(245, 124, 0, 0.42), rgba(16, 18, 20, 0.7) 58%, rgba(16, 18, 20, 0.9));
  mix-blend-mode: multiply;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(16, 18, 20, 0.55), transparent 42%);
}

.hero-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(16, 18, 20, 0.74);
  border: 1px solid rgba(245, 245, 244, 0.18);
  border-radius: var(--r-xs);
  backdrop-filter: blur(6px);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #fff;
  text-transform: uppercase;
}

.hero-badge span {
  display: block;
  font-size: 0.76rem;
  color: var(--on-dark-muted);
}

.hero-strip {
  margin-top: 52px;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .hero-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-strip > div {
  padding: 22px 22px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

@media (min-width: 720px) {
  .hero-strip > div:nth-child(4) {
    border-right: none;
  }
  .hero-strip > div {
    border-bottom: none;
  }
}

.hero-strip > div:nth-child(2n) {
  border-right: none;
}

@media (min-width: 720px) {
  .hero-strip > div:nth-child(2n) {
    border-right: 1px solid var(--dark-line);
  }
}

.hero-strip strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #fff;
}

.hero-strip span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--on-dark-muted);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 60px 0 52px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 1.8vw + 1.15rem, 2.5rem);
  color: #fff;
  max-width: 36ch;
  text-transform: uppercase;
}

.page-hero .lead {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--on-dark-muted);
  max-width: 62ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Trust strip ---------- */
.trust-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: var(--dark-surface);
  padding: 28px 26px;
}

.trust-card .icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.trust-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Bento services ---------- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  position: relative;
  border-radius: var(--r-sm);
  padding: 28px;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

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

.bento-card.is-image {
  color: #fff;
  border: none;
}

@media (min-width: 1024px) {
  .bento-card.is-lead {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 416px;
  }
}

.bento-card.is-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.45) contrast(1.08);
}

.bento-card.is-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(16, 18, 20, 0.92) 0%, rgba(16, 18, 20, 0.35) 55%, rgba(245, 124, 0, 0.22) 100%);
}

.bento-card.is-dark {
  background: var(--dark);
  color: var(--on-dark);
  border-color: transparent;
}

.bento-card.is-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.bento-card.is-paper {
  background: var(--paper-alt);
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card .icon {
  width: 30px;
  height: 30px;
  margin-bottom: auto;
}

.bento-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: auto;
}

.bento-card.is-lead .num,
.bento-card.is-image .num {
  margin-bottom: 0;
}

.bento-card.is-image .num,
.bento-card.is-dark .num {
  color: var(--accent-bright);
}

.bento-card.is-accent .num {
  color: rgba(255, 255, 255, 0.75);
}

.bento-card h3 {
  font-size: 1.18rem;
  margin-top: 16px;
  text-transform: uppercase;
}

.bento-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  opacity: 0.85;
}

.bento-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.bento-card .tag svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .tag svg {
  transform: translateX(3px);
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
    border-top: none;
  }
  .process-list.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-item {
  padding: 26px 20px 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .process-item {
    border-bottom: none;
    border-top: 1px solid var(--line);
    padding: 26px 24px 0 0;
  }
}

.process-item strong.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--accent);
}

.process-item h3 {
  margin-top: 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.process-item p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Statement / quote ---------- */
.statement {
  position: relative;
  background: var(--dark-surface);
  color: #fff;
  padding: 84px 0;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(245, 124, 0, 0.07) 0 2px, transparent 2px 34px),
    radial-gradient(120% 160% at 10% 0%, rgba(245, 124, 0, 0.24), transparent 55%);
  pointer-events: none;
}

.statement blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw + 1rem, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-transform: uppercase;
}

.statement cite {
  position: relative;
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--on-dark-muted);
}

/* ---------- Service area ---------- */
.area-layout {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .area-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

.area-map {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: var(--r-sm);
  background: var(--dark);
  overflow: hidden;
}

.area-map svg {
  width: 100%;
  height: 100%;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.area-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  background: var(--dark-surface);
  padding: 16px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
}

.area-list a > * {
  min-width: 0;
}

@media (min-width: 480px) {
  .area-list a {
    padding: 18px 20px;
    font-size: 0.98rem;
    flex-wrap: nowrap;
  }
}

.area-list a span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.area-list a:hover {
  background: rgba(245, 124, 0, 0.18);
  color: #fff;
}

.area-list li.is-more {
  grid-column: span 2;
}

.area-list .is-more-inner {
  background: var(--dark-surface);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Service list (leistungen.html) ---------- */
.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  scroll-margin-top: 100px;
}

@media (min-width: 800px) {
  .service-row {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }
}

.service-row h2,
.service-row h3 {
  font-size: 1.32rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-transform: uppercase;
}

.service-row h2 .num,
.service-row h3 .num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
}

.service-row p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.service-row ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  max-width: 56ch;
}

.service-row li {
  list-style: disc;
  margin-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-row .btn {
  margin-top: 20px;
}

/* ---------- Service detail pages ---------- */
.detail-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 1.4fr 0.9fr;
  }
}

.detail-body h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  text-transform: uppercase;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 70ch;
}

.detail-body ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.detail-body li {
  display: flex;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--muted);
  align-items: flex-start;
}

.detail-body li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-card {
  background: var(--dark-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 26px;
}

.detail-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
}

.detail-card ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.detail-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Numbered divider ---------- */
.line-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.line-num span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
}

.line-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .plus::before {
  width: 100%;
  height: 2px;
}

.faq-question .plus::after {
  width: 2px;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .plus::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 4px 24px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Contact / final CTA ---------- */
.contact-split {
  display: grid;
  gap: 1px;
  background: var(--dark-line);
  grid-template-columns: 1fr;
  border-radius: var(--r-sm);
  overflow: hidden;
}

@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-main {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: 60px 40px;
}

.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(135deg, rgba(245, 124, 0, 0.06) 0 2px, transparent 2px 30px),
    radial-gradient(120% 140% at 100% 0%, rgba(245, 124, 0, 0.2), transparent 55%);
  pointer-events: none;
}

.contact-main > * {
  position: relative;
  z-index: 1;
}

.contact-main h2 {
  color: #fff;
  font-size: clamp(1.75rem, 1.6vw + 1.3rem, 2.4rem);
  max-width: 18ch;
  text-transform: uppercase;
}

.contact-main .lead {
  margin-top: 16px;
  color: var(--on-dark-muted);
  max-width: 48ch;
}

.contact-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-panel {
  background: var(--dark-surface);
  color: var(--on-dark);
  padding: 52px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-panel h3 {
  font-size: 1.05rem;
  color: #fff;
  text-transform: uppercase;
}

.contact-panel .nap {
  font-size: 0.94rem;
  color: var(--on-dark-muted);
  line-height: 1.7;
}

.contact-panel a.link-line {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
}

.contact-panel a.link-line svg {
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}

.field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #16181b;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(22, 24, 27, 0.42);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  font-size: 0.82rem;
  color: #ff6b57;
  display: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #ff6b57;
}

.field.has-error .field-error {
  display: block;
}

.form-note {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.checkbox-field a {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Option cards (project type / building type selectors) ---------- */
.option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-card span {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--dark-surface);
  transition: border-color 0.2s, background-color 0.2s;
  min-height: 84px;
  justify-content: center;
}

.option-card span svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.option-card input:checked + span {
  border-color: var(--accent);
  background: rgba(245, 124, 0, 0.1);
}

.option-card input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Multi-step form ---------- */
.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stepper-track {
  height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.stepper-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-item.is-done .stepper-fill,
.stepper-item.is-active .stepper-fill {
  width: 100%;
}

.stepper-item.is-active .stepper-fill {
  width: 55%;
}

.stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}

.stepper-item.is-active .stepper-label {
  color: var(--accent);
}

@media (min-width: 700px) {
  .stepper-label {
    display: block;
  }
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: step-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.is-active {
    animation: none;
  }
}

.form-step h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-step .step-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-nav {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.is-active {
  display: block;
}

.form-success .status-icon {
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
}

.form-success p {
  margin-top: 12px;
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin-inline: auto;
}

.form-success .form-success-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- File upload dropzone ---------- */
.dropzone {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(245, 124, 0, 0.06);
}

.dropzone svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin: 0 auto 12px;
}

.dropzone strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}

.dropzone span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.dropzone input {
  display: none;
}

.file-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--dark-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 0.86rem;
  color: var(--ink);
}

.file-list button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.file-list button svg {
  width: 16px;
  height: 16px;
}

.file-list button:hover {
  color: #ff6b57;
}

/* ---------- Cards (generic) ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 28px;
  background: var(--dark-surface);
}

.info-card .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.06rem;
  text-transform: uppercase;
}

.info-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- B2B split section ---------- */
.b2b-split {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .b2b-split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.b2b-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b-tags span {
  padding: 9px 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-xs);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--dark-surface);
  padding: 30px 24px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  color: var(--accent);
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--dark-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
}

.testimonial-stars svg {
  width: 15px;
  height: 15px;
}

.testimonial-card blockquote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
  display: block;
}

.testimonial-placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 40px 30px;
  text-align: center;
}

.testimonial-placeholder svg {
  width: 30px;
  height: 30px;
  color: var(--muted);
  margin: 0 auto 14px;
}

.testimonial-placeholder p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- Certifications / trust badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 0.84rem;
  color: var(--muted);
}

.badge-placeholder svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Gallery filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 10px 18px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, background-color 0.22s;
}

.filter-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.gallery-card.is-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 7, 0.94);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 84vh;
  width: 100%;
}

.lightbox-content img {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  filter: grayscale(0.35) contrast(1.1);
}

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
}

.lightbox-caption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #fff;
  text-transform: uppercase;
}

.lightbox-caption span {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.22s, border-color 0.22s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
}

.lightbox-counter {
  position: fixed;
  top: 28px;
  left: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

/* ---------- Gallery / projects ---------- */
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 18, 20, 0.84), transparent 55%);
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}

.gallery-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.gallery-caption span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-note {
  margin-top: 40px;
  padding: 22px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-tagline {
  margin-top: 14px !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-bright);
  max-width: none !important;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.5);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--on-dark-muted);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.84rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--on-dark-muted);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 74ch;
  padding-bottom: 100px;
}

.legal-content h2 {
  font-size: 1.28rem;
  margin-top: 44px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.legal-content ul {
  margin: 12px 0;
}

.legal-content li {
  list-style: disc;
  margin-left: 22px;
}

.legal-placeholder {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(245, 124, 0, 0.14);
  color: var(--accent-bright);
  font-size: 0.92em;
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 12, 0.95);
  backdrop-filter: blur(10px);
}

.mobile-call-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px 12px;
  font-weight: 700;
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.mobile-call-bar a:last-child {
  border-right: none;
  color: #ffffff;
  background: var(--accent);
}

.mobile-call-bar svg {
  width: 19px;
  height: 19px;
}

@media (min-width: 1240px) {
  .mobile-call-bar {
    display: none;
  }
}

body {
  padding-bottom: 68px;
}

@media (min-width: 1240px) {
  body {
    padding-bottom: 0;
  }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 95;
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 1240px) {
  .whatsapp-float {
    bottom: 28px;
  }
}

/* ---------- Grain texture (fixed, decorative) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Spotlight hover (cursor-tracked glow, cards only) ---------- */
.spotlight {
  position: relative;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 124, 0, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

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

@media (hover: none) {
  .spotlight::after {
    display: none;
  }
}

/* ---------- Magnetic buttons ---------- */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s, box-shadow 0.22s, border-color 0.22s;
  will-change: transform;
}

/* ---------- Staggered grid reveal ---------- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .magnetic {
    transition: background-color 0.22s, box-shadow 0.22s, border-color 0.22s;
  }
}

/* ---------- Marquee (max one per page) ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 52px;
  padding: 18px 0;
  animation: marquee-scroll 34s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span.is-accent {
  color: var(--accent);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Hero secondary image tile ---------- */
.hero-media-wrap {
  position: relative;
}

.hero-float {
  position: absolute;
  left: -26px;
  bottom: -26px;
  width: 42%;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 4px solid var(--dark);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  z-index: 4;
  display: none;
}

.hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.12);
}

@media (min-width: 560px) {
  .hero-float {
    display: block;
  }
}

/* ---------- Error page ---------- */
.error-page {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.error-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.status-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.status-icon svg {
  width: 28px;
  height: 28px;
}

.error-page h1 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.3rem);
  color: #fff;
  max-width: 24ch;
  text-transform: uppercase;
}

.error-page .lead {
  margin-top: 16px;
  color: var(--on-dark-muted);
  max-width: 54ch;
  font-size: 1.04rem;
}

.error-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.error-links {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.error-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  text-decoration: none;
}

.error-links a:hover {
  color: #fff;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--r-xs);
  z-index: 200;
  clip: auto;
}
