:root {
    --primary-color: #ffd345;
    /* Yellow from original */
    --secondary-color: #4c6972;
    /* Teal/Blue from original */
    --accent-color: #ff6b6b;
    /* Playful red/pink */
    --text-dark: #2d3436;
    --text-light: #f5f6fa;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjust based on navbar height */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* For scroll spy if needed later */
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    background: transparent;
    /* Start transparent */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 5%;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar.scrolled .logo {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    justify-content: space-around;
    /* Changed from space-between to space-around */
    align-items: center;
    /* Removed padding, background, position, width, top, z-index, transition as these are handled by .navbar */
}

/* Scrolled State */
/* .navbar.scrolled is already defined above, no need to redefine */

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

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.navbar.scrolled .logo-img {
    height: 50px;
    /* Resize logo on scroll */
}

.nav-links a {
    color: white;
    /* White text on hero */
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability on video */
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    /* Dark text on white navbar */
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary-color);
    /* Changed to primary-color for hover */
}

.btn-reserve {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-dark) !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 211, 69, 0.4);
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 69, 0.6);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    /* Use min-height to accommodate content */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    background-color: var(--secondary-color);
    /* Fallback */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Changed from -1 to 0 to be above background */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brand Palette Overlay: Teal with transparency to see video */
    background: linear-gradient(135deg, rgba(76, 105, 114, 0.85), rgba(76, 105, 114, 0.6));
    z-index: 1;
    /* Changed from 0 to 1 to be on top of carousel */
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* --- Sections Common --- */
section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: currentColor;
    /* Use current text color for underline */
    margin: 0.5rem auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

/* --- Split Section (Novidades) --- */
.split-section {
    padding: 0;
    /* Full width/height split */
    background: var(--gray-light);
}

.split-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.split-content {
    flex: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 300px;
}

.split-image {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

@media (max-width: 768px) {
    .split-content {
        padding: 3rem 5%;
        align-items: center;
        text-align: center;
    }
}


.about-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* --- Stats/Features Banner --- */
.features-banner {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5%;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.feature-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* --- Pricing Section --- */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 350px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: scale(1.03);
}

.pricing-header {
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
}

.pricing-card.yellow .pricing-header {
    background: var(--primary-color);
    color: var(--text-dark);
}

.pricing-card.teal .pricing-header {
    background: var(--secondary-color);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    color: #27ae60;
}

.pricing-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Certificates Buttons */
.cert-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-dark) !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 211, 69, 0.4);
    border: none;
    /* Remove border */
}

.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 69, 0.6);
    background: #e6be3e;
    /* Slightly darker shade for hover effect if desired, or keep same */
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 4rem 5% 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    /* White initially */
}

.navbar.scrolled .hamburger {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        /* White background on mobile */
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        /* Hidden */
        transition: transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        color: var(--text-dark);
        /* Dark text on mobile menu */
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-top: 80px;
        /* Space for navbar */
    }

    .hero-left {
        text-align: center !important;
    }

    .hero-right {
        width: 100%;
    }
}

/* Novidades Links Menu */
.novidades-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95rem;
}

.novidades-links a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.novidades-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}