/* =========================================================================
   Anderson Ross — site styles
   Single stylesheet for all pages. Edit design tokens in :root below.
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Header/Nav · 5 Buttons
             6 Hero · 7 Sections/components · 8 Forms · 9 Footer · 10 Media
   ========================================================================= */

/* ---------- 1. Design tokens ------------------------------------------- */
:root {
  /* Brand colours (CMY) */
  --cyan:    #3fd1d2;
  --yellow:  #fbe000;
  --magenta: #ec008c;

  /* Neutrals */
  --ink:      #121212;   /* headings, wordmark black            */
  --ink-soft: #3d3d3d;   /* strong body text                    */
  --muted:    #6f6e6a;   /* secondary text, captions            */
  --paper:    #ffffff;   /* default background                   */
  --paper-2:  #f4f3ef;   /* soft band to seat product renders   */
  --line:     #e6e4dd;   /* hairline rules / borders            */

  /* The signature: segmented CMY rule (hard stops, mirrors the logo) */
  --cmy: linear-gradient(90deg,
            var(--cyan)    0%,
            var(--yellow)  50%,
            var(--magenta) 100%);

  /* Type — Dunbar Tall (Adobe Fonts). One family across the whole site. */
  --display: "dunbar-tall", "Helvetica Neue", Arial, sans-serif;
  --body:    "dunbar-tall", "Helvetica Neue", Arial, sans-serif;

  /* Weights. These mirror your system: Book = body, Regular = headings,
     Medium = nav/labels/buttons (the logo weight). When you build your Adobe
     web project it lists the exact font-weight for each style — if they differ
     from these, just change the three numbers here and the whole site follows. */
  --w-book:    300;   /* Dunbar Tall Book    */
  --w-regular: 400;   /* Dunbar Tall Regular */
  --w-medium:  500;   /* Dunbar Tall Medium  */

  /* Rhythm */
  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);   /* horizontal page padding */
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: var(--w-book);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.04;
  font-weight: var(--w-regular);
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.0rem);
}

p { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.eyebrow {
  font-family: var(--display);
  font-weight: var(--w-medium);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Reusable CMY rule */
.cmy-rule {
  height: 4px; width: 56px; border: 0; margin: 0 0 1.25rem;
  background: var(--cmy);
}
.cmy-rule.full { width: 100%; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

/* ---------- 3. Layout --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--paper-2); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Dark section — same treatment as the newsletter band */
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: rgba(255,255,255,.6); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.72); }
.section--dark .specs td { color: #fff; }
.section--dark .specs th { color: rgba(255,255,255,.6); }
.section--dark .specs th,
.section--dark .specs td { border-color: rgba(255,255,255,.18); }

.lede { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--ink-soft); max-width: 46ch; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 4. Header / navigation ------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
 -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav a {
  font-family: var(--display);
  font-weight: var(--w-medium);
  font-size: .95rem;
  color: var(--ink-soft);
  padding: .35rem 0;
  position: relative;
}
.nav a:hover { color: var(--ink); }
/* Active page marked with a CMY underline (the signature device) */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--cmy);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: var(--w-medium); font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--ink); cursor: pointer; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--magenta); border-color: var(--magenta); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Text link with CMY underline reveal */
.link-cmy { position: relative; font-weight: var(--w-medium); }
.link-cmy::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%;
  background: var(--cmy); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.link-cmy:hover::after { transform: scaleX(1); }

/* ---------- 6. Hero ----------------------------------------------------- */
.hero { background: var(--paper-2); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.hero__title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 2.6rem);
  letter-spacing: -0.03em;
}
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius); }

/* ---------- 7. Sections & components ----------------------------------- */
.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
}

/* Two-column "split" content + image */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}
.split--reverse .split__media { order: -1; }
.split__media img { border-radius: var(--radius); }
.split--top { align-items: start; }

/* Feature list with CMY ticks */
.features { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 1rem; }
.features b { font-family: var(--display); color: var(--ink); font-weight: var(--w-regular); display: block; }
.tick { width: 8px; height: 8px; margin-top: .6rem; background: var(--magenta); border-radius: 50%; }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs th, .specs td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-family: var(--display); font-weight: var(--w-medium); color: var(--muted); width: 42%; font-size: .92rem; letter-spacing: .02em; }
.specs td { color: var(--ink-soft); }

/* Product purchase panel */
.buy-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.price { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); color: var(--ink); font-weight: var(--w-regular); }
.price small { font-family: var(--body); font-size: .9rem; font-weight: var(--w-medium); color: var(--muted); display: block; letter-spacing: .04em; margin-top: .25rem; }
.buy-note { font-size: .88rem; color: var(--muted); margin-top: 1.25rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { border-radius: var(--radius); background: var(--paper-2); }

/* Newsletter band */
.news { background: var(--magenta); color: #fff; padding-block: clamp(2.25rem, 4vw, 3rem); }
.news h2 { color: #fff; }
.news p { color: rgba(255,255,255,.90); }
.news .cmy-rule { margin-inline: 0; }
.news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,5vw,3rem); align-items: center; }

/* ---------- 8. Forms ---------------------------------------------------- */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--display); font-weight: var(--w-medium); font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field--required label::after { content: " *"; color: var(--magenta); }

/* honeypot — visually hidden, kept in flow for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .86rem; color: var(--muted); }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: var(--w-medium); }
.form-status.ok  { background: #eafaf7; color: #0f6b5f; border: 1px solid #b8eee2; }
.form-status.err { background: #fdeef6; color: #9a1c63; border: 1px solid #f3c7e0; }

/* Newsletter inline form (dark band) */
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.subscribe input {
  flex: 1 1 220px; font: inherit; padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
}
.subscribe input::placeholder { color: rgba(255,255,255,.55); }
.subscribe input:focus { outline: none; border-color: #fff; }
.subscribe .btn { border-color: #fff; }
.subscribe .btn-primary { background: #fff; color: var(--ink); }

/* ---------- 9. Footer --------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 80px; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-medium); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted); }

/* Dark footer variant */
.site-footer--dark {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  border-top-color: rgba(255,255,255,.14);
}
.site-footer--dark h4 { color: rgba(255,255,255,.55); }
.site-footer--dark a  { color: rgba(255,255,255,.8); }
.site-footer--dark a:hover { color: #fff; }
.site-footer--dark .colophon {
  color: rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,.14);
}

.site-footer .social { display: flex; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.site-footer .social a { display: inline-flex; color: inherit; }
.site-footer .social svg { width: 22px; height: 22px; fill: currentColor; }
.site-footer .social a:hover { color: var(--magenta); }

.legal-line { font-size: .78rem; margin: 1rem 0 0; max-width: 70ch; opacity: .7; }

/* ---------- 10. Responsive --------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem;
    transform: translateY(calc(-100% - 80px)); transition: transform .3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 56px; bottom: 6px; }

  .hero__grid, .split, .news__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero__media { order: -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
