/* ==========================================================================
   ODU - DESIGN SYSTEM & FUNDAÇÃO
   Paleta: Preto Fosco (#0D0D0D), Ameixa (#541C41), Marfim (#F0E5D2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTES LOCAIS
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Cinzel';
    src: url('../assets/fonts/Cinzel/Cinzel-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat/Montserrat-Variable.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond/cormorant-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond/cormorant-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../assets/fonts/CormorantGaramond/cormorant-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. VARIÁVEIS GLOBAIS
   -------------------------------------------------------------------------- */

:root {
    /* Cores Principais */
    --color-black: #0D0D0D;
    --color-plum: #541C41;
    --color-plum-light: #7c2d62;
    --color-plum-dark: #321026;
    --color-ivory: #F0E5D2;
    --color-ivory-dim: #c9bca6;

    /* Tipografia */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-quote: 'Cormorant Garamond', serif;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transições */
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.3s ease;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-black);
    color: var(--color-ivory);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cursor Customizado Animado (Desktop) */
body.custom-cursor-active, 
body.custom-cursor-active a, 
body.custom-cursor-active button, 
body.custom-cursor-active .interactive {
    cursor: none !important;
}
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 10px var(--color-plum-light));
}
.cursor-wave {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-ivory);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}
.cursor-wave.active {
    animation: waveEffect 0.5s ease-out;
}
@keyframes waveEffect {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   4. LAYOUT GERAL
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* --------------------------------------------------------------------------
   5. COMPONENTES REUTILIZÁVEIS
   -------------------------------------------------------------------------- */

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-plum);
    color: var(--color-ivory);
    border: 1px solid var(--color-plum);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-plum-light);
    box-shadow: 0 0 15px rgba(84, 28, 65, 0.5);
    text-shadow: 0 0 10px rgba(240, 229, 210, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-ivory);
    border: 1px solid var(--color-ivory);
}

.btn-secondary:hover {
    background-color: var(--color-ivory);
    color: var(--color-black);
}

.btn-whatsapp {
    background-color: transparent;
    color: var(--color-ivory);
    border: 1px solid rgba(240, 229, 210, 0.3); /* Borda fina marfim transparente */
    gap: 12px;
    border-radius: 30px; /* Bordas pílula mais elegantes */
    white-space: nowrap;
    padding: 0.8rem 2rem;
}

.btn-whatsapp img,
.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background-color: rgba(240, 229, 210, 0.05); /* Leve brilho de fundo */
    border-color: var(--color-plum);
    box-shadow: 0 0 20px rgba(84, 28, 65, 0.4);
}

/* WhatsApp Flutuante */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-wpp-tooltip {
    background-color: var(--color-black);
    color: var(--color-ivory);
    border: 1px solid rgba(240, 229, 210, 0.2);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
    .floating-container:hover .floating-wpp-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .floating-wpp-tooltip {
        display: none; /* Esconde texto no mobile */
    }
}

.floating-wpp {
    background-color: var(--color-plum-dark);
    color: var(--color-ivory);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    transition: var(--transition-fast);
    border: 1px solid rgba(240, 229, 210, 0.1);
}

.floating-wpp img {
    width: 32px;
    height: 32px;
}

.floating-wpp:hover {
    background-color: var(--color-plum);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(84, 28, 65, 0.8);
}

/* Tipografia Específica */
.text-manifesto {
    font-family: var(--font-quote);
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    color: var(--color-ivory);
}

.highlight-plum {
    color: var(--color-plum-light); /* Um tom um pouco mais claro para destacar do preto */
    text-shadow: 0 0 15px rgba(240, 229, 210, 0.2); /* Sombra luminosa (Marfim) atrás da letra */
}

/* Hero Section Base */
.hero-base {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(13, 13, 13, 0.7); /* Preto com 70% opacidade */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-family: var(--font-quote);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Cards (Ecossistema / Produtos) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    position: relative;
    background-color: var(--color-black);
    border: 1px solid rgba(240, 229, 210, 0.1); /* Marfim muito suave */
    overflow: hidden;
    transition: var(--transition-slow);
    display: block; /* Para links */
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 quadrado */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.7);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-ivory-dim);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

/* Hover nos Cards */
.card:hover {
    border-color: var(--color-plum);
    box-shadow: 0 10px 30px rgba(84, 28, 65, 0.2);
    transform: translateY(-5px);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. HEADER E NAVEGAÇÃO
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid rgba(84, 28, 65, 0.3);
}

