/* ============================================================
   TEMP Projetos — Climatização
   Paleta amostrada do mockup (page.png):
   navy azulado com gradiente — #16334B / #152F46 (claro) -> #08151F / #01070E (escuro)
   brilhos #2C5473 | destaque steel-blue #2C90B7 | cinza azulado #8FA3B3 | branco
   ============================================================ */

:root {
    --navy-900: #050f18; /* mais escuro */
    --navy-850: #08151f;
    --navy-800: #0b1b2a; /* base */
    --navy-750: #102333; /* hero meio */
    --navy-700: #142b3d; /* cards */
    --navy-650: #16334b; /* painel mais claro */
    --navy-hi:  #2c5473; /* brilho azul */

    --accent: #2c90b7;   /* steel / sky blue */
    --accent-600: #1f7596;
    --accent-300: #5cb6d8;
    --accent-rgb: 44, 144, 183;

    --gray: #8fa3b3;
    --gray-300: #c2ced8;
    --gray-rgb: 143, 163, 179;

    --white: #ffffff;
    --wa: #25d366;
    --wa-600: #1ebe5a;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 22px 50px -22px rgba(0, 0, 0, .7);
    --shadow-card: 0 14px 34px -18px rgba(0, 0, 0, .75);
    --maxw: 1180px;
    --header-h: 88px;

    --ff-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--gray-300);
    background: var(--navy-850);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--white); line-height: 1.15; margin: 0 0 .5em; }

a { color: var(--accent-300); text-decoration: none; }

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

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

/* Seções com gradiente sutil para dar profundidade (não "chapado") */
.section { padding: 84px 0; position: relative; }
.section--alt  { background: linear-gradient(180deg, #0b1b2a 0%, #102333 55%, #0c1e2e 100%); }
.section--dark { background: linear-gradient(180deg, #08151f 0%, #0b1b2a 100%); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: .78rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--accent-300);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--gray); font-size: 1.05rem; margin: 0; }

.text-accent {
    color: var(--accent-300);
    background: linear-gradient(90deg, #5cb6d8, #2c90b7);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--ff-head); font-weight: 600; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 14px 26px; border-radius: var(--radius-sm);
    border: 1.5px solid transparent; cursor: pointer; transition: .22s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, #36a3cc, #2076a0);
    color: var(--white); box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .8);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-outline { background: rgba(var(--gray-rgb), .04); color: var(--white); border-color: rgba(var(--gray-rgb), .45); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-300); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-600); transform: translateY(-2px); }
.btn-ghost { background: rgba(var(--accent-rgb), .12); color: var(--accent-300); border-color: rgba(var(--accent-rgb), .35); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), .2); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 60;
    height: var(--header-h);
    background: rgba(8, 21, 31, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--gray-rgb), .12);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 62px; width: auto; display: block; }
.site-footer .brand-logo-img { height: 70px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    font-family: var(--ff-head); font-weight: 500; font-size: .86rem;
    letter-spacing: .05em; text-transform: uppercase; color: var(--gray-300);
    position: relative; padding: 6px 0; transition: color .2s;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--accent); transition: width .25s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: 8px;
    flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO  (gradiente azul com brilhos — como no mockup)
   ============================================================ */
.hero {
    position: relative;
    background:
        linear-gradient(105deg, rgba(5, 15, 24, .97) 0%, rgba(8, 21, 31, .88) 42%, rgba(11, 27, 42, .55) 72%, rgba(11, 27, 42, .25) 100%),
        radial-gradient(900px 460px at 88% -8%, rgba(var(--accent-rgb), .22), transparent 60%),
        url('/img/background.png') center/cover no-repeat;
    padding: 96px 0 0;
    overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 640px); align-items: center; min-height: 420px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
.hero p.lead { font-size: 1.12rem; color: var(--gray-300); max-width: 540px; margin: 18px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* faixa de estatísticas */
.stats {
    position: relative; z-index: 2;
    margin-top: 70px; padding: 36px 0;
    border-top: 1px solid rgba(var(--gray-rgb), .12);
    background: linear-gradient(180deg, rgba(8, 21, 31, .55), rgba(5, 15, 24, .75));
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .stat-ico {
    width: 52px; height: 52px; flex: none; border-radius: 12px;
    display: grid; place-items: center; color: var(--accent-300);
    background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .3);
}
.stat .stat-ico svg { width: 26px; height: 26px; }
.stat .num { font-family: var(--ff-head); font-weight: 800; font-size: 1.7rem; color: var(--white); line-height: 1; }
.stat .lbl { font-size: .82rem; color: var(--gray); margin-top: 4px; }

/* ============================================================
   GRID DE CARDS GENÉRICO
   ============================================================ */
.cards { display: grid; gap: 22px; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: linear-gradient(160deg, #163048 0%, #0e2233 100%);
    border: 1px solid rgba(var(--gray-rgb), .12);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: .25s ease;
    box-shadow: var(--shadow-card);
}
.card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 20px 40px -18px rgba(var(--accent-rgb), .35); }
.card .card-ico {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
    display: grid; place-items: center; color: var(--accent-300);
    background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .28);
}
.card .card-ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: .94rem; margin: 0; }

