/* Plush Foams — plushfoams.in
   Laid out on the industrial-manufacturer pattern: a dark bar over a full-bleed hero,
   then full-width dark and white blocks alternating down the page. Brand colours are
   ours; the proportions follow the reference the client picked. */

/* ---------- tokens ---------- */

:root {
  --plum:      #2a1440;   /* the dark block colour, standing in for the reference navy */
  --plum-2:    #1c0d2c;
  --plum-3:    #3d2159;

  --magenta:   #d31e75;   /* the CTA colour, standing in for the reference dark red */
  --magenta-2: #ab1259;
  --purple:    #5c2d91;

  --bg:        #ffffff;
  --bg-alt:    #f4f2f7;
  --surface:   #ffffff;

  --ink:       #1c1726;
  --ink-2:     #4b4459;
  --muted:     #7d7590;
  --line:      #e5e1ec;
  --line-2:    #cfc8dc;

  --on-dark:      #ffffff;
  --on-dark-2:    #c7bdd6;
  --on-dark-line: rgba(255,255,255,.16);

  --radius: 0px;
  --pill:   32px;

  --shadow:    0 1px 3px rgba(28,23,38,.08), 0 8px 22px rgba(28,23,38,.07);
  --shadow-lg: 0 4px 10px rgba(28,23,38,.10), 0 22px 50px rgba(28,23,38,.14);

  --wrap: 1140px;
  --nav-h: 96px;

  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Roboto", system-ui, sans-serif;
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }

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

h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 400; line-height: 1.2; letter-spacing: normal; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1.2; letter-spacing: normal; margin-bottom: .2em; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: normal; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--magenta); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

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

