/* ===== Tetra Construtora ===== */
:root {
  --orange: #f07d14;
  --orange-dark: #d0620a;
  --navy: #0f2b66;
  --navy-dark: #0a1d45;
  --ink: #1d2433;
  --muted: #5d6677;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --line: #e3e7ef;
  --whats: #25d366;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(15, 43, 102, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Open Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy); }
h2 span, h1 span { color: var(--orange); }
p + p { margin-top: .9rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.center { text-align: center; margin-top: 44px; }

.tag { display: inline-block; font: 700 .75rem/1 "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); background: rgba(240,125,20,.12); padding: .55em 1em; border-radius: 99px; margin-bottom: 16px; }
.tag--light { background: rgba(255,255,255,.12); color: #ffb26b; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font: 700 .95rem "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .03em; padding: 15px 28px; border-radius: 10px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 1.35em; height: 1.35em; flex: none; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -10px rgba(240,125,20,.75); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 12px 26px -10px rgba(15,43,102,.7); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--white { background: #fff; color: var(--navy); }
.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--sm { padding: 11px 18px; font-size: .8rem; }
.btn--block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.3); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo { height: 64px; width: 190px; overflow: hidden; display: flex; align-items: center; }
.header__logo img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; transform: scale(1.02); }
.nav { display: flex; align-items: center; gap: 30px; font: 600 .92rem "Montserrat", sans-serif; }
.nav a:not(.btn) { color: var(--navy); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 70px; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,29,69,.92) 0%, rgba(10,29,69,.7) 45%, rgba(10,29,69,.25) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    radial-gradient(circle at 80% 30%, rgba(240,125,20,.35), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #0a1d45, #163b85);
  animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.06); } }
.hero__card { max-width: 620px; background: rgba(15,43,102,.55); border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--orange); backdrop-filter: blur(6px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; margin-bottom: 14px; }
.hero p { color: rgba(255,255,255,.9); }
.hero .btn { margin-top: 28px; }

/* Intro */
.intro__head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-bottom: 60px; }
.intro__head p { color: var(--muted); font-size: 1.05rem; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; background: rgba(240,125,20,.12); margin-bottom: 20px; }
.pillar__icon svg { width: 30px; fill: var(--orange); }
.pillar h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; }
.steps h2 { color: #fff; }
.steps__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps__list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 24px; }
.steps__list b { display: block; font: 900 2.4rem "Montserrat", sans-serif; color: var(--orange); margin-bottom: 10px; }
.steps__list h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps__list p { color: rgba(255,255,255,.75); font-size: .93rem; }

/* Galeria */
.obras { background: var(--bg-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #dfe4ee; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; font: 600 .95rem "Montserrat", sans-serif; background: linear-gradient(transparent, rgba(10,29,69,.9)); opacity: 0; transform: translateY(10px); transition: .3s; }
.gallery__item:hover figcaption { opacity: 1; transform: none; }
.gallery__item--empty { cursor: default; display: grid; place-items: center; text-align: center; color: var(--navy); border: 2px dashed #c3cbdb; background: repeating-linear-gradient(135deg, #eef1f7 0 12px, #e7ebf3 12px 24px); }
.gallery__item--empty svg { width: 46px; fill: var(--orange); margin: 0 auto 8px; opacity: .85; }
.gallery__item--empty span { font: 700 .95rem "Montserrat", sans-serif; }

/* CTA */
.cta { background: linear-gradient(110deg, var(--orange), #f59a3d); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { max-width: 640px; }
.cta .btn { flex: none; }

/* Sobre */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__visual { position: relative; }
.about__logo { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.about__logo img { width: 100%; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--muted); }
.about__text .btn { margin-top: 28px; }

/* Por que */
.why { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; }
.why h2 { color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why__item { text-align: center; padding: 34px 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, transform .3s; }
.why__item:hover { background: rgba(240,125,20,.15); transform: translateY(-5px); }
.why__item svg { width: 48px; fill: var(--orange); margin: 0 auto 16px; }
.why__item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why__item p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* Orçamento */
.budget__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.budget__text h2 { margin-bottom: 18px; }
.budget__text p { color: var(--muted); }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; font-weight: 600; color: var(--navy); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.form { background: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 5px solid var(--orange); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font: 600 .85rem "Montserrat", sans-serif; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-family: "Open Sans", sans-serif; font-weight: 400; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.form textarea { resize: vertical; }

/* Rodapé */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.78); padding-top: 70px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 48px; padding-bottom: 50px; }
.footer__logo { width: 230px; margin-bottom: 18px; }
.footer__logo img { width: 100%; height: auto; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--orange); border-radius: 2px; }
.footer__list { list-style: none; display: grid; gap: 14px; }
.footer__list strong { color: #fff; }
.footer__list a:hover { color: var(--orange); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.social a:hover { background: var(--orange); }
.social svg { width: 20px; fill: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; text-align: center; }

/* WhatsApp flutuante */
.whats-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; }
.whats-float__btn { width: 62px; height: 62px; border-radius: 50%; background: var(--whats); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px -6px rgba(37,211,102,.7); position: relative; transition: transform .2s; }
.whats-float__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whats); z-index: -1; animation: pulse 2s infinite; }
.whats-float__btn svg { width: 34px; height: 34px; }
.whats-float:hover .whats-float__btn { transform: scale(1.08); }
.whats-float__label { background: #fff; color: var(--ink); font: 600 .85rem "Montserrat", sans-serif; padding: 9px 14px; border-radius: 99px; box-shadow: 0 8px 22px -8px rgba(0,0,0,.35); white-space: nowrap; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,30,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: 1100px; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-family: "Montserrat", sans-serif; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: var(--orange); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .whats-float__btn::before { animation: none; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .pillars, .steps__list, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .intro__head, .about__inner, .budget__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__visual { max-width: 420px; margin-inline: auto; }
  .intro__head, .about__text, .budget__text { text-align: center; }
  .checks { width: fit-content; margin-inline: auto; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 16px 22px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-140%); transition: transform .35s; }
  .nav.open { transform: none; }
  .nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .cta__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .pillars, .steps__list, .why__grid, .gallery, .footer__grid { grid-template-columns: 1fr; }
  .header__logo { width: 160px; height: 56px; }
  .hero { min-height: auto; padding-top: 110px; }
  .btn--lg { width: 100%; padding: 16px 20px; font-size: .88rem; }
  .whats-float__label { display: none; }
  .whats-float { right: 16px; bottom: 16px; }
}
