/* =========================================
   Top Navigation Progress Bar
   ========================================= */
#top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #e8c96b, #ffffff);
    z-index: 100000;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.7), 0 0 5px rgba(197, 160, 89, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#top-progress-bar.active {
    opacity: 1;
}

#top-progress-bar.finished {
    width: 100% !important;
    opacity: 0;
    transition: width 0.15s ease-out, opacity 0.3s ease 0.15s;
}

/* =========================================
   Page Loader (First Visit)
   ========================================= */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Logo fade-in with scale */
.loader-logo {
    width: 130px;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    animation: loaderLogoReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(197, 160, 89, 0.35));
}

@keyframes loaderLogoReveal {
    0%   { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1);   }
}

/* Letter-by-letter fade sequence */
.loader-text {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.loader-text span {
    opacity: 0;
    transform: translateY(4px);
    animation: letterFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-text-spacer {
    width: 8px;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger each letter — 30ms increments for speed */
.loader-text span:nth-child(1)  { animation-delay: 0.20s; }
.loader-text span:nth-child(2)  { animation-delay: 0.23s; }
.loader-text span:nth-child(3)  { animation-delay: 0.26s; }
.loader-text span:nth-child(4)  { animation-delay: 0.29s; }
.loader-text span:nth-child(5)  { animation-delay: 0.32s; }
.loader-text span:nth-child(6)  { animation-delay: 0.35s; }
.loader-text span:nth-child(7)  { animation-delay: 0.38s; }
.loader-text span:nth-child(8)  { animation-delay: 0.41s; }
/* spacer at nth-child(9) */
.loader-text span:nth-child(10) { animation-delay: 0.47s; }
.loader-text span:nth-child(11) { animation-delay: 0.50s; }
/* spacer at nth-child(12) */
.loader-text span:nth-child(13) { animation-delay: 0.56s; }
.loader-text span:nth-child(14) { animation-delay: 0.59s; }
.loader-text span:nth-child(15) { animation-delay: 0.62s; }
.loader-text span:nth-child(16) { animation-delay: 0.65s; }
.loader-text span:nth-child(17) { animation-delay: 0.68s; }

@keyframes letterFadeIn {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0);   }
}

/* Gold progress bar */
.loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e8c96b);
    border-radius: 99px;
    animation: loaderBarFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes loaderBarFill {
    0%   { width: 0%;  }
    50%  { width: 60%; }
    100% { width: 100%; }
}

/* Responsive loader adjustments */
@media (max-width: 480px) {
    .loader-logo {
        width: 100px;
    }

    .loader-text {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .loader-bar {
        width: 150px;
    }
}

/* Navbar */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 95px;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 80px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Transparent navbar when hero slider is active */
.navbar.hero-transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 1025px) {
    .navbar.hero-transparent .nav-links li a {
        color: var(--white);
    }

    .navbar.hero-transparent .nav-links li a:hover {
        color: var(--accent);
    }

    .navbar.hero-transparent .dropdown-menu {
        background: rgba(10, 10, 10, 0.95);
        border-top: 2px solid var(--accent);
        backdrop-filter: blur(10px);
    }

    .navbar.hero-transparent .dropdown-menu li a {
        color: var(--white) !important;
    }

    .navbar.hero-transparent .dropdown-menu li a:hover {
        color: var(--accent) !important;
    }
}

.navbar.hero-transparent .logo-wrapper {
    filter: brightness(0) invert(1);
}

.navbar.hero-transparent .menu-toggle {
    color: var(--white);
}

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

.navbar.hero-transparent .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* State when mobile menu is open on transparent navbar */
.navbar.hero-transparent.menu-open {
    background: var(--white) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar.hero-transparent.menu-open .logo-wrapper {
    filter: none !important;
}

.navbar.hero-transparent.menu-open .menu-toggle {
    color: var(--primary) !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo Styles */
.logo-wrapper {
    position: relative;
    width: 220px;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-img {
    height: 140px;
    /* Large desktop size */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo-img {
    height: 110px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    transition: var(--transition-smooth);
}

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

.nav-actions {
    margin-left: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1100;
}

/* Responsive Navbar */
@media (max-width: 1024px) {
    .navbar {
        height: 80px;
    }

    .logo-wrapper {
        width: 180px;
    }

    .logo-img {
        height: 100px;
    }

    .navbar .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 2rem;
    }

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

    .nav-links li a {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 140px;
    }

    .logo-img {
        height: 80px;
    }
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-premium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    padding: 1rem 0;
    border-top: 2px solid var(--accent);
}

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

.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    display: block;
    text-transform: none !important;
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
}

/* Mobile Dropdown adjustment */
@media (max-width: 1024px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        border: none;
        text-align: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
    }

    .nav-item.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

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

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
}

/* Visibility Utilities */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }
}

/* Hero Slider  */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.exit {
    opacity: 0;
    transform: translateX(-60px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.6));
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero-overlay .container h1 {
        font-size: 2.5rem !important;
    }

    .hero-indicators {
        bottom: 25px;
    }
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding-bottom: 0;
}

.footer-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.site-footer .container {
    padding-top: 40px;
}

/* Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 32px;
}

/* Brand col */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Make the link a flex row so the img sits flush — no inline baseline gap */
.footer-logo-link {
    display: flex;
    align-items: flex-start;
    /* Pull the logo visually left to align its content edge with the text below */
    margin-left: -6px;
}

.footer-logo {
    height: 90px;
    width: auto;
    display: block;           /* eliminates any residual inline gap */
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

/* Let the column width constrain the text — no fixed max-width needed */
.footer-tagline {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0;
}

/* Social */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* Column headings */
.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Quick links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease, gap 0.25s ease;
}

.footer-links li a i {
    font-size: 0.6rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.footer-links li a:hover {
    color: var(--white);
    gap: 12px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Contact list */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.footer-contact li {
    display: flex;
    align-items: center;      /* icon stays centred to the text line */
    gap: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Wrap the text so it doesn't stretch the li awkwardly */
.footer-contact li span:last-child {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-bottom-tagline {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

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

    .footer-brand {
        grid-column: span 1;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}