/* ============================================================
   Avtodelo Tools Global — Shared Styles
   shared.css : variables · reset · typography · layout ·
                components · animations · responsive
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --orange:        #ec6608;
  --orange-dim:    rgba(236, 102, 8, 0.12);
  --orange-glow:   rgba(236, 102, 8, 0.25);
  --orange-border: rgba(236, 102, 8, 0.35);

  --bg:       #080808;
  --bg-2:     #0f0f0f;
  --bg-3:     #161616;
  --border:   rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  --text:       #f0ede8;
  --text-muted: rgba(240, 237, 232, 0.45);
  --text-dim:   rgba(240, 237, 232, 0.22);

  --maxw: 1140px;
  --container-padding: 24px;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, textarea { font-family: inherit; }

/* ---------- Noise texture overlay ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, .label, .stat-num, .brand-sub, .step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
}
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: 0.01em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.1; }
p { color: var(--text-muted); }
.label {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--container-padding); }
section { position: relative; padding: 100px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
#globalCanvas { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.navbar, main, footer { position: relative; z-index: 1; }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin: 12px 0 14px; }
.section-head p { max-width: 560px; }

/* ============================================================
   5. NAVBAR  (§1 — larger nav links + button)
   ============================================================ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; transition: all .3s ease; }
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand svg { width: 180px; height: 29px; display: block; }
.brand-sub { font-size: 13px; letter-spacing: 0.2em; color: rgba(240, 237, 232, 0.5); margin-left: 10px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-muted); transition: color .2s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--text); transition: all .3s ease; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ============================================================
   6. BUTTONS  (§1 — enlarged)
   ============================================================ */
.btn-primary {
  background: var(--orange); color: #fff;
  border-radius: 10px; border: none; cursor: pointer;
  position: relative; overflow: hidden; display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236,102,8,0.4); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .45s ease;
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  background: transparent; color: var(--text);
  border-radius: 10px; border: 0.5px solid var(--border-2);
  cursor: pointer; display: inline-block;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--orange-border); background: var(--orange-dim); }

/* §1 — larger, more readable buttons */
.btn-primary, .btn-secondary { font-size: 16px; font-weight: 600; padding: 16px 32px; letter-spacing: 0.04em; }

/* §1 — compact nav button (overrides the enlarged sizing above) */
.btn-nav { font-size: 15px; font-weight: 600; padding: 12px 24px; letter-spacing: 0.03em; }

/* §HERO&NAVBAR — green WhatsApp button (color/shape only; size comes from the
   companion class — .btn-nav in the navbar, .btn-primary in the hero form) */
.btn-wa {
  background: #25D366 !important; color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-wa:hover { background: #1da851 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }
/* Neutralise the orange shine sweep inherited from .btn-primary */
.btn-wa::before { display: none !important; }

/* WhatsApp */
.btn-whatsapp {
  background: #25D366; color: #fff; padding: 14px 30px; border-radius: 10px;
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0    rgba(37,211,102,.4); }
  50%      { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================================
   7. CARDS (shared base)
   ============================================================ */
.card { background: var(--bg-2); border: 0.5px solid var(--border); border-radius: 14px; padding: 28px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: var(--orange-border); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }

/* ============================================================
   8. FOOTER
   ============================================================ */
footer { border-top: 0.5px solid var(--border); padding: 48px 24px 36px; background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-logo svg { width: 160px; height: 26px; opacity: 0.6; }
.footer-social { display: flex; gap: 22px; }
.social-link { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; transition: color .2s; }
.social-link:hover { color: var(--orange); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   9. REVEAL ANIMATIONS
   ============================================================ */
.reveal       { opacity: 0; transform: translateY(28px);  transition: opacity .6s ease, transform .6s ease; }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity .6s ease, transform .6s ease; }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity .6s ease, transform .6s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* ============================================================
   BLOCK 01 — HERO
   ============================================================ */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(8,8,8,0.75), rgba(8,8,8,0.75)), url('https://thb.tildacdn.com/tild3262-6236-4234-b739-663865393532/-/empty/KOS03361_1.png');
  background-size: cover; background-position: center;
}
#heroCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow { margin-bottom: 22px; animation: fadeUp .6s ease .1s both; }
.hero-h1      { margin-bottom: 22px; max-width: 880px; animation: fadeUp .7s ease .25s both; }
.hero-h1 .accent { color: var(--orange); }
.hero-sub     { font-size: clamp(15px, 2vw, 18px); max-width: 600px; margin-bottom: 36px; animation: fadeUp .6s ease .45s both; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .6s ease .6s both; }
.hero-scroll  {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  animation: fadeUp .5s ease .9s both;
}
.hero-scroll .arrow {
  width: 22px; height: 22px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translate(0,0); opacity:.5; } 50% { transform: rotate(45deg) translate(5px,5px); opacity:1; } }
