/* ==========================================================================
   DecorVidros — Esquadrias de alumínio e vidro em Joinville
   Estrutura: variáveis → base → componentes → seções → responsivo
   ========================================================================== */

/* ------------------------------ 1. Variáveis ----------------------------- */
:root {
  --yellow:        #FED845;   /* amarelo da marca (destaques e botões)   */
  --yellow-deep:   #EBC944;   /* amarelo das seções amplas               */
  --dark:          #212529;   /* grafite                                 */
  --ink:           #14181C;   /* quase preto (hero, CTA, rodapé)         */
  --ink-soft:      #1B1F23;
  --white:         #FFFFFF;

  --on-dark:       rgba(255, 255, 255, .78);
  --on-dark-soft:  rgba(255, 255, 255, .58);
  --on-light:      #212529;
  --on-light-soft: #6B7178;
  --line-dark:     rgba(255, 255, 255, .16);

  --container:     1380px;
  --radius:        12px;
  --radius-lg:     18px;

  --font: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-light);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: 19px;
  font-weight: 400;
  color: rgba(255, 255, 255, .62);
}
.eyebrow--caps {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--dark { color: rgba(20, 24, 28, .62); }

.accent { color: var(--yellow); }

/* -------------------------------- 3. Botões ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.btn:active { transform: translateY(0); }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFE469; }

.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: #10141a; }

.btn--lg { padding: 19px 44px; font-size: 14.5px; }

/* ------------------------------- 4. Header ------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 30px 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(16, 20, 24, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand__mark { width: 63px; height: auto; }
.brand__name {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
}

.nav { display: flex; align-items: center; gap: 44px; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 16.5px;
  color: rgba(255, 255, 255, .88);
  transition: color .2s ease;
}
.nav__link:hover { color: var(--yellow); }

.nav__social { display: flex; align-items: center; gap: 18px; }
.social svg { width: 21px; height: 21px; fill: rgba(255, 255, 255, .88); transition: fill .2s ease; }
.social:hover svg { fill: var(--yellow); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.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. Hero ------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(880px, 100vh);
  padding: 215px 0 90px;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center 45% / cover no-repeat;
  filter: brightness(.92) saturate(.82);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 6%, rgba(8, 11, 15, .22) 0%, rgba(8, 11, 15, .78) 68%),
    linear-gradient(180deg, rgba(8, 11, 15, .58) 0%, rgba(8, 11, 15, .52) 45%, rgba(8, 11, 15, .94) 100%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__panel {
  max-width: 1105px;
  margin-inline: auto;
  padding: 70px 56px 62px;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero__title {
  max-width: 900px;
  margin: 22px auto 25px;
  font-size: clamp(34px, 4.35vw, 62px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -.025em;
  color: var(--white);
}
.hero__text {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.7;
  color: var(--on-dark);
}
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--on-dark-soft);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 36px;
  margin-top: 49px;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--on-dark);
}
.trust__item svg { width: auto; height: 17px; flex: 0 0 auto; }

/* -------------------------- 6. Seções genéricas -------------------------- */
.section { position: relative; }
.section--dark  { background: var(--dark); color: var(--white); }
.section--light { background: var(--white); }

section[id] { scroll-margin-top: 96px; }
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: inline; } }

.section__head { text-align: center; }
.section__title {
  margin: 14px 0 18px;
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--white);
}
.section__title--dark { color: var(--on-light); }
.section__lead {
  max-width: 540px;
  margin-inline: auto;
  font-size: 17px;
  color: var(--on-dark-soft);
}
.section__action { margin-top: 54px; text-align: center; }

/* ------------------------- 7. Linhas de esquadrias ----------------------- */
.linhas { padding: 108px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 54px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background: #171B1F;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(254, 216, 69, .45); box-shadow: 0 20px 44px rgba(0, 0, 0, .4); }

.card__link { display: block; position: relative; }
.card__img {
  width: 100%;
  aspect-ratio: 1.44;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__img { transform: scale(1.05); }

.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 36px 14px;
  background: linear-gradient(180deg, rgba(12, 15, 18, 0) 0%, rgba(12, 15, 18, .7) 42%, rgba(12, 15, 18, .92) 100%);
}
.card__eyebrow {
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}
.card__title {
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}
.card__cta {
  display: block;
  max-height: 0;
  margin-top: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--yellow);
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease, max-height .3s ease, margin-top .3s ease;
}
.card:hover .card__cta,
.card__link:focus-visible .card__cta { max-height: 40px; margin-top: 10px; opacity: 1; transform: none; }

/* transição diagonal (escuro → branco) */
.divider {
  display: block;
  width: 100%;
  height: 140px;
  margin-top: 96px;
}

/* ------------------------- 8. Aplicações / Escolha ----------------------- */
.escolha { padding: 132px 0; }
.escolha__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.escolha__text {
  max-width: 470px;
  margin-top: 20px;
  font-size: 18px;
  color: var(--on-light-soft);
}

