/* PROJECT: EcoVita
   THEME: Organic Minimalism (Light Luxury)
   ROLE: Art Director & Senior Frontend Dev
*/

:root {
    /* --- COLOR PALETTE: Tuscan Morning --- */
    --bg-color: #F9F7F2;        /* Warm Linen White */
    --surface-color: #FFFFFF;   /* Pure White */
    --surface-accent: #F0EFE9;  /* Light Beige/Grey */
    
    --text-main: #2C3E33;       /* Deep Forest Green (Softer than black) */
    --text-muted: #6B705C;      /* Dried Sage Green */
    --text-light: #A5A58D;      /* Pale Olive */
    
    --primary: #B99866;         /* Wheat Gold */
    --primary-hover: #9E8152;   /* Darker Gold */
    --accent-terracotta: #D88C6C; /* Soft Terracotta */
    
    --border-color: #E6E2D8;    /* Stone Grey */
    
    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* --- UI CONSTANTS --- */
    --container-width: 1200px;
    --header-height: 90px;
    --radius: 12px;             /* Soft, organic corners */
    --radius-full: 50px;        /* Buttons/Badges */
    
    /* --- EFFECTS --- */
    --shadow-soft: 0 10px 40px rgba(44, 62, 51, 0.05);
    --shadow-hover: 0 15px 50px rgba(44, 62, 51, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

ul {
    list-style: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }

.section-pad {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.divider-leaf {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 20px auto;
    opacity: 0.8;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--text-main);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.text-btn:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.main-header {
    height: var(--header-height);
    background-color: rgba(249, 247, 242, 0.95); /* Slight transparency */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    position: relative;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--text-main);
}

/* Hover underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   HERO SECTION (CSS ART)
   ========================================= */
.hero-section {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Artistic Pattern: Sun Motes */
.hero-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Creating a subtle grid of dots */
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    animation: floatPattern 60s linear infinite;
}

@keyframes floatPattern {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-overline {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   GRID & CARDS (Mosaic)
   ========================================= */
.grid-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px; /* Base height */
    gap: 20px;
    margin-bottom: 60px;
}

/* Specific Card Sizes for Mosaic */
.card-large {
    grid-column: span 2;
    grid-row: span 1;
}

.card-tall {
    grid-row: span 2;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(44, 62, 51, 0.95), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.card-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-overlay p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Fact Box */
.fact-box {
    background-color: var(--surface-accent);
    padding: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 30px;
    border-left: 4px solid var(--primary);
}

.fact-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

/* =========================================
   LEVELS & REVIEWS
   ========================================= */
.levels-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.level-item {
    background: var(--surface-color);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.level-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.level-icon {
    font-size: 2rem;
    color: var(--accent-terracotta);
    margin-bottom: 20px;
}

/* Review Cards */
.review-card {
    background: var(--surface-color);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--surface-accent);
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.review-author {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-location {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.accordion {
    max-width: 800px;
    margin: 60px auto;
}

.acc-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.acc-header {
    width: 100%;
    padding: 20px 10px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.acc-header:hover, .acc-item.active .acc-header {
    color: var(--primary);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--text-main); /* Dark Green Background */
    color: var(--surface-accent);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.footer-col p, .footer-col a {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

/* =========================================
   MODALS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 62, 51, 0.4); /* Green tinted overlay */
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(20px);
    animation: slideModal 0.4s forwards;
}

@keyframes slideModal {
    to { transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* =========================================
   CUSTOM COOKIE BANNER (Floating Style)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background-color: var(--surface-color);
    border-radius: 20px; /* More rounded */
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 30px;
    z-index: 1500;
    border: 1px solid var(--border-color);
    display: none; /* Hidden via JS initially */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-icon-box {
    width: 40px; height: 40px;
    background-color: var(--surface-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.cookie-title-box h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.cookie-title-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cookie-body {
    margin-bottom: 25px;
}

.cookie-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Custom Toggle Switches */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--surface-accent);
    border-radius: 12px;
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-info span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.option-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* The Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--text-main); /* Active Color */
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.full-width {
    width: 100%;
}

/* =========================================
   ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .grid-mosaic, .levels-grid, .reviews-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large, .card-tall {
        grid-column: auto;
        grid-row: auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .cookie-banner {
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0; width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 30px;
        display: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
}