/* =========================================
   KALDEN GROUP - PREMIUM CINEMATIC DESIGN
   ========================================= */

   :root {
    --primary: #2ECC71; /* Kalden Green */
    --primary-dark: #1E8449;
    --dark-bg: #050505; /* Blacker than black */
    --dark-surface: #111111;
    --light-bg: #F4F4F4;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --text-muted: #888888;
    --text-muted-dark: #666666;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--text-dark);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */

.luxury-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
}

.text-dark { color: var(--text-dark); }
.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: 15vh 0;
}

/* =========================================
   OVERLAY LOADER
   ========================================= */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-text {
    font-size: 3rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 5%;
    z-index: 1000;
    mix-blend-mode: difference;
    color: white; /* Force white text over difference mode */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 25px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure it's white for blend mode */
}

.nav-actions {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 1px;
    background: white;
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link:hover::after {
    transform: translateX(0);
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.lang-btn:hover {
    background: white;
    color: black;
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%; /* Extra height for parallax */
    z-index: -1;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 10vh;
}

.hero-title-mask {
    overflow: hidden;
    line-height: 1.2;
    padding-top: 0.25em;
    margin-top: -0.25em; /* Compensa visualmente o espaço extra no topo */
}

.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin: 0;
}

.hero-subtitle-mask {
    overflow: hidden;
    margin-top: 40px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-light);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background: var(--text-light);
}


/* =========================================
   ABOUT / VISION SECTION
   ========================================= */
.about {
    background: var(--dark-bg);
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 50px;
}

.reveal-text {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.2;
    font-weight: 600;
    max-width: 1200px;
    color: rgba(255,255,255,0.1); /* Starts dim */
}

.text-glow {
    color: var(--text-light); /* Highlighted word */
    text-shadow: 0 0 30px rgba(255,255,255,0.2);
}


/* =========================================
   ECOSYSTEM INTRO
   ========================================= */
.ecosystem-intro {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    overflow: hidden;
}

.massive-title {
    font-size: clamp(6rem, 20vw, 25rem);
    font-weight: 800;
    white-space: nowrap;
    opacity: 0.03;
    letter-spacing: -0.05em;
}


/* =========================================
   COMPANY SECTIONS (ALTERNATING)
   ========================================= */
.company-section {
    min-height: 100vh;
    padding: 20vh 5%;
    display: flex;
    align-items: center;
    position: relative;
}

.dark-panel {
    background-color: var(--dark-surface);
}

.light-panel {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Custom Palettes for Ohana Brands */
.panel-ohana-secret {
    background-color: #0E0B09;
    color: #E2CAB3;
}
.text-rose { color: #D6A87C; }
.text-muted-rose { color: #A88B71; }
.border-rose { border-color: #D6A87C; }
.luxury-btn.btn-rose { border-color: #D6A87C; color: #D6A87C; }
.luxury-btn.btn-rose::before { background: #D6A87C; }
.luxury-btn.btn-rose:hover { color: #0E0B09; }
.text-rose-shadow { color: rgba(214, 168, 124, 0.08); }

.panel-ohana-gourmet {
    background-color: #FFF8F9;
    color: #D14B75;
}
.text-gourmet { color: #D14B75; }
.text-muted-gourmet { color: #A36B7C; }
.blend-pink { filter: none; }
.luxury-btn.out-pink-btn { border-color: #D14B75; color: #D14B75; }
.luxury-btn.out-pink-btn:hover { color: white; border-color: #D14B75; }
.luxury-btn.out-pink-btn::before { background: #D14B75; }
.text-gourmet-light { color: rgba(209, 75, 117, 0.05); }


.company-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.company-container.reverse {
    grid-template-columns: 1fr 1fr;
}

.company-container.reverse .company-info {
    order: 2;
}

.company-container.reverse .company-visual {
    order: 1;
}


/* Info Side */
.company-info {
    z-index: 2;
}

.company-logo {
    height: 40px;
    object-fit: contain;
    margin-bottom: 40px;
    transform-origin: left;
}

.round-logo {
    height: 80px; width: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.border-green { border: 2px solid var(--primary); }

.blend-dark {
    filter: invert(1); /* makes dark logos visible on light bg if needed */
}

.text-logo {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.company-name {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.1;
}

.company-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 50px;
    max-width: 500px;
}

.light-panel .company-desc {
    color: var(--text-muted-dark);
}

/* Luxury Button */
.luxury-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.luxury-btn span {
    position: relative;
    z-index: 2;
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-light);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.luxury-btn:hover {
    color: var(--dark-bg);
    border-color: var(--text-light);
}

.luxury-btn:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

/* Specific buttons */
.dark-btn {
    border-color: rgba(0,0,0,0.3);
    color: var(--text-dark);
}
.dark-btn::before { background: var(--text-dark); }
.dark-btn:hover { color: var(--light-bg); border-color: var(--text-dark); }

.red-btn { border-color: #EA1D2C; color: #EA1D2C; }
.red-btn::before { background: #EA1D2C; }
.red-btn:hover { color: white; border-color: #EA1D2C;}

.out-dark-btn { border-color: rgba(0,0,0,0.2); color: #000; }
.out-dark-btn:hover { border-color: #000;}

.btn-group { display: flex; gap: 20px;}

/* Visual Side (Abstract Objects) */
.company-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    display: none;
}

.symbol-container {
    perspective: 1000px;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.floating-3d-symbol {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
}

.green-glow-img {
    filter: drop-shadow(0 0 30px rgba(46, 204, 113, 0.3));
}

.sgp-3d-text {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 40px rgba(46, 204, 113, 0.6);
}



.visual-text {
    position: relative;
    z-index: 2;
    font-size: 8rem;
    line-height: 0.8;
    color: var(--text-light);
    opacity: 0.9;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.footer-left h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    opacity: 0.5;
}

.footer-right {
    text-align: right;
}

.footer-label {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.footer-link {
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .company-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .company-container.reverse {
        grid-template-columns: 1fr;
    }
    .company-container.reverse .company-info, .company-info {
        order: 1;
    }
    .company-container.reverse .company-visual, .company-visual {
        order: 2;
        height: 400px;
    }
    
    .company-desc {
        margin: 0 auto 40px;
    }
    .abstract-shape {
        width: 300px; height: 300px;
    }
    .visual-text {
        font-size: 5rem;
    }
    .btn-group {
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
}
