/* =========================================================
   NAUE 2030 — pages.css
   Hero da home, heros internos, sobre, contato e
   páginas de detalhe de projeto
   ========================================================= */

/* ===== HERO HOME ===== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: var(--ink);
    color: var(--text-on-dark);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(13, 20, 16, 0.35) 0%, rgba(13, 20, 16, 0.15) 40%, rgba(13, 20, 16, 0.9) 92%),
        linear-gradient(100deg, rgba(13, 20, 16, 0.82) 0%, rgba(13, 20, 16, 0.15) 65%);
}

.hero-content {
    padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-12);
    max-width: 860px;
}

.hero .eyebrow { color: var(--green-bright); }

.hero h1 {
    font-size: var(--fs-hero);
    color: #fff;
    max-width: 15ch;
    margin-bottom: var(--sp-3);
}

.hero .hero-lead {
    font-size: var(--fs-lead);
    color: var(--text-on-dark-muted);
    max-width: 58ch;
    margin-bottom: var(--sp-6);
}

.hero-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

/* ===== HERO INTERNO ===== */
.page-hero {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: calc(var(--header-h) + var(--sp-12)) 0 var(--sp-8);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -20%;
    top: -40%;
    width: 70%;
    height: 180%;
    background: radial-gradient(closest-side, rgba(31, 107, 70, 0.35), transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: #fff;
    font-size: var(--fs-h1);
    max-width: 20ch;
    position: relative;
    z-index: 1;
}

.page-hero .lead {
    max-width: 62ch;
    position: relative;
    z-index: 1;
}

/* ===== SOBRE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-8);
    align-items: start;
}

.about-copy p {
    margin-bottom: var(--sp-3);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-copy p strong { color: var(--ink); }

.about-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 560px;
}

.address-box {
    margin-top: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    background: var(--green-soft);
    border: 1px solid rgba(31, 107, 70, 0.2);
}

.address-box h3 { margin-bottom: 6px; font-size: 1rem; }

.address-box p { color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ===== SERVIÇOS (página) ===== */
.service-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-8);
    padding-block: var(--sp-8);
    border-top: 1px solid var(--border);
    align-items: start;
}

.service-section:first-of-type { border-top: 0; }

.service-section .sticky-head {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-3));
}

.service-section .sticky-head .eyebrow { margin-bottom: var(--sp-1); }

.service-section .sticky-head p {
    color: var(--text-muted);
    margin-top: var(--sp-2);
    max-width: 44ch;
}

@media (max-width: 900px) {
    .service-section { grid-template-columns: 1fr; gap: var(--sp-4); }
    .service-section .sticky-head { position: static; }
}

/* ===== CONTATO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-8);
    align-items: start;
}

.contact-copy h2 { margin-bottom: var(--sp-2); }

.contact-copy > p {
    color: var(--text-muted);
    margin-bottom: var(--sp-3);
}

.contact-box {
    padding: var(--sp-4);
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: var(--sp-4);
}

.contact-box h3 { margin-bottom: var(--sp-2); font-size: 1rem; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ===== DETALHE DE PROJETO ===== */
.project-hero {
    position: relative;
    min-height: 68svh;
    display: flex;
    align-items: flex-end;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
}

.project-hero img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(13, 20, 16, 0.5) 0%, rgba(13, 20, 16, 0.2) 40%, rgba(13, 20, 16, 0.92) 100%);
}

.project-hero .container {
    padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-6);
    color: #fff;
}

.project-hero .tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-bright);
    border: 1px solid rgba(53, 194, 133, 0.4);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: var(--sp-2);
}

.project-hero h1 {
    color: #fff;
    font-size: var(--fs-h1);
    max-width: 24ch;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green);
}

.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.fact-card {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-3);
}

.fact-card .fact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.fact-card .fact-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.25;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}

.party-card {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    text-align: center;
}

.party-card .party-role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: var(--sp-2);
}

.party-card img {
    max-height: 64px;
    width: auto;
    margin: 0 auto var(--sp-2);
    object-fit: contain;
}

.party-card .party-name {
    font-weight: 600;
    color: var(--text);
}
