/* ==========================================================================
   The Grand Pavilion - Header & Hero Stylesheet
   Reference-matched typography: Cinzel (Display/Brand) + Open Sans (UI/Body)
   ========================================================================== */

:root {
    --color-gold: #c9a050;
    --color-gold-light: #e0be79;
    --color-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --color-sticky-bg: rgba(22, 22, 24, 0.92);
    --color-border-subtle: rgba(255, 255, 255, 0.25);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: #111111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ==========================================================================
   Header (Normal Transparent Over Hero + Sticky Scrolled State)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.header-top-bar {
    padding: 18px 0 10px;
    max-height: 140px;
    opacity: 1;
    overflow: hidden;
    transition: max-height var(--transition-smooth), opacity 0.25s ease, padding var(--transition-smooth);
}

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Left: Address & Phone */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-item i {
    font-size: 12px;
    color: var(--color-white);
    width: 14px;
    text-align: center;
}

.header-contact-item a:hover {
    color: var(--color-gold-light);
}

/* Center: Brand Wordmark */
.header-brand {
    text-align: center;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--color-white);
    line-height: 1.15;
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.42em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    padding-left: 0.42em;
}

/* Right: Opening Status Pill + Social Icons */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.status-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.status-caret {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-socials a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.header-socials a:hover {
    color: var(--color-gold-light);
    transform: translateY(-1px);
}

/* Navigation Bar */
.header-nav-bar {
    padding: 14px 0;
    transition: padding var(--transition-smooth);
}

.primary-nav {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-item.is-active .nav-link,
.nav-link:hover {
    color: var(--color-white);
}

.nav-item.is-active .nav-link::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-caret {
    font-size: 9px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 260px;
    background-color: rgba(20, 20, 22, 0.96);
    border: 1px solid rgba(201, 160, 80, 0.25);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

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

.dropdown-link {
    display: block;
    padding: 9px 18px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
    background-color: rgba(201, 160, 80, 0.14);
    color: var(--color-gold-light);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    padding: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-white);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Sticky Scrolled Header (Image 2 Reference) */
.site-header.is-scrolled {
    background-color: var(--color-sticky-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.site-header.is-scrolled .header-top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.site-header.is-scrolled .header-nav-bar {
    padding: 15px 0;
}

/* ==========================================================================
   Hero Section (Image 1 Reference)
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 170px 24px 90px;
    overflow: hidden;
    text-align: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.4s ease-in-out, transform 6s ease-out;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 8, 0.62) 0%,
        rgba(12, 10, 8, 0.48) 45%,
        rgba(12, 10, 8, 0.68) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: inline-block;
    border-bottom: 1px solid rgba(224, 190, 121, 0.45);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.1vw, 52px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.18;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 auto 24px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto 36px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cta-btn {
    display: inline-block;
    padding: 11px 28px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hero-cta-btn:hover {
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 1024px) {
    .header-top-inner {
        grid-template-columns: 1fr auto;
    }

    .header-contact {
        display: none;
    }

    .header-brand {
        text-align: left;
    }

    .brand-link {
        align-items: flex-start;
    }

    .nav-list {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 18px;
    }

    .header-top-bar {
        padding: 14px 0;
    }

    .brand-title {
        font-size: 17px;
        letter-spacing: 0.12em;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 0.3em;
    }

    .status-badge,
    .header-socials {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav-bar {
        padding: 0;
    }

    .primary-nav {
        display: none;
        background-color: rgba(18, 18, 20, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 0 22px;
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        margin-top: 6px;
        display: none;
    }

    .has-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .site-header.is-scrolled .header-top-bar {
        max-height: 80px;
        padding: 12px 0;
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.is-scrolled .header-nav-bar {
        padding: 0;
    }

    .hero-section {
        padding: 130px 18px 70px;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .hero-description {
        font-size: 14px;
    }
}