.eyebrow {
  display: block; font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.2;
  color: var(--magenta); margin: 0 0 .5rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 1rem 2.6rem; border-radius: var(--pill);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
/* One button treatment everywhere: white at rest, brand magenta on hover.
   The variant classes are kept so existing markup keeps working, but they
   no longer diverge — .btn-accent, .btn-ghost and .btn-light all read alike. */
.btn-accent,
.btn-ghost,
.btn-light { background: #fff; color: var(--plum); border-color: var(--plum); }

.btn-accent:hover, .btn-accent:focus-visible,
.btn-ghost:hover,  .btn-ghost:focus-visible,
.btn-light:hover,  .btn-light:focus-visible {
  background: var(--magenta); border-color: var(--magenta); color: #fff;
}
.btn-lg { padding: 1.05rem 3rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-row { justify-content: center; }

/* on dark ground */

/* ---------- header ---------- */

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
}
.nav-in {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  height: var(--nav-h); display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-logo { height: 54px; width: auto; background: #fff; padding: 4px 8px; border-radius: 3px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-family: var(--display);
  font-size: 1rem; font-weight: 400; letter-spacing: normal; line-height: 1.5;
  color: #fff; padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--magenta); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--magenta); }
.nav-cta { padding: .7rem 1.6rem !important; font-size: .78rem !important; }
/* .nav-links a sets color:#fff for the plum bar; the CTA is a button, not a link,
   so it needs to win that back on both the resting and hover states. */
.nav-links a.btn { color: var(--plum); border-bottom-color: var(--plum); }
.nav-links a.btn:hover,
.nav-links a.btn:focus-visible { color: #fff; border-bottom-color: var(--magenta); }

.nav-right { display: flex; align-items: center; gap: .8rem; }
/* The number is now a glyph — same white-at-rest, magenta-on-hover language
   as the buttons. The full number stays in the title and aria-label. */
.nav-phone {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--plum); border: 2px solid var(--plum);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.nav-phone svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.nav-phone:hover,
.nav-phone:focus-visible { background: var(--magenta); border-color: var(--magenta); color: #fff; }

.icon-btn {
  display: none; place-items: center; width: 44px; height: 44px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.1rem; cursor: pointer; border-radius: 3px;
}

/* inner pages have no hero image behind the bar, so it gets a solid ground */
body:not([data-page=""]) .nav { position: static; background: var(--plum); }

/* ---------- hero ---------- */

/* The hero fills the viewport so nothing below it peeks in before a scroll.
   dvh follows mobile browser chrome as it hides; vh is the fallback. */
.hero {
  position: relative; overflow: hidden; background: var(--plum);
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
}
.hero-in {
  position: relative; z-index: 2; text-align: center;
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  padding: calc(var(--nav-h) + 2rem) 0 2rem;
}
.hero h1 { color: #fff; max-width: 22ch; margin: 0 auto 1rem; }
.hero-lede { color: #fff; font-size: 1rem; line-height: 1.5; max-width: 42rem; margin: 0 auto 2.2rem; }
.hero-cap { position: relative; z-index: 2; margin: 2.4rem 0 0; font-size: .78rem; color: rgba(255,255,255,.55); text-align: center; }

.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(28,13,44,.86) 0%, rgba(28,13,44,.62) 42%, rgba(28,13,44,.3) 100%),
    linear-gradient(to bottom, rgba(28,13,44,.5) 0%, transparent 34%);
}

/* ---------- section blocks ---------- */

.sec { padding: clamp(3.6rem, 6vw, 6rem) 0; }
.sec-alt { background: var(--bg-alt); }

/* the full-width dark block the reference alternates with white */
.sec-dark { background: var(--plum); color: var(--on-dark); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark p { color: var(--on-dark-2); }
.sec-dark .card { background: rgba(255,255,255,.05); border-color: var(--on-dark-line); }
.sec-dark .card p { color: var(--on-dark-2); }
.sec-dark .eyebrow { color: #ff9dcb; }

.sec-head { max-width: 46rem; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 0; }
.sec-head p.eyebrow {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; line-height: 1.2; color: var(--magenta); margin-bottom: .5rem;
}
.sec-dark .sec-head p.eyebrow { color: #ff9dcb; }
.sec-dark .sec-head p { color: var(--on-dark-2); }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

/* ---------- cards ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }
.card-link { display: block; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease; }
.card-link:hover { box-shadow: var(--shadow-lg); }

.cardmedia { padding: 0; overflow: hidden; }
.cardmedia .media { border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.cardmedia .cardbody { padding: 1.5rem 1.6rem 1.7rem; }

.media { overflow: hidden; border-radius: 0; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { font-size: .82rem; color: var(--muted); margin-top: .7rem; }

.learnmore {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--magenta); text-decoration: none;
}
.card-link:hover .learnmore { color: var(--plum); }
.sec-dark .learnmore { color: #ff9dcb; }

.prodline { font-size: .84rem; color: var(--muted); margin: .1rem 0 .4rem; }

/* ---------- page header (inner pages) ---------- */

.phead { background: var(--plum); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.6rem, 4vw, 3.6rem); }
.phead h1 { color: #fff; margin-bottom: .6rem; }
.phead p { color: var(--on-dark-2); font-size: 1.08rem; max-width: 46rem; margin-bottom: 0; }
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.6); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- lists, specs, forms ---------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 10px; height: 10px; background: var(--magenta); }
.sec-dark .ticks li { color: var(--on-dark-2); }

.signals { display: grid; gap: 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.signals > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.signals dt { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.signals dd { margin: 0; font-size: .96rem; }
.sec-dark .signals, .sec-dark .signals > div { border-color: var(--on-dark-line); }
.sec-dark .signals dt { color: var(--on-dark-2); }
.sec-dark .signals dd { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 1rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; min-width: 9rem; flex: 1 1 9rem; }
.chip b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--plum); font-variant-numeric: tabular-nums; }
.chip b span { font-size: .44em; color: var(--magenta); margin-left: .2rem; }
.chip small { color: var(--muted); font-size: .82rem; }

.rows { display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.row h3 { margin: 0; }
.row .rowmeta { font-size: .84rem; color: var(--magenta); margin: .3rem 0 0; }
.row p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.machine { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.machine h3 { margin: 0 0 .2rem; font-size: 1rem; }
.machine p { margin: 0; font-size: .88rem; color: var(--ink-2); }

.flow { list-style: none; margin: 0; padding: 0; }
.flow-step { display: flex; gap: 1.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.flow-step:last-child { border-bottom: 0; }
.flow-n { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; background: var(--plum); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9rem; border-radius: 3px; }
.flow-step h3 { margin: .1rem 0 .25rem; }
.flow-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.sec-dark .flow-step { border-color: var(--on-dark-line); }
.sec-dark .flow-n { background: var(--magenta); }

.steps { display: grid; gap: 1.2rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.infocard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.infocard h3 { margin-bottom: .9rem; }
.infocard a { color: var(--magenta); }
.infoline { display: flex; gap: .9rem; margin-bottom: .9rem; }
.infoline:last-child { margin-bottom: 0; }
.infoline .k { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 6rem; padding-top: .2rem; }
.infoline .v { font-size: .95rem; }

.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.creds div { border-left: 3px solid var(--magenta); padding-left: 1rem; }
.creds b { display: block; font-family: var(--display); font-size: .95rem; font-weight: 700; }
.creds span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-dark .creds { border-color: var(--on-dark-line); }
.sec-dark .creds b { color: #fff; }
.sec-dark .creds span { color: var(--on-dark-2); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; min-width: 620px; }
table.spec th, table.spec td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
table.spec thead th { background: var(--plum); color: #fff; font-family: var(--display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
table.spec tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: .84rem; color: var(--muted); }

.formgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: .76rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(211,30,117,.16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .85rem; color: var(--muted); }
.formmsg { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .93rem; display: none; }
.formmsg.show { display: block; }
.formmsg.ok { background: #fdeaf3; border: 1px solid var(--magenta); color: var(--magenta-2); }
.formmsg.err { background: #fff2f2; border: 1px solid #e06a6a; color: #8c2020; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose a { color: var(--magenta); }

.videopanel { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.videopanel video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.videopanel figcaption { padding: .85rem 1.1rem; font-size: .85rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

.prodsec + .prodsec { border-top: 1px solid var(--line); }
.prodnum { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: var(--magenta); margin: 0 0 .5rem; }
.prodaside .media { aspect-ratio: 4 / 3; margin-bottom: 1.2rem; }

/* ---------- closing band ---------- */

.band { background: var(--plum-2); color: #fff; }
.band-in {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  padding: clamp(2.8rem, 5vw, 4rem) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap;
}
.band h2 { color: #fff; margin-bottom: .4rem; }
.band p { color: var(--on-dark-2); margin: 0; max-width: 46rem; }

/* ---------- footer ---------- */

.callbar { display: none; }

.foot { background: var(--plum); color: var(--on-dark-2); border-top: 4px solid var(--magenta); }
.foot-in {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding: 3.4rem 0 2.6rem;
}
.foot-col h3 { font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.foot-col a { display: block; text-decoration: none; color: var(--on-dark-2); font-size: .92rem; padding: .25rem 0; }
.foot-col a:hover { color: #fff; }
.foot-brand .brand-logo { height: 62px; background: #fff; padding: 6px 10px; border-radius: 3px; }
.foot-name { color: #fff; font-family: var(--display); font-weight: 700; margin: 1.1rem 0 .2rem; }
.foot-pitch, .foot-sub, .foot-addr, .foot-hours { font-size: .9rem; color: var(--on-dark-2); }
.foot-addr strong { color: #fff; }
.foot-sub a { display: inline; color: #ff9dcb; text-decoration: none; }
.foot-bar {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  border-top: 1px solid var(--on-dark-line); padding: 1.3rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: var(--on-dark-2);
}
.foot-bar p { margin: 0; }
.foot-legal { display: flex; gap: 1.4rem; }
.foot-legal a { color: var(--on-dark-2); text-decoration: none; }
.foot-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--plum); flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem 1.25rem 1.4rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--on-dark-line); }
  .nav-cta { margin-top: 1rem; justify-content: center; }
  .icon-btn { display: grid; }
  .nav-phone { display: none; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .machines { grid-template-columns: 1fr; }
  .creds, .foot-in { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .5rem; }
  .signals > div { grid-template-columns: 1fr; gap: .1rem; }
  .hero-in { padding: calc(var(--nav-h) + 1.5rem) 0 1.5rem; }
  .btn { padding: .95rem 2rem; }
  .band-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* ---------- inline phone glyph ---------- */
/* Sits inside links and buttons where the number used to be printed. */
.ico-phone { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; margin-right: .45em; flex: 0 0 auto; }
.btn .ico-phone { width: 1.05em; height: 1.05em; margin-right: .6em; }
.nav-phone .ico-phone { width: 20px; height: 20px; margin-right: 0; vertical-align: 0; }
