/* Express Drywall. Clean black and white, yellow accent. Shared base with the Express family. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #111111;
  --paper: #ffffff;
  --grey: #f4f4f2;
  --line: #e4e4e1;
  --muted: #6b6b68;
  --accent: #F5A800;
  --radius: 10px;
  --page-width: 1180px;
  --pad: clamp(16px, 4vw, 32px);
}

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

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

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

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(34px, 6vw, 62px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 56ch; }

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

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--full { display: block; width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Announcement ---------- */

.announcement {
  background: var(--ink); color: #fff;
  text-align: center; font-size: 14px; font-weight: 600;
  padding: 8px var(--pad);
}
.announcement em { color: var(--accent); font-style: normal; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-header__logo { flex-shrink: 0; text-decoration: none; }
.site-header__logo img { width: var(--logo-width); }
.logo-text {
  font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 24px; line-height: 1; letter-spacing: -0.02em;
}
.logo-text span { color: var(--accent); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--grey); }

.header-cart {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px;
}
.header-cart__count {
  background: var(--accent); border-radius: 999px;
  min-width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 13px;
}

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-header__inner { gap: 10px; }
  .logo-text { font-size: 19px; }
  .header-cart { gap: 4px; padding: 6px 10px; }
  .header-cart__label { display: none; }
}

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

.hero { background: var(--grey); border-bottom: 1px solid var(--line); }
.hero__inner { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

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

.section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section--grey { background: var(--grey); }
.section__head { max-width: 640px; margin-bottom: 36px; }

/* ---------- Feature bar ---------- */

.feature-bar { border-bottom: 1px solid var(--line); }
.feature-bar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.feature-bar__item { background: var(--paper); padding: 22px 20px; }
.feature-bar__item strong {
  display: block; font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 15px; margin-bottom: 4px;
}
.feature-bar__item span { font-size: 14px; color: var(--muted); }

/* ---------- Color grid ---------- */

.color-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.color-card {
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.color-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,17,17,.10); }
.color-card__swatch { aspect-ratio: 4 / 3; background-size: cover; background-position: center; position: relative; }
.color-card__swatch::after {
  /* subtle plank lines on fallback swatches */
  content: ""; position: absolute; inset: 0;
  background: none;
}
.color-card__swatch--image::after { display: none; }
.color-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px; }
.color-card__name { font-weight: 800; font-style: italic; text-transform: uppercase; }
.color-card__code { font-size: 13px; color: var(--muted); }

/* ---------- Specs ---------- */

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.specs-table th { font-weight: 700; white-space: nowrap; width: 40%; }
.specs-table tr:nth-child(odd) { background: var(--grey); }

/* ---------- Install CTA ---------- */

.install-choice { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.install-card {
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
}
.install-card--accent { background: var(--accent); }
.install-card h3 { margin: 0; }
.install-card p { margin: 0; flex-grow: 1; }
.install-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Product ---------- */

.product { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.product__media img { border-radius: var(--radius); border: 1px solid var(--line); }
.product__media-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--grey); display: grid; place-items: center; color: var(--muted); font-weight: 600;
}
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.product__thumbs img.is-active { border-color: var(--accent); border-width: 2px; }

.product__vendor { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product__title { margin-bottom: 8px; }
.product__price { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.product__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.product__coverage-note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.option-label { font-weight: 700; margin: 18px 0 10px; display: block; }
.option-label output { color: var(--muted); font-weight: 500; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch__chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: border-color .12s ease;
}
.swatch__dot { width: 26px; height: 26px; border-radius: 50%; background-size: cover; border: 1px solid rgba(0,0,0,.15); }
.swatch input:checked + .swatch__chip { border-color: var(--ink); background: var(--grey); }
.swatch input:focus-visible + .swatch__chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch input:disabled + .swatch__chip { opacity: .35; text-decoration: line-through; }

/* Box calculator */
.box-calc {
  border: 1px solid var(--line); background: var(--grey);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.box-calc__title { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 15px; margin-bottom: 10px; }
.box-calc__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.box-calc input[type="number"] {
  font: inherit; width: 110px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: 8px; background: #fff;
}
.box-calc__result { font-weight: 700; }
.box-calc__result em { font-style: normal; background: var(--accent); border-radius: 6px; padding: 2px 8px; }
.box-calc__hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Quantity + buy */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty button { font: inherit; font-weight: 700; font-size: 18px; background: none; border: none; width: 44px; height: 46px; cursor: pointer; }
.qty button:hover { background: var(--grey); }
.qty input { font: inherit; font-weight: 700; width: 64px; text-align: center; border: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.buy-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.buy-row .btn { flex-grow: 1; }
.install-link { display: block; margin-top: 16px; font-size: 15px; }
.install-link a { font-weight: 700; }

.product__desc { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Collection grid ---------- */

.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding-bottom: 72px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,17,17,.10); }
.product-card__img { aspect-ratio: 4/3; background: var(--grey); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__meta { padding: 14px 16px; }
.product-card__title { font-weight: 700; }
.product-card__price { color: var(--muted); font-size: 14px; }

/* ---------- Cart ---------- */

.cart { padding-top: 40px; padding-bottom: 72px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-line__title { font-weight: 700; text-decoration: none; }
.cart-line__variant, .cart-line__each { font-size: 14px; color: var(--muted); }
.cart-line__right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cart-line__remove { font-size: 13px; color: var(--muted); }
.cart__footer { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-top: 24px; }
.cart__subtotal { font-size: 20px; font-weight: 800; }
.cart__note { font-size: 14px; color: var(--muted); }
.cart--empty { text-align: center; padding: 80px 0; }

/* ---------- Forms / contact ---------- */

.form-page { max-width: 640px; padding-top: 40px; padding-bottom: 72px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  font: inherit; width: 100%; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 8px; background: #fff;
}
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form-success { background: var(--accent); border-radius: 8px; padding: 14px 18px; font-weight: 600; margin-bottom: 24px; }
.form-errors { background: #fde8e8; border: 1px solid #f5b5b5; border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; }

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

.site-footer { background: var(--ink); color: #fff; margin-top: 0; }
.site-footer__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.site-footer .logo-text { color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; opacity: .9; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 24px; font-size: 13px; opacity: .7; }

/* ---------- Misc pages ---------- */

.page-content { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.util-page { text-align: center; padding: 96px var(--pad); }

/* Wood grain texture for fallback swatches */
.color-card__swatch:not(.color-card__swatch--image) {
  background-image: url("wood-grain.png");
  background-size: 456px 480px;
  background-repeat: repeat;
}