@keyframes fadeUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* ============================================================
   BLOCK 02 — ABOUT  (§10 — Three.js ship in right column)
   ============================================================ */
/* The About section drops its own padding — the sticky track and stats wrapper
   below provide their own spacing. */
#about { padding: 0; }

/* Tall scroll track. Its extra height (height − 100vh) is the distance over
   which the ship video scrubs while the inner block stays pinned. */
.about-scroll { position: relative; height: 300vh; }
.about-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
  padding: 0 24px; overflow: hidden;
}
.about-sticky .section-inner { width: 100%; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* Let both columns shrink to share the container equally — without min-width:0
   the wide stat numbers force the left column (and the video) past the screen. */
.about-grid > * { min-width: 0; }
.about-text p { font-size: 16px; margin-top: 14px; overflow-wrap: break-word; }
.about-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: transparent;
  /* Feather all four edges to transparency so the dark sea melts into the
     near-black page — no visible frame, looks like part of the background. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
#shipVideo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stat counters in the About left column — 4 in a row, divided by vertical
   rules, with a horizontal rule separating them from the paragraph above. */
.stat-num { font-family: 'Bebas Neue', sans-serif; color: var(--orange); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.03em; }
.about-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px; padding-top: 26px; border-top: 0.5px solid var(--border);
}
.about-stat { min-width: 0; padding: 0 12px; }
.about-stat:first-child { padding-left: 0; }
.about-stat + .about-stat { border-left: 0.5px solid var(--border); }
.about-stats .stat-num { font-size: clamp(30px, 3.4vw, 42px); }
.about-stats .stat-label { display: block; font-size: 11px; margin-top: 6px; line-height: 1.3; }

/* Infinite marquee strip below the stats */
.about-marquee {
  margin-top: 30px; overflow: hidden; padding: 12px 0;
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.about-marquee-track { display: flex; width: max-content; animation: aboutMarquee 24s linear infinite; }
.about-marquee:hover .about-marquee-track { animation-play-state: paused; }
.about-marquee-track span {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.about-marquee-track .dot { color: var(--orange); margin: 0 18px; }
@keyframes aboutMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   BLOCK 03 — SERVICES  (two side-by-side cards, both always visible)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

/* Card: bg a touch lighter than the page, with a barely-there orange wash,
   thin border, rounded corners. align-items:stretch keeps both equal height. */
.service-card {
  background: linear-gradient(135deg, rgba(236,102,8,0.05), transparent 62%), var(--bg-2);
  border: 0.5px solid var(--border); border-radius: 14px; padding: 32px;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, opacity .3s ease;
}
.service-card .label { margin-bottom: 8px; }
.service-card h3 { margin-bottom: 18px; }

/* Hover interplay (JS toggles these classes):
   hovered card brightens with an orange border; the sibling dims. */
.service-card.is-active {
  border-color: var(--orange-border); transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(236,102,8,0.10), transparent 62%), var(--bg-3);
}
.service-card.is-dimmed { opacity: 0.45; }

.service-list { margin-top: 8px; }
.service-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 0;
  border-bottom: 0.5px solid var(--border); color: var(--text); font-size: 15px;
  opacity: 0; transform: translateX(-12px); animation: itemSlide .4s ease forwards;
  transition: color .2s ease;
}
.service-item::before { content: '→'; color: var(--orange); font-weight: 600; flex-shrink: 0; transition: transform .2s ease; }
.service-item:hover { color: var(--orange); }
.service-item:hover::before { transform: translateX(4px); }
.service-card .service-item:nth-child(1) { animation-delay: .05s; }
.service-card .service-item:nth-child(2) { animation-delay: .12s; }
.service-card .service-item:nth-child(3) { animation-delay: .19s; }
.service-card .service-item:nth-child(4) { animation-delay: .26s; }
.service-card .service-item:nth-child(5) { animation-delay: .33s; }
@keyframes itemSlide { to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   BLOCK 04 — HOW IT WORKS  (§4 layout + §11 Three.js canvas)
   ============================================================ */
/* Tall track — the block pins for its extra height while the container video
   scrubs and the steps light up one by one. */
.hiw-section { height: 500vh; position: relative; }
.hiw-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  /* No horizontal padding so the video can run nearly edge-to-edge; the head
     and steps re-constrain themselves to the content width below. */
  padding: 72px 0 40px; max-width: none; margin: 0;
}
.hiw-head { text-align: center; padding: 0 var(--container-padding); }
.hiw-head h2 { margin-top: 10px; }

/* Large near-full-width video. object-fit:cover makes it fill the wrap exactly,
   so the feather mask lands on the real video edges (no hard border) — the dark
   studio backdrop then melts into the near-black page, like the ship. */
