/* Valoron website: layout and components. Values come from tokens.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
img { display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.container { max-width: var(--page-max); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }

.kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--cool-grey);
}

/* ── Logo (inline SVG wordmark, always amber) ── */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; }
.logo svg { display: block; width: auto; }
.logo:hover { text-decoration: none; }
.logo-tagline {
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--navy-300); padding-left: 2px; margin-top: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 10px 20px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: 0.01em; white-space: nowrap;
  border-radius: var(--radius-md); border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 34px; padding: 7px 14px; font-size: 13px; gap: 6px; }
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-primary:active { background: var(--amber-press); }
.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--border-default); }
.btn-outline:hover { background: var(--surface-sunken); }
.btn svg { flex: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  /* Slightly see-through off-white; no backdrop blur (design system: no frosted-glass chrome) */
  background: rgba(248, 248, 248, 0.82);
  border-bottom: 1px solid var(--border-default);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.site-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.header-actions { display: flex; gap: 12px; align-items: center; }

/* Mobile menu (shown below 900px, where the inline nav is hidden) */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; color: var(--navy-700);
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--surface-sunken); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }
.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-default);
  padding: 8px var(--page-pad) 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0; font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ── Hero ── */
.hero { padding-top: 128px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-weight: 700; font-size: clamp(64px, 10vw, 144px);
  line-height: 1; letter-spacing: -0.035em;
}
.hero-sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: 32px; line-height: 1.15; letter-spacing: var(--tracking-tight);
  margin: 56px 0 48px; max-width: 640px;
}

/* ── USP cards ── */
.usps { padding-top: 64px; padding-bottom: 96px; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.usp {
  background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 40px; min-height: 240px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.usp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.usp-kicker { font-size: 13px; font-weight: 600; color: var(--cool-grey); }
.usp-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; min-height: 2.4em; }
.usp-body { font-size: 16px; line-height: 1.55; color: var(--cool-grey); flex: 1; margin: 0; }
.stat {
  border-top: 1px solid var(--border-default); padding-top: 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--amber); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--cool-grey); }

/* ── Problem (full-width dark band) ── */
.problem {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  margin-bottom: 96px; scroll-margin-top: 72px;
  /* Band grows with viewport width so wide screens don't crop the photo down to a sliver of sky */
  min-height: clamp(420px, 34vw, 640px);
  display: flex; align-items: center;
}
.problem-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3;
  /* Keep plant and waste pile in frame (plant sits upper right in the image) */
  object-position: 75% 35%;
}
.problem .container {
  position: relative; width: 100%;
  padding-top: 128px; padding-bottom: 128px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: end;
}
.problem .kicker { color: var(--navy-300); margin-bottom: 16px; }
.problem h2 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.08; letter-spacing: var(--tracking-tight); max-width: 560px; }
.problem p { font-size: 18px; line-height: 1.6; margin: 0 0 24px; max-width: 480px; }
.problem .stat { border-top-color: var(--border-on-dark); padding-top: 24px; gap: 16px; }
.problem .stat-num { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.problem .stat-label { color: var(--white); letter-spacing: 0.06em; }

/* ── Teasers (solution / markets / company) ── */
.teasers { padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.teaser {
  scroll-margin-top: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  overflow: hidden;
}
.teaser-media {
  position: relative; overflow: hidden; min-height: 340px;
  background: var(--ice-base);
  display: flex; align-items: center; justify-content: center;
}
.teaser-media .contain { width: 80%; height: 300px; object-fit: contain; }
.teaser-media .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Brand duotone: shadows navy, highlights off-white (filter defined in the page's SVG sprite) */
.duotone { filter: url(#duotone); }
.duotone-soft { filter: url(#duotone-soft); }
.teaser--flip .teaser-media { order: 1; }
.teaser-text { padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.teaser-text h3 { font-size: 32px; line-height: 1.15; letter-spacing: var(--tracking-tight); }
.teaser-text p { font-size: 17px; line-height: 1.6; color: var(--cool-grey); margin: 0; max-width: 440px; }
.teaser-cta { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; margin-top: 8px; }
.teaser-cta svg { color: var(--amber); }


/* ── Backed by ── */
.backers { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: var(--white); }
.backers .container { padding-top: 48px; padding-bottom: 48px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.backers .kicker { min-width: 160px; }
.backer-logos { display: flex; gap: 48px 64px; align-items: center; justify-content: space-between; flex-wrap: wrap; flex: 1; }
.backer-logos img { height: 44px; width: auto; max-width: 220px; object-fit: contain; filter: grayscale(1); }
.backer { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.backer figcaption { font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--cool-grey); }

/* ── Newsletter ── */
.newsletter {
  padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center;
}
.newsletter h2 { font-size: 36px; line-height: 1.15; letter-spacing: var(--tracking-tight); }
.newsletter p { font-size: 17px; line-height: 1.6; color: var(--cool-grey); margin: 16px 0 0; max-width: 460px; }
/* Brevo form measures 640-670px tall; extra room for the success/error message after submit */
.brevo-frame { width: 100%; height: 720px; border: 0; display: block; overflow: hidden; }
.brevo-consent {
  background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.brevo-consent p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--cool-grey); max-width: none; }
.brevo-consent a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

/* ── Footer ── */
.site-footer { background: var(--navy-900); color: var(--navy-300); }
.footer-grid {
  padding-top: 64px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col a, .footer-col strong { color: var(--white); }
.footer-col strong { font-weight: 600; }
.footer-bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border-on-dark); font-size: 13px; }

/* ── Toast (contact address copied) ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--navy-900); color: var(--white);
  font-size: 14px; font-weight: 500; padding: 12px 18px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.toast[hidden] { display: none; }

/* ── Legal pages (Impressum, Datenschutz) ── */
.legal { max-width: 800px; margin: 0 auto; padding: 96px var(--page-pad) 128px; line-height: 1.65; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: var(--tracking-tight); line-height: 1.1; margin-bottom: 12px; }
.legal .lead { color: var(--cool-grey); font-size: 14px; margin-bottom: 48px; }
.legal h2 {
  font-size: 20px; font-weight: 600; margin: 48px 0 14px;
  padding-bottom: 10px; position: relative;
}
.legal h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--amber); }
.legal h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--text-primary); margin: 0 0 10px; }
.legal ul { margin: 6px 0 14px 22px; padding: 0; }
.legal a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.legal .muted, .legal .emphasis p { color: var(--cool-grey); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 600px) {
  :root { --page-pad: 16px; }
  .header-actions .btn-outline { display: none; }
  .hero { padding-top: 72px; }
  .hero-sub { font-size: 24px; margin: 32px 0 24px; }
  .usp { padding: 28px; }
  .problem .container { padding-top: 80px; padding-bottom: 80px; grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .teaser--flip .teaser-media { order: 0; }
  .teaser-text { padding: 32px 24px; }
  .teaser-media { min-height: 240px; }
  .backer-logos { justify-content: flex-start; gap: 32px 40px; }
  .backer-logos img { height: 36px; }
  .newsletter { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .brevo-frame { height: 760px; }
}

/* Solution teaser: close-up crop so the generic plant reads as a detail, not as "our plant" */
.teaser-media .solution-img { object-position: 68% 38%; transform: scale(1.7); transform-origin: 68% 38%; }

/* Chemical subscripts (CO2): rendered in the brand font instead of the U+2082 glyph, which the latin subset lacks */
sub { font-size: 0.75em; line-height: 0; vertical-align: -0.2em; }

/* Company teaser: keep faces in frame when the image is cropped */
.teaser-media .team-img { object-position: 50% 30%; }
