/* ==========================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   (a fonte é carregada pelo <link> no <head> do index.html;
   não há @import nem <style> inline em nenhum lugar do projeto)
   ========================================================== */
:root {
    --brand-dark: #0a1128;
    --brand-purple: #6366f1;
    --brand-light-purple: #4f46e5;
    --brand-orange: #f97316;
    --brand-blue: #2563eb; /* usado só no botão de destaque "Fale Conosco" */
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Tipografia: papéis bem definidos para cada nível de texto.
       Lora (serifada) = títulos grandes de seção — visual acadêmico/editorial.
       Inter (sem serifa) = corpo de texto, navegação e títulos menores dentro dos cards. */
    --font-display: 'Lora', 'Georgia', serif;
    --font-body: 'Inter', sans-serif;

    --fs-micro: 0.8125rem;
    --fs-eyebrow: 0.9rem;
    --fs-caption: 0.9375rem;
    --fs-body-sm: 1rem;
    --fs-body: 1.0625rem;
    --fs-body-lg: 1.125rem;
    --fs-h4: 1.375rem;
    --fs-h3: 1.75rem;
    --fs-h2: 2.75rem;
    --fs-h1: 3.75rem;

    --lh-tight: 1.15;
    --lh-snug: 1.4;
    --lh-relaxed: 1.65;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 3px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body-sm);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2 {
    font-family: var(--font-display);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section[id],
footer[id] {
    scroll-margin-top: 110px;
}

.text-purple { color: var(--brand-purple); }
.text-orange { color: var(--brand-orange); }

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    font-size: var(--fs-h4);
}

/* ==========================================================
   CABEÇALHO DE SEÇÃO — PADRÃO ÚNICO
   Usado em: Nossa História, Nossos Objetivos, O que fazemos,
   Portfólio e Nossa Equipe, para manter a mesma "cara" em todas.
   ========================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px auto;
}
.section-header.section-header-wide { max-width: 900px; }

.section-tag {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.02em;
    color: var(--brand-purple);
    display: block;
    margin-bottom: 8px;
}

.section-title-center {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--brand-dark);
}

.section-desc-center {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    margin-top: 16px;
}

button { cursor: pointer; font-family: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.btn-primary {
    background-color: var(--brand-purple);
    border: none;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary:hover { background-color: var(--brand-light-purple); transform: translateY(-2px); }

.btn-secondary {
    background: transparent;
    border: 1px solid #475569;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ==========================================================
   HEADER (com efeito glassmorphism ao rolar)
   ========================================================== */
.main-header {
    background-color: rgba(10, 17, 40, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.main-header.is-scrolled { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.main-nav { display: flex; gap: 24px; }

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: var(--fs-body-sm);
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { border-bottom: 2px solid var(--brand-orange); }

/* Botão de destaque "Fale Conosco" — único ponto do site com azul,
   usado de propósito para chamar atenção como ação principal. */
.cta-dropdown-wrapper { position: relative; }

.btn-cta {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.contact-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5);
    width: 220px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 101;
}
.contact-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--white);
    text-decoration: none;
    font-size: var(--fs-caption);
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}
.dropdown-item:hover { background: rgba(99, 102, 241, 0.25); transform: translateX(3px); }

.menu-toggle { display: none; background: transparent; border: none; color: var(--white); padding: 6px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-menu { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

/* ==========================================================
   HERO
   ========================================================== */
.hero-section {
    background-color: var(--brand-dark);
    color: var(--white);
    padding: 80px 0 100px 0;
}
.hero-container {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 48px;
    align-items: center;
}
.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin-bottom: 24px;
}
.hero-description {
    color: #94a3b8;
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; }

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1e293b;
}

.hero-slides { width: 100%; height: 100%; position: relative; }

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-slide.is-active img { transform: scale(1.05); }

/* ==========================================================
   SOBRE — NOSSA HISTÓRIA
   ========================================================== */
.about-section { padding: 120px 24px; display: flex; flex-direction: column; align-items: center; }

.historia-block { text-align: center; max-width: 800px; margin-bottom: 72px; }
.historia-block .section-desc-center { text-align: center; }
.historia-block .section-desc-center + .section-desc-center { margin-top: 16px; }

/* ==========================================================
   CARD PADRÃO — usado em Nossos Objetivos e O que fazemos
   ========================================================== */
