/* Global Variables */
:root {
    --primary-color: #A8B39C;
    /* Sage Green */
    --primary-dark: #859078;
    --accent-color: #B08968;
    /* Sand/Brown - "Breaking color" */

    /* Text Colors - Deep Earthy Tones */
    --text-color: #1F2416;
    --text-light: #3A4230;

    /* Backgrounds - No Pure White */
    --light-bg: #EFECE5;
    /* Warm Beige */
    --white: #FAF8F2;
    /* Cream/Off-white */

    --shadow: 0 10px 30px rgba(96, 110, 48, 0.1);
    --border-radius: 15px;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--white);
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: #b08d3c;
    /* Darker Gold */
    border-color: #b08d3c;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

header.header-scrolled {
    background-color: rgba(250, 248, 242, 0.98);
    /* Cream rgba */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(96, 110, 48, 0.15);
    /* Olive shadow */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    /* White logo initially */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

header.header-scrolled .logo {
    color: var(--accent-color);
    /* Dark logo on scroll */
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    /* Light text initially */
    position: relative;
    padding-bottom: 5px;
}

header.header-scrolled .desktop-nav a {
    color: var(--accent-color);
    /* Dark text on scroll */
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--white);
}

header.header-scrolled .desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    /* White hamburger initially */
    transition: var(--transition);
}

header.header-scrolled .mobile-menu-toggle span {
    background-color: var(--accent-color);
    /* Dark hamburger on scroll */
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 22, 39, 0.6), rgba(1, 22, 39, 0.4)), url('img/hero_premium.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C0CD91;
    /* Lighter version of primary olive for visibility */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Components */
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* About Section */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.text-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Why Me Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(138, 154, 91, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}



/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offer-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.offer-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 2;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.offer-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-header {
    background-color: var(--light-bg);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.offer-card.popular .card-header {
    background-color: var(--primary-color);
    color: var(--white);
}

.offer-card.popular .card-header h3,
.offer-card.popular .card-header p {
    color: var(--white);
}

.offer-card.popular .level-badge {
    background-color: var(--white);
    color: var(--primary-color);
}

.level-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-body {
    padding: 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body ul {
    margin-bottom: 30px;
}

.card-body li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
}

.card-body li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.card-footer {
    text-align: center;
}

.target-group {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.dark-section {
    background-color: var(--accent-color);
    color: var(--white);
}

.section-tag.light {
    color: rgba(255, 255, 255, 0.7);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
    max-width: 700px;
}

.contact-info h2 {
    color: var(--white);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-links {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.social-icon:hover {
    background-color: #1877F2;
    /* Facebook Blue */
    border-color: #1877F2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    max-width: 500px;
    width: 100%;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.booking-note {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #010e19;
    /* Darker Navy */
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

/* Animations using Intersection Observer */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {

    .features-grid,
    .offer-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    #hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {

    .features-grid,
    .offer-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .offer-card.popular {
        transform: scale(1);
    }

    .offer-card.popular:hover {
        transform: translateY(-10px);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#pillars {
    background-color: var(--primary-color);
    color: var(--white);
}

#pillars .section-tag {
    color: var(--gold);
    /* Gold tag on green bg */
}

#pillars h2,
#pillars p {
    color: var(--white);
}

.pillar-card {
    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 4px solid var(--gold);
}

.pillar-content {
    padding: 20px;
}

.pillar-content h3 {
    color: var(--accent-color);
    /* Brown/Sand or Dark Text */
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.pillar-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    border-left: 4px solid var(--gold);
}

.review-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}


.highlight-text {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo {
    font-family: var(--font-heading);
}


/* LOGO SIZE FIX */
.logo {
    display: block;
}

.logo img {
    height: 110px !important;
    width: auto !important;
}

header.header-scrolled .logo img {
    height: 80px !important;
}


/* MISSING VARIABLES FIX */
:root {
    --gold: #C5A059;
    --font-heading: 'Playfair Display', serif;
}


/* ===========================
   Carousel Styles
   =========================== */
.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.carousel-container {
    position: relative;
    /* height set by content */
    width: 100%;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-slide {
    min-width: 33.333%;
    /* 3 slides visible by default */
    padding: 0 10px;
    /* Gap between slides */
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    /* Prevent layout shift on hover border */
}

.carousel-slide img:hover {
    transform: scale(1.03);
    border-color: var(--gold);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

/* Dots Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(96, 110, 48, 0.3);
    /* Primary color low opacity */
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===========================
   Lightbox Styles
   =========================== */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--white);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Very high z-index to be safe */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    /* Changed from just opacity to managing display here too if needed, but JS handles display */
    opacity: 1;
    /* Ensure opacity is 1 */
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    /* overflow-y: auto; Removed to let body scroll if needed or handle internal scroll better */
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    /* Dark color for visibility on white background */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    /* Ensure it's on top */
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.1);
}

.pillar-link.disabled {
    cursor: default;
}

.pdf-btn {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.pillar-card:hover .pdf-btn {
    border-bottom-color: var(--gold);
    transform: translateY(-2px);
}

.pillar-card:hover img {
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .carousel-slide {
        min-width: 50%;
        /* 2 slides */
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        min-width: 100%;
        /* 1 slide */
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.8);
    }
}