/* ==========================================================================
   Crystal Glass Inc, landing page /frameless-shower-doors/
   Tokens identicos ao site principal (styles.css da home) para a LP nao
   parecer outra marca. Mobile first, 375px primeiro.
   ========================================================================== */

:root{
  --gold:#b07a20;
  --gold-light:#d1a662;
  --gold-dark:#8a5600;
  --ink:#0a1018;
  --bg:#fafaf9;
  --surface:#f6f5f3;
  --muted:#4a5666;
  --border:#dce2e8;
  --white:#ffffff;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 4px 18px rgba(10,16,24,.07);
  --shadow-lg:0 12px 40px rgba(10,16,24,.12);
  --maxw:1152px;
  --maxw-md:1024px;
  --maxw-sm:768px;
  --header-h:64px;
  --callbar-h:60px;
  --font-display:"Playfair Display",Georgia,serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  /* tratamento de foto do dossie: nunca dessaturar, o vidro precisa do reflexo */
  --photo-filter:saturate(1.05) contrast(1.03);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font-body);font-size:16px;line-height:1.65;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  padding-bottom:var(--callbar-h);
}
img{max-width:100%;display:block;height:auto}
a{color:inherit}
h1,h2,h3{font-family:var(--font-display);font-weight:700;line-height:1.16;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(1.95rem,6.4vw,3.2rem)}
h2{font-size:clamp(1.6rem,4.6vw,2.5rem)}
h3{font-size:clamp(1.1rem,2.6vw,1.4rem)}
p{margin:0 0 1rem}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:4px}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:16px}
.wrap--md{max-width:var(--maxw-md)}
.wrap--sm{max-width:var(--maxw-sm)}
.section{padding:56px 0}
.section--tint{background:var(--surface)}
.center{text-align:center}
.lead{color:var(--muted);max-width:60ch;margin-inline:auto}
.sr-only,.skip{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:200;background:var(--ink);color:#fff;padding:.6rem 1rem;border-radius:8px}
.stars{color:var(--gold);letter-spacing:2px}
.stars--sm{font-size:.9rem}
.linkgold{color:var(--gold-dark);font-weight:600}
.ico{width:18px;height:18px;flex:none;fill:currentColor}
.ico--lg{width:26px;height:26px;color:var(--gold)}

/* ---------- botoes ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-size:.96rem;font-weight:600;
  padding:.9rem 1.5rem;border-radius:999px;border:1.5px solid transparent;
  text-decoration:none;cursor:pointer;line-height:1.2;
  transition:background .2s,color .2s,border-color .2s,transform .12s;
}
.btn:active{transform:translateY(1px)}
.btn--gold{background:var(--gold);color:#fff;box-shadow:0 3px 12px rgba(176,122,32,.28)}
.btn--gold:hover{background:var(--gold-dark)}
.btn--ghost{background:transparent;color:var(--gold-dark);border-color:var(--gold)}
.btn--ghost:hover{background:rgba(176,122,32,.09)}
.btn--wide{width:100%}
.btn--sm{padding:.62rem 1.05rem;font-size:.86rem}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--gold-dark);font-weight:600;cursor:pointer;text-decoration:underline}
.linkbtn--quiet{color:var(--muted);font-weight:500}

/* ---------- header ---------- */
.header{
  position:fixed;inset:0 0 auto 0;z-index:60;height:var(--header-h);
  display:flex;align-items:center;background:rgba(250,250,249,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;transition:border-color .25s,box-shadow .25s;
}
.header.is-stuck{border-bottom-color:var(--border);box-shadow:0 2px 14px rgba(10,16,24,.06)}
.header__in{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand img{width:132px;height:auto}
.header__actions{display:flex;align-items:center;gap:10px}
.header__tel{display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;
  font-weight:600;color:var(--ink);font-size:.9rem}
.header__tel .ico{color:var(--gold)}
.header__telText{display:none}

/* ---------- hero ---------- */
.hero{padding-top:calc(var(--header-h) + 28px);padding-bottom:8px;background:var(--bg)}
.hero__in{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:16px}
.hero h1{margin-bottom:.55em}
.hero__sub{color:var(--muted);font-size:1.02rem;max-width:54ch}
.hero__cta{display:flex;flex-direction:column;gap:10px;margin-bottom:1rem}
.hero__proof{font-size:.88rem;color:var(--muted);display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.hero__photo{margin-top:26px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg)}
.hero__photo img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center 38%;filter:var(--photo-filter)}

/* ---------- faixa de confianca ---------- */
.trust{background:var(--ink);color:#fff;padding:22px 0}
.trust__in{display:grid;grid-template-columns:repeat(2,1fr);gap:18px 12px}
.trust__item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.trust__item strong{font-size:.88rem;line-height:1.25}
.trust__item span{font-size:.76rem;color:#b9c2cd}
.trust__item .ico--lg{color:var(--gold-light)}
.trust__item--award img{width:54px;height:auto;border-radius:4px;margin-bottom:2px}
.trust__item--scope{grid-column:1 / -1;border-top:1px solid rgba(255,255,255,.14);padding-top:14px}
.trust__item--scope strong{color:var(--gold-light)}

/* ---------- tres passos ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;gap:20px}
.step{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:24px 20px;position:relative}
.step__n{
  display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:50%;background:var(--gold);color:#fff;font-weight:700;font-size:.95rem;margin-bottom:12px;
}
.step h3{margin-bottom:.3em}
.step p{margin:0;color:var(--muted);font-size:.95rem}

/* ---------- formulario ---------- */
.section--quote{background:linear-gradient(180deg,var(--surface),var(--bg))}
.quote{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-lg);padding:26px 18px}
.quote__head{text-align:center;margin-bottom:20px}
.quote__head h2{margin-bottom:.35em}
.quote__head p{color:var(--muted);font-size:.95rem;margin:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.qstep[hidden]{display:none}
.qstep__nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:.85rem}
.qstep__mark{color:var(--muted)}
.field{margin-bottom:16px}
.field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.35rem}
.opt{font-weight:500;font-size:.76rem;color:var(--muted);margin-left:.35rem}
.field input[type=text],.field input[type=tel],.field input[type=email],.field select{
  width:100%;padding:.85rem .9rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);
  font:inherit;font-size:1rem;background:var(--white);color:var(--ink);
}
.field input:focus,.field select:focus{border-color:var(--gold);outline:none;box-shadow:0 0 0 3px rgba(176,122,32,.14)}
.field input[type=file]{width:100%;font-size:.9rem;padding:.7rem;border:1.5px dashed var(--border);border-radius:var(--radius-sm);background:var(--surface)}
.field.is-bad input,.field.is-bad select{border-color:#b3261e}
.fieldhint{font-size:.8rem;color:var(--muted);margin:.4rem 0 0}
.fielderr{font-size:.82rem;color:#b3261e;margin:.35rem 0 0;min-height:0}
.fielderr:empty{display:none}
.thumbs{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:.6rem 0 0;padding:0}
.thumbs li{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}
.thumbs img{width:100%;height:100%;object-fit:cover}

.consent{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:14px}
.consent input{margin-top:.28rem;width:18px;height:18px;flex:none;accent-color:var(--gold)}
.consent label{font-size:.78rem;line-height:1.5;color:var(--muted);font-weight:400}
.consent__head{color:var(--ink);font-size:.82rem}
.consent a{color:var(--gold-dark);text-decoration:underline}
.consent--sms{background:var(--surface);border-radius:var(--radius-sm);padding:12px}

.qform__scope{
  font-size:.82rem;color:var(--ink);background:rgba(176,122,32,.08);
  border:1px solid rgba(176,122,32,.25);border-radius:var(--radius-sm);
  padding:.75rem .85rem;margin-bottom:14px;
}
.qform__micro{font-size:.8rem;color:var(--muted);text-align:center;margin:.7rem 0 0}
.recycle__msg{font-size:.95rem;background:var(--surface);border-radius:var(--radius-sm);padding:16px;margin-bottom:16px}
.done{text-align:center;padding:14px 0}
.done__ico{width:46px;height:46px;fill:var(--gold);margin:0 auto 10px}
.done h3{margin-bottom:.4em}
.done p{color:var(--muted);font-size:.95rem;margin:0}
.done a{color:var(--gold-dark);font-weight:600}
.formmsg{margin-top:12px;font-size:.9rem;border-radius:var(--radius-sm)}
.formmsg:empty{display:none}
.formmsg.is-err{background:#fdecea;color:#8c1d18;padding:.75rem .9rem}
.formmsg.is-ok{background:#eaf6ec;color:#1c5b2a;padding:.75rem .9rem}

/* ---------- antes e depois ----------
   Par lado a lado, nao slider de arrastar: as fotos do acervo foram tiradas de
   angulos diferentes, e um wipe so funciona quando a camera nao se mexe. Quando
   o protocolo de foto do DESIGN.md estiver rodando (mesmo ponto no antes e no
   depois), da para trocar por slider sem mexer nas medidas desta secao. */
.bagrid{display:grid;gap:26px;margin-top:24px}
.ba{margin:0}
.ba__pair{display:grid;grid-template-columns:1fr 1fr;gap:6px;
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:var(--surface)}
.ba__shot{position:relative;aspect-ratio:1/1;overflow:hidden}
.ba__shot img{width:100%;height:100%;object-fit:cover;filter:var(--photo-filter)}
.ba__tag{position:absolute;left:8px;bottom:8px;font-size:.66rem;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;background:rgba(10,16,24,.75);color:#fff;padding:.26rem .5rem;border-radius:999px}
.ba__tag--gold{background:var(--gold)}
.ba figcaption{font-size:.85rem;color:var(--muted);margin-top:.7rem;text-align:center}

/* ---------- galeria ---------- */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}
.gallery button{padding:0;border:0;background:none;cursor:zoom-in;border-radius:var(--radius-sm);overflow:hidden;display:block}
.gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform .35s ease;filter:var(--photo-filter)}
.gallery button:hover img{transform:scale(1.04)}

.lightbox{position:fixed;inset:0;z-index:120;background:rgba(10,16,24,.92);
  display:none;align-items:center;justify-content:center;padding:20px}
.lightbox.is-open{display:flex}
.lightbox img{max-width:100%;max-height:88vh;width:auto;border-radius:8px}
.lightbox__close{position:absolute;top:14px;right:16px;width:42px;height:42px;border-radius:50%;
  border:0;background:rgba(255,255,255,.14);color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}

/* ---------- reviews ---------- */
.reviews{display:grid;gap:16px;margin:24px 0}
.review{margin:0;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:22px 20px}
.review p{font-size:.98rem;margin:.5rem 0 .9rem}
.review cite{font-style:normal;font-weight:600;font-size:.9rem}

/* ---------- midia ---------- */
.midia{display:grid;gap:24px;align-items:center}
.midia__copy p{color:var(--muted)}
.midia__photo{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);max-width:420px;margin-inline:auto}
.midia__photo img{width:100%;filter:var(--photo-filter)}

/* ---------- materiais ---------- */
.specs{display:grid;gap:14px;margin-top:24px}
.spec{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.spec h3{margin-bottom:.3em}
.spec p{margin:0;color:var(--muted);font-size:.93rem}

/* ---------- areas ---------- */
.cities{color:var(--muted);font-size:.95rem;line-height:2;max-width:56ch;margin-inline:auto}
.cities__more{display:block;color:var(--ink);font-weight:600;margin-top:.4rem}

/* ---------- faq ---------- */
.faq{margin-top:22px;border-top:1px solid var(--border)}
.faq__item{border-bottom:1px solid var(--border)}
.faq__item summary{
  cursor:pointer;list-style:none;padding:16px 34px 16px 0;font-weight:600;font-size:.98rem;position:relative;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{
  content:"";position:absolute;right:6px;top:50%;width:9px;height:9px;margin-top:-6px;
  border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);
  transform:rotate(45deg);transition:transform .2s;
}
.faq__item[open] summary::after{transform:rotate(-135deg);margin-top:-2px}
.faq__item p{color:var(--muted);font-size:.94rem;padding:0 0 16px}

/* ---------- fechamento ---------- */
.closer{background:var(--ink);color:#fff}
.closer h2{color:#fff}
.closer .lead{color:#b9c2cd}
.closer__cta{display:flex;flex-direction:column;gap:10px;max-width:340px;margin:22px auto 0}
.closer .btn--ghost{color:var(--gold-light);border-color:var(--gold-light)}
.closer .btn--ghost:hover{background:rgba(209,166,98,.14)}

/* ---------- garantia ---------- */
.guarantee{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:32px 24px;text-align:center}
.guarantee__ico{width:38px;height:38px;fill:var(--gold);margin:0 auto 12px}
.guarantee h2{font-size:clamp(1.35rem,3.4vw,1.9rem);margin-bottom:.45em}
.guarantee p{color:var(--muted);max-width:56ch;margin:0 auto;font-size:.98rem}

/* ---------- rodape ---------- */
.footer{background:var(--surface);border-top:1px solid var(--border);padding:40px 0 0;font-size:.92rem}
.footer__in{display:grid;gap:26px}
.footer__logo{width:150px}
.footer__col p{color:var(--muted);margin:.7rem 0 0}
.footer__col h3{font-size:1.02rem;margin-bottom:.5em}
.footer address{font-style:normal;color:var(--muted);line-height:1.9}
.footer address a{color:var(--gold-dark);font-weight:600;text-decoration:none}
.footer__hours{font-size:.88rem}
.footer__links{list-style:none;margin:0;padding:0;line-height:2}
.footer__links a{color:var(--muted);text-decoration:none}
.footer__links a:hover{color:var(--gold-dark)}
.footer__base{margin-top:30px;border-top:1px solid var(--border);padding:16px 0;text-align:center}
.footer__base p{margin:0;font-size:.8rem;color:var(--muted)}

/* ---------- flutuantes ---------- */
.callbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;height:var(--callbar-h);
  background:var(--white);border-top:1px solid var(--border);
  box-shadow:0 -3px 16px rgba(10,16,24,.09);padding:8px 12px;
  padding-bottom:calc(8px + env(safe-area-inset-bottom));
}
.callbar__btn{
  display:flex;align-items:center;justify-content:center;gap:.5rem;height:100%;
  background:var(--gold);color:#fff;border-radius:999px;text-decoration:none;font-weight:600;font-size:.98rem;
}
.sms-fab{
  position:fixed;right:14px;bottom:calc(var(--callbar-h) + 14px);z-index:75;
  display:inline-flex;align-items:center;gap:.45rem;
  background:var(--ink);color:#fff;text-decoration:none;font-weight:600;font-size:.86rem;
  padding:.7rem 1rem;border-radius:999px;box-shadow:var(--shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s,transform .25s,visibility .25s;
}
.sms-fab.is-in{opacity:1;visibility:visible;transform:none}
.sms-fab .ico{color:var(--gold-light)}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
.rv.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
}

/* ==========================================================================
   >= 600px
   ========================================================================== */
@media (min-width:600px){
  .header__telText{display:inline}
  .hero__cta{flex-direction:row;flex-wrap:wrap}
  .hero__cta .btn{flex:1 1 auto;min-width:200px}
  .closer__cta{flex-direction:row;max-width:none;justify-content:center}
  .trust__in{grid-template-columns:repeat(3,1fr)}
  .trust__item--scope{grid-column:auto;border-top:0;padding-top:0}
  .specs{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .quote{padding:32px 28px}
}

/* ==========================================================================
   >= 900px
   ========================================================================== */
@media (min-width:900px){
  :root{--header-h:72px}
  body{padding-bottom:0}
  .section{padding:80px 0}
  .brand img{width:172px}
  .header__tel{font-size:1rem}

  .hero{padding-top:calc(var(--header-h) + 56px);padding-bottom:40px}
  .hero__in{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
  .hero__photo{margin-top:0}
  .hero__photo img{aspect-ratio:4/5;object-position:center 42%}
  .hero__sub{font-size:1.08rem}

  .trust{padding:26px 0}
  .trust__in{grid-template-columns:repeat(5,1fr)}
  .trust__item{flex-direction:column}

  .bagrid{grid-template-columns:repeat(2,1fr);gap:32px}
  .gallery{grid-template-columns:repeat(4,1fr);gap:14px}
  .reviews{grid-template-columns:repeat(3,1fr)}
  .specs{grid-template-columns:repeat(4,1fr)}
  .midia{grid-template-columns:1.1fr .9fr;gap:48px}
  .midia__photo{max-width:none}
  /* a foto e 880x1320: sem teto ela estica a secao inteira */
  .midia__photo img{max-height:560px;object-fit:cover;object-position:center 22%}

  .footer__in{grid-template-columns:1.4fr 1fr 1fr;gap:40px}

  /* barra de ligar e so mobile, no desktop o telefone ja vive no header */
  .callbar{display:none}
  .sms-fab{bottom:22px;right:22px;padding:.8rem 1.15rem;font-size:.9rem}
}
