/* ==========================================================================
   Espaço Constru | Design System & B2B Landing Page Styles
   ========================================================================== */

/* 1. CSS VARIABLES (DESIGN TOKENS) */
:root {
    /* Brand Colors extracted from Image */
    --brand-dark: #2C3436;
    /* Dark Neutral */
    --brand-earth: #A07B55;
    /* Accent Earth */
    --brand-sand: #CDC2A1;
    /* Light Sand */

    /* Support Colors */
    --bg-white: #FFFFFF;
    --bg-soft: #F9FAFB;
    /* Clean minimal off-white */
    --text-primary: #1A1D1E;
    --text-muted: #5E696B;
    --border-light: #E5E7EB;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(160, 123, 85, 0.2);
}

/* 2. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Helper Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.bg-soft {
    background-color: var(--bg-soft);
}

.bg-sand {
    background-color: var(--brand-sand);
}

.bg-dark {
    background-color: var(--brand-dark);
    color: var(--bg-white);
}

.text-center {
    text-align: center;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.active {
    opacity: 1;
}

/* 3. TYPOGRAPHY (Hierarquia B2B) */
h1,
h2,
h3,
h4 {
    color: var(--brand-dark);
    font-weight: 600;
    line-height: 1.2;
}

.bg-dark h2,
.bg-dark p {
    color: var(--bg-white);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 span {
    color: var(--brand-earth);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 4. BUTTONS & UI COMPONENTS */
a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-earth);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(160, 123, 85, 0.3);
}

.btn-primary:hover {
    background-color: #8C6A48;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary-dark {
    background-color: var(--brand-dark);
    color: var(--bg-white);
}

.btn-primary-dark:hover {
    background-color: #1A1D1E;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--brand-earth);
    color: var(--brand-earth);
}

.btn-outline:hover {
    background-color: var(--brand-earth);
    color: var(--bg-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 5. HEADER (Glassmorphism Effect) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--brand-dark);
    letter-spacing: 2px;
}

.header:not(.scrolled) .logo-text,
.header:not(.scrolled) .nav a:not(.btn) {
    color: var(--bg-white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a:not(.btn) {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--brand-earth);
    transition: var(--transition-fast);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

/* 6. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('assets/images/Frame 2022.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 52, 54, 0.9) 0%, rgba(44, 52, 54, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    color: var(--bg-white);
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: #E2E8F0;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/* NOVO: CAPACIDADE */
.capacidade {
    padding: var(--section-padding);
}

.capacidade .section-header {
    margin-bottom: 40px;
}

.capacidade-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cap-card {
    background-color: var(--brand-dark);
    color: var(--bg-soft);
    padding: 18px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cap-card span {
    color: #E2E8F0;
    font-size: 1.2rem;
}

.capacidade-text p {
    font-size: 1.1rem;
    color: var(--brand-dark);
}

.mt-2 {
    margin-top: 15px;
}

/* 7. TRUST BAR */
.trust-bar {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.trust-title {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.trust-logos:hover {
    opacity: 0.8;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* 8. SERVIÇOS (Cards Grid) */
.diferenciais {
    padding: var(--section-padding);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-earth);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(160, 123, 85, 0.1);
    color: var(--brand-earth);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* 9. GALERIA DE EXPERIÊNCIAS */
.galeria {
    padding: var(--section-padding);
}

.galeria-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.galeria-text {
    flex: 1;
}

.galeria-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 250px;
    gap: 20px;
}

.g-img {
    border-radius: var(--border-radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.g-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 52, 54, 0.8), transparent);
}

.g-img span {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.g-img:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* Specific placeholder backgrounds */
.img-1 {
    background-image: url('assets/images/Frame 20.png');
    grid-row: span 2;
}

.img-2 {
    background-image: url('assets/images/Frame 201.png');
}

.img-3 {
    background-image: url('assets/images/Frame 202.png');
}

.img-4 {
    background-image: url('assets/images/Frame 2022.png');
}

/* 10. VÍDEO INSTITUCIONAL */
.video-institucional {
    padding: var(--section-padding);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--brand-dark);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video,
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    background: linear-gradient(135deg, rgba(44, 52, 54, 0.9) 0%, rgba(160, 123, 85, 0.6) 100%);
}

.video-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 11. LOCALIZAÇÃO */
.localizacao {
    padding: var(--section-padding);
}

.local-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.local-info {
    flex: 1;
}

.local-benefits {
    list-style: none;
    margin-top: 30px;
}

.local-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.local-benefits li svg {
    color: var(--brand-earth);
}

.local-map {
    flex: 1;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-soft);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-light);
}

/* 12. FORMULÁRIO B2B */
.formulario {
    padding: var(--section-padding);
}

.form-wrapper {
    max-width: 700px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header p {
    color: #94A3B8;
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--brand-dark);
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-soft);
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--brand-earth);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(160, 123, 85, 0.1);
}

.contact-form .btn {
    margin-top: 20px;
}

/* 13. FAQ */
.faq {
    padding: var(--section-padding);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--brand-sand);
    border: none;
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-dark);
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: #e2d9bc;
}

.faq-question svg {
    transition: var(--transition-fast);
    width: 20px;
    height: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--brand-sand);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    margin-top: -5px;
    /* Pulls it up seamlessly behind button radius if needed */
}

.faq-answer p {
    padding: 20px 24px;
    color: var(--brand-dark);
}

.faq-item.active .faq-question {
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

/* 14. FOOTER */
.footer {
    background: var(--brand-dark);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--bg-white);
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94A3B8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-earth);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 15. RESPONSIVE DESIGN */
@media (max-width: 1024px) {

    .galeria-content,
    .local-wrapper {
        flex-direction: column;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* Simplification for prototype */
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }

    .input-group>div {
        margin-bottom: 20px;
    }

    .capacidade-grid,
    .cards-grid {
        display: flex;
        flex-direction: column;
    }

    .cap-card {
        justify-content: center;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}