/* ==========================================================================
   Helvinda Sourcing & Distribution — style.css
   Swiss-style B2B design system: strict grid, restrained color, Inter.
   ========================================================================== */

/* ---- Fonts (self-hosted, GDPR-safe) ---- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}

/* ---- Tokens ---- */
:root {
  --navy-950: #0b2038;
  --navy-900: #0f2a47;
  --navy-800: #123252;
  --navy-700: #1c4670;
  --navy-100: #dbe6f1;
  --navy-050: #eef3f8;
  --amber-600: #c07a2b;
  --amber-500: #d99a4e;
  --amber-100: #f7e9d4;
  --ink-900: #16202b;
  --ink-700: #33414f;
  --ink-500: #5a6b7c;
  --line: #dde4ea;
  --paper: #ffffff;
  --paper-off: #f6f8fa;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, .06), 0 1px 6px rgba(15, 42, 71, .05);
  --shadow-md: 0 4px 10px rgba(15, 42, 71, .07), 0 12px 32px rgba(15, 42, 71, .08);
  --container: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 2px solid var(--amber-600); outline-offset: 2px; }

/* ---- Type scale ---- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-900); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-700); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-600); margin-bottom: .9rem;
}
.muted { color: var(--ink-500); }
.small { font-size: .9rem; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--off { background: var(--paper-off); }
.section--navy { background: var(--navy-900); color: #d9e4ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: .9rem; color: var(--ink-700); }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--amber-600); color: #fff; }
.btn--primary:hover { background: #a96a22; }
.btn--outline { border-color: var(--navy-100); color: var(--navy-900); background: transparent; }
.btn--outline:hover { border-color: var(--navy-700); }
.section--navy .btn--outline, .hero .btn--outline { border-color: rgba(255,255,255,.45); color: #fff; }
.section--navy .btn--outline:hover, .hero .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy-900); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand .brand-name { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.1; }
.brand .brand-sub { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { color: var(--ink-700); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--navy-900); text-decoration: none; }
.site-nav a.active { color: var(--navy-900); font-weight: 600; box-shadow: 0 2px 0 var(--amber-600); }
.site-nav .btn { padding: .55rem 1.15rem; font-size: .9rem; }
.lang-switch {
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  color: var(--ink-500) !important; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .35rem .6rem;
}
.lang-switch:hover { border-color: var(--navy-700); color: var(--navy-900) !important; }
.lang-group { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--paper-off); }
  .site-nav a.active { box-shadow: none; color: var(--amber-600); }
  .site-nav .btn { margin-top: .9rem; justify-content: center; }
  .lang-group { margin-top: .9rem; }
  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); }
}

/* ---- Hero ---- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 27, 46, .93) 0%, rgba(11, 32, 56, .82) 45%, rgba(11, 32, 56, .45) 100%);
  z-index: 1;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 40rem; margin-top: 1.3rem; }
.hero .eyebrow { color: var(--amber-500); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Sub-page hero */
.page-hero { background: var(--navy-900); color: #fff; }
.page-hero .container { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); margin-top: 1rem; max-width: 44rem; }
.page-hero .eyebrow { color: var(--amber-500); }

/* ---- Trust bar ---- */
.trust-bar { background: var(--navy-950); color: #b9c9d8; position: relative; z-index: 2; }
.trust-bar ul {
  list-style: none; padding: 1rem 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; justify-content: center;
  font-size: .88rem; font-weight: 500;
}
.trust-bar li { display: flex; align-items: center; gap: .5rem; }
.trust-bar li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-500); flex: none; }

/* ---- Cards ---- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .7rem;
}
.card h3 { margin-top: .2rem; }
.card p { color: var(--ink-700); font-size: .97rem; }
.card .icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  background: var(--navy-050); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 1.4rem; height: 1.4rem; }
.card ul { font-size: .93rem; color: var(--ink-700); margin-top: .2rem; display: grid; gap: .3rem; }

/* Category cards with image */
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.cat-card img { height: 180px; width: 100%; object-fit: cover; }
.cat-card .cat-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.cat-card h3 { font-size: 1.08rem; }
.cat-card p { font-size: .92rem; color: var(--ink-700); }

/* ---- Split (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split h2 { margin-bottom: 1rem; }
.split p + p { margin-top: .9rem; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; display: grid; gap: .85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-700); }
.checklist li strong { color: var(--ink-900); }
.checklist .check {
  flex: none; width: 1.35rem; height: 1.35rem; margin-top: .18rem; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}

/* ---- Process steps ---- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2rem; font-weight: 700; color: var(--navy-100);
  line-height: 1;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-700); font-size: .98rem; max-width: 56rem; }
.step .step-meta { margin-top: .5rem; font-size: .85rem; color: var(--ink-500); font-weight: 500; }
@media (max-width: 640px) { .step { grid-template-columns: 3rem 1fr; gap: 1rem; } .step::before { font-size: 1.5rem; } }

/* ---- Pillars (numbered feature list) ---- */
.pillar { border-left: 3px solid var(--amber-600); padding-left: 1.4rem; }
.pillar h3 { margin-bottom: .45rem; }
.pillar p { color: var(--ink-700); font-size: .97rem; }
.section--navy .pillar p { color: #c3d2e0; }

/* ---- Facts table ---- */
.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
.facts th, .facts td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--navy-900); font-weight: 600; white-space: nowrap; }
.facts td { color: var(--ink-700); }
.table-scroll { overflow-x: auto; }

/* ---- FAQ ---- */
.faq { display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; font-weight: 500; color: var(--amber-600); flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-700); font-size: .97rem; }
.faq details > div p + p { margin-top: .7rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--navy-900); color: #fff; }
.cta-band .container {
  padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2e0; margin-top: .8rem; max-width: 36rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; }
@media (max-width: 880px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { display: grid; gap: 1.6rem; align-content: start; }
.contact-item h4 { margin-bottom: .25rem; }
.contact-item p, .contact-item a { color: var(--ink-700); font-size: .98rem; }
.contact-item a { font-weight: 600; color: var(--navy-700); }
form.contact-form { display: grid; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink-900);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  width: 100%; min-width: 0;
}
/* Prevent intrinsic content width (e.g. long <select> options) from forcing
   grid tracks wider than the viewport on small screens */
.grid > *, .contact-grid > *, .form-row > *, .split > *, .field > * { min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy-700); outline-offset: 0; border-color: var(--navy-700); }
.form-note { font-size: .84rem; color: var(--ink-500); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: #a8bacb; font-size: .93rem; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4rem) 0 2.5rem;
}
@media (max-width: 880px) { .site-footer .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-main { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #a8bacb; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand p { margin-top: .9rem; max-width: 26rem; line-height: 1.6; }
.site-footer .footer-brand .brand { color: #fff; }
.site-footer .footer-brand .brand-sub { color: #7f95a9; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  justify-content: space-between; font-size: .85rem; color: #7f95a9;
}
.footer-legal ul { list-style: none; padding: 0; display: flex; gap: 1.6rem; }
.footer-legal a { color: #7f95a9; }

/* ---- Legal pages ---- */
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal-body p, .legal-body li { color: var(--ink-700); font-size: .98rem; }
.legal-body p + p { margin-top: .8rem; }
.placeholder { background: var(--amber-100); padding: 0 .3em; border-radius: 3px; }

/* ---- Reveal animation (subtle) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Utility ---- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.25rem; }
.center { text-align: center; }
.center .section-head, .center .eyebrow { margin-left: auto; margin-right: auto; }
