/* =========================================
   IMPORTS & CSS VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --black: #0a0a0a;
    --off-black: #111111;
    --dark: #1a1a1a;
    --gold: #C9A84C;
    --gold-light: #e8c97a;
    --white: #f8f6f2;
    --white-dim: rgba(248, 246, 242, 0.6);
    --white-faint: rgba(248, 246, 242, 0.08);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Semantic tokens — dark defaults */
    --bg-primary:     #0a0a0a;
    --bg-secondary:   #111111;
    --bg-tertiary:    #1a1a1a;
    --bg-card:        #141414;
    --text-primary:   #f8f6f2;
    --text-secondary: rgba(248, 246, 242, 0.6);
    --text-faint:     rgba(248, 246, 242, 0.3);
    --text-signin:    rgba(248, 246, 242, 0.35);
    --border-subtle:  rgba(201, 168, 76, 0.1);
    --border-mid:     rgba(201, 168, 76, 0.15);
    --border-card:    rgba(255, 255, 255, 0.04);
    --border-card-hover: rgba(201, 168, 76, 0.2);
    --shadow-mid:     rgba(0, 0, 0, 0.5);
    --navbar-bg:      rgba(10, 10, 10, 0.92);
    --cards-bg:       rgba(201, 168, 76, 0.06);
    --img-brightness: brightness(0.7);
    --img-brightness-hover: brightness(0.85);
    --gold-accent:    #C9A84C;
    --cta-text:       #0a0a0a;
    --overlay-grad:   var(--bg-card);
}

/* =========================================
   LIGHT MODE
   ========================================= */
body.light-mode {
    --bg-primary:     #FAF8F4;
    --bg-secondary:   #F0EDE6;
    --bg-tertiary:    #E8E4DA;
    --bg-card:        #F5F2EB;
    --text-primary:   #1C160A;
    --text-secondary: rgba(28, 22, 10, 0.62);
    --text-faint:     rgba(28, 22, 10, 0.35);
    --text-signin:    rgba(28, 22, 10, 0.4);
    --border-subtle:  rgba(168, 121, 31, 0.2);
    --border-mid:     rgba(168, 121, 31, 0.28);
    --border-card:    rgba(28, 22, 10, 0.07);
    --border-card-hover: rgba(168, 121, 31, 0.35);
    --shadow-mid:     rgba(90, 65, 10, 0.1);
    --navbar-bg:      rgba(0, 0, 0, 0.95);
    --cards-bg:       rgba(168, 121, 31, 0.05);
    --img-brightness: brightness(0.9);
    --img-brightness-hover: brightness(1);
    --gold-accent:    #8F6514;
    --cta-text:       #FAF8F4;
    --overlay-grad:   #F5F2EB;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, color 0.5s ease;
}

main { flex: 1; }

/* =========================================
   THEME TOGGLE
   ========================================= */
.theme-toggle {
    position: fixed;
    bottom: 32px; right: 32px;
    z-index: 99999;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px var(--shadow-mid);
    transition: background 0.5s ease, border-color 0.5s ease, transform 0.25s ease, box-shadow 0.3s ease;
    outline: none;
}
.theme-toggle:hover { transform: scale(1.09); box-shadow: 0 12px 40px var(--shadow-mid), 0 0 0 1px var(--gold-accent); border-color: var(--gold-accent); }
.theme-toggle:active { transform: scale(0.94); }

.toggle-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.toggle-icon svg {
    position: absolute; width: 20px; height: 20px;
    fill: none; stroke: var(--gold-accent); stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.5s ease;
}
.toggle-icon .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.toggle-icon .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
body.light-mode .toggle-icon .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
body.light-mode .toggle-icon .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

.theme-toggle::after {
    content: attr(data-tooltip);
    position: absolute; right: 62px; bottom: 50%; transform: translateY(50%);
    background: var(--bg-tertiary); color: var(--text-secondary);
    font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 5px 10px; border-radius: 2px;
    border: 1px solid var(--border-mid); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.theme-toggle:hover::after { opacity: 1; }

@keyframes togglePulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.theme-toggle.pulse { animation: togglePulse 0.65s ease-out; }

/* =========================================
   NAVBAR
   ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    transition: background var(--transition), border-color 0.5s ease;
}
header.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-mid);
}

/* Always dark header in light mode */
body.light-mode header { background: rgba(0, 0, 0, 0.82); }
body.light-mode header.scrolled { background: rgba(0, 0, 0, 0.95); border-bottom-color: rgba(201, 168, 76, 0.2); }
body.light-mode .navbar .left a { color: rgba(248, 246, 242, 0.65); }
body.light-mode .navbar .left a:hover { color: var(--gold-light); }
body.light-mode .lang-dropdown { color: rgba(248, 246, 242, 0.7); border-color: rgba(201, 168, 76, 0.35); }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 48px; height: 72px; }
.navbar .left, .navbar .right { flex: 1; display: flex; align-items: center; }
.navbar .right { justify-content: flex-end; gap: 15px; }

.navbar .left a {
    font-family: var(--font-body); font-weight: 400; font-size: 0.85rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-secondary); text-decoration: none;
    transition: color var(--transition);
}
.navbar .left a:hover { color: var(--gold-accent); }

.logo { flex: 0 0 auto; display: flex; justify-content: center; }
.logo img { height: 55px; width: auto; transition: opacity var(--transition); }
.logo:hover img { opacity: 0.8; }

.right .get-started-btn {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bg-primary); background: var(--gold-accent);
    text-decoration: none; padding: 10px 22px; border-radius: 2px;
    transition: background var(--transition), transform var(--transition), color 0.5s ease;
    display: inline-block; cursor: pointer;
}
.right .get-started-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.right .get-started-btn.active { opacity: 0.6; cursor: default; pointer-events: none; }