.logo-container img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background-color: var(--color-ivory);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-ivory);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. RODAPÉ (FOOTER)
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-black);
    border-top: 1px solid rgba(240, 229, 210, 0.1);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 60px;
    margin: 0 auto;
}

.footer-quote {
    font-family: var(--font-quote);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-ivory-dim);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-ivory-dim);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-plum-light);
    text-shadow: 0 0 10px rgba(240, 229, 210, 0.2);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-social a {
    display: inline-flex;
    padding: 10px;
    border: 1px solid rgba(240, 229, 210, 0.2);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-social a img,
.footer-social a svg {
    width: 22px; 
    height: 22px;
    object-fit: contain;
}

.footer-social a:hover {
    border-color: var(--color-plum);
    background-color: rgba(84, 28, 65, 0.2);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(240, 229, 210, 0.5);
    border-top: 1px solid rgba(240, 229, 210, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-copy a {
    color: var(--color-plum-light) !important;
    text-shadow: 0 0 15px rgba(240, 229, 210, 0.2);
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-copy a:hover {
    color: var(--color-ivory) !important;
    text-shadow: 0 0 20px rgba(240, 229, 210, 0.6);
}

/* --------------------------------------------------------------------------
   8. COMPONENTES INTERNOS (PRODUTOS / MATERIAIS)
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.product-card {
    background-color: var(--color-black);
    border: 1px solid rgba(240, 229, 210, 0.1);
    transition: var(--transition-slow);
}

.product-img {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect ratio */
    position: relative;
    background-color: rgba(255,255,255,0.02);
}

.product-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: var(--transition-slow);
}

.product-card:hover {
    border-color: var(--color-plum);
    box-shadow: 0 10px 30px rgba(84, 28, 65, 0.2);
}

.product-card:hover .product-img img {
    filter: brightness(1);
    transform: scale(1.02);
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-material {
    font-family: var(--font-quote);
    font-size: 1.1rem;
    color: var(--color-ivory-dim);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Materiais e Lista */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    background-color: rgba(240, 229, 210, 0.03);
    padding: var(--spacing-lg);
    border: 1px solid rgba(240, 229, 210, 0.1);
}

.materials-list {
    margin-top: var(--spacing-md);
}

.materials-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(240, 229, 210, 0.1);
    font-size: 0.95rem;
    color: var(--color-ivory);
}

.materials-list li strong {
    color: var(--color-plum-light);
    text-shadow: 0 0 10px rgba(240, 229, 210, 0.2);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. SEÇÕES DE ENRIQUECIMENTO (Símbolo, Fundamentos, Círculo)
   -------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-item {
    text-align: center;
}

.feature-item h3 {
    color: var(--color-plum-light);
    text-shadow: 0 0 10px rgba(240, 229, 210, 0.2);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    color: var(--color-ivory-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.circle-section {
    background-color: var(--color-plum-dark);
    border-top: 1px solid rgba(84, 28, 65, 0.5);
    border-bottom: 1px solid rgba(84, 28, 65, 0.5);
    text-align: center;
}

/* Refinamento de Simetria e Alinhamento */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center; /* Centralização simétrica */
    text-align: center;
    padding: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   10. ANIMAÇÕES (SCROLL REVEAL)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVIDADE (MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem; /* Reduzido para não quebrar no mobile */
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: var(--color-black);
        padding: var(--spacing-xl) var(--spacing-md);
        text-align: center;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .text-manifesto {
        font-size: 1.3rem; /* Melhor legibilidade mobile */
    }
    
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

/* --------------------------------------------------------------------------
   10. SPLASH SCREEN E EASTER EGGS
   -------------------------------------------------------------------------- */
.intro-portal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--color-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}
.intro-portal.hidden {
    opacity: 0;
    visibility: hidden;
}
.intro-buzio {
    width: 40px; height: 40px; margin-bottom: 2rem;
    animation: pulseBuzio 3s infinite alternate;
}
@keyframes pulseBuzio {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(84,28,65,0.2)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(84,28,65,0.8)); }
}

.secret-msg-container:hover .secret-msg {
    opacity: 1; visibility: visible; bottom: -40px;
}
.secret-msg {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: -30px;
    background: transparent; color: var(--color-ivory-dim);
    font-size: 0.85rem; font-style: italic; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: all 0.5s ease;
}
