:root {
    --primary: #C67B5C;
    /* Terracotta */
    --primary-light: #DAA086;
    --secondary: #FDFCF8;
    /* Warmer Off-White */
    --sand: #F5F1E9;
    --accent: #2D2926;
    /* Charcoal */
    --glass: rgba(255, 255, 255, 0.4);
    --glass-dark: rgba(255, 255, 255, 0.2);
    --text: #5A5550;
    /* Slightly softer text */
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --radius: 24px;
    /* More rounded */
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--secondary);
    line-height: 1.7;
    overflow-x: hidden;
    perspective: 1500px;
    /* Enhanced but further away perspective */
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.alt-bg {
    background-color: var(--sand);
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 60px;
    padding: 12px 32px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.nav-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-cta {
    margin-left: 20px;
}

/* Language & Audio Controls */
.top-controls {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1001;
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-selector {
    position: relative;
    top: 0;
    right: 0;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    color: var(--accent);
}

.audio-btn:hover {
    transform: translateZ(10px) scale(1.1);
    background: white;
}

.audio-btn.muted::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: var(--primary);
    transform: rotate(45deg);
}

.audio-btn.playing {
    border-color: var(--primary);
    background: white;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.email-img {
    height: 38px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.lang-btn:hover {
    transform: translateZ(10px) scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    min-width: 120px;
    transform: translateZ(20px);
}

.lang-selector:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    text-decoration: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('images/hero-home.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(253, 252, 248, 0.15) 0%, rgba(253, 252, 248, 0.85) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    transform: translateZ(30px);
    /* Subtler 3D title pop */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 48px;
    color: #6A6560;
    transform: translateZ(20px);
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 15px 35px rgba(198, 123, 92, 0.25);
    transform-style: preserve-3d;
}

.cta-btn.small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.cta-btn:hover {
    transform: translateY(-8px) translateZ(15px);
    box-shadow: 0 20px 45px rgba(198, 123, 92, 0.35);
}

.best-price-badge {
    font-size: 0.75rem;
    color: #8A8580;
    margin-top: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(10px);
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Grid System */
.grid {
    display: grid;
    gap: 48px;
}

/* 3D Gallery */
.gallery {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    perspective: 2000px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
    height: 480px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover img {
    transform: scale(1.08) translateZ(10px);
}

.card-content {
    padding: 40px;
    transform: translateZ(20px);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Services Grid */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: center;
}

.service-card {
    padding: 60px 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-12px) translateZ(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: block;
    transform: translateZ(15px);
}

.service-card p {
    transform: translateZ(10px);
    font-weight: 500;
    font-size: 0.9rem;
    color: #7A7570;
}

/* Section Headings */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    font-weight: 700;
    color: var(--accent);
}

.section-title.left {
    text-align: left;
}

/* Location and Map */
.location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

/* House Essentials (Minimalist Rules) */
.house-essentials {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.essential-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8A8580;
}

.essential-item .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.map-container {
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
    background: #000;
    /* Darker base for map */
    transform-style: preserve-3d;
}

.map-placeholder {
    height: 100%;
    width: 100%;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    padding: 24px 40px;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(30px);
}

/* Footer */
.footer {
    padding: 100px 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2926 100%);
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.email-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.email-img {
    height: 32px !important;
    width: auto !important;
    max-width: 250px;
    vertical-align: middle;
    filter: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: var(--transition);
}

.email-img:hover {
    transform: scale(1.02);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 48px;
    right: 48px;
    width: 68px;
    height: 68px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-10px);
}

.whatsapp-float img {
    width: 38px;
}

/* Responsive */
@media (max-width: 900px) {
    .glass-nav {
        width: 95%;
        padding: 15px 25px;
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero {
        align-items: flex-start;
    }

    .hero-container {
        padding-top: 270px;
        /* Increased from 240px */
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }
}

/* Responsive Additional */
@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .hero {
        align-items: flex-start;
    }

    .hero-container {
        padding-top: 290px;
        /* Increased from 260px */
    }

    .lang-selector {
        top: 15px;
        right: 15px;
    }

    .glass-nav {
        width: 98%;
        padding: 12px 15px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    /* toggled via JS */
    flex-direction: column;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: #A66345;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text);
    border: 1px solid #CCC;
}

.cookie-btn-reject:hover {
    background: #F0F0F0;
}

.cookie-btn-config {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn-config:hover {
    background: rgba(198, 123, 92, 0.1);
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: translateY(0);
}

.cookie-modal h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.cookie-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EEE;
}

.cookie-toggle-row:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.cookie-toggle-row h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.cookie-toggle-row p {
    font-size: 0.8rem;
    color: #777;
}

/* Toggle switch css */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    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;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input:disabled+.slider {
    background-color: #999;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-btns {
        justify-content: center;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}