/* ==========================================================================
   MILWOLT · milwolt.com
   Brand system: Navy #0B2C52 · Kraft #C29560 · Steel #D6D9DE · Cloud #F4F5F7
   Typeface: Archivo (900 display, 800 headlines, 700 caps labels, 400 body)
   ========================================================================== */

:root {
  --navy: #0B2C52;
  --navy-deep: #06203D;
  --kraft: #C29560;
  --steel: #D6D9DE;
  --cloud: #F4F5F7;
  --white: #FFFFFF;
  --red: #D62828;
  --green: #2E9E4F;
  --ink: #1C2733;
  --ink-soft: #4A5563;
  --line: #E3E6EA;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 44, 82, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 44, 82, 0.14);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--kraft);
  outline-offset: 2px;
}

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

/* --- Typography roles ------------------------------------------------- */

h1, .display {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }

h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy);
}

h3 { font-weight: 800; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }

.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kraft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--kraft);
}

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.78); }
.on-dark .eyebrow { color: var(--kraft); }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-lg); }
.btn-kraft { background: var(--kraft); color: var(--navy-deep); }
.btn-kraft:hover { box-shadow: 0 14px 30px rgba(194, 149, 96, 0.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 18px; height: 18px; }

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo { display: inline-block; line-height: 1; }
.logo .wordmark {
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.logo .tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  color: var(--navy);
  margin-top: 3px;
}
.logo .tagline::before, .logo .tagline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy);
}
.on-dark .logo .wordmark, .on-dark .logo .tagline { color: var(--white); }
.on-dark .logo .tagline::before, .on-dark .logo .tagline::after { background: var(--white); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--kraft); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn-header { padding: 11px 20px; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--cloud) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0;
}
.hero-copy .lead { margin: 22px 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-visual .frame {
  background: linear-gradient(160deg, #EDEFF2 0%, var(--steel) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

/* Signature element: floating spec badge on the hero image */
.spec-badge {
  position: absolute;
  top: -18px;
  right: -10px;
  display: flex;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec-badge .cell {
  padding: 12px 18px;
  text-align: center;
}
.spec-badge .cell + .cell { border-left: 2px solid var(--navy); }
.spec-badge .value {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1;
}
.spec-badge .label {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Trust strip under hero */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.trust-strip .item {
  padding: 26px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-strip .item + .item { border-left: 1px solid var(--line); }
.trust-strip svg { width: 34px; height: 34px; stroke: var(--kraft); flex: none; }
.trust-strip .t {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.4;
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 96px 0; }
.section.alt { background: var(--cloud); }
.section.dark { background: var(--navy); }
.section.deep { background: var(--navy-deep); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* --- Cards -------------------------------------------------------------- */

.grid { display: grid; gap: 28px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--navy); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

.section.dark .card, .section.deep .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.section.dark .card .icon, .section.deep .card .icon {
  background: rgba(255, 255, 255, 0.08);
}
.section.dark .card .icon svg, .section.deep .card .icon svg { stroke: var(--kraft); }

/* Category cards */
.cat-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.cat-card .media {
  background: linear-gradient(160deg, #EDEFF2 0%, var(--steel) 100%);
  padding: 30px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card .body { padding: 26px 28px 30px; }
.cat-card .chip {
  display: inline-block;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

/* --- Benefit bar (brandbook component) ---------------------------------- */

.benefit-bar {
  background: var(--navy);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.benefit-bar .b {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 26px;
}
.benefit-bar .b + .b { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.benefit-bar svg { width: 34px; height: 34px; stroke: var(--kraft); flex: none; }
.benefit-bar .bt {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.35;
}
.benefit-bar .bs {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* --- Quality page: spec rows -------------------------------------------- */

.quality-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.quality-row:last-child { border-bottom: none; }
.quality-row.flip .q-media { order: 2; }
.q-media .frame {
  background: linear-gradient(160deg, #EDEFF2 0%, var(--steel) 100%);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.q-copy h3 { font-size: 1.5rem; margin-bottom: 14px; }
.q-copy p { color: var(--ink-soft); }
.q-copy ul { margin-top: 18px; list-style: none; }
.q-copy li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.q-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.q-index {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--kraft);
  margin-bottom: 10px;
}

/* --- Steps (partnership) ------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step .num {
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--steel);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* --- Reach band ---------------------------------------------------------- */

.reach { position: relative; }
.reach .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.reach .stat {
  border-left: 3px solid var(--kraft);
  padding-left: 22px;
}
.reach .stat .v {
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1.1;
}
.reach .stat .l {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

/* --- CTA band ------------------------------------------------------------ */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 640px; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 36px; }

/* --- Contact -------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

.contact-info .block { margin-bottom: 34px; }
.contact-info h3 { margin-bottom: 8px; }
.contact-info p { color: var(--ink-soft); font-size: 0.96rem; }
.contact-info a.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 6px;
}
.contact-info a.mail svg { width: 22px; height: 22px; stroke: var(--kraft); }
.legal-box {
  background: var(--cloud);
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 6px 0 24px;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 48px;
}
.site-footer h4 {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.site-footer p { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Page hero (subpages) ---------------------------------------------------- */

.page-hero {
  background: var(--navy);
  padding: 72px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.78); margin-top: 16px; }
.page-hero .eyebrow { color: var(--kraft); }

/* Dimension-line decorative motif */
.dim-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.4);
}
.dim-line .rule { flex: 1; height: 1.5px; background: currentColor; position: relative; }
.dim-line .rule::before, .dim-line .rule::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1.5px;
  height: 12px;
  background: currentColor;
}
.dim-line .rule::before { left: 0; }
.dim-line .rule::after { right: 0; }
.dim-line .val {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 0 16px;
  white-space: nowrap;
}

/* --- Reveal animation ---------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .benefit-bar { grid-template-columns: repeat(2, 1fr); }
  .benefit-bar .b + .b { border-left: none; }
  .benefit-bar .b:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.14); }
  .benefit-bar .b:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.14); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .item + .item { border-left: none; }
  .trust-strip .item:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-strip .item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quality-row { grid-template-columns: 1fr; gap: 32px; }
  .quality-row.flip .q-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .reach .stats { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 6px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .btn-header { display: none; }
}

@media (max-width: 620px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .spec-badge { right: 8px; top: -14px; }
}
