/* ============================================================
   MARKET INFO DIRECT — Shared Stylesheet v2
   Completely self-contained. No old theme dependencies.
   Gold: #C9A84C  Dark: #111111
   ============================================================ */

:root {
    --gold:     #C9A84C;
    --gold-lt:  #E8C96A;
    --dark:     #111111;
    --dark-2:   #1a1a1a;
    --dark-3:   #2a2a2a;
    --white:    #ffffff;
    --off-white:#f7f6f3;
    --text:     #2c2c2c;
    --text-lt:  #666666;
    --pad:      clamp(3rem, 7vw, 6rem);
    --wide:     1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    line-height: 1.85;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

.inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   NAV — fully self-contained, no superfish needed
   ============================================================ */
.mid-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #e8e0d0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    transition: height 0.3s ease;
}
.mid-nav::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-lt) 50%, var(--gold) 80%, transparent);
}
.mid-nav.scrolled { height: 64px; }

/* Logo */
.mid-nav-logo a { display: flex; align-items: center; }
.mid-nav-logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s;
}
.mid-nav.scrolled .mid-nav-logo img { height: 52px; }

/* Nav list */
.mid-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    position: relative;
    flex-wrap: nowrap;
}

/* Top-level buttons */
.mid-nav-links > li { position: relative; }
.mid-nav-links > li > a {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--gold);
    background: linear-gradient(180deg, #2a2a24, #111110);
    border: 1px solid var(--gold);
    box-shadow: 0 0 6px rgba(201,168,76,0.3);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.mid-nav-links > li > a:hover,
.mid-nav-links > li.open > a {
    background: linear-gradient(180deg, var(--gold-lt), var(--gold));
    color: #111;
    box-shadow: 0 0 12px rgba(201,168,76,0.5);
}
/* Membership button — gold fill */
.mid-nav-links > li:last-child > a {
    background: linear-gradient(135deg, #b8963e, var(--gold), var(--gold-lt));
    color: #111;
    border-color: var(--gold-lt);
}
.mid-nav-links > li:last-child > a:hover {
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    color: #000;
}

/* Dropdowns */
.mid-nav-links > li > ul {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #0e0e0e;
    border-top: 2px solid var(--gold);
    border: 1px solid rgba(201,168,76,0.25);
    border-top: 2px solid var(--gold);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    list-style: none;
    z-index: 200;
    padding: 6px 0;
}
.mid-nav-links > li.open > ul { display: block; }
.mid-nav-links > li > ul > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    border-left: 2px solid transparent;
    transition: all 0.18s;
    white-space: nowrap;
}
.mid-nav-links > li > ul > li > a:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.07);
    border-left-color: var(--gold);
    padding-left: 26px;
}
/* Membership dropdown items */
.mid-nav-links > li:last-child > ul > li > a {
    color: #111;
    background: linear-gradient(135deg, #b8963e, var(--gold));
    font-weight: 700;
    border: none;
    margin: 2px 0;
}
.mid-nav-links > li:last-child > ul > li > a:hover {
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    color: #000;
    padding-left: 20px;
}

/* Hamburger for mobile */
.mid-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: 1px solid var(--gold);
    border-radius: 4px;
}
.mid-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.mid-page-header {
    padding-top: 80px;
    background: var(--dark);
}
.mid-page-header-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,4vw,3rem);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.mid-page-header-text h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(26px,4vw,46px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}
.mid-page-header-text p {
    font-size: clamp(16px,1.5vw,19px);
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    line-height: 1.75;
}
.mid-page-header-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.mid-section      { padding: var(--pad) 0; background: var(--white); }
.mid-section-alt  { padding: var(--pad) 0; background: var(--off-white); }
.mid-section-dark { padding: var(--pad) 0; background: var(--dark); color: var(--white); }

.mid-section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(24px,3vw,36px);
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.mid-section-title-light { color: var(--white); }
.mid-section-sub {
    font-size: 17px;
    color: var(--text-lt);
    margin-bottom: 36px;
    line-height: 1.7;
}
.mid-section-sub-light { color: rgba(255,255,255,0.5); }

.mid-gold-bar {
    width: 56px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    border-radius: 2px;
    margin-bottom: 20px;
}
.mid-gold-bar-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.mid-btn {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 28px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.mid-btn-gold {
    background: linear-gradient(135deg, #b8963e, var(--gold), var(--gold-lt), var(--gold));
    background-size: 200% auto;
    color: #1a1200 !important;
    border: 1px solid rgba(201,168,76,0.4);
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.mid-btn-gold:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.45);
}
.mid-btn-dark {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.3);
}
.mid-btn-dark:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(201,168,76,0.06);
}

/* ============================================================
   VIDEO PLACEHOLDER
   ============================================================ */
