/* The Beloit Mattress Company - v2 design system (C5 Studio)
   Brand colours only: blue #5089AF, red #DA0000 (CTA), grey #5E5E5E, on white/neutral.
   Heritage feel comes from real photos, copy and layout, not new hues. */

:root{
  --blue:#5089AF;         /* brand */
  --blue-deep:#2f5468;    /* darkened brand blue for headings */
  --blue-slate:#20384a;   /* dark grounds (heritage/process/footer) */
  --red:#DA0000; --red-deep:#b50000;
  --grey:#5E5E5E; --ink:#222b31; --ink-soft:#41505a;
  --line:#e3e7ea; --line-soft:#eef1f3;
  --paper:#f6f6f4;        /* neutral warm-tinted near-white */
  --paper-2:#eef0f1;
  --white:#ffffff;
  --shadow-sm:0 1px 2px rgba(20,40,54,.06);
  --shadow:0 2px 6px rgba(20,40,54,.07), 0 18px 40px -24px rgba(20,40,54,.35);
  --radius:14px; --radius-sm:10px;
  --font-display:"Archivo Expanded","Archivo",Helvetica,Arial,sans-serif;
  --font-body:"Archivo",Helvetica,Arial,sans-serif;
  --font-script:"Caveat",cursive;
}
*{box-sizing:border-box}
html{overflow-x:clip;scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--white);line-height:1.55;-webkit-font-smoothing:antialiased;font-size:17px;overflow-x:clip}
h1,h2,h3{font-family:var(--font-display);line-height:1.06;margin:0;color:var(--ink);letter-spacing:-.015em;font-weight:800}
p{margin:0 0 1rem}
a{color:var(--blue-deep)}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
[hidden]{display:none!important}

.wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 22px}
.eyebrow{font-family:var(--font-script);font-size:1.35rem;line-height:1;color:var(--blue-deep);margin:0 0 .35rem;font-weight:700}
.label{font-family:var(--font-body);font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--blue-deep)}
.stars{color:#e8a400;letter-spacing:1px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--font-body);font-weight:700;font-size:1.02rem;text-decoration:none;border:0;border-radius:var(--radius-sm);padding:.95rem 1.5rem;cursor:pointer;transition:transform .12s ease,background .12s ease,box-shadow .12s ease;line-height:1}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 10px 22px -12px rgba(218,0,0,.75)}
.btn-primary:hover{background:var(--red-deep);transform:translateY(-1px)}
.btn-call{background:var(--white);color:var(--ink);border:1.5px solid var(--line)}
.btn-call:hover{border-color:var(--blue)}
.btn-lg{padding:1.1rem 1.9rem;font-size:1.08rem}
.btn-block{width:100%}

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

/* Header */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line-soft)}
.header .wrap{display:flex;align-items:center;justify-content:space-between;height:72px;gap:1rem}
.brand{display:flex;align-items:center;text-decoration:none}
.brand-logo{height:40px;width:auto;display:block}
.header-cta{display:flex;align-items:center;gap:.9rem}
.header-phone{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);text-align:right;line-height:1.1}
.header-phone span{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--grey)}
.header-phone b{font-size:1.05rem}
@media(max-width:860px){.header-phone{display:none}.header .wrap{height:62px}.brand-logo{height:34px}}