.hiw-video-wrap {
  position: relative;
  width: min(1600px, 96vw); margin: 0 auto;
  flex: 1 1 auto; min-height: 0;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
#containerVideo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Steps in a row beneath the video — dim by default, light up as scroll advances. */
.hiw-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--container-padding);
}
.hiw-step {
  padding: 18px 16px 0; opacity: 0.3; border-top: 2px solid var(--border);
  transition: opacity .45s ease, border-color .45s ease;
}
.hiw-step.active { opacity: 1; border-top-color: var(--orange); }
.hiw-step .step-num { font-size: 30px; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.hiw-step h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.hiw-step p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   BLOCK 05 — WHY US  (§5 — img icons w/ inline-SVG fallback)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
/* More breathing room: icon ↔ heading, and heading ↔ description */
.why-icon { display: flex; align-items: center; height: 48px; margin-bottom: 22px; }
.why-icon img, .why-icon svg { width: 48px; height: 48px; transition: transform .3s ease; }
.why-icon img { object-fit: contain; }
/* Brighter, more legible text on the dark cards */
.why-card h3 { font-size: 21px; color: #fff; margin-bottom: 14px; }
.why-card p { font-size: 16px; color: rgba(240,237,232,0.72); line-height: 1.6; }

/* Hover — orange border, soft diffuse orange glow, slight lift, icon scales up.
   Defined after .card so it overrides the generic dark card-hover shadow. */
.why-card:hover, .why-card.is-active {
  border-color: var(--orange-border);
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(236,102,8,0.15), 0 18px 44px rgba(236,102,8,0.20);
}
.why-card:hover .why-icon img, .why-card:hover .why-icon svg,
.why-card.is-active .why-icon img, .why-card.is-active .why-icon svg { transform: scale(1.12); }

/* ============================================================
   BLOCK 06 — PRODUCTS  (§6 — inline SVG icons + photo slots)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { padding: 18px; }
.product-img-wrap {
  position: relative;
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
/* Bottom overlay — the photo fades into the card background so the title and
   SKU count below read cleanly against it. Sits above the image, ignores clicks. */
.product-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent 52%, rgba(8,8,8,0.4) 78%, var(--bg-2) 100%);
}
.product-img-placeholder { opacity: 0.4; transition: transform .4s ease, opacity .25s ease; }
.product-card:hover .product-img-placeholder { transform: scale(1.1); opacity: 0.6; }
.product-img-placeholder svg { width: 48px; height: 48px; }
.product-info h3 { font-size: 19px; margin-bottom: 4px; }
.product-info .sku-count { font-size: 12px; color: var(--orange); letter-spacing: 0.06em; }

.marquee-wrap { overflow: hidden; margin-top: 48px; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); padding: 18px 0; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
.marquee-track span .dot { color: var(--orange); margin-left: 32px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.products-cta { text-align: center; margin-top: 48px; }

/* §7 — Configure teaser: now leads the Configure section, sitting right above
   the heading so the hint and the configurator read as one block. */
.configure-teaser {
  margin: 0 0 40px;
  background: linear-gradient(135deg, var(--bg-2), rgba(236,102,8,0.05));
  border: 0.5px solid var(--orange-border); border-radius: 14px; padding: 20px 28px;
}
.teaser-inner { display: flex; align-items: center; gap: 16px; }
.teaser-icon { font-size: 28px; }
.teaser-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.teaser-text strong { font-size: 15px; color: var(--text); }
.teaser-text span { font-size: 13px; color: var(--text-muted); }
.teaser-btn { white-space: nowrap; }

/* ============================================================
   BLOCK 07 — CONFIGURE YOUR SHIPMENT  (§7)
   ============================================================ */
.configure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.config-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
  background: var(--bg-2); border: 0.5px solid var(--border); border-radius: 12px;
  padding: 18px 20px; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s, background .2s, transform .15s;
}
.cat-card:hover { border-color: var(--orange-border); transform: translateY(-2px); }
.cat-card.selected { border-color: var(--orange); background: var(--orange-dim); }
.cat-card .cc-icon { flex-shrink: 0; }
.cat-card .cc-icon svg { width: 30px; height: 30px; display: block; }
.cat-card .cc-name { font-size: 15px; color: var(--text); font-weight: 500; }
.cat-card .cc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.config-panel { background: var(--bg-2); border: 0.5px solid var(--border); border-radius: 16px; padding: 28px; position: sticky; top: 90px; }
.config-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-left: auto; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(236,102,8,.5); animation: liveDot 1.6s infinite; }
@keyframes liveDot { 0%,100% { box-shadow: 0 0 0 0 rgba(236,102,8,.5); } 50% { box-shadow: 0 0 0 7px rgba(236,102,8,0); } }
.config-panel .panel-sub { font-size: 13px; margin-bottom: 22px; }
.tags-box {
  min-height: 90px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  padding: 16px; border: 1px dashed var(--orange-border); border-radius: 10px; margin-bottom: 22px;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(236,102,8,0.015) 10px, rgba(236,102,8,0.015) 20px);
}
.tags-box .placeholder { color: var(--text-dim); font-size: 13px; }
.container-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange-dim); border: 0.5px solid var(--orange-border);
  color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.container-tag .x { cursor: pointer; color: var(--orange); font-weight: 600; }
