/* ============================================================
   Hako NZ — Design System
   Premium industrial. Graphite + Hako red-orange.
   ============================================================ */

:root {
  /* Brand — per Hako CI Guidelines 08/2024 */
  --brand:        #CB2821;   /* Hako Red — Pantone 179 C */
  --brand-600:    #b21f19;
  --brand-700:    #8f1913;
  --brand-tint:   #f7e3e1;

  /* Graphite / dark surfaces — anthracite #293133 family */
  --ink:          #20262a;   /* primary text on light */
  --graphite-900: #181d1f;
  --graphite-850: #1f2628;
  --graphite-800: #283133;   /* anthracite */
  --graphite-700: #34403f;
  --graphite-600: #43504f;

  /* Light surfaces */
  --paper:        #ffffff;
  --mist:         #f3f4f5;
  --mist-2:       #e9ebec;
  --line:         #dfe1e2;
  --muted:        #5c6466;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20,24,28,.06), 0 1px 3px rgba(20,24,28,.08);
  --shadow-md: 0 10px 30px -12px rgba(20,24,28,.22);
  --shadow-lg: 0 30px 60px -20px rgba(20,24,28,.32);
  --shadow-brand: 0 16px 40px -16px rgba(203,40,33,.5);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1240px;

  /* Corporate font: Helvetica Neue; Arial = official web substitute */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* Product names / signature headlines in black italic, echoing the Hako logo */
.hero h1, .pd-title, .cat-card h3 { font-style: italic; }
.pcard__cta span:first-child { font-style: italic; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block;
}
.eyebrow--center::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }

.section-head { max-width: 720px; }
.section-head h2 { margin-top: .7rem; }
.section-head .lead { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  letter-spacing: .01em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover { background: var(--brand-600); box-shadow: var(--shadow-brand); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--brand-600); box-shadow: var(--shadow-lg); }

.btn--on-dark.btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; color: var(--brand);
  font-size: .98rem;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 84px;
  transition: height .35s var(--ease);
}
.site-header.is-stuck { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.site-header.is-stuck .site-header__inner { height: 68px; }

.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; transition: height .35s var(--ease); }
.site-header.is-stuck .brand-logo img { height: 30px; }
.brand-logo .logo-light { display: block; }
.brand-logo .logo-dark { display: none; }
.site-header.is-stuck .logo-light { display: none; }
.site-header.is-stuck .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  position: relative; font-weight: 600; font-size: .98rem; color: #fff; padding-block: .4rem;
  transition: color .25s var(--ease);
}
.site-header.is-stuck .nav a { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover, .nav a.is-active { color: var(--brand); }
.site-header.is-stuck .nav a:hover, .site-header.is-stuck .nav a.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff;
  font-family: var(--font-display);
}
.site-header.is-stuck .header-phone { color: var(--ink); }
.header-phone svg { width: 1.1em; height: 1.1em; color: var(--brand); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 80;
}
.nav-toggle span { display:block; width: 26px; height: 2px; background: #fff; margin: 5px auto; transition: .3s var(--ease); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span { background: var(--ink); }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: 2rem clamp(1.5rem,6vw,3rem);
  transform: translateX(100%); transition: transform .45s var(--ease-out);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--ink); padding-block: .35rem; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a:hover { color: var(--brand); }
.mobile-nav .btn { margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 100% at 70% 20%, #2b343b 0%, #181d22 45%, #0f1316 100%);
  color: #fff; overflow: hidden; padding-top: 84px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__lineup {
  position: absolute; right: -1%; bottom: 7%; width: min(62%, 1040px);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.5));
  will-change: transform;
}
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,51,18,.22), transparent 62%);
  top: -10%; right: -6%; filter: blur(10px);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(13,17,20,.96) 0%, rgba(13,17,20,.82) 30%, rgba(13,17,20,.32) 56%, rgba(13,17,20,0) 80%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero.has-video .hero__lineup { display: none; }
