:root {
    --block-accent: #d4af37;
    --block-accent-muted: rgba(212, 175, 55, 0.4);
}

/* ============================================================
   GLOBAL
   ============================================================ */

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

html {
    overflow-x: hidden;
}

body {
    /* clip prevents horizontal overflow without creating a scroll container,
       so position:sticky on the nav keeps working */
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #2c2c25;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

input, select, textarea, button {
    font-family: inherit;
}

main {
    flex: 1;
}

/* ============================================================
   NAVBAR — mobile first
   Base = mobile: logo + hamburger
   lg+  = full horizontal nav
   ============================================================ */

.nav-container {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: white;
    min-height: 70px;
    z-index: 1000;
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== Logo ===== */
.left-navbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link,
.logo-text {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c2c25;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.logo-link:hover,
.logo-text:hover {
    transform: scale(1.05);
    background-color: rgba(212, 175, 55, 0.1);
}

.home-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .home-logo {
    transform: scale(1.1);
}

/* ===== Hamburger — visible on mobile, hidden on desktop ===== */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: content-box;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #2c2c25;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Nav links — hidden on mobile ===== */
.nav-dropdown,
.center-navbar,
.right-navbar {
    display: none;
}

/* Open state — dropdown panel slides below the nav bar */
.nav-container.is-open .nav-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 10;
    padding: 0 1rem 12px;
}

.nav-container.is-open .center-navbar {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 4px;
}

/* Each top-level nav item is a flex row: link fills left, expand button on right */
.nav-container.is-open .center-navbar > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-container.is-open .center-navbar > li > .nav-link {
    flex: 1;
    padding: 12px 4px;
}

/* Hide the CSS ::after arrow on desktop dropdowns — expand button handles it on mobile */
.nav-container.is-open .center-navbar .dropdown > .nav-link::after {
    display: none;
}

/* ── Mobile expand/collapse toggle button ── */
.nav-expand {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 1rem;
    color: #888;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-container.is-open .center-navbar .dropdown > .nav-expand,
.nav-container.is-open .has-submenu > .nav-expand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container.is-open .dropdown.is-expanded > .nav-expand,
.nav-container.is-open .has-submenu.is-expanded > .nav-expand {
    transform: rotate(180deg);
    color: #2c2c25;
}

/* Override hover — force dropdowns hidden in mobile open nav unless .is-expanded */
.nav-container.is-open .center-navbar .dropdown > .dropdown-menu,
.nav-container.is-open .has-submenu > .submenu {
    display: none;
}

/* ── Accordion: dropdown-menu appears inline below parent ── */
.nav-container.is-open .dropdown.is-expanded > .dropdown-menu {
    display: block;
    flex-basis: 100%;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 6px;
    padding: 4px 0 4px 16px;
    min-width: unset;
    background: rgba(212, 175, 55, 0.06);
    margin: 0 0 4px;
}

.nav-container.is-open .dropdown.is-expanded > .dropdown-menu a {
    padding: 9px 4px;
    font-size: 0.9rem;
    color: #6a6a6a;
}

.nav-container.is-open .dropdown.is-expanded > .dropdown-menu a:hover {
    color: #2c2c25;
}

/* ── has-submenu nested accordion ── */
.nav-container.is-open .has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-container.is-open .has-submenu > a {
    flex: 1;
    justify-content: flex-start;
}

.nav-container.is-open .has-submenu > a::after {
    display: none;
}

.nav-container.is-open .has-submenu.is-expanded > .submenu {
    display: block;
    flex-basis: 100%;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 4px 16px;
    min-width: unset;
    background: transparent;
    margin: 0;
}

.nav-container.is-open .has-submenu.is-expanded > .submenu a {
    padding: 9px 4px;
    font-size: 0.88rem;
    color: #888;
}

.nav-container.is-open .right-navbar {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 8px 0 4px;
}

.nav-container.is-open .right-navbar .nav-divider {
    display: none;
}

.nav-container.is-open .right-navbar .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
    background: transparent;
}

.nav-container.is-open .right-navbar .dropdown-menu::before {
    display: none;
}

.nav-container.is-open .right-navbar .dropdown-menu a {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #6a6a6a;
}

/* Hamburger → X when open */
.nav-container.is-open .nav-hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-container.is-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-container.is-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== Nav links shared styles ===== */
.nav-link {
    text-decoration: none;
    color: #2c2c25;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background-color 0.25s ease;
    white-space: nowrap;
    display: block;
}

.nav-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* ===== Dropdowns ===== */
.dropdown > .nav-link::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 6px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: white;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 999;
    padding: 8px 0;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    color: #2c2c25;
    font-size: 1rem;
    padding: 12px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    padding-left: 20px;
}

/* ===== Nested submenu ===== */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-submenu > a::after {
    content: "►";
    font-size: 0.55rem;
    margin-left: auto;
    padding-left: 12px;
}

.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
    padding: 8px 0;
    margin-left: 2px;
}

