/* Keyi Lighting — keyilight.com
   Visual identity follows the reference sites Derchi / Primor
   (derchivoordeur.com, derchihaustuer.de, primordoor.com):
   dark navy #0A111F / #121B2B, gold #C49A45 / #B88934, blue #1865F2,
   white + light grey #F5F7FA surfaces, Montserrat headings + Inter body.
   Copper / warm off-white are retired as primary colours. */
:root {
  --navy: #0A111F;
  --navy-2: #121B2B;
  --navy-3: #1B2A44;
  --gold: #C49A45;
  --gold-d: #B88934;
  --gold-light: #D5B99A;
  --blue: #1865F2;
  --blue-2: #0B5CE3;
  --bg: #FFFFFF;
  --gray: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #1A1D24;
  --muted: #5A6270;
  --line: #E5E8ED;
  --radius: 14px;
  --max: 1180px;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-dark { background: var(--navy); color: #EDE8DF; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #B9BFC4; }
.section-dark a { color: var(--gold-light); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .75rem;
  font-family: var(--font-display); font-weight: 700; color: var(--gold-d); margin-bottom: 12px;
}
.section-dark .eyebrow { color: var(--gold-light); }
.narrow { max-width: 760px; }

/* header — dark navy bar, white uppercase Montserrat menu (Derchi/Primor) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { flex: 0 0 auto; }
.brand img { height: 62px; width: auto; }
.brand:hover { text-decoration: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.main-nav a:hover { text-decoration: none; color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }

/* mobile nav toggle — hidden on desktop, hamburger under 900px */
.nav-toggle {
  display: none; margin-left: auto; background: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 10px 12px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
.nav-toggle span:first-child { margin-top: 0; }
.nav-toggle span:last-child { margin-bottom: 0; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178A45; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-d); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EAF2FF; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.text-link { font-weight: 600; }

/* hero — full-width factory photo (v4: workers left, wall sign upper
   centre-left, clean empty floor lower-right). Copy sits ON the photo in
   the lower-right clean zone, fused by a low-intensity navy gradient
   scrim that starts right of the workers and stays clear of the sign —
   no solid panel, the photo shows through. Layout per company Codex
   spec (keyi-hero-qc/v4/layout-opinion.md): copy left edge 55%, top 36%,
   width 40%, 5% right gutter. */
.hero { position: relative; min-height: clamp(740px, 56.25vw, 96vh); background: var(--navy); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right,
    rgb(10 17 31 / 0) 0%,
    rgb(10 17 31 / 0) 48%,
    rgb(10 17 31 / .24) 51%,
    rgb(10 17 31 / .68) 55%,
    rgb(10 17 31 / .73) 76%,
    rgb(10 17 31 / .68) 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, transparent 32%, black 36%, black 77%,
    rgb(0 0 0 / .65) 90%, rgb(0 0 0 / .45) 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, transparent 32%, black 36%, black 77%,
    rgb(0 0 0 / .65) 90%, rgb(0 0 0 / .45) 100%);
}
.hero-copy {
  position: absolute; left: 55%; top: 36%; width: 40%;
  color: #F8FAFC; display: flex; flex-direction: column; align-items: flex-start;
}
.hero-tag {
  display: inline-flex;
  font-family: var(--font-display); font-size: clamp(11px, .68vw, 13px); font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase; color: var(--navy);
  background: var(--gold); border-radius: 999px;
  padding: 6px 11px; margin: 0 0 clamp(12px, .83vw, 16px);
}
.hero-copy h1 {
  color: #F8FAFC; font-size: clamp(48px, 3.33vw, 64px); line-height: 1.03; font-weight: 800;
  letter-spacing: -.025em; margin: 0 0 clamp(14px, .94vw, 18px); max-width: none;
  text-shadow: 0 2px 10px rgb(10 17 31 / .4);
}
.hero-sub { font-size: clamp(17px, 1.04vw, 20px); line-height: 1.45; color: #F1F5F9; max-width: clamp(440px, 26.5vw, 510px); margin-bottom: 0; text-shadow: 0 2px 10px rgb(10 17 31 / .4); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: clamp(20px, 1.25vw, 24px) 0 0; }
.hero-cta .btn { font-size: clamp(15px, .83vw, 16px); min-height: clamp(46px, 2.7vw, 52px); padding: 0 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.hero-cta .btn-wa { background: #25D366; color: var(--navy); }
.hero-cta .btn-wa:hover { background: #1FB457; color: var(--navy); }

/* trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--gray); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 24px; }
.trust-grid strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.trust-grid span { color: var(--muted); font-size: .92rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.card-tag { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--gold-d); margin: 0 0 10px; }
.card h3 { margin-bottom: 10px; }
.card h3 a { color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
/* cards on a dark section: slightly lighter navy, light text, gold links */
.section-dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.10); }
.section-dark .card h3 a { color: #fff; }
.section-dark .card p { color: #C9CDD1; }
.section-dark .card .card-tag { color: var(--gold); }
.section-dark .card a { color: var(--gold-light); }

/* split + lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { padding: 8px 0 8px 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 10px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg) translateY(-2px);
}
.steps { list-style: none; counter-reset: step; margin: 0 0 1.4em; padding: 0; }
.steps li { counter-increment: step; padding: 10px 0 10px 52px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.markets h3 { color: var(--gold-light); }
.markets p { color: #C9CDD1; }
.note {
  background: var(--gray); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 16px 20px; color: var(--muted);
}

/* page hero */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow a { color: var(--gold-d); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9CDD1; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-wa { margin-right: 10px; }

/* form */
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
form input, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid #CFC8BA; border-radius: 10px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-note { font-size: .92rem; color: var(--muted); }
form .error { border-color: #B3261E !important; }

/* footer */
.site-footer { background: var(--navy); color: #B9BFC4; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #C9CDD1; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px 28px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* 768–1199 px: copy stays ON the photo (Codex spec §5a). */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-copy { left: 54%; top: 36%; width: 42%; padding-bottom: 40px; }
  .hero-copy h1 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.05; }
  .hero-sub { font-size: 16px; line-height: 1.44; }
  .hero-tag { font-size: 11px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { min-height: 44px; }
  .hero-scrim {
    background: linear-gradient(to right,
      rgb(10 17 31 / 0) 0%, rgb(10 17 31 / 0) 48%,
      rgb(10 17 31 / .24) 50%, rgb(10 17 31 / .68) 54%,
      rgb(10 17 31 / .73) 76%, rgb(10 17 31 / .68) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%, transparent 32%, black 36%, black 90%,
      rgb(0 0 0 / .65) 95%, rgb(0 0 0 / .45) 100%);
    mask-image: linear-gradient(to bottom,
      transparent 0%, transparent 32%, black 36%, black 90%,
      rgb(0 0 0 / .65) 95%, rgb(0 0 0 / .45) 100%);
  }
}
/* Below 768 px: portrait treatment (Codex spec §5b). The portrait asset
   is the full-width source frame on top with the concrete foreground
   extended downward; copy sits ON the extended floor, 16 px below the
   frame bottom, 6% gutters, CTAs stacked. */
@media (max-width: 767px) {
  .hero { min-height: 0; display: block; }
  .hero picture, .hero img { object-position: top center; }
  .hero-scrim {
    top: calc(56.25vw * .87); /* bottom of the lowest worker */
    background: linear-gradient(to bottom,
      rgb(10 17 31 / 0) 0%,
      rgb(10 17 31 / .68) 12%,
      rgb(10 17 31 / .74) 40%,
      rgb(10 17 31 / .70) 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-copy {
    position: relative; left: auto; top: auto; width: auto;
    margin: calc(56.25vw + 16px) 6% 0; padding-bottom: 24px;
  }
  .hero-copy h1 { font-size: clamp(28px, 8.7vw, 34px); line-height: 1.06; }
  .hero-sub { font-size: 16px; line-height: 1.44; }
  .hero-tag { font-size: 11px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta .btn { min-height: 44px; }
}
@media (max-width: 900px) {
  .trust-grid, .cards, .markets { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 30px rgba(10,17,31,.35);
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; padding: 8px 24px 16px; }
  .site-header.nav-open .main-nav a { padding: 12px 14px; }
  .header-inner { gap: 16px; }
  .header-inner .btn-wa { margin-left: auto; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .trust-grid, .cards, .markets { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