@keyframes popIn { from { transform: scale(0.4) rotate(-5deg); opacity:0; } to { transform: scale(1) rotate(0deg); opacity:1; } }
.config-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.config-stat { text-align: center; padding: 14px 6px; background: var(--bg-3); border-radius: 10px; }
.config-stat .cs-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--orange); line-height: 1; }
.config-stat .cs-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px; }
.progress-track { height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress-fill { height: 100%; width: 0; background: var(--orange); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.config-panel .btn-primary { width: 100%; }
.config-panel .btn-primary .ship-emoji { display: inline-block; transition: transform .3s ease; }
.config-panel .btn-primary:hover .ship-emoji { transform: translateX(8px); }
.config-panel .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Dispatch overlay */
.dispatch-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,8,0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 24px; }
.dispatch-overlay.show { display: flex; }
.dispatch-ship { font-size: 64px; animation: sailAway 2.4s ease-in-out infinite; }
@keyframes sailAway { 0% { transform: translateX(-40px) translateY(0); } 50% { transform: translateX(40px) translateY(-10px); } 100% { transform: translateX(-40px) translateY(0); } }
.dispatch-overlay h2 { margin: 20px 0 10px; color: var(--orange); }
.dispatch-overlay p { max-width: 420px; }
.dispatch-close { margin-top: 28px; }

/* ============================================================
   BLOCK 08 — GEOGRAPHY  (real Africa map via D3 + TopoJSON)
   ============================================================ */
.geo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.geo-map-wrap { position: relative; }
.geo-map { position: relative; width: 100%; aspect-ratio: 1 / 1.02; }
.geo-svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Countries — fill a touch lighter than the page; subtle hover highlight */
.geo-country { transition: fill .2s ease; }
.geo-country:hover { fill: #1a1a1a; }

/* China → city supply lines (drawn in on scroll, staggered via inline delay) */
.geo-route { fill: none; }

/* China marker + label */
.china-dot-svg { filter: drop-shadow(0 0 6px rgba(236,102,8,0.6)); }
.china-text { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.15em; fill: rgba(240,237,232,0.75); }

/* City pulse markers (sonar effect) */
.city-marker { cursor: pointer; }
.city-core { fill: var(--orange); }
.pulse-outer, .pulse-inner { transform-box: fill-box; transform-origin: center; }
.pulse-outer { animation: sonar 2.2s ease-out infinite; }
.pulse-inner { animation: sonar 2.2s ease-out infinite 1.1s; }
@keyframes sonar { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* Tooltip — fixed to the viewport, positioned from pointer coordinates */
.city-tooltip {
  position: fixed; background: var(--bg-2); border: 0.5px solid var(--orange-border);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; pointer-events: none;
  opacity: 0; transition: opacity .2s; white-space: nowrap; z-index: 1000;
}
.city-tooltip.show { opacity: 1; }
.tooltip-city { display: block; color: var(--text); font-weight: 500; }
.tooltip-status { color: var(--orange); font-size: 11px; }

.geo-text h2 { margin-bottom: 18px; }
.geo-legend { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.geo-legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.geo-legend-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.geo-legend-item .status { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.geo-note { margin-top: 18px; font-style: italic; font-size: 13px; color: var(--text-muted); }

/* ============================================================
   BLOCK 09 — CTA + CONTACT
   ============================================================ */
#contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-left h2 { margin: 12px 0 14px; }
.contact-left p { max-width: 440px; margin-bottom: 28px; }
.contact-info { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-info a { color: var(--text); font-size: 15px; }
.contact-info a:hover { color: var(--orange); }
.contact-info .ci-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 4px; }

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form .field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 7px; letter-spacing: 0.04em; }
.lead-form input, .lead-form textarea {
  width: 100%; background: var(--bg-3); border: 0.5px solid var(--border-2);
  border-radius: 10px; padding: 13px 15px; color: var(--text); font-size: 15px; transition: border-color .2s;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--orange-border); }
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form .btn-primary { margin-top: 4px; }

.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: rgba(37,211,102,.12); border: 0.5px solid rgba(37,211,102,.4); color: #7ee2a8; }
.form-msg.error   { background: rgba(236,102,8,.12);  border: 0.5px solid var(--orange-border); color: #f4a86a; }

/* ============================================================
   FINAL TASK 1 — STICKY WHATSAPP BUTTON
   ============================================================ */
/* §HERO&NAVBAR TASK 5 — sticky WhatsApp button: icon + text only.
   Sits left of the right-edge ship line (x = W-40) and up from the bottom
   so it never covers the "AFRICA" label or the route. */
.wa-float {
  position: fixed; right: 56px; bottom: 72px; z-index: 999;
  display: flex; align-items: center; gap: 12px;
  /* Hidden first 3s, then floats up from below (animation-delay 3s). */
  opacity: 0; visibility: hidden; transform: translateY(40px);
  animation: waFloatIn .6s cubic-bezier(.34,1.56,.64,1) 3s forwards;
}
@keyframes waFloatIn {
  from { opacity: 0; visibility: visible; transform: translateY(40px); }
  to   { opacity: 1; visibility: visible; transform: translateY(0); }
}
.wa-float-label {
  background: var(--bg-2); color: var(--text);
  border: 0.5px solid var(--border-2); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  /* Hidden on desktop until hover */
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }
.wa-float-btn {
  flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover .wa-float-btn { transform: scale(1.06); background: #1da851; }
.wa-float-btn svg { width: 34px; height: 34px; display: block; }

/* ============================================================
   FINAL TASK 2 — HERO MINI-FORM
   ============================================================ */
.hero-mini-form {
  display: flex; gap: 10px; margin-top: 30px; max-width: 480px;
  animation: fadeUp .6s ease .75s both;
}
.hero-mini-input {
  flex: 1 1 auto; min-width: 0;
  background: rgba(8,8,8,0.55); border: 0.5px solid var(--border-2);
  border-radius: 10px; padding: 14px 16px; color: var(--text); font-size: 15px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .2s;
}
.hero-mini-input::placeholder { color: var(--text-muted); }
.hero-mini-input:focus { outline: none; border-color: var(--orange-border); }
.hero-mini-form .btn-primary { flex-shrink: 0; white-space: nowrap; }
.hero-mini-form.shake { animation: heroShake .4s ease; }
@keyframes heroShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-7px); }
  40%,80% { transform: translateX(7px); }
}
.hero-mini-note {
  margin-top: 12px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em;
  animation: fadeUp .6s ease .85s both;
}

/* §HERO&NAVBAR TASK 4 — first-screen social proof (Baltwerk card + 3 stats) */
.hero-proof {
  display: flex; align-items: center; gap: 22px;
  margin-top: 26px; max-width: 560px; padding: 16px 20px;
  background: rgba(8,8,8,0.45); border: 0.5px solid var(--border-2); border-radius: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeUp .6s ease .95s both;
}
.hero-proof-card { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
/* Image shown as-is — its own rounded dark card art; contain so it's never cropped */
.hero-proof-img { height: 190px; width: auto; max-width: 100%; border-radius: 16px; object-fit: contain; display: block; }
.hero-proof-cap { font-size: 11px; color: var(--orange); letter-spacing: 0.06em; text-align: center; }
.hero-proof-stats { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hps { padding: 9px 0; }
.hps + .hps { border-top: 0.5px solid var(--border); }
.hps-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--orange); line-height: 1; display: block; }
.hps-label { font-size: 12px; color: var(--text); display: block; margin-top: 2px; }
.hero-mini-done {
  margin-top: 30px; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: #7ee2a8;
  background: rgba(37,211,102,.10); border: 0.5px solid rgba(37,211,102,.4);
  border-radius: 10px; padding: 16px 20px;
  animation: fadeUp .4s ease both;
}

/* ============================================================
   FINAL TASK 3 — TRUST BAR (after Hero)
   Desktop/tablet: static centered row. Mobile: marquee.
   ============================================================ */
.trust-bar {
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 24px; overflow: hidden;
}
.trust-bar-track {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 26px; max-width: var(--maxw); margin: 0 auto;
}
.tb-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.tb-item:not(:last-child)::after { content: '·'; color: var(--text-dim); margin-left: 26px; }
.tb-item .tb-hl { color: var(--orange); font-weight: 600; }
/* Duplicate set only used for the mobile marquee — hidden on desktop/tablet */
.tb-dup { display: none; }

/* ============================================================
   FINAL TASK 4 — SOCIAL PROOF (Real Results. Real Partners.)
   ============================================================ */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.proof-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 26px; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.proof-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.proof-card.is-featured {
  border-color: var(--orange-border);
  background: linear-gradient(160deg, rgba(236,102,8,0.08), transparent 55%), var(--bg-2);
}
.proof-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: 16px;
}
.proof-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(236,102,8,0.10), var(--bg-3));
}
/* contain — the Google screenshot keeps its proportions, never critically cropped */
.proof-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Dark placeholder with orange gradient (shown if image is missing) */
.proof-photo-fallback {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  background: linear-gradient(135deg, rgba(236,102,8,0.35), rgba(8,8,8,0.9) 70%), var(--bg-3);
}
.proof-card h3 { font-size: 23px; color: #fff; margin-bottom: 4px; }
.proof-loc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.proof-stars { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
/* Accurate fractional rating: orange stars clipped to --rating over dim stars */
.proof-stars .stars { position: relative; display: inline-block; font-size: 20px; line-height: 1; letter-spacing: 1px; }
.proof-stars .stars::before { content: '★★★★★'; color: var(--text-dim); }
.proof-stars .stars::after {
  content: '★★★★★'; color: var(--orange);
  position: absolute; left: 0; top: 0; width: var(--rating, 100%);
  overflow: hidden; white-space: nowrap;
}
.proof-stars .rating-num { font-size: 14px; color: var(--text); font-weight: 600; }
.proof-card p { font-size: 14px; color: rgba(240,237,232,0.72); line-height: 1.6; }
.proof-fine { margin-top: 14px; font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }
/* Pin the card button to the bottom so cards of differing height align.
   The paragraph carries a min gap above via its own bottom margin. */
.proof-card .proof-btn { margin-top: auto; width: 100%; text-align: center; }
.proof-card p { margin-bottom: 22px; }
.proof-footnote {
  margin-top: 34px; text-align: center; font-style: italic;
  font-size: 14px; color: var(--text-muted);
}
.proof-footnote a { color: var(--orange); }

/* ============================================================
   FINAL TASK 6 — Contact form badge + WhatsApp alt
   ============================================================ */
.form-badge {
  font-size: 13px; letter-spacing: 0.04em; color: var(--orange);
  background: var(--orange-dim); border: 0.5px solid var(--orange-border);
  border-radius: 999px; padding: 8px 16px; align-self: flex-start; margin-bottom: 4px;
}
.form-wa-alt { margin-top: 16px; text-align: center; }
.form-wa-link {
  display: inline-block; color: var(--text); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--orange-border); padding-bottom: 2px; transition: color .2s;
}
.form-wa-link:hover { color: var(--orange); }
.form-wa-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-dim); }