.hero.has-video .hero__scrim { background: linear-gradient(95deg, rgba(13,17,20,.92) 0%, rgba(13,17,20,.74) 34%, rgba(13,17,20,.4) 62%, rgba(13,17,20,.25) 100%); }
.hero__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__inner { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--brand); }
.hero__lead { color: rgba(255,255,255,.78); font-size: clamp(1.05rem,1.6vw,1.3rem); max-width: 46ch; margin-top: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.2rem; }
.hero__stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,3.5vw,2.8rem); color: #fff; line-height: 1; }
.hero__stat .lab { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .4rem; letter-spacing: .02em; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
  color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:6px; left:50%; transform: translateX(-50%); width:3px; height:7px; background:#fff; border-radius:2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 60%{opacity:1; transform:translate(-50%,9px);} 100%{opacity:0; transform:translate(-50%,12px);} }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--graphite-900); color: rgba(255,255,255,.7);
  padding-block: 1.6rem; overflow: hidden;
}
.trust__row { display: flex; align-items: center; gap: clamp(1.2rem,3vw,2.4rem); white-space: nowrap; }
.trust__label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); flex: none; position: relative; z-index: 2; background: var(--graphite-900); padding-right: 1.2rem; }
.marquee-track { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 90%, transparent); }
.marquee { display: flex; gap: clamp(2rem,5vw,4rem); align-items: center; animation: marquee 32s linear infinite; width: max-content; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: rgba(255,255,255,.65); flex: none; }
.marquee span::before { content: "—"; margin-right: clamp(2rem,5vw,4rem); color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust:hover .marquee { animation-play-state: paused; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 440px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  background: var(--graphite-800);
}
.cat-card__img { position: absolute; inset: 0; z-index: -1; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,19,22,0) 30%, rgba(15,19,22,.55) 62%, rgba(15,19,22,.92) 100%);
}
.cat-card:hover .cat-card__img img { transform: scale(1.07); }
.cat-card__body { padding: 2rem; width: 100%; }
.cat-card__count { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.cat-card h3 { color: #fff; margin: .5rem 0 .6rem; font-size: 1.6rem; }
.cat-card p { color: rgba(255,255,255,.78); font-size: .96rem; margin: 0 0 1.1rem; }
.cat-card .link-arrow { color: #fff; }
.cat-card .link-arrow svg { transition: transform .3s var(--ease); }
.cat-card:hover .link-arrow { color: var(--brand); }
.cat-card:hover .link-arrow svg { transform: translateX(5px); }

/* ---------- Product cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-btn {
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media {
  position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, var(--mist), var(--mist-2));
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; transition: transform .6s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__tag {
  position: absolute; top: 1rem; left: 1rem; font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(20,24,28,.82); color: #fff; padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.3rem; }
.product-card__desc { color: var(--muted); font-size: .94rem; margin: .5rem 0 1.1rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.spec-list li { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--mist); border: 1px solid var(--line); padding: .3rem .6rem; border-radius: 6px; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- Product cards (designed spec-card images) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pcard {
  display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.pcard:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__img { overflow: hidden; line-height: 0; }
.pcard__img img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.045); }
.pcard__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  border-top: 1px solid var(--line); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.pcard:hover .pcard__cta { color: var(--brand); background: var(--brand-tint); }
.pcard__cta svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.pcard:hover .pcard__cta svg { transform: translateX(4px); }
.pcard:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Video (click-to-play with controls) ---------- */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow-lg); }
.video-embed .poster { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.video-embed:hover .poster { transform: scale(1.04); }
.video-embed video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.video-embed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.28), transparent 55%); pointer-events: none; transition: opacity .3s; }
.video-embed__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-embed__play button { width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-brand); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.video-embed:hover .video-embed__play button { transform: scale(1.08); background: var(--brand-600); }
.video-embed__play svg { width: 32px; height: 32px; margin-left: 5px; }
.video-embed__label { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.video-embed.is-playing .video-embed__play, .video-embed.is-playing .video-embed__label, .video-embed.is-playing::after { opacity: 0; pointer-events: none; }
.video-embed:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Autonomous feature band ---------- */
.auto-band { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 140% at 88% 8%, #34403f, #181d1f 62%); color: #fff; box-shadow: var(--shadow-lg); }
.auto-band__media { position: relative; min-height: 360px; }
.auto-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auto-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, #181d1f 96%); }
.auto-band__badge { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; padding: .42rem .9rem; border-radius: 999px; }
.auto-band__body { padding: clamp(2rem, 4vw, 3.4rem); align-self: center; }
.auto-band__body h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic; margin: .5rem 0 .8rem; }
.auto-band__body p { color: rgba(255,255,255,.8); max-width: 46ch; margin: 0 0 1.6rem; }
@media (max-width: 760px) {
  .auto-band { grid-template-columns: 1fr; }
  .auto-band__media { min-height: 240px; }
  .auto-band__media::after { background: linear-gradient(0deg, #181d1f 6%, transparent 60%); }
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list strong { display: block; font-family: var(--font-display); }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__icon { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; margin-bottom: 1.3rem; transition: background .35s var(--ease); }
.service-card__icon img { width: 42px; height: 42px; object-fit: contain; }
.service-card:hover .service-card__icon { background: var(--brand-tint); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .94rem; margin: .5rem 0 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--graphite-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; color: #fff; }
.stat .num .unit { color: var(--brand); }
.stat .lab { color: rgba(255,255,255,.6); margin-top: .6rem; font-size: .92rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 2.4rem; }
.timeline::before { content:""; position:absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 64px; }
.tl-item::before { content:""; position:absolute; left: 12px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); z-index: 1; }
.tl-year { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 1.2rem; }
.tl-item h3 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.tl-item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 80% 10%, #2b343b, #14181c 60%);
  padding: clamp(2.5rem, 6vw, 5rem);
}
.cta-band__glow { position: absolute; width: 50%; height: 200%; right: -10%; top: -50%; background: radial-gradient(circle, rgba(230,51,18,.28), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.78); position: relative; max-width: 52ch; }
.cta-band .hero__cta { margin-top: 2rem; position: relative; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--mist);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-tint);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success.show { display: block; animation: fadeUp .5s var(--ease) both; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin: 0 auto 1.2rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-item .ci-icon { flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item strong { font-family: var(--font-display); display:block; }
.contact-item a, .contact-item span { color: var(--muted); }
.contact-item a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-900); color: rgba(255,255,255,.66); padding-block: clamp(3rem,6vw,5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer img.flogo { height: 30px; margin-bottom: 1.2rem; }
.site-footer h4 { font-family: var(--font-display); color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-legal { flex-basis: 100%; order: 3; font-size: .76rem; line-height: 1.5; color: rgba(255,255,255,.35); margin-top: .4rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.07); }
.social { display: flex; gap: .7rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: all .25s var(--ease); }
.social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: radial-gradient(120% 130% at 75% 0%, #2b343b, #14181c 65%); color: #fff; padding: calc(84px + clamp(3rem,7vw,6rem)) 0 clamp(3rem,7vw,5.5rem); position: relative; overflow: hidden; }
.page-hero__glow { position:absolute; width:46vw; height:46vw; border-radius:50%; right:-8%; top:-20%; background: radial-gradient(circle, rgba(230,51,18,.2), transparent 62%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.78); margin-top: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Product detail (Porsche-inspired) ---------- */
.pd-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(130% 130% at 50% 0%, #2b343b, #14181c 64%);
  padding: calc(84px + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 7vw, 5rem);
}
.pd-hero__glow { position: absolute; width: 55vw; height: 55vw; border-radius: 50%; left: 50%; top: -28%; transform: translateX(-50%); background: radial-gradient(circle, rgba(230,51,18,.18), transparent 62%); pointer-events: none; }
.pd-hero .container { position: relative; z-index: 1; }
.pd-hero .breadcrumb { color: rgba(255,255,255,.5); }
.pd-hero .breadcrumb a:hover { color: #fff; }
.pd-title { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); margin: .7rem 0 0; }
.pd-tagline { color: rgba(255,255,255,.76); max-width: 60ch; margin: 1.2rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.pd-chips { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 0; padding: 0; }
.pd-chips li { list-style: none; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .45rem 1rem; }

.pd-stage { background: radial-gradient(130% 120% at 50% 8%, #ffffff, var(--mist) 82%); border-bottom: 1px solid var(--line); }
.pd-stage .container { display: flex; align-items: center; justify-content: center; min-height: clamp(360px, 58vh, 640px); padding-block: clamp(2rem, 5vw, 4rem); }
.pd-stage img { max-width: min(100%, 1080px); max-height: clamp(300px, 50vh, 560px); width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 34px 52px rgba(20,24,28,.20)); }

.pd-showcase { background: var(--mist); }
.pd-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pd-visual { display: flex; justify-content: center; }
.pd-visual img { width: 100%; max-width: 360px; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pd-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pd-features { list-style: none; padding: 0; margin: 1.7rem 0 2.2rem; display: grid; gap: 1.15rem; }
.pd-features li { display: flex; gap: .9rem; align-items: flex-start; }
.pd-features .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.pd-features .tick svg { width: 15px; height: 15px; }
.pd-features span { color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.pd-note { color: var(--muted); font-size: .88rem; margin-top: 1.5rem; max-width: 52ch; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } .pd-visual { order: -1; } .pd-visual img { max-width: 300px; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }
.reveal[data-delay="4"]{ transition-delay:.32s; }
.reveal[data-delay="5"]{ transition-delay:.40s; }

@keyframes fadeUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .product-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 760px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .card-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero { min-height: auto; padding-block: 130px 90px; }
  .hero__lineup { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 2.5rem; opacity: .96; }
  .hero__bg .hero__lineup { display: none; }
  .hero__inner { max-width: 100%; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cat-grid, .product-grid, .service-grid, .field-row { grid-template-columns: 1fr; }
  .cta-band { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__lineup { transform: none !important; }
}