.features { display: grid; gap: 22px; margin: 36px 0 40px; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--dark);
}
.feature__icon svg { width: auto; height: 24px; }
.feature__title { font-size: 17px; font-weight: 600; color: var(--on-light); }
.feature__text { font-size: 15px; color: var(--on-light-soft); }

.escolha__media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 2px;
}

/* ------------------------------- 9. Processo ----------------------------- */
.processo {
  padding: 150px 0 56px;
  border-radius: 48px 48px 0 0;
  background: var(--yellow-deep);
}
.processo .section__action { margin-top: 62px; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 100px auto 0;
}
/* linha de ligação entre os passos, alinhada ao centro dos números */
.steps::before {
  content: "";
  position: absolute;
  top: 148px;
  left: 15.4%;
  right: 15.4%;
  height: 1px;
  background: rgba(20, 24, 28, .3);
}
.step { position: relative; text-align: center; }
.step::before {
  content: "";
  position: absolute;
  top: 144px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--ink);
}
.step__number {
  display: block;
  font-size: clamp(64px, 7.9vw, 114px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  color: rgba(20, 24, 28, .72);
}
.step__title { margin: 85px 0 10px; font-size: clamp(22px, 2.35vw, 34px); font-weight: 600; color: var(--ink); }
.step__text { max-width: 300px; margin: 0 auto; font-size: 18px; line-height: 1.5; color: rgba(20, 24, 28, .72); }

/* --------------------------------- 10. CTA ------------------------------- */
.cta { padding: 118px 0; background: var(--ink); overflow: hidden; }
.cta__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-fachada-vidro.jpg") center / cover no-repeat;
  filter: brightness(.42) saturate(.7);
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 17, .9) 0%, rgba(10, 13, 17, .84) 100%);
}
.cta .container { position: relative; z-index: 1; }

.cta__panel {
  max-width: 1000px;
  margin-inline: auto;
  padding: 58px 48px 50px;
  text-align: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.cta__title {
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--white);
}
.cta__text {
  max-width: 540px;
  margin: 16px auto 30px;
  font-size: 17px;
  color: var(--on-dark);
}

/* -------------------------------- 11. Faixa ------------------------------ */
.strip {
  padding: 30px 24px;
  text-align: center;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--yellow-deep);
}

/* ------------------------------- 12. Rodapé ------------------------------ */
.site-footer {
  padding: 84px 0 34px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 60%),
    var(--ink-soft);
  color: var(--on-dark);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
.site-footer__mark { width: 81px; height: auto; }
.site-footer__name { margin-top: 14px; font-size: 36px; font-weight: 600; color: var(--white); }
.site-footer__text { max-width: 330px; margin-top: 10px; font-size: 15px; color: var(--on-dark-soft); }
.site-footer__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--yellow);
}
.site-footer__link:hover { text-decoration: underline; }

.site-footer__heading {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}
.site-footer__col li + li { margin-top: 9px; }
.site-footer__col a { font-size: 15px; color: rgba(255, 255, 255, .74); transition: color .2s ease; }
.site-footer__col a:hover { color: var(--yellow); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------- 13. WhatsApp flutuante ---------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.wa-float svg { width: 20px; height: 20px; fill: var(--ink); }

/* ------------------------------ 14. Animação ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__img, .btn, .wa-float { transition: none; }
}

/* ------------------------------ 15. Responsivo --------------------------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .escolha { padding: 100px 0; }
  .escolha__grid { grid-template-columns: 1fr; gap: 48px; }
  .escolha__media { order: -1; }
  .escolha__media img { aspect-ratio: 16 / 10; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 96px 24px 34px;
    background: rgba(12, 15, 19, .98);
    backdrop-filter: blur(14px);
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav__link { font-size: 20px; }

  .brand__mark { width: 54px; }
  .brand__name { font-size: 26px; }
  .hero { min-height: auto; padding: 196px 0 70px; }
  .hero__panel { padding: 42px 26px 38px; }
  .divider { height: 92px; margin-top: 70px; }
  .processo { border-radius: 34px 34px 0 0; padding: 84px 0 92px; }
  .steps { grid-template-columns: 1fr; gap: 44px; max-width: 460px; margin-top: 52px; }
  .steps::before, .step::before { display: none; }
  .step__title { margin: 18px 0 8px; }
  .processo .section__action { margin-top: 48px; }
  .cta { padding: 88px 0; }
  .cta__panel { padding: 42px 26px 38px; }
  .site-footer { padding-top: 66px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card__cta { max-height: 40px; margin-top: 10px; opacity: 1; transform: none; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .trust { gap: 12px 22px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .btn { width: 100%; padding: 16px 22px; }
  .btn--lg { padding: 17px 24px; }
  .escolha { padding: 74px 0; }
  .strip { padding: 22px 18px; }
}
.social svg { width: 22px; height: 22px; }
  .hero__bg { background-position: center 42%; }