/* ============================================================
   PORTFÓLIO / PROJETOS
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter-btn {
    font-family: var(--ff-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em;
    padding: 9px 20px; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--gray-300);
    border: 1px solid rgba(var(--gray-rgb), .25); transition: .2s;
}
.filter-btn:hover { color: var(--white); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
    position: relative; border-radius: var(--radius); overflow: hidden;
    min-height: 230px; display: flex; align-items: flex-end;
    color: var(--white); border: 1px solid rgba(var(--gray-rgb), .1);
    transition: .25s ease;
}
.project::before { content: ""; position: absolute; inset: 0; background: var(--pj-bg, linear-gradient(135deg, #163048, #0c1f30)); transition: transform .4s ease; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 15, 24, .92) 5%, rgba(5, 15, 24, .15) 65%); }
.project:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .55); }
.project:hover::before { transform: scale(1.06); }
.project .pj-body { position: relative; z-index: 1; padding: 22px; width: 100%; }
.project .pj-tag {
    display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    font-family: var(--ff-head); font-weight: 600; color: var(--white);
    background: rgba(var(--accent-rgb), .9); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.project h3 { font-size: 1.15rem; margin: 0 0 2px; }
.project span.pj-loc { font-size: .85rem; color: var(--gray-300); }
.portfolio-cta { text-align: center; margin-top: 40px; }

/* ============================================================
   POR QUE ESCOLHER
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { display: flex; gap: 16px; padding: 24px; background: linear-gradient(160deg, #163048, #0e2233); border-radius: var(--radius); border: 1px solid rgba(var(--gray-rgb), .12); transition: .25s ease; }
.why-item:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-4px); }
.why-item .w-ico { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-300); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .28); }
.why-item .w-ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { font-size: .9rem; color: var(--gray); margin: 0; }

/* ============================================================
   CONTATO / FORMULÁRIO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }

.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info .ci-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-300); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .28); }
.contact-info .ci-ico svg { width: 22px; height: 22px; }
.contact-info h4 { margin: 0 0 2px; font-size: .98rem; }
.contact-info a, .contact-info span { color: var(--gray); font-size: .94rem; }
.contact-info a:hover { color: var(--accent-300); }

.form-card { background: linear-gradient(160deg, #163048, #0e2233); border: 1px solid rgba(var(--gray-rgb), .14); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--ff-head); font-size: .82rem; font-weight: 600; color: var(--gray-300); letter-spacing: .03em; }
.form-field label .req { color: var(--accent-300); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    background: rgba(5, 15, 24, .7); color: var(--white);
    border: 1px solid rgba(var(--gray-rgb), .22); font-family: var(--ff-body); font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2);
}
.form-field select { appearance: none; cursor: pointer; }
.field-validation-error, .validation-summary-errors { color: #ff8585; font-size: .82rem; }
.input-validation-error { border-color: #ff6b6b !important; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { font-size: .8rem; color: var(--gray); }

.alert-success {
    display: flex; align-items: center; gap: 12px;
    background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .4);
    color: #b6f4cf; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px;
}
.alert-success svg { width: 22px; height: 22px; flex: none; color: var(--wa); }

.alert-error {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .4);
    color: #ffb3b3; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px;
}
.alert-error svg { width: 22px; height: 22px; flex: none; color: #ff6b6b; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(180deg, #08151f, #050f18); border-top: 1px solid rgba(var(--gray-rgb), .12); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer p { color: var(--gray); font-size: .92rem; }
.footer-col h4 { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; color: var(--white); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-300); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(var(--gray-rgb), .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--gray-rgb), .08); border: 1px solid rgba(var(--gray-rgb), .16); color: var(--gray-300); }
.social a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================================ */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); color: var(--white);
    display: grid; place-items: center;
    box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6);
    transition: transform .2s;
    animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 280px; }
    .contact-grid { grid-template-columns: 1fr; }
    .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .portfolio { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-800); border-bottom: 1px solid rgba(var(--gray-rgb), .14);
        padding: 8px 22px; transform: translateY(-130%); transition: transform .3s ease;
        box-shadow: var(--shadow);
    }
    .nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(var(--gray-rgb), .08); }
    .header-actions .btn { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
    .section { padding: 60px 0; }
    .form-grid { grid-template-columns: 1fr; }
    .brand-logo-img { height: 50px; }
}

@media (max-width: 520px) {
    .cards.cols-4, .cards.cols-3, .cards.cols-2,
    .why-grid, .portfolio, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
}
