/* ============================================
   GLOBAL RESET — kills the white padding/margin
   that browsers (or plugin styles) add around <body>,
   and removes bullet points from header nav <li>s.
   Lives here because header.css loads site-wide.
   !important is needed because Elementor's kit-10
   CSS (loaded site-wide) has higher specificity.
============================================ */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.main-nav ul,
.main-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================
   GLOBAL FONT — force Playfair Display site-wide.
   Overrides Elementor, Hello Elementor, and any
   widget-level font settings.
   Excludes icon containers (<i>, <svg>, classes like
   .fa-*, .eicon-*, .*-icon) so Font Awesome / Elementor
   icon fonts continue to render correctly.
============================================ */
body,
body *:not(i):not(svg):not(use):not(path):not([class*="icon"]):not([class*="eicon"]):not([class*="fa-"]) {
    font-family: 'Playfair Display', serif !important;
}


/* ============================================
   HEADER STYLES - Full width, deep burgundy
============================================ */

.site-header,
.site-header * {
    box-sizing: border-box !important;
}

.site-header {
    background: linear-gradient(90deg, #5C0F0F 0%, #881818 50%, #5C0F0F 100%) !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    z-index: 100;
    overflow: visible;
}

.site-header .header-inner {
    max-width: 1370px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 30px !important;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}


/* ============================================
   NAV — 3 top-level items (HOME + 2 dropdowns).
   `> ul` scopes the flex layout to the top-level
   list only — nested dropdown menus stay as block
   (vertical) lists.
============================================ */
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 50px;
}

.main-nav .dropdown-menu {
    display: block;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a,
.main-nav .dropdown-toggle {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
}

/* The .dropdown-toggle is a <button> — strip default browser styling. */
.main-nav .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.main-nav a:hover,
.main-nav .dropdown-toggle:hover,
.main-nav .has-dropdown.open > .dropdown-toggle {
    color: #c89a4a;
}

/* Active state underline intentionally removed — current page is indicated
   by the gold link color in the dropdown only, not via a bar on the top nav. */

/* ============================================
   DESKTOP DROPDOWNS — absolute, hidden by default,
   shown when parent .has-dropdown gets .open via JS
============================================ */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: linear-gradient(180deg, #5a1414 0%, #3d0a0a 100%);
    border: 1px solid rgba(200, 154, 74, 0.35);
    padding: 10px 0 !important;
    margin-top: 10px;
    list-style: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 200;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.main-nav .has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    width: 100%;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 22px !important;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: none;
    border-bottom: none;
}

.main-nav .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #c89a4a;
}

.main-nav .dropdown-menu a.active {
    color: #c89a4a;
}


/* ============================================
   Mobile Hamburger Toggle
============================================ */
.menu-toggle {
    display: none;
    background: transparent !important;
    border: none !important;
    width: 36px !important;
    height: 30px !important;
    cursor: pointer;
    padding: 0 !important;
    position: relative;
    z-index: 110;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #ffffff !important;
    margin: 5px 0 !important;
    padding: 0 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ============================================
   Responsive — hamburger at ≤ 768px (only 3 visible
   top-level items so they fit comfortably above mobile)
============================================ */
@media (max-width: 768px) {
    .site-header .header-inner {
        padding: 12px 20px !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .logo img {
        height: 50px;
    }

    /* Take nav out of the flex flow so the hamburger sits next to the logo. */
    .main-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: linear-gradient(180deg, #5a1414 0%, #3d0a0a 100%) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 200;
    }

    .main-nav.open {
        max-height: 800px;
        overflow-y: auto;
    }

    .main-nav > ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 10px 0 !important;
    }

    .main-nav > ul > li {
        width: 100%;
        text-align: center;
    }

    .main-nav a,
    .main-nav .dropdown-toggle {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        letter-spacing: 1.5px !important;
        text-align: center !important;
        justify-content: center;
    }

    .main-nav > ul > li > a.active,
    .main-nav .has-dropdown.active > .dropdown-toggle {
        border-bottom: none;
        background-color: rgba(255, 255, 255, 0.08);
    }

    /* Mobile accordion: dropdown collapses inline below the parent toggle,
       not as a floating panel. */
    .main-nav .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        background: rgba(0, 0, 0, 0.15) !important;
        border: none;
        box-shadow: none !important;
        min-width: 0;
        margin-top: 0;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .main-nav .has-dropdown.open .dropdown-menu {
        max-height: 600px;
    }

    .main-nav .dropdown-menu a {
        padding: 12px 20px !important;
        font-size: 14px !important;
        letter-spacing: 1px !important;
        text-transform: none;
        color: #f0d8b4 !important;
    }

    .main-nav .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 44px;
    }

    .main-nav a,
    .main-nav .dropdown-toggle {
        font-size: 15px !important;
    }
}
