/* ViniPalauro Construtora & Decor — estilos do site */
:root {
  --navy-950: #001029;      /* mesmo fundo do logotipo */
  --navy-900: #04173a;
  --navy-800: #0a2452;
  --navy-700: #12306a;
  --blue: #1677e0;
  --blue-bright: #2ea3ff;
  --silver: #c3cbd6;
  --silver-100: #eef1f5;
  --silver-50: #f6f8fa;
  --text: #1a2333;
  --muted: #5a6577;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 16, 41, .10);
  --shadow-lg: 0 24px 60px rgba(0, 16, 41, .22);
  --header-h: 76px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-950); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8em;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.ico { width: 26px; height: 26px; flex: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: var(--white); box-shadow: 0 8px 22px rgba(22, 119, 224, .35); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-950); }
.btn-light { background: var(--white); color: var(--navy-950); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(0, 16, 41, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .06em; background: linear-gradient(180deg, #fff, var(--silver)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 500;
  position: relative; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue-bright); transition: width .25s;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  padding: calc(var(--header-h) + 60px) 0 48px;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-950);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,16,41,.97) 0%, rgba(0,16,41,.85) 38%, rgba(10,36,82,.45) 70%, rgba(22,119,224,.15) 100%),
    url("../img/hero.jpg") center right / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; right: -10%; bottom: -1px; width: 70%; height: 120px;
  background: var(--white); clip-path: polygon(30% 100%, 100% 0, 100% 100%);
}
.hero-content { position: relative; max-width: 1200px; }
.hero-content > * { max-width: 680px; }
.hero .eyebrow { color: var(--blue-bright); }
.hero h1 { color: var(--white); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-stats {
  position: relative; list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
  max-width: 820px;
}
.hero-stats li { padding: 20px 20px 0 0; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--white); }
.hero-stats span { font-size: .88rem; color: rgba(255,255,255,.7); }

/* Intro */
.intro { padding-block: 56px 24px; }
.intro-inner p { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; max-width: 900px; color: var(--navy-800); border-left: 4px solid var(--blue); padding-left: 24px; }

/* Quem somos */
.about { padding-top: 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; margin: 0; }
.about-media img { border-radius: 120px var(--radius-lg) var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1.05; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute; right: -14px; bottom: 28px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  color: var(--white); padding: 18px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.about-badge strong { font-family: var(--font-head); font-size: 2.3rem; color: var(--blue-bright); line-height: 1; }
.about-badge span { font-size: .85rem; max-width: 80px; line-height: 1.3; }
.mission {
  margin: 28px 0 0; padding: 22px 26px;
  background: var(--silver-50); border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  font-family: var(--font-head); font-weight: 600; color: var(--navy-900); line-height: 1.5;
}
.mission-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* Seções - cabeçalho */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: var(--blue-bright); }

/* Soluções */
.solutions { background: var(--silver-50); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: .92rem; color: var(--muted); flex: 1; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .72rem; font-weight: 600; color: var(--navy-700); background: var(--silver-100); padding: 4px 10px; border-radius: 999px; }

/* Diferenciais */
.diffs {
  background:
    radial-gradient(circle at 85% 10%, rgba(46,163,255,.18), transparent 45%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.diff-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.diff-list li {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 24px 20px;
}
.diff-list .ico { width: 38px; height: 38px; color: var(--blue-bright); margin-bottom: 14px; }
.diff-list p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.85); }

.process { margin-top: 72px; }
.process h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 28px; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: passo; }
.process li {
  counter-increment: passo; position: relative;
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22,119,224,.25), rgba(255,255,255,.03));
  border: 1px solid rgba(46,163,255,.25);
  display: flex; flex-direction: column; gap: 8px;
}
.process li::before {
  content: "0" counter(passo); position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: rgba(255,255,255,.12);
}
.process .ico { width: 40px; height: 40px; color: var(--blue-bright); }
.process strong { font-family: var(--font-head); font-size: 1.05rem; }
.process span { font-size: .92rem; color: rgba(255,255,255,.78); }

/* Projetos */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font: 600 .85rem var(--font-body); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--silver); background: var(--white); color: var(--navy-800); transition: all .2s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-950); }
.gallery-item.is-hidden { display: none; }
.gallery-open { all: unset; cursor: zoom-in; display: block; width: 100%; aspect-ratio: 1; }
.gallery-open:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: -3px; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.06); opacity: .85; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,16,41,.92));
  color: var(--white); display: flex; flex-direction: column;
}
.gallery-cat { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); font-weight: 600; }
.gallery-item figcaption strong { font-family: var(--font-head); font-size: .95rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,10,28,.92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 14px; }
.lightbox figcaption strong { display: block; font-family: var(--font-head); }
.lightbox figcaption span { color: rgba(255,255,255,.75); font-size: .92rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1;
}

/* Segurança */
.safety { background: var(--silver-50); }
.safety-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.safety-media { margin: 0; }
.safety-media img { border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy-700)); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); margin: 0; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--silver-100); color: var(--blue); }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; color: var(--navy-950); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--silver-100); }
.map iframe { width: 100%; height: 100%; border: 0; }

.quote-form {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg); border-top: 5px solid var(--blue);
  display: grid; gap: 16px;
}
.quote-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"],
.quote-form select, .quote-form textarea, .quote-form input[type="file"] {
  font: 400 1rem var(--font-body); color: var(--text);
  padding: 12px 14px; border: 1.5px solid #d5dbe3; border-radius: 10px; background: var(--silver-50);
  width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.quote-form input[type="file"] { padding: 10px; font-size: .9rem; }
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form :is(input, select, textarea):focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(22,119,224,.15); }
.quote-form .is-invalid { border-color: #d64545 !important; }
.file-label small { font-weight: 400; color: var(--muted); }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: .92rem; font-weight: 500; }
.alert-ok { background: #e7f6ec; color: #17663a; border: 1px solid #b6e2c4; }
.alert-erro { background: #fdecec; color: #9b2222; border: 1px solid #f3c1c1; }

/* Página legal */
.legal { padding-top: calc(var(--header-h) + 56px); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* Rodapé */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.75); padding: 64px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 120px; height: auto; border-radius: 12px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.site-footer h3 { color: var(--white); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--blue-bright); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* WhatsApp e CTA fixo */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: var(--white); box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }
.mobile-cta { display: none; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsivo */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .diff-list { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 8px 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%); transition: transform .3s; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .about-grid, .safety-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { padding-bottom: 64px; }
  .brand img { height: 46px; }
  .brand-text strong { font-size: .95rem; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 36px; }
  .hero-stats li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .cards, .diff-list, .process ol { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { padding: 28px 10px 10px; }
  .gallery-item figcaption strong { font-size: .82rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-badge { right: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 78px; right: 16px; width: 52px; height: 52px; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: 58px;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    color: var(--white); font-family: var(--font-head); font-weight: 700; text-decoration: none;
    box-shadow: 0 -6px 20px rgba(0,0,0,.15);
  }
}
