/* ============================================================
   Club Amsterdam 2.0 Fantasy Club — Main Stylesheet
   style.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    /* Colours */
    --color-bg:            #0a0a0a;
    --color-surface:       #141414;
    --color-surface-2:     #1c1c1c;
    --color-border:        #2a2a2a;

    --color-primary:       #ff2200;
    --color-primary-glow:  #cc1100;
    --color-primary-dark:  #991100;

    --color-gold:          #f5a800;
    --color-gold-light:    #ffd166;
    --color-gold-dark:     #c48400;

    --color-green:         #39b54a;

    --color-white:         #e8e8f0;
    --color-muted:         #888899;
    --color-faint:         #444455;

    /* Typography */
    --font-heading:        'Cinzel', Georgia, serif;
    --font-body:           'Raleway', 'Helvetica Neue', sans-serif;
    --font-accent:         'Bebas Neue', Impact, sans-serif;

    /* Spacing */
    --space-xs:    0.5rem;
    --space-sm:    1rem;
    --space-md:    2rem;
    --space-lg:    4rem;
    --space-xl:    7rem;

    /* Borders */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-pill: 999px;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.3s ease;
    --transition-slow:   0.6s ease;

    /* Shadows / Glows */
    --glow-red:    0 0 18px rgba(255, 34, 0, 0.6), 0 0 40px rgba(255, 34, 0, 0.25);
    --glow-gold:   0 0 18px rgba(245, 168, 0, 0.6), 0 0 40px rgba(245, 168, 0, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: 0.03em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.8;
}

.text-muted {
    color: var(--color-muted);
}

.text-gold {
    color: var(--color-gold);
}

.text-primary {
    color: var(--color-primary);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.accent-font {
    font-family: var(--font-accent);
    letter-spacing: 0.08em;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding: var(--space-xl) 0;
}

.section--sm {
    padding: var(--space-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-xs);
}

.section-header .subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative gold underline beneath headings */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    margin: var(--space-xs) auto 0;
    border-radius: var(--radius-pill);
}

/* ── Grid System ──────────────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }
}

/* Flexbox helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}

.divider--glow {
    border-top-color: var(--color-primary-dark);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg);
    background-image: url('../images/hero/hero-main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.5) 0%,
        rgba(10,10,10,0.7) 50%,
        rgba(10,10,10,0.95) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) var(--space-md);
}

.hero__logo {
    width: 180px;
    margin: 0 auto var(--space-md);
    filter: drop-shadow(var(--glow-red));
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero__title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 4.25rem);
    color: var(--color-white);
    letter-spacing: 0.06em;
    line-height: 1.05;
    text-shadow: var(--glow-red);
    margin-bottom: var(--space-xs);
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero__tagline {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 550px;
    margin: 0 auto var(--space-md);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* nav offset */
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--color-surface);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0.9));
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) var(--space-md);
}

.page-hero__content h1 {
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
    margin-bottom: var(--space-xs);
}

.page-hero__content p {
    color: var(--color-muted);
    font-size: 1.1rem;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: var(--space-xs);
}

.breadcrumb a {
    color: var(--color-muted);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb span::before {
    content: ' / ';
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(255,34,0,0.5)); }
    50%       { filter: drop-shadow(0 0 28px rgba(255,34,0,0.9)) drop-shadow(0 0 60px rgba(255,34,0,0.3)); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.7s ease forwards;
}

/* ── Scroll reveal (JS adds .revealed) ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utility Spacing ──────────────────────────────────────── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ── Responsive Helpers ───────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero__logo {
        width: 130px;
    }

    .container {
        padding: 0 var(--space-sm);
    }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
