/* ValVoy — company site
   Design tokens lifted from the original ValVoy design (oldsite/): warm cream
   ground, dark-cocoa ink, terracotta accent, Newsreader display + Hanken
   Grotesk text. The palette is a brand commitment, so there is deliberately no
   dark-mode variant. */

:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --tint: #f4ece0;
  --ink: #241e17;
  --ink-2: #4b443b;
  --muted: #6b6153;
  --faint: #9a8e7c;
  --ghost: #b3a794;
  --line: #ece3d6;
  --line-2: #decfbc;
  --accent: #b65c38;
  --accent-dark: #9c4b2b;
  --dark: #2a2119;
  --on-dark: #fbf7f1;
  --on-dark-muted: #cdbfae;
  --dark-line: #46392f;

  --serif: 'Newsreader', ui-serif, Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  --gutter: 40px;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
  color: var(--on-dark);
}

/* Available to screen readers, invisible on screen. Not `display: none`, which
   would take it out of the accessibility tree along with everything else. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── language switcher ────────────────────────────────────────────────── */

.lang-select {
  flex: none;
}

.lang-select select {
  width: auto;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang-select select:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── layout ───────────────────────────────────────────────────────────── */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band--tint {
  background: var(--tint);
  border: 0;
}

/* padding-block, not the `padding` shorthand: these classes are set on the same
   element as `.wrap`, and a shorthand would reset its horizontal gutter to 0. */
.section {
  padding-block: 84px;
}

.section--tight {
  padding-block: 64px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 44px;
  max-width: 34em;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  font-weight: 500;
  font-size: clamp(30px, 4vw, 40px);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32em;
}

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  flex: none;
}

.brand img {
  display: block;
  flex: none;
  object-fit: contain;
}

.brand span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 15px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
}

.btn--on-dark {
  border-color: var(--dark-line);
  color: var(--on-dark);
}

.btn--on-dark:hover {
  border-color: var(--on-dark-muted);
  color: var(--on-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 84px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-mark img {
  width: 46%;
  max-width: 220px;
}

.page-head {
  padding: 84px 0 56px;
  max-width: 24em;
}

.page-head h1 {
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.page-head .lede {
  margin-top: 18px;
}

/* ── flagship band ────────────────────────────────────────────────────── */

.flagship {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.flagship h2 {
  font-weight: 500;
  font-size: clamp(30px, 4vw, 40px);
  margin: 12px 0 0;
}

.flagship p {
  color: var(--on-dark-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 30em;
}

.flagship .btn-row {
  margin-top: 28px;
}

.flagship-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 15.5px;
  color: var(--on-dark);
}

.flagship-points li {
  border-top: 1px solid var(--dark-line);
  padding-top: 14px;
}

/* <em> only so the label is a translatable node of its own — it carries no
   emphasis meaning, so the italics come straight back off. */
.flagship-points em {
  display: block;
  font-style: normal;
}

.flagship-points span {
  display: block;
  color: var(--on-dark-muted);
  font-size: 14px;
  margin-top: 3px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pill--quiet {
  background: var(--tint);
  color: var(--accent);
}

/* ── cards ────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  font-weight: 600;
  font-size: 23px;
  margin: 0;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.card-link::after {
  content: ' →';
}

.card-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ghost);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-num {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
}

.feature h3 {
  font-weight: 600;
  font-size: 23px;
  margin: 8px 0 0;
}

.feature p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ── product detail rows (products.html) ──────────────────────────────── */

.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.product:first-of-type {
  border-top: 0;
}

.product-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-aside h2 {
  font-weight: 600;
  font-size: 30px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  font-size: 13.5px;
  color: var(--muted);
  background: var(--tint);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ── contact ──────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 84px 0;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-details div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-details dt,
.contact-label {
  font-size: 13px;
  color: var(--faint);
}

.contact-details dd,
.contact-value {
  margin: 0;
  font-size: 17px;
  font-family: var(--serif);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 24px 48px -30px rgba(90, 60, 30, 0.3);
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
  display: block;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--ghost);
}

.form-note {
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

/* ── cta band ─────────────────────────────────────────────────────────── */

.cta {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 84px;
}

.cta h2 {
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
}

.cta p {
  font-size: 17px;
  color: var(--on-dark-muted);
  margin-top: 10px;
}

.cta .btn {
  white-space: nowrap;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 20em;
}

.footer-brand small {
  font-size: 13.5px;
  color: var(--faint);
}

.footer-cols {
  display: flex;
  gap: 64px;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-cols strong {
  color: var(--faint);
  font-weight: 600;
}

.footer-cols a {
  color: var(--muted);
}

.legal {
  border-top: 1px solid var(--line);
}

.legal .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero,
  .product,
  .contact-grid,
  .flagship {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-mark {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .grid--3 {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .site-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }

  .section {
    padding-block: 56px;
  }

  .section--tight {
    padding-block: 44px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .page-head {
    padding: 48px 0 32px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .flagship,
  .form-card {
    padding: 32px 24px;
  }

  .cta {
    padding: 32px 24px;
    margin-bottom: 56px;
  }

  .footer-cols {
    gap: 36px;
  }
}
