html {
    scroll-behavior: smooth;
}

:root {
    /* The Nature Palette */
    --forest-deep: #1a2e1a;
    --forest-mid: #2d4a2d;
    --gold: #c9a96e;
    --ivory: #f7f5f0;
    --ink: #0d0d0d;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Jost', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --content-gap: 80px;
    --container-width: 1200px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --content-gap: 40px;
    }
}

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

body {
    background-color: var(--ivory);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none; 
}

/* Disable custom cursor on touch devices or small screens */
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor { display: none !important; }
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--ivory);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.1s ease-out;
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor.explore {
    width: 80px;
    height: 80px;
    background: rgba(247, 245, 240, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid var(--gold);
}

.cursor.explore::after {
    content: 'EXPLORE';
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ivory);
}

/* Typography Utilities */
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 10px;
    font-weight: 400;
}

/* Layout */
.section {
    padding: var(--section-padding) 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.flex-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-row {
        flex-direction: column !important;
        gap: 30px;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    background: var(--ivory); /* Default light background for non-hero pages */
}

/* Scrolled state: Dark background and ivory links */
nav.scrolled {
    background: rgba(26, 46, 26, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 5%;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

/* Hero page top state: Transparent background and ivory links over video */
body.has-hero nav:not(.scrolled) {
    background: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--forest-deep); /* Default dark link color */
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

/* Link colors for dark background (scrolled or over hero) */
nav.scrolled .nav-links a,
body.has-hero nav:not(.scrolled) .nav-links a,
nav.scrolled .lang-toggle,
body.has-hero nav:not(.scrolled) .lang-toggle {
    color: var(--ivory);
}

.nav-links a:hover,
nav.scrolled .nav-links a:hover,
body.has-hero nav:not(.scrolled) .nav-links a:hover {
    color: var(--gold);
}

/* Mobile menu button color adjustments */
.menu-btn span {
    background: var(--forest-deep);
}

nav.scrolled .menu-btn span,
body.has-hero nav:not(.scrolled) .menu-btn span {
    background: var(--ivory);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: 70px; /* Force square ratio for perfect circle */
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-toggle {
    display: flex;
    gap: 10px;
    color: var(--ivory);
    font-size: 10px;
}

.lang-toggle span {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-toggle span.active {
    opacity: 1;
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2000;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ivory);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn span:first-child { top: 0; }
.menu-btn span:last-child { bottom: 0; }

.menu-btn.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:last-child {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--forest-deep);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu-links a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 32px;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--ivory);
    position: relative;
    overflow: hidden;
    background: var(--forest-deep);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-eyebrow {
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease forwards;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 20px;
    animation: fadeIn 2s ease forwards;
}

.hero h1 em {
    color: var(--gold);
}

.hero-sub {
    font-size: 18px;
    font-weight: 200;
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 2s ease forwards;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--gold);
    color: var(--forest-deep);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--gold);
    animation: scrollLine 2s infinite;
}

/* Manifesto Section */
.manifesto {
    text-align: center;
    padding: 120px 5%;
}

.manifesto-text {
    font-size: 32px;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--forest-deep);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--forest-mid);
}

/* Safaris Grid */
.safaris-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 500px;
    gap: 20px;
}

.safari-card {
    position: relative;
    overflow: hidden;
    cursor: none;
}

.safari-card img,
.safari-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Focus on the upper part for faces */
    transition: transform 1s ease;
}

.safari-card:hover img,
.safari-card:hover video {
    transform: scale(1.05);
}

.safari-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.safari-card:hover .safari-overlay {
    opacity: 1;
}

.safari-title {
    color: var(--ivory);
    font-size: 24px;
    margin-bottom: 10px;
}

/* Experience Section (Split Sticky) */
.experience {
    display: flex;
    padding: 0 5%;
    max-width: none;
    gap: 60px;
}

.experience-visual {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    border-radius: 16px;
    overflow: hidden;
}

.experience-visual img,
.experience-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.experience-content {
    width: 50%;
    padding: 100px 8%;
}

.experience-item {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-item h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    background: var(--ivory);
    text-align: center;
    padding: 120px 5%;
}

.testimonial-text {
    font-size: 28px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.testimonial-author {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Sustainability */
.sustainability {
    background: var(--forest-deep);
    color: var(--ivory);
    display: flex;
    gap: 80px;
    padding: 120px 10%;
}

.sustainability-manifesto {
    flex: 3;
    font-size: 36px;
}

.sustainability-principles {
    flex: 2;
    list-style: none;
}

.sustainability-principles li {
    padding: 20px 0;
    border-bottom: 0.5px solid rgba(247, 245, 240, 0.2);
    font-size: 14px;
}

/* Concierge */
.concierge {
    text-align: center;
    padding: 120px 5%;
}

.concierge-form {
    max-width: 800px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.input-group label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--forest-mid);
    font-family: var(--font-sans);
    font-weight: 300;
    outline: none;
}

.form-full {
    grid-column: span 2;
}

.concierge-footer {
    margin-top: 40px;
    font-size: 10px;
    opacity: 0.6;
}

/* Premium Video Styling */
video:not(.hero-video) {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(13, 13, 13, 0.2), 0 0 0 1px rgba(201, 169, 110, 0.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--forest-deep);
}

video:not(.hero-video):hover {
    transform: translateY(-5px);
    box-shadow: 0 45px 90px rgba(13, 13, 13, 0.3), 0 0 0 1px rgba(201, 169, 110, 0.3);
}

/* Animations and Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Custom Video Controls */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16; /* proporção vertical para vídeos de celular */
    border-radius: 16px;
    overflow: hidden;
    background: var(--forest-deep);
    box-shadow: 0 30px 60px rgba(13, 13, 13, 0.2);
}

.video-container video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 110, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.4);
}

.play-button-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--ivory);
    margin-left: 5px;
}

.video-container:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold);
}

.video-container.playing .play-button-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .safaris-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .safari-card {
        height: 450px;
    }
}
@media (max-width: 768px) {
    .safaris-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    nav {
        padding: 15px 4%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo img {
        height: 48px;
        width: 48px;
    }

    .nav-links {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
        order: 3;
        width: 100%;
        padding: 6px 0 2px;
    }

    .nav-links a {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .nav-meta {
        gap: 12px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .manifesto-text {
        font-size: 24px;
    }

    .stats {
        flex-direction: column;
        gap: 40px;
    }

    .safaris-grid {
        grid-template-columns: 1fr;
    }

    .safari-card:first-child {
        grid-column: span 1;
    }

    .experience {
        flex-direction: column;
        padding: var(--section-padding) 5%;
    }

    .experience-visual, .experience-content {
        width: 100%;
    }

    .experience-visual {
        height: 40vh;
        position: relative;
    }

    .sustainability {
        flex-direction: column;
        gap: 40px;
        padding: 60px 5%;
    }

    .sustainability-manifesto {
        font-size: 28px;
    }

    .concierge-form {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .form-full {
        grid-column: auto;
    }

    .btn {
        padding: 12px 25px;
        font-size: 10px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background: transparent !important;
    animation: floatUp 3s ease-in-out infinite;
    width: 120px;
    height: 120px;
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0px);
        filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.5));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 16px 32px rgba(201, 168, 76, 0.8));
    }
}

.botao-whatsapp-refugio {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('images/botao_screen.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-indent: -9999px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: screen;
}

.botao-whatsapp-refugio:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
        width: 85px;
        height: 85px;
    }
}