.objetivos-block { width: 100%; max-width: 1100px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.info-card {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}
.info-card:hover .info-icon { transform: scale(1.1); }

.icon-bg-purple { background: #f5f3ff; color: var(--brand-purple); }
.icon-bg-orange { background: #fff7ed; color: var(--brand-orange); }

.info-card h3, .info-card h4 {
    font-family: var(--font-body);
    font-size: var(--fs-h4);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--brand-dark);
}
.info-card p {
    font-size: var(--fs-caption);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
}

/* ==========================================================
   O QUE FAZEMOS
   ========================================================== */
.areas-section { background: #f8fafc; padding: 120px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.areas-section .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================
   PROJETOS / PORTFÓLIO
   ========================================================== */
.projects-section { padding: 100px 24px; }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.project-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px -8px rgba(0,0,0,0.08); }

.project-image {
    background: linear-gradient(135deg, #1e293b 0%, #0a1128 100%);
    display: flex;
    height: 160px;
    overflow: hidden;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-image img { transform: scale(1.08); }

.parking-illustration { flex: 1; width: 100%; height: 100%; }
.project-card:hover .parking-illustration { transform: scale(1.05); transition: transform 0.4s ease; }

.logo-frame {
    flex: 1;
    width: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.project-card:hover .logo-frame img { transform: scale(1.05); }

.project-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.project-info > .project-link { margin-top: auto; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.project-info h4 { font-family: var(--font-body); font-size: var(--fs-h4); color: var(--brand-dark); margin-bottom: 8px; font-weight: 700; }
.project-info p { font-size: var(--fs-caption); color: var(--text-muted); margin-bottom: 20px; line-height: var(--lh-relaxed); }
.badge { background-color: #eef2ff; color: var(--brand-purple); font-size: var(--fs-micro); text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; width: max-content; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-purple);
    font-size: var(--fs-caption);
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}
.project-link:hover { color: var(--brand-light-purple); text-decoration: underline; }

.idea-card { border: 2px dashed var(--brand-purple); background-color: rgba(238, 242, 255, 0.4); border-radius: 16px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; align-items: center; transition: background-color 0.3s ease; }
.idea-card:hover { background-color: rgba(238, 242, 255, 0.7); }
.idea-card h4 { font-family: var(--font-body); font-size: var(--fs-h4); margin-bottom: 8px; font-weight: 700; color: var(--brand-dark); }
.idea-card p { font-size: var(--fs-caption); color: var(--text-muted); margin-bottom: 16px; }
.idea-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-idea {
    background-color: var(--brand-purple);
    color: var(--white);
    border: none;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-idea:hover { background-color: var(--brand-light-purple); transform: scale(1.03); }
.btn-idea-whatsapp { background-color: #22c55e; }
.btn-idea-whatsapp:hover { background-color: #16a34a; }

/* ==========================================================
   NOSSA EQUIPE
   ========================================================== */
.team-section { padding: 100px 24px; border-top: 1px solid #e2e8f0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background-color: var(--white); border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.06); }

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--brand-purple);
    overflow: hidden;
    border: 3px solid #e2e8f0;
    transition: border-color 0.3s ease;
}
.team-card:hover .team-photo { border-color: var(--brand-purple); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-photo img { transform: scale(1.1); }

.team-card h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; }
.team-role { font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; color: var(--brand-purple); margin-bottom: 4px; }
.team-course { font-size: var(--fs-caption); color: var(--text-muted); }

/* ==========================================================
   FOOTER & CONTATO
   ========================================================== */
.main-footer { background-color: var(--brand-dark); color: #94a3b8; padding: 80px 0 32px 0; font-size: var(--fs-caption); line-height: var(--lh-relaxed); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; text-decoration: none; }

.footer-cta-box { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-social-contact {
    background-color: #1e293b;
    color: var(--white);
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--fs-micro);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-social-contact:hover { background-color: var(--brand-purple); border-color: var(--brand-purple); transform: translateY(-2px); }

.footer-grid h4 { color: var(--white); text-transform: uppercase; font-size: var(--fs-eyebrow); letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-grid ul li a:hover { color: var(--white); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 32px; color: #475569; font-size: var(--fs-micro); }

/* ==========================================================
   ANIMAÇÕES REVEAL
   ========================================================== */
.reveal-init { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal-init, .reveal-visible { transition: none; transform: none; }
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1024px) {
    .projects-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background-color: var(--brand-dark); max-height: 0; overflow: hidden; padding: 0 24px; transition: max-height 0.35s ease;
    }
    .main-nav.is-open { max-height: 400px; padding: 12px 24px 24px; }
    .main-nav .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: block; }
    .menu-toggle { display: flex; }
    .hero-container, .footer-grid, .projects-grid, .team-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.5rem; }
    .hero-carousel-wrapper { height: 320px; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .areas-section .card-grid { grid-template-columns: 1fr; }
}