.mid-video-section { background: var(--dark-2); padding: var(--pad) 0; }
.mid-video-wrap { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.5rem,4vw,3rem); }
.mid-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 2px solid rgba(201,168,76,0.35);
    border-radius: 4px;
    overflow: hidden;
}
.mid-video-player video { width: 100%; height: 100%; object-fit: contain; display: block; }
.mid-video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    color: rgba(201,168,76,0.6);
    font-family: 'Cinzel', serif;
    text-align: center;
    padding: 24px;
}
.mid-video-placeholder svg { width: 60px; height: 60px; opacity: 0.45; }
.mid-video-placeholder p { font-size: 14px; letter-spacing: 0.08em; }

/* ============================================================
   FOOTER
   ============================================================ */
.mid-footer { background: var(--dark-2); }
.mid-footer-top {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: clamp(1.5rem,3vw,2.5rem);
    padding: var(--pad) 0 clamp(2rem,4vw,3rem);
    border-bottom: 1px solid var(--dark-3);
}
.mid-footer-col h6 {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-3);
}
.mid-footer-col p { font-size: 16px; color: #ccc; line-height: 1.85; margin-bottom: 12px; }
.mid-footer-col a { color: #ccc; font-size: 16px; transition: color 0.2s; }
.mid-footer-col a:hover { color: var(--gold); }
.mid-footer-gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5px; margin-top: 12px;
}
.mid-footer-gallery a img {
    width: 100%; aspect-ratio: 1/1;
    object-fit: cover; opacity: 0.65;
    border: 1px solid var(--dark-3);
    transition: opacity 0.2s;
}
.mid-footer-gallery a:hover img { opacity: 1; }
.mid-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: clamp(1rem,2vw,1.5rem) 0;
}
.mid-footer-bottom p, .mid-footer-bottom a { font-size: 15px; color: #777; }
.mid-footer-bottom a:hover { color: var(--gold); }
.mid-footer-links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.mid-scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--dark); border: 2px solid var(--gold);
    border-radius: 3px; display: flex;
    align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
    z-index: 998; cursor: pointer;
}
.mid-scroll-top.visible { opacity: 1; pointer-events: auto; }
.mid-scroll-top:hover { background: var(--gold); transform: translateY(-2px); }
.mid-scroll-chevron {
    width: 9px; height: 9px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(-45deg);
    margin-top: 3px;
}
.mid-scroll-top:hover .mid-scroll-chevron { border-color: var(--dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .mid-nav-links { display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 80px; left: 0; right: 0;
        background: #111; padding: 12px 16px; gap: 4px;
        border-bottom: 2px solid var(--gold); }
    .mid-nav-links.open { display: flex; }
    .mid-nav-links > li > a { font-size: 12px; padding: 13px 16px; }
    .mid-nav-links > li > ul { position: static; border: none;
        border-left: 2px solid var(--gold); margin-left: 12px;
        box-shadow: none; display: none; }
    .mid-nav-links > li.open > ul { display: block; }
    .mid-nav-toggle { display: flex; }
    .mid-footer-top { grid-template-columns: repeat(2,1fr); }
    .mid-page-header-inner { flex-direction: column; }
}
@media (max-width: 520px) {
    .mid-footer-top { grid-template-columns: 1fr; }
    .mid-footer-bottom { flex-direction: column; text-align: center; }
    .mid-footer-links { justify-content: center; }
    .mid-nav { height: 64px; }
    .mid-nav-logo img { height: 48px; }
    .mid-page-header { padding-top: 64px; }
}

/* High zoom / small viewport graceful degradation */
@media (max-width: 1100px) {
    .mid-nav-links > li > a {
        padding: 9px 11px !important;
        font-size: 10px !important;
        letter-spacing: 0.08em !important;
    }
}
@media (max-width: 960px) {
    .mid-nav-links { display: none; }
    .mid-nav-toggle { display: flex; }
}

/* ── Membership nav button — pulsing glow + shine sweep ── */
@keyframes midGlowPulse {
    0%   { box-shadow: 0 0 8px rgba(201,168,76,0.35), 0 4px 20px rgba(201,168,76,0.2); }
    50%  { box-shadow: 0 0 22px rgba(201,168,76,0.7), 0 4px 28px rgba(201,168,76,0.45); }
    100% { box-shadow: 0 0 8px rgba(201,168,76,0.35), 0 4px 20px rgba(201,168,76,0.2); }
}
@keyframes midShineSweep {
    0%   { left: -100%; opacity: 0; }
    10%  { opacity: 1; }
    40%  { left: 130%; opacity: 0; }
    100% { left: 130%; opacity: 0; }
}
.mid-nav-links > li:last-child > a {
    position: relative;
    overflow: hidden;
    animation: midGlowPulse 3s ease-in-out infinite;
}
.mid-nav-links > li:last-child > a::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0.3) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: midShineSweep 8s ease-in-out infinite;
    pointer-events: none;
}

