/* =========================================================================
   Mattress Liquidations — shared stylesheet
   Direction: "Midnight & Steel" — near-black, high-contrast, sleek, modern.
   One cool steel-blue accent, generous space, thin lines, restrained motion.
   Signature motif: the "inspection tag" (QC tag clipped to every mattress).
   ========================================================================= */

:root {
  /* Palette — dark, premium, high-contrast */
  --bg:        #0E0F12;   /* near-black page background */
  --bg-2:      #15171C;   /* raised sections */
  --surface:   #191C22;   /* cards */
  --surface-2: #1F232B;   /* hover / inputs */
  --line:      #2A2F39;   /* hairline borders */
  --line-soft: #21252D;

  --text:      #F4F6FA;   /* primary text (soft white) */
  --muted:     #A2AAB8;   /* secondary text */
  --faint:     #6B7280;   /* captions */

  --steel:     #5B8DEF;   /* steel-blue accent */
  --steel-br:  #7BA5F5;   /* lighter steel for hover/links */
  --steel-dim: rgba(91,141,239,.14);

  --maxw: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 12px 40px rgba(0,0,0,.45);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--steel-br); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #A9C4FA; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }

/* --- Eyebrow label --- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--steel); opacity: .7; }

/* =========================== Buttons =============================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 50px; padding: 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; letter-spacing: 0;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--steel-br); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--steel); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* =========================== Header / nav ========================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--text); text-decoration: none; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .6rem;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-block; width: 10px; height: 22px; border-radius: 2px;
  background: var(--steel); box-shadow: -6px 0 0 rgba(244,246,250,.85);
}
.nav-links { display: flex; gap: .2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--steel-br); }
.nav-toggle { display: none; }

/* =========================== Hero ================================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(91,141,239,.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
/* Hero with a photo behind it (home page): dark overlay keeps text readable */
.hero--photo {
  background:
    linear-gradient(180deg, rgba(14,15,18,.72) 0%, rgba(14,15,18,.82) 60%, var(--bg) 100%),
    url("../images/warehouse-hero.jpeg") center/cover no-repeat;
}
.hero .lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--muted); max-width: 48ch; }
.hero--photo .lead { color: #D9DEE8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.6rem; font-size: .9rem; color: var(--faint); }

/* Audience strip */
.audience { background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }
.audience .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.15rem; padding-bottom: 1.15rem; align-items: center; }
.audience strong { color: var(--text); font-family: var(--font-display); font-weight: 600; }
.audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 0; padding: 0; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--muted); }
.audience li { position: relative; padding-left: 1rem; }
.audience li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }

/* =========================== Sections ============================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--raised { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 64ch; margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* =========================== Card grid ============================ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #3A4353; transform: translateY(-3px); }
.card-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(91,141,239,.10), transparent 55%),
    var(--surface-2);
  display: grid; place-items: center; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; text-align: center; padding: 1rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-spec { color: var(--muted); font-size: .95rem; margin: 0; }
.card-price {
  font-family: var(--font-display); font-weight: 600; color: var(--steel-br);
  font-size: .9rem; margin: .3rem 0 .7rem;
}
.card .btn { margin-top: auto; }

/* =========================== Inspection tag (signature) =========== */
.tag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tag {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-left: 2px solid var(--steel); border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.2rem 3.5rem; box-shadow: var(--shadow);
  transition: border-color .18s ease;
}
.tag:hover { border-left-color: var(--steel-br); border-color: #3A4353; }
.tag::before { /* the punch hole of the tag */
  content: ""; position: absolute; left: 1.3rem; top: 1.5rem;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--steel); background: var(--bg);
}
.tag-num {
  font-family: var(--font-display); font-weight: 600; color: var(--steel);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: .3rem;
}
.tag h3 { margin: 0 0 .35rem; }
.tag p { margin: 0; color: var(--muted); }

.tag--condition { border-left-color: #8B93A3; }
.tag--condition::before { border-color: #8B93A3; }
.tag--condition .tag-num { color: #AEB6C4; }

/* =========================== Trust rows ========================== */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.trust-item { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.trust-item h3 { margin-bottom: .35rem; }
.trust-item h3::before { content: ""; display: block; width: 26px; height: 2px; background: var(--steel); margin-bottom: .8rem; }
.trust-item p { color: var(--muted); margin: 0; }

/* =========================== Callout band ======================== */
.band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(91,141,239,.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(2.2rem,5vw,3.4rem);
}
.band p { color: var(--muted); max-width: 54ch; }
.band .hero-actions { margin-top: 1.6rem; }

/* =========================== Contact ============================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 2.6rem; align-items: start; }
.contact-methods { display: grid; gap: .9rem; }
.method-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.method-card .eyebrow { margin-bottom: .6rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .92rem; margin-bottom: .4rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .75rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-dim);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.req { color: var(--steel-br); }

/* =========================== Footer ============================== */
.site-footer { background: var(--bg-2); color: var(--muted); padding: 3.5rem 0 2rem; margin-top: 0; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.2rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; margin: 0 0 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 2.4rem; padding-top: 1.3rem; font-size: .85rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* =========================== Utilities =========================== */
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-lg { margin-top: 2.6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

/* =========================== Responsive ========================== */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem; display: none;
  }
  .nav-links a { padding: .85rem 1rem; }
  .nav:has(.nav-toggle:checked) .nav-links { display: flex; }
  .nav-toggle-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; cursor: pointer; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) { .nav-toggle-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

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