.language-selector { margin-left: 24px; }
.lang-dropdown {
    background: transparent; border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--text-secondary); font-family: var(--font-body);
    font-size: 0.75rem; letter-spacing: 0.08em; padding: 5px 8px;
    border-radius: 2px; cursor: pointer; outline: none;
    transition: border-color var(--transition), color 0.5s ease;
}
.lang-dropdown:hover, .lang-dropdown:focus { border-color: var(--gold-accent); color: var(--text-primary); }
.lang-dropdown option { background: #1a1a1a; color: #f8f6f2; }

/* =========================================
   PAGE HERO
   ========================================= */
.page-hero {
    padding: 160px 48px 80px; text-align: center; position: relative;
    background: var(--bg-primary); transition: background 0.5s ease;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--gold-accent), transparent);
    transition: background 0.5s ease;
}
body.light-mode .page-hero {
    background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(168, 121, 31, 0.1) 0%, #FAF8F4 65%);
}

.page-eyebrow {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-accent);
    margin-bottom: 24px; opacity: 0; animation: fadeUp 0.8s 0.1s forwards;
    transition: color 0.5s ease;
}
.page-title {
    font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 300; line-height: 1.05; color: var(--text-primary);
    margin-bottom: 20px; opacity: 0; animation: fadeUp 0.9s 0.25s forwards;
    transition: color 0.5s ease;
}
.page-title .highlight { font-weight: 700; font-style: italic; color: var(--gold-accent); transition: color 0.5s ease; }
.page-subtext {
    font-family: var(--font-body); font-size: 1rem; font-weight: 300;
    color: var(--text-secondary); max-width: 420px; margin: 0 auto;
    opacity: 0; animation: fadeUp 0.9s 0.4s forwards; transition: color 0.5s ease;
}

/* =========================================
   CARDS
   ========================================= */
.cards-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    padding: 80px 48px 100px; max-width: 1200px; margin: 0 auto;
    background: var(--cards-bg); transition: background 0.5s ease;
}

.card {
    background: var(--bg-card); display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--border-card);
    transition: border-color var(--transition), background 0.5s ease;
    opacity: 0; animation: fadeUp 1s forwards;
}
#card-advertiser { animation-delay: 0.3s; }
#card-venue      { animation-delay: 0.5s; }
.card:hover { border-color: var(--border-card-hover); }

.card-image { position: relative; height: 260px; overflow: hidden; }
.card-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: var(--img-brightness);
    transition: transform 0.8s ease, filter 0.8s ease;
}
.card:hover .card-image img { transform: scale(1.04); filter: var(--img-brightness-hover); }
.card-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--overlay-grad) 100%);
    transition: background 0.5s ease;
}

.card-body { padding: 40px 48px 48px; display: flex; flex-direction: column; flex: 1; }

.card-tag {
    font-family: var(--font-body); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-accent);
    margin-bottom: 16px; display: block; transition: color 0.5s ease;
}
.card-title {
    font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300; line-height: 1.1; color: var(--text-primary);
    margin-bottom: 20px; transition: color 0.5s ease;
}
.card-desc {
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
    color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px;
    transition: color 0.5s ease;
}
.card-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.card-features li {
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 300;
    color: var(--text-secondary); padding-left: 20px; position: relative;
    transition: color 0.5s ease;
}
.card-features li::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 1px; background: var(--gold-accent); transition: background 0.5s ease;
}

.card-btn {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--cta-text); background: var(--gold-accent);
    text-decoration: none; padding: 14px 32px; border-radius: 2px;
    text-align: center; display: block;
    transition: background var(--transition), transform var(--transition), color 0.5s ease;
    margin-top: auto;
}
.card-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

.card-signin {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 300;
    color: var(--text-signin); text-align: center; margin-top: 16px;
    transition: color 0.5s ease;
}
.card-signin a { color: var(--gold-accent); text-decoration: none; transition: color var(--transition); }
.card-signin a:hover { color: var(--gold-light); }

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
    padding: 40px 48px; display: flex; align-items: center; justify-content: center;
    transition: background 0.5s ease, border-color 0.5s ease;
}
footer p {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em;
    color: var(--text-faint); text-transform: uppercase; transition: color 0.5s ease;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes togglePulse {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .navbar { padding: 0 32px; }
    .cards-container { padding: 60px 32px 80px; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: 60px; }
    .navbar .left a { font-size: 0.75rem; }
    .logo img { height: 28px; }
    .right .get-started-btn { padding: 8px 14px; font-size: 0.72rem; }
    .page-hero { padding: 120px 24px 60px; }
    .cards-container { grid-template-columns: 1fr; padding: 48px 24px 60px; max-width: 540px; }
    .card-body { padding: 32px; }
    footer { padding: 32px 24px; }
    .theme-toggle { bottom: 20px; right: 20px; width: 46px; height: 46px; }
    .theme-toggle::after { display: none; }
}
@media (max-width: 480px) {
    .card-image { height: 200px; }
    .navbar { padding: 0 10px; height: 52px; }
    .navbar .left a { font-size: 0.62rem; letter-spacing: 0.04em; }
    .logo img { height: 20px; }
    .navbar .right { gap: 4px; }
    .right .get-started-btn { padding: 5px 7px; font-size: 0.55rem; letter-spacing: 0.04em; }
    .language-selector { margin-left: 2px; }
    .lang-dropdown { font-size: 0.6rem; padding: 3px 4px; letter-spacing: 0; }
}