/* Hero */
.hero{background:linear-gradient(180deg,var(--paper),#fff);border-bottom:1px solid var(--line-soft);padding:clamp(2.2rem,4.5vw,3.8rem) 0}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(1.6rem,3.5vw,3rem);align-items:center}
.hero h1{font-size:clamp(2.1rem,4.8vw,3.4rem)}
.hero h1 .u{color:var(--blue-deep)}
.hero .lead{font-size:clamp(1.05rem,1.9vw,1.2rem);color:var(--ink-soft);max-width:38ch;margin-top:1rem}
.trust-ticks{list-style:none;padding:0;margin:1.2rem 0 0;display:grid;grid-template-columns:1fr 1fr;gap:.55rem .9rem}
.trust-ticks li{display:flex;align-items:center;gap:.5rem;font-size:.92rem;color:var(--ink-soft);font-weight:600}
.trust-ticks svg{flex:0 0 auto;color:var(--blue)}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;margin:1.4rem 0 .2rem}
.hero-reviews{margin:1.1rem 0 0;max-width:100%;overflow-x:clip;min-height:44px}
.hero-photo{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/3;background:var(--paper-2)}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.hero-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:1.4rem 1rem .8rem;color:#fff;font-size:.86rem;font-weight:600;background:linear-gradient(0deg,rgba(20,40,54,.72),transparent)}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-photo{order:-1;aspect-ratio:4/3;margin:0 -22px;border-radius:0;box-shadow:none}.trust-ticks{grid-template-columns:1fr 1fr}}

/* Quote form card (shared, used in hero + standalone) */
.qcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.qcard-top{padding:1.05rem 1.3rem;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--paper)}
.qcard-top b{font-family:var(--font-display);font-weight:800;font-size:1.05rem}
.qcard-top .stamp{font-family:var(--font-script);color:var(--red);font-size:1.15rem;font-weight:700;transform:rotate(-6deg);border:2px solid var(--red);border-radius:8px;padding:.05rem .5rem;opacity:.9}
.progress{height:5px;background:var(--line-soft)}
.progress i{display:block;height:100%;background:var(--blue);width:14%;transition:width .3s ease}
.qbody{padding:1.3rem}
.step-label{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--grey);margin-bottom:.7rem}
.fstep{display:none}
.fstep.active{display:block;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.fstep h3{font-family:var(--font-body);font-weight:800;font-size:1.12rem;margin:0 0 .25rem;color:var(--ink)}
.fstep .hint{color:var(--grey);font-size:.88rem;margin:0 0 1rem}
.field{margin-bottom:.85rem}
.field>label{display:block;font-size:.82rem;font-weight:700;color:var(--ink-soft);margin-bottom:.35rem}
.field input[type=text],.field input[type=email],.field input[type=tel],.field input[type=number],.field select,.field textarea{width:100%;font-family:var(--font-body);font-size:1rem;padding:.8rem .9rem;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:#fff;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(80,137,175,.16)}
.field input.invalid,.field select.invalid{border-color:var(--red)}
.field .err{color:var(--red);font-size:.78rem;margin-top:.3rem;display:none}
.field.show-err .err{display:block}
.field textarea{min-height:96px;resize:vertical}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.opts{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.opt{position:relative}
.opt input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.opt span{display:flex;align-items:center;justify-content:center;text-align:center;gap:.45rem;padding:.7rem .55rem;border:1.5px solid var(--line);border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;color:var(--ink-soft);cursor:pointer;min-height:46px;transition:all .12s ease}
.opt input:checked+span{border-color:var(--blue);background:rgba(80,137,175,.1);color:var(--blue-deep)}
.opt input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{position:relative}
.chip input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.chip span{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .8rem;border:1.5px solid var(--line);border-radius:999px;font-size:.86rem;font-weight:600;color:var(--ink-soft);cursor:pointer}
.chip input:checked+span{border-color:var(--blue);background:rgba(80,137,175,.12);color:var(--blue-deep)}
.chip input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}
.filebox{border:1.5px dashed var(--line);border-radius:var(--radius-sm);padding:.9rem;text-align:center;color:var(--grey);font-size:.88rem}
.filebox input{display:block;margin:.5rem auto 0;font-size:.82rem}
.form-note{font-size:.82rem;color:var(--grey);border-left:3px solid var(--line);padding-left:.85rem;margin:.2rem 0 1rem}
.fnav{display:flex;gap:.7rem;align-items:center;margin-top:1.1rem}
.fnav .btn{flex:1}
.link-back{background:none;border:0;color:var(--grey);font-family:var(--font-body);font-weight:700;cursor:pointer;padding:.6rem;font-size:.95rem}
.link-back:hover{color:var(--ink)}
.fineprint{text-align:center;font-size:.75rem;color:var(--grey);margin:.85rem 0 0}
.form-success{display:none;padding:2.2rem 1.5rem;text-align:center}
.form-success.show{display:block}
.form-success .ok{width:52px;height:52px;margin:0 auto .9rem;color:var(--blue)}
.form-success h3{font-family:var(--font-display);font-weight:800;font-size:1.35rem;margin-bottom:.45rem}
.form-success p{color:var(--grey)}
@media(max-width:460px){.grid2,.opts{grid-template-columns:1fr}}

/* Section scaffolding */
section{padding:clamp(2.4rem,5.5vw,4.2rem) 0}
.sec-head{max-width:62ch;margin-bottom:1.9rem}
.sec-head.center{margin-left:auto;margin-right:auto;text-align:center}
.sec-head h2{font-size:clamp(1.65rem,3.4vw,2.4rem)}
.sec-head p{color:var(--grey);margin-top:.7rem;font-size:1.05rem}

/* Trust strip (stamped seals) */
.tstrip{background:var(--blue-slate);color:#fff}
.tstrip .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.13)}
.tstrip div{background:var(--blue-slate);padding:1.1rem .8rem;text-align:center}
.tstrip b{display:block;font-family:var(--font-display);font-weight:700;font-size:1rem}
.tstrip span{font-size:.72rem;letter-spacing:.02em;color:#a9c4d2}
@media(max-width:720px){.tstrip .wrap{grid-template-columns:1fr 1fr}}

/* Reviews */
.reviews{background:var(--paper)}
.rev-embed{max-width:100%;overflow-x:clip}
.rev-head{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem}
.rev-score{font-family:var(--font-display);font-weight:800;font-size:2.6rem;color:var(--blue-deep);line-height:1}
.rev-head .meta{font-size:.95rem;color:var(--grey)}
.rev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.rev{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.2rem}
.rev .stars{font-size:.95rem}
.rev p{font-size:.95rem;color:var(--ink-soft);margin:.55rem 0 .7rem}
.rev cite{font-style:normal;font-weight:700;font-size:.88rem;color:var(--ink)}
.rev cite span{font-weight:500;color:var(--grey)}
.rev-note{margin-top:1rem;font-size:.82rem;color:var(--grey)}
@media(max-width:820px){.rev-grid{grid-template-columns:1fr}}

/* Differentiator band - "the old ways" */
.oldways{background:#fff}
.ow-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.ow{border:1px solid var(--line);border-radius:12px;padding:1.2rem;background:var(--paper)}
.ow svg{width:26px;height:26px;color:var(--blue);margin-bottom:.5rem}
.ow b{display:block;font-family:var(--font-body);font-weight:800;font-size:1rem;margin-bottom:.2rem}
.ow p{margin:0;font-size:.88rem;color:var(--grey)}
@media(max-width:900px){.ow-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:560px){.ow-grid{grid-template-columns:1fr 1fr}}

/* Heritage */
.heritage{background:var(--blue-slate);color:#fff;overflow:hidden}
.her-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.6rem,4vw,3rem);align-items:center}
.heritage h2{color:#fff;font-size:clamp(1.7rem,3.6vw,2.5rem)}
.heritage .eyebrow{color:#e7b96b}
.heritage p{color:#c2d5df}
.her-photos{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.her-photos img{border-radius:12px;aspect-ratio:1/1;object-fit:cover;width:100%}
.her-photos img:first-child{grid-column:1/-1;aspect-ratio:16/9}
.seal{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.2rem;font-family:var(--font-script);font-size:1.5rem;color:#e7b96b}
@media(max-width:820px){.her-grid{grid-template-columns:1fr}}

/* What we build / sizes grid */
.build-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.bcard{border:1px solid var(--line);border-radius:12px;padding:1.25rem;background:#fff}
.bcard .tag{font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue-deep)}
.bcard h3{font-family:var(--font-body);font-weight:800;font-size:1.05rem;margin:.3rem 0 .3rem}
.bcard p{color:var(--grey);font-size:.92rem;margin:0}
.bcard .dim{font-family:var(--font-body);font-size:.8rem;color:var(--grey);margin-top:.35rem;font-weight:600}
@media(max-width:820px){.build-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.build-grid{grid-template-columns:1fr}}

/* Gallery */
.gallery{background:var(--paper)}
.gal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.gal figure{margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff}
.gal img{width:100%;height:220px;object-fit:cover;display:block}
.gal figcaption{padding:.6rem .75rem;font-size:.8rem;color:var(--grey);font-weight:600}
@media(max-width:820px){.gal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.gal img{height:190px}}

/* Process - connected timeline */
.process{background:#fff}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:1.4rem;counter-reset:step}
.pstep{position:relative;padding-top:3.4rem}
.pstep::before{counter-increment:step;content:counter(step);font-family:var(--font-display);font-weight:800;font-size:1.1rem;color:#fff;background:var(--blue);width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;z-index:2;box-shadow:0 0 0 6px rgba(80,137,175,.12)}
.pstep::after{content:"";position:absolute;top:23px;left:46px;right:-1.4rem;height:2px;background:var(--line);z-index:1}
.pstep:last-child::after{display:none}
.pstep h3{font-family:var(--font-body);font-weight:800;font-size:1.05rem;margin:0 0 .3rem}
.pstep p{color:var(--grey);font-size:.92rem;margin:0}
@media(max-width:820px){
  .steps{grid-template-columns:1fr;gap:0}
  .pstep{padding:0 0 1.9rem 64px}
  .pstep::before{top:0;left:0}
  .pstep::after{top:46px;left:22px;right:auto;width:2px;height:calc(100% - 46px)}
  .pstep:last-child{padding-bottom:0}
}

/* Standalone quote section */
.quote{background:linear-gradient(180deg,#fff,var(--paper))}
.quote-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.6rem,4vw,3rem);align-items:start}
.quote-copy h2{font-size:clamp(1.7rem,3.4vw,2.4rem)}
.quote-copy .lead{color:var(--grey);margin-top:.7rem}
.qbenefits{list-style:none;padding:0;margin:1.3rem 0 0}
.qbenefits li{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.65rem;font-size:.97rem}
.qbenefits svg{flex:0 0 auto;color:var(--blue);margin-top:3px}
@media(max-width:900px){.quote-grid{grid-template-columns:1fr}}

/* Guarantee */
.guarantee{background:var(--blue-deep);color:#fff;text-align:center}
.guarantee .badge{width:88px;height:88px;margin:0 auto 1.1rem;color:#fff}
.guarantee h2{color:#fff;font-size:clamp(1.55rem,3.2vw,2.2rem)}
.guarantee p{color:#d3e6ef;max-width:56ch;margin:.8rem auto 0}
.guarantee small{display:block;color:#9fc0d1;margin-top:.9rem;font-size:.78rem}

/* Cross-sell */
.cross{background:var(--paper)}
.cross-card{display:flex;gap:1.4rem;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-left:5px solid var(--blue);border-radius:12px;padding:1.6rem 1.8rem}
.cross-card h3{font-size:1.3rem}
.cross-card p{color:var(--grey);margin:.35rem 0 0;max-width:54ch}

/* FAQ */
.faq details{border-bottom:1px solid var(--line-soft);padding:1.05rem 0}
.faq summary{font-family:var(--font-body);font-weight:800;font-size:1.04rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center;color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--blue);font-size:1.4rem;line-height:1;transition:transform .2s ease}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq p{color:var(--grey);margin:.75rem 0 0;font-size:.97rem}

/* Final CTA */
.final{background:var(--blue-slate);color:#fff;text-align:center}
.final h2{color:#fff;font-size:clamp(1.8rem,3.8vw,2.5rem)}
.final p{color:#b7cdd8;max-width:52ch;margin:.8rem auto 1.5rem}
.final-cta{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

/* Footer */
.footer{background:#132430;color:#93aebd;font-size:.9rem;padding:2.6rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.footer h4{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#fff;margin:0 0 .8rem}
.footer a{color:#93aebd;text-decoration:none}
.footer a:hover{color:#fff}
.footer .loc{margin-bottom:.9rem}
.footer .loc b{color:#fff;font-weight:600}
.footer-logo{display:inline-block;background:#fff;padding:7px 13px;border-radius:8px;margin-bottom:1rem}
.footer-logo img{height:32px;width:auto;display:block}
.footer-legal{border-top:1px solid rgba(255,255,255,.12);padding-top:1.3rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.8rem;color:#89a3b1}
.footer-legal a{color:#89a3b1}
@media(max-width:720px){.footer-grid{grid-template-columns:1fr}}

/* Sticky mobile bar */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:120;display:none;gap:.6rem;padding:.6rem;background:rgba(255,255,255,.97);border-top:1px solid var(--line);backdrop-filter:blur(8px)}
.mbar .btn{flex:1;padding:.9rem}
@media(max-width:860px){.mbar{display:flex}body{padding-bottom:76px}}

/* anchor offsets clear the sticky header */
#quote,#sizes,#build,#reviews{scroll-margin-top:84px}

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