.has-submenu:hover .submenu,
.submenu:hover {
    display: block;
}

/* ===== Right navbar ===== */
.right-navbar {
    list-style: none;
    position: relative;
}

.right-navbar .dropdown {
    position: relative;
}

.user-name {
    color: #2c2c25 !important;
    font-weight: 500;
}

.right-navbar a {
    text-decoration: none;
    color: #2c2c25;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.right-navbar a:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.right-navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
    top: 100%;
    margin-top: 5px;
}

.right-navbar .dropdown-menu a {
    border-left: 3px solid transparent;
    padding-left: 13px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.right-navbar .dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
    color: #2c2c25;
    padding-left: 13px;
}

.right-navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(212, 175, 55, 0.5);
    margin: 0 1rem;
}

/* ===== lg+ : full horizontal nav ===== */
@media (min-width: 1360px) {
    .nav-container {
        flex-wrap: nowrap;
        padding: 0 2rem;
        height: 70px;
    }

    .nav-hamburger {
        display: none;
    }

    /* Wrapper becomes transparent — center/right navbars join the flex row directly */
    .nav-dropdown {
        display: contents;
    }

    .center-navbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        list-style: none;
        gap: 2rem;
        width: auto;
        border-top: none;
        padding: 0;
        margin-top: 0;
    }

    .center-navbar > li {
        position: relative;
    }

    .right-navbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        border-top: none;
        padding: 0;
    }

    .logo-link,
    .logo-text {
        font-size: 1.75rem;
    }

    .home-logo {
        width: 45px;
        height: 45px;
    }
}

/* ============================================================
   FOOTER — mobile first
   Base = stacked, centred
   md+  = brand left, social + meta right
   ============================================================ */

.footer {
    background: #1c1c17;
    border-top: 2px solid #d4af37;
    padding: 36px 24px 32px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
    color: #d4af37;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#ptyltd {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.legal-footer-links {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.78rem;
}

.legal-footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus {
    color: #d4af37;
    text-decoration: underline;
}

.legal-footer-links span[aria-hidden="true"] {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== md+ : brand left, social + meta right ===== */
@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
    }

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

    .footer-right {
        align-items: flex-end;
    }

    .footer-meta {
        align-items: flex-end;
        flex-direction: row;
        gap: 16px;
    }

    .social-links {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .legal-footer-links {
        justify-content: flex-end;
    }
}

/* ============================================================
   GLOBAL BUTTON
   ============================================================ */

.btn {
    display: inline-block;
    padding: 14px 24px;
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease;
}

.btn:hover  { background: #b8942d; }
.btn:focus  { outline: 2px solid #d4af37; outline-offset: 2px; }
.btn:active { background: #a07e27; }

/* ============================================================
   LIGHTBOX
   ============================================================ */

img[data-lightbox] { cursor: zoom-in; }

#nc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    flex-direction: column;
}

#nc-lightbox.is-open {
    display: flex;
    animation: nc-lb-fade 0.2s ease;
}

.nc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.nc-lightbox__viewport {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

#nc-lightbox.is-zoomed .nc-lightbox__viewport { cursor: grab; }

.nc-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: transform 0.12s ease;
    user-select: none;
    pointer-events: none;
}

.nc-lightbox__controls {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.nc-lightbox__btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.nc-lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.nc-lightbox__btn:focus { outline: 2px solid #fff; outline-offset: 2px; }

@keyframes nc-lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