/* ============================================================
   FINAL TASK 7 — Footer trust line
   ============================================================ */
.footer-trust { font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---------------- Tablet + mobile shared (≤1024) ---------------- */
@media (max-width: 1024px) {
  /* Right-edge ship line hidden on tablet & mobile — it crowds narrow screens */
  #globalCanvas { display: none; }

  /* Below desktop the About block stops pinning and flows as a static stack so
     video + text + stats + marquee can't be clipped inside a 100vh pin. The
     scroll-scrub still runs against this (now static) track. */
  .about-scroll { height: auto; }
  .about-sticky { position: static; height: auto; overflow: visible; }

  .about-grid, .configure-grid, .geo-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .configure-grid > * { min-width: 0; }   /* prevent grid blow-out from card content */
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .config-panel { position: static; }
}

/* ---------------- Tablet only (768–1024) ---------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Nav stays horizontal — tighten so links don't crowd */
  .nav-links { gap: 20px; }
  .nav-link { font-size: 14px; }
  .btn-nav { padding: 10px 18px; font-size: 14px; }
  /* Geography keeps a side-by-side map (~55%) + text */
  .geo-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
}

/* ---------------- Mobile only (≤767) ---------------- */
@media (max-width: 767px) {
  /* ===== Navbar — fullscreen overlay menu ===== */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh;
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    padding: 100px 28px 110px;
    background: rgba(8,8,8,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform .35s ease; z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 24px; }
  /* Get a Quote pinned to the bottom of the overlay, full width */
  .nav-links li:last-child { position: absolute; left: 24px; right: 24px; bottom: 40px; }
  .nav-links li:last-child .btn-nav { display: block; width: 100%; text-align: center; padding: 16px; font-size: 17px; }
  /* §HERO&NAVBAR TASK 1 — full-width WhatsApp button in the hamburger menu */
  .nav-links li:last-child .btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
  .nav-brand svg { width: 140px; height: 22px; }
  .brand-sub { display: inline; font-size: 10px; margin-left: 8px; }   /* keep TOOLS GLOBAL visible */

  /* ===== Vertical rhythm — roughly half the desktop section padding (100px) so
     blocks follow each other with comfortable, not cavernous, air ===== */
  section { padding: 48px 20px; }
  .section-head { margin-bottom: 32px; }
  /* Trim the tall empty zone under the hero before About */
  #hero { padding-top: 90px; padding-bottom: 40px; }

  /* ===== Hero ===== */
  .hero-h1 { font-size: clamp(28px, 7.6vw, 38px); overflow-wrap: break-word; }
  .hero-sub { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; text-align: center; }
  /* SCROLL indicator — the fadeUp animation overrode translateX(-50%), pushing it
     off-centre. Span the full width and centre via flex instead (no transform). */
  .hero-scroll { left: 0; right: 0; transform: none; }

  /* ===== About — video on top, then text, stats 2×2, marquee ===== */
  .about-sticky { padding: 0 20px; }
  .about-grid { gap: 22px; }
  .about-video-wrap { order: -1; aspect-ratio: auto; height: 46vh; min-height: 220px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stat { padding: 14px 12px; }
  .about-stat:nth-child(odd) { padding-left: 0; }
  .about-stat + .about-stat { border-left: none; }
  .about-stat:nth-child(2n) { border-left: 0.5px solid var(--border); }
  .about-stat:nth-child(n+3) { border-top: 0.5px solid var(--border); }

  /* ===== Services — single column, tighter padding (tap interplay via JS) ===== */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  /* ===== How it Works — static stacked, single-column steps (all visible) ===== */
  .hiw-section { height: auto; padding: 0; }   /* sticky provides the padding — avoid doubling */
  .hiw-sticky { position: static; height: auto; justify-content: flex-start; gap: 24px; padding: 40px 20px; }
  .hiw-video-wrap { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .hiw-steps { grid-template-columns: 1fr; gap: 16px; }
  .hiw-step { opacity: 1 !important; }

  /* ===== Why Us — single column ===== */
  .why-grid { grid-template-columns: 1fr; }

  /* ===== Products — 2 columns, slightly taller image ===== */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { padding: 14px; }
  .product-img-wrap { aspect-ratio: 3 / 2; }
  .product-info h3 { font-size: 16px; }
  .products-cta .btn-primary { width: 100%; }

  /* ===== Configure — categories then panel ===== */
  .config-cats { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-width: 0; padding: 16px; }
  .cat-card > div { min-width: 0; }          /* let the name/meta wrap instead of blowing out */
  .cat-card .cc-meta { white-space: normal; }
  .teaser-inner { flex-direction: column; text-align: center; gap: 12px; }
  .teaser-btn { width: 100%; text-align: center; }

  /* ===== Geography — map on top, full width ===== */
  .geo-map { aspect-ratio: auto; height: 60vw; min-height: 260px; }

  /* ===== Contact — full-width fields & buttons ===== */
  .contact-left p { max-width: none; }
  .lead-form input, .lead-form textarea { padding: 15px; font-size: 16px; }
  .lead-form textarea { min-height: 120px; }
  .lead-form .btn-primary { width: 100%; }
  .btn-whatsapp { width: 100%; justify-content: center; }

  /* ===== Footer ===== */
  .footer-social { flex-wrap: wrap; justify-content: center; }
}

/* Reduced-motion: drop the pin so the page scrolls normally and the video
   just sits at a static frame (the JS skips scrubbing too). */
@media (prefers-reduced-motion: reduce) {
  .about-scroll { height: auto; }
  .about-sticky { position: static; height: auto; padding: 64px 24px; }
  .hiw-section { height: auto; }
  .hiw-sticky { position: static; height: auto; justify-content: flex-start; padding: 64px 24px; }
  .hiw-video-wrap { flex: none; aspect-ratio: 16 / 9; }
  /* Don't keep the WhatsApp button hidden if motion is reduced — just show it */
  .wa-float { opacity: 1; visibility: visible; transform: none; animation: none; }
  .wa-float-btn { animation: none; }
}

/* ============================================================
   RESPONSIVE — FINAL TASKS (new elements only)
   ============================================================ */

/* ---------------- Tablet only (768–1024) ---------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* TASK 4 — two cards in a row, third spans full width below */
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid .proof-card:nth-child(3) { grid-column: 1 / -1; }

  /* TASK 6 — contact form constrained and centered on tablet */
  .lead-form { max-width: 80%; margin-left: auto; margin-right: auto; }
}

/* ---------------- Mobile only (≤767) ---------------- */
@media (max-width: 767px) {
  /* TASK 1 — larger tap target, label always visible, clear of browser UI */
  .wa-float { right: 16px; bottom: 84px; gap: 10px; }
  .wa-float-btn { width: 64px; height: 64px; }
  .wa-float-btn svg { width: 36px; height: 36px; }
  .wa-float-label { opacity: 1; transform: none; pointer-events: auto; font-size: 13px; padding: 8px 14px; }

  /* §HERO&NAVBAR TASK 4 — Baltwerk card full-width on top, 3 stats in a row below */
  .hero-proof { flex-direction: column; align-items: stretch; max-width: none; gap: 16px; }
  .hero-proof-card { width: 100%; }
  .hero-proof-img { height: 160px; }
  .hero-proof-stats { flex-direction: row; }
  .hps { flex: 1; text-align: center; padding: 0 6px; }
  .hps + .hps { border-top: none; border-left: 0.5px solid var(--border); }
  .hps-num { font-size: 26px; }
  .hps-label { font-size: 11px; }

  /* TASK 2 — input + button stacked, full width, comfortable tap height */
  .hero-mini-form { flex-direction: column; max-width: none; }
  .hero-mini-input { width: 100%; min-height: 48px; font-size: 16px; }
  .hero-mini-form .btn-primary { width: 100%; text-align: center; min-height: 48px; }
  .hero-mini-note { text-align: center; }
  .hero-mini-done { max-width: none; }

  /* TASK 3 — infinite marquee: single row scrolling left→right, pause on tap */
  .trust-bar { padding: 12px 0; }
  .trust-bar-track {
    flex-wrap: nowrap; justify-content: flex-start; width: max-content;
    gap: 0; max-width: none;
    animation: trustMarquee 22s linear infinite;
  }
  .trust-bar-track:active { animation-play-state: paused; }
  .tb-dup { display: inline-flex; }
  .tb-item { font-size: 12px; padding: 4px 0; margin-right: 26px; }
  /* Separator on every item (incl. the last) so both halves are identical
     and the translateX(-50%) loop is perfectly seamless */
  .tb-item::after { content: '·'; color: var(--text-dim); margin-left: 26px; }

  /* TASK 4 — single column, full-width cards */
  .proof-grid { grid-template-columns: 1fr; gap: 18px; }
  .proof-stars .stars { font-size: 22px; }

  /* TASK 6 — full-width fields handled by existing .lead-form rules;
     keep alt link + note centered and badge readable */
  .form-badge { align-self: stretch; text-align: center; }
  .lead-form input { min-height: 48px; }
}

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

/* =============================================================================
   Cookie consent banner (consent.js) + legal pages (privacy / cookies)
   ============================================================================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--bg-2); border-top: 1px solid var(--border-2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--container-padding);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 360px; min-width: 0; }
.cookie-banner-text strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.cookie-banner-text p { font-size: .85rem; line-height: 1.5; color: var(--text-muted); margin: 0; }
.cookie-banner-text a { color: var(--orange); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px;
  padding: 12px 22px; min-height: 46px; border: 1px solid var(--border-2);
  transition: background .2s, border-color .2s, transform .1s;
}
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn-reject { background: transparent; color: var(--text); }
.cookie-btn-reject:hover { border-color: var(--text-muted); background: var(--bg-3); }
.cookie-btn-accept { background: var(--orange); color: #fff; border-color: var(--orange); }
.cookie-btn-accept:hover { background: #ff7a1a; }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

/* ---- Legal pages (privacy / cookies) ---- */
.legal-wrap {
  max-width: 820px; margin: 0 auto;
  padding: 130px var(--container-padding) 90px;
}
.legal-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 8px; }
.legal-wrap .legal-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 40px; }
.legal-wrap h2 {
  font-size: 1.35rem; margin: 44px 0 14px; padding-top: 8px; color: var(--text);
  border-top: 1px solid var(--border);
}
.legal-wrap h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--text); }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); line-height: 1.7; font-size: .95rem; }
.legal-wrap p { margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 18px; padding-left: 22px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--orange); text-decoration: underline; }
/* Buttons keep their own colours — don't inherit the orange link colour above */
.legal-wrap a.btn-primary { color: #fff; text-decoration: none; }
.legal-wrap strong { color: var(--text); }
.legal-wrap address { font-style: normal; color: var(--text-muted); line-height: 1.7; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .85rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--border);
  vertical-align: top; color: var(--text-muted);
}
.legal-table th { background: var(--bg-3); color: var(--text); font-weight: 600; }
.legal-table td code { color: var(--orange); font-size: .85em; }
.legal-toc {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 36px;
}
.legal-toc strong { display: block; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 4px; }
@media (max-width: 600px) {
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table th,
  .legal-table td, .legal-table tr { display: block; }
  .legal-table thead { display: none; }
  .legal-table td { border: none; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .legal-table tr { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
  .legal-table td::before { content: attr(data-label) ": "; color: var(--text); font-weight: 600; }
}

/* ---- Footer legal links ---- */
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.footer-legal a, .footer-legal button {
  color: var(--text-muted); font: inherit; font-size: .85rem; background: none;
  border: none; cursor: pointer; text-decoration: none; padding: 0;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--orange); }
