:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  color: #f7f4ef;
  background: #111213;
  --surface: #151517;
  --panel: #1a1b1d;
  --line: #383735;
  --gold: #edbb78;
  --muted: #c5c0b8;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.wrap {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem;
  color: #151517;
  background: var(--gold);
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

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

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 5rem;
  gap: 1.25rem;
}

.brand { display: block; width: 7rem; }
.brand img { width: 100%; height: auto; }
.main-nav, .header-tools, .language-nav { display: flex; align-items: center; }
.main-nav { justify-content: center; gap: clamp(1rem, 2.75vw, 2.5rem); }
.main-nav a, .language-nav a, .footer-row > a:last-child {
  color: var(--muted);
  text-decoration: none;
}
.main-nav a { font-size: 0.9rem; white-space: nowrap; }
.main-nav a:hover, .language-nav a:hover, .footer-row > a:last-child:hover { color: var(--gold); }
.header-tools { gap: 1rem; }
.language-nav { gap: 0.2rem; }
.language-nav a {
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.language-nav [aria-current="page"] { border-color: var(--line); color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: fit-content;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 0.3rem;
  color: #20170f;
  background: var(--gold);
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #f8d5a8; border-color: #f8d5a8; }
.btn.secondary { background: #161617b3; color: var(--gold); }
.btn.secondary:hover { background: var(--gold); color: #20170f; }
.header .btn { min-height: 2.5rem; font-size: 0.86rem; white-space: nowrap; }
.btn:disabled { opacity: 0.65; cursor: wait; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(30rem, 49vw, 41rem);
  background: #161617;
  border-bottom: 1px solid var(--line);
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 87%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 53%;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #161617a6, transparent 30%),
    linear-gradient(90deg, #161617 5%, #161617f5 27%, #161617ce 48%, #16161738 69%, transparent 82%);
}
.hero-copy { padding-block: 4.5rem 5.5rem; }
.hero-label {
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; font-weight: 760; }
h1 {
  font-size: clamp(3.1rem, 5.45vw, 4.85rem);
  letter-spacing: -0.05em;
}
h1 em { display: block; color: var(--gold); font-style: normal; }
.hero-copy > p:not(.hero-label) {
  max-width: 31rem;
  margin-top: 1.4rem;
  color: #e1dcd4;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.hero figcaption, .product-image figcaption {
  color: #efebe4;
  font-size: 0.75rem;
}
.hero figcaption {
  position: absolute;
  bottom: 0.9rem;
  right: max(1.25rem, calc((100% - 76rem) / 2));
  padding: 0.35rem 0.55rem;
  background: #151517bf;
  border-radius: 0.2rem;
}

.section { padding-block: clamp(3rem, 6vw, 5.5rem); scroll-margin-top: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.section p { color: var(--muted); line-height: 1.65; }
.product-grid, .about-grid, .contact-grid {
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 3.25rem);
}
.product-grid { grid-template-columns: 1fr 1fr; margin-top: 1.7rem; }
.product-image {
  display: grid;
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}
.product-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.product-image figcaption {
  z-index: 1;
  align-self: end;
  padding: 1.8rem 0.85rem 0.65rem;
  background: linear-gradient(transparent, #141415bc);
}
.specs, .quote-form {
  padding: clamp(1.15rem, 3.3vw, 2.4rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}
.specs { border-top: 2px solid var(--gold); }
.specs h3 { margin-block: 1.4rem 0.6rem; }
.specs ul, .contact-links { padding: 0; list-style: none; }
.specs li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-block: 0.7rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.specs li::before {
  content: "";
  flex: 0 0 0.35rem;
  height: 0.35rem;
  background: var(--gold);
}
.about {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.about-copy { max-width: 42rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy strong { color: #f7f4ef; }

.contact-grid { align-items: start; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.contact-copy p { margin-top: 0.9rem; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.8rem 1.1rem;
  margin-block: 1.3rem;
}
.contact-links li:first-child, .contact-links li:nth-child(2) { grid-column: 1 / -1; }
.contact-links a { color: var(--gold); }
.quote-form { scroll-margin-top: 1rem; }
.quote-form h3 { margin-bottom: 1.15rem; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-fields .wide { grid-column: 1 / -1; }
.form-fields label { display: grid; gap: 0.4rem; font-size: 0.87rem; line-height: 1.4; }
.form-fields input, .form-fields textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #55524d;
  border-radius: 0.25rem;
  background: #141415;
  color: #f7f4ef;
  font: inherit;
  font-size: 1rem;
}
.form-fields textarea { resize: vertical; }
.form-fields ::placeholder { color: #aaa59f; }
.quote-form .btn { margin-top: 1.1rem; }
.form-status:not(:empty) { margin-top: 0.8rem; }
.form-status[data-state="success"] { color: #b1dfae; }
.form-status[data-state="error"] { color: #ffc0ae; }

.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 5rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-row .brand { width: 5rem; }

@media (max-width: 880px) {
  .header { grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding-block: 0.35rem 0.75rem; }
  .header-tools { grid-column: 2; grid-row: 1; justify-self: end; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; gap: 1.2rem; }
}

@media (max-width: 680px) {
  .header-quote { display: none; }
  .hero { display: grid; align-items: start; min-height: 0; }
  .hero-copy { grid-row: 1; padding-block: 2.6rem 1.3rem; }
  .hero-image {
    grid-row: 2;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    object-position: 69% 56%;
  }
  .hero::before {
    z-index: -1;
    inset: auto 0 0;
    height: 64vw;
    background: linear-gradient(#161617 0%, transparent 25%, transparent 80%, #16161780);
  }
  h1 { font-size: clamp(2.12rem, 8.2vw, 3.25rem); }
  .hero figcaption { bottom: 0.65rem; right: 1.25rem; }
  .product-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image { min-height: 0; aspect-ratio: 1.35; }
}
@media (max-width: 440px) {
  .main-nav { gap: 0.85rem; }
  .main-nav a { font-size: 0.82rem; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) { .wrap { width: min(100% - 6rem, 76rem); } }
