@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #B08D57;
    --secondary: #1A1A1A;
    --background: #F7F5F2;
    --accent: #F5E6C8;
    --text: #2C2C2C;
    --white: #FFFFFF;
    
    /* Fluid Typography */
    --h1-size: clamp(2.2rem, 5vw + 1rem, 5.5rem);
    --h2-size: clamp(1.8rem, 3vw + 0.8rem, 3.5rem);
    --h3-size: clamp(1.3rem, 2vw + 0.5rem, 2.2rem);
    --body-size: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
    
    /* Spacing */
    --section-padding: clamp(50px, 8vw, 120px);
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Easing for Premium Feel */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--body-size);
    overflow-x: hidden;
}

/* Default Cursor Behavior */
a, button, .btn, .faq-question, .hamburger, .back-to-top, .newsletter-form button {
    cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    transition: all 0.6s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 12px;
        letter-spacing: 1.5px;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(176, 141, 87, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.6s var(--ease-premium);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.97);
    padding: 14px 5%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    position: relative;
    z-index: 1002;
}

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

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.4s var(--ease-premium);
}

.navbar.scrolled .nav-links li a {
    color: var(--white);
}

/* Animated underline */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    min-width: 350px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(26, 26, 26, 0.97);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.5s var(--ease-premium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 25px;
}

.dropdown-menu li a {
    color: var(--white) !important;
    font-size: 13px;
    display: block;
    transition: color 0.2s ease;
}

.dropdown-menu li a:hover {
    color: var(--primary) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 5px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--white);
    display: block;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* =====================
   FOOTER
   ===================== */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: var(--section-padding) 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 5%;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: var(--primary);
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 25px;
}

.footer-col p, .footer-col a {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-icons a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 5%;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* =====================
   ANIMATIONS
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-premium);
}

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

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: clamp(28px, 3vw + 10px, 40px);
    margin-bottom: 15px;
}
.section-title p {
    color: #666;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Global Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta-text {
    position: relative;
    z-index: 2;
}

/* Global FAQ */
.faq-question {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s var(--ease-premium);
}
.faq-question h3 {
    font-size: clamp(15px, 1.5vw + 8px, 18px);
    margin: 0;
    padding-right: 15px;
}
.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question i {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}
.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 25px 22px;
}
.faq-answer p {
    margin: 0;
    font-size: 15px;
}

/* =====================
   FLOATING BUTTONS
   ===================== */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.call-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 35px;
    left: 35px;
    background-color: var(--primary);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.call-float:hover {
    transform: scale(1.12);
    background-color: #927546;
    color: #FFF;
}

/* Scroll Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
}

.progress-bar {
    height: 3px;
    background: var(--primary);
    width: 0%;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 35px;
    width: 44px;
    height: 44px;
    background-color: var(--secondary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s var(--ease-premium);
    opacity: 0;
}

.back-to-top.show {
    bottom: 105px;
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s forwards 0.5s;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--primary);
    animation: loadLine 1.5s ease-in-out forwards 1s;
}

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

@keyframes loadLine {
    0% { width: 0; }
    50% { width: 200px; }
    100% { width: 100%; opacity: 0; }
}

/* =====================
   NAVBAR MOBILE
   ===================== */
@media (max-width: 991px) {
    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: min(85vw, 380px);
        background: rgba(20, 20, 20, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 90px 40px 50px;
        overflow-y: auto;
        transition: right 0.5s var(--ease-premium);
        gap: 0;
        border-left: 1px solid rgba(176, 141, 87, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links li a {
        display: block;
        padding: 16px 0;
        font-size: 14px;
        color: #ddd;
        letter-spacing: 1.5px;
        cursor: pointer;
    }

    .nav-links li a:hover {
        color: var(--primary);
    }

    .nav-links li a::after {
        display: none;
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .dropdown.open > a i {
        transform: rotate(180deg);
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin: 0;
        padding: 0 0 10px 15px;
        min-width: auto;
        width: 100%;
    }

    .dropdown.open .dropdown-menu {
        display: grid;
    }

    .dropdown-menu li {
        padding: 8px 10px;
    }

    .dropdown-menu li a {
        font-size: 12px !important;
        color: #aaa !important;
        padding: 4px 0;
    }

    /* Book Consultation btn on mobile */
    .nav-links li:last-child a.btn {
        display: inline-block;
        margin-top: 10px;
        padding: 12px 24px;
        width: auto;
    }
}

/* =====================
   MOBILE TWEAKS
   ===================== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 18px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .call-float {
        bottom: 20px;
        left: 18px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .back-to-top {
        right: 18px;
        width: 40px;
        height: 40px;
    }

    .back-to-top.show {
        bottom: 80px;
    }

    .glass-panel {
        padding: 25px 20px;
    }
}

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