/* ===== Cortinas Divino — estilo base ===== */

:root{
  --bg: #FAF8F6;
  --bg-alt: #F3EFEA;
  --white: #FFFFFF;
  --ink: #201C1A;
  --ink-soft: #5B564F;
  --ink-faint: #8A847B;
  --line: #E7E0D8;
  --red: #C41E2A;
  --red-dark: #9C1620;
  --red-tint: #FBEAEA;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-soft: 0 12px 32px -18px rgba(32,28,26,0.25);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

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

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

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus{ left: 16px; top: 16px; }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 12px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--red-dark);
  box-shadow: 0 10px 24px -10px rgba(196,30,42,.55);
}

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); }

.btn-sm{ padding: 10px 18px; font-size: 14px; }
.btn-lg{ padding: 18px 36px; font-size: 16px; }

.icon-wpp{ width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand img{ height: 46px; width: auto; mix-blend-mode: multiply; }

.main-nav{
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.main-nav a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover{ color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media{
  position: absolute;
  inset: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,17,15,.72) 0%, rgba(20,17,15,.5) 38%, rgba(20,17,15,.18) 68%, rgba(20,17,15,.05) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 640px;
  min-width: 0;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero .eyebrow{ color: #F0C7CA; }
.hero h1{
  font-size: clamp(32px, 4.6vw, 50px);
  color: var(--white);
  margin-bottom: .4em;
}
.hero-sub{
  font-size: 17px;
  color: rgba(255,255,255,.88);
  max-width: 520px;
}
.hero-badges{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0;
  margin: 20px 0 28px;
}
.hero-badges li{
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
}
.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero .btn-ghost{
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.hero .btn-ghost:hover{
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ===== Strip diferenciais ===== */
.strip{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.strip-inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 26px 24px;
}
.strip-item{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  justify-content: center;
  text-align: left;
}
.strip-item svg{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Sections ===== */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }

.section-head{
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2{ font-size: clamp(26px, 3.4vw, 36px); }
.section-lead{ font-size: 16px; }

/* ===== Produtos grid ===== */
.grid-produtos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.card-produto{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-produto:hover{
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  border-color: #DCD3C8;
}
.card-media{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card-produto:hover .card-media img{ transform: scale(1.05); }
.card-produto h3{
  font-size: 19px;
  margin: 22px 22px 8px;
}
.card-produto p{
  font-size: 14.5px;
  margin: 0 22px 22px;
}

/* last-row centering when incomplete (3 desktop / 2 tablet / 1 mobile) */
@media (min-width: 981px){
  .grid-produtos{ justify-items: stretch; }
}

/* ===== Como funciona ===== */
.grid-passos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.passo{
  padding: 8px 8px 0;
  border-top: 2px solid var(--line);
  position: relative;
}
.passo-num{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--red);
  font-weight: 600;
  margin-top: -13px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  padding-right: 10px;
}
.passo h3{ font-size: 19px; }
.passo p{ font-size: 14.5px; }

/* ===== Trabalhos gallery ===== */
.grid-trabalhos{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 16px;
}
.foto-trabalho{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.foto-trabalho img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.foto-trabalho:hover img{ transform: scale(1.06); }
.foto-grande{
  grid-column: span 2;
  grid-row: span 2;
}

/* ===== Sobre ===== */
.sobre-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sobre-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.sobre-content p{ font-size: 15.5px; }
.sobre-badges{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  max-width: 360px;
}
.sobre-badge{
  border-top: 2px solid var(--red);
  padding-top: 12px;
}
.sobre-badge strong{
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.sobre-badge span{
  font-size: 12.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== CTA final ===== */
.cta-final{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 88px 0;
  text-align: center;
}
.cta-final h2{
  font-size: clamp(26px, 3.6vw, 38px);
}
.cta-final p{
  max-width: 460px;
  margin: 0 auto 28px;
}
.cta-final-note{
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== Footer ===== */
.site-footer{
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img{ height: 38px; margin-bottom: 14px; mix-blend-mode: multiply; }
.footer-brand p{ font-size: 14px; max-width: 280px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span{
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--red); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ===== WhatsApp float ===== */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.06); }
.whatsapp-float svg{ width: 28px; height: 28px; fill: currentColor; }

/* ===================================================== */
/* RESPONSIVE                                             */
/* ===================================================== */

@media (max-width: 980px){
  .main-nav{ margin-right: 16px; gap: 22px; }
  .grid-produtos{ grid-template-columns: repeat(2, 1fr); }
  .grid-produtos > :last-child:nth-child(odd){
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    margin: 0 auto;
  }
  .grid-passos{ grid-template-columns: 1fr; gap: 32px; }
  .grid-trabalhos{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .foto-grande{ grid-column: span 2; grid-row: span 1; }
  .grid-trabalhos > :last-child{ grid-column: 1 / -1; }
  .sobre-grid{ grid-template-columns: 1fr; gap: 40px; }
  .sobre-media{ order: -1; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 720px){
  .header-inner{ height: 72px; }
  .brand img{ height: 38px; }
  .main-nav{
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a{ padding: 10px 0; width: 100%; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-sm span{ display: none; }

  .hero{ min-height: 560px; }
  .hero-content{ padding-top: 48px; padding-bottom: 48px; }
  .hero-overlay{ background: linear-gradient(180deg, rgba(20,17,15,.35) 0%, rgba(20,17,15,.55) 55%, rgba(20,17,15,.82) 100%); }

  .strip-inner{ grid-template-columns: 1fr; gap: 14px; padding: 22px 24px; }
  .strip-item{ justify-content: flex-start; }

  .section{ padding: 68px 0; }
  .section-head{ margin-bottom: 40px; }

  .grid-produtos{ grid-template-columns: 1fr; }
  .grid-produtos > :last-child:nth-child(odd){ max-width: 100%; }

  .grid-trabalhos{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .foto-grande{ grid-column: span 2; grid-row: span 1; }
  .grid-trabalhos > :last-child{ grid-column: 1 / -1; }

  .sobre-badges{ grid-template-columns: 1fr 1fr; }

  .footer-inner{ grid-template-columns: 1fr; gap: 28px; }
}
