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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: color-mix(in srgb, var(--charcoal), white 10%);
    --charcoal-mid: color-mix(in srgb, var(--charcoal), white 20%);
    --gold: #c9a96e;
    --gold-light: color-mix(in srgb, var(--gold), white 20%);
    --cream: #f5f0e8;
    --cream-dark: #e8e0d0;
    --white: #ffffff;
    --text-muted: color-mix(in srgb, var(--body-color), transparent 40%);
    --navbar-border: rgba(var(--gold-rgb), 0.15);
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 3rem;
    background: transparent; backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(var(--charcoal-rgb, 26, 26, 26), 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navbar-border);
}
.navbar-logo {
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500;
    letter-spacing: 0.08em; color: var(--gold); text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
    max-width: calc(100% - 60px);
}
.navbar-logo-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold); }
.navbar-logo .brand-name { color: var(--gold); }
.navbar-logo .brand-dot, .navbar-logo .brand-suffix { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.navbar-nav a {
    color: var(--navbar-color); text-decoration: none;
    font-size: var(--navbar-size); font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.25s ease;
}
.navbar-nav a:hover { color: var(--gold); }
.navbar-actions { display: flex; align-items: center; gap: 1rem; }
.btn-ghost {
    color: rgba(245, 240, 232, 0.8); text-decoration: none;
    font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em;
    padding: 0.5rem 1.25rem; border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 2px; transition: all 0.25s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
    color: var(--charcoal); background: var(--gold); text-decoration: none;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
    padding: 0.5rem 1.5rem; border-radius: 2px; transition: all 0.25s ease;
}
.btn-gold:hover { background: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; z-index: 1001; position: relative; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.navbar-nav.active {
    display: flex !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100vh;
    background-color: var(--charcoal, #1a1a1a) !important; flex-direction: column;
    justify-content: flex-start; align-items: center; z-index: 998;
    padding: 6rem 2rem 2rem; gap: 1.5rem; animation: fadeIn 0.3s ease forwards;
    overflow-y: auto;
}
.navbar-nav.active li { width: 100%; text-align: center; }
.mobile-only { display: none; }
.mobile-only.mobile-only-flex { display: flex; flex-direction: column; gap: 1rem; width: 100%; align-items: center; }
.responsive-embed { position: relative; width: 100%; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.responsive-embed iframe { width: 100% !important; height: 450px !important; border: 0 !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --hero-title-size: 60px; --section-title-size: 32px; }
    .navbar { padding: 1.25rem 2rem; background: var(--charcoal, #1a1a1a) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid rgba(var(--gold-rgb), 0.05); }
    .navbar.scrolled { border-bottom: 1px solid var(--navbar-border); }
    .navbar-logo-text.hide-on-mobile { display: none; }
    .navbar-logo { max-width: 180px; }
    .navbar-nav { display: none; }
    .navbar-actions .btn-gold, .navbar-actions .btn-ghost { display: none; }
    .navbar-actions { display: flex; gap: 1rem; align-items: center; }
    .hamburger { display: flex; margin-left: 0.5rem; }
    .mobile-only { display: block; width: 100%; }
}
@media (max-width: 768px) {
    :root { --hero-title-size: 44px; --hero-subtitle-size: 16px; --section-title-size: 28px; }
    section { padding: 5rem 1.5rem; }
    .navbar { padding: 1rem 1.5rem; }
    .responsive-embed iframe { height: 300px !important; }
}
@media (max-width: 480px) {
    :root { --hero-title-size: 36px; }
    .navbar-logo { font-size: 1.25rem; }
}

/* ===== DROPDOWN MENU ===== */
[x-cloak] { display: none !important; }

.has-dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.dropdown-toggle.active {
    color: var(--gold);
}
.chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.rotate-180 {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(var(--charcoal-rgb), 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    border-radius: 4px;
    padding: 0.75rem 0;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 1000;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(var(--gold-rgb), 0.2);
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu a:hover {
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold);
}

/* Mobile Dropdown (Accordion) */
@media (max-width: 1024px) {
    .has-dropdown { width: 100%; }
    .dropdown-toggle { 
        justify-content: center; 
        padding: 0.75rem; 
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        width: 100%;
        backdrop-filter: none;
    }
    .dropdown-menu::before { display: none; }
    .dropdown-menu a {
        padding: 1rem 1.5rem;
        background: rgba(0,0,0,0.2);
        font-size: 0.7rem;
        opacity: 0.8;
    }
}

/* ===== BOTTOM NAVIGATION (MOBILE APPS FEEL) ===== */
.bottom-nav-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 380px;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .bottom-nav-container.mobile-only {
        display: block;
    }
    
    body {
        padding-bottom: 90px;
    }
}

.bottom-nav {
    background: rgba(var(--charcoal-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--gold-rgb), 0.2);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    padding: 4px 0;
}

.bottom-nav .nav-item.active {
    color: var(--gold);
}

.bottom-nav .nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-5px) scale(1.15);
}

.bottom-nav .nav-label {
    opacity: 0.8;
    letter-spacing: 0.02em;
}

/* Center Button (WhatsApp/Action) */
.bottom-nav .center-btn {
    margin-top: -38px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.bottom-nav .center-btn-inner {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold), black 20%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.45);
    border: 4px solid var(--charcoal);
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav .center-btn:active .center-btn-inner {
    transform: scale(0.9) translateY(2px);
}

.bottom-nav .center-btn .nav-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 0;
}

.bottom-nav .center-btn .nav-label {
    color: var(--gold);
    font-weight: 700;
}

/* Ripples & Feedback */
.bottom-nav .ripples {
    overflow: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .ripples::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(201, 169, 110, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    border-radius: 50%;
}

.bottom-nav .ripples:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: 0s;
}

/* Blur support detection */
@supports not (backdrop-filter: blur(20px)) {
    .bottom-nav {
        background: rgba(26, 26, 26, 0.98);
    }
}
