/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-red: #c62828;
    --color-red-dark: #a61f1f;
    --color-blue: #0d3b66;
    --color-blue-dark: #082845;
    --color-black: #111111;
    --color-text: #222222;
    --color-text-soft: #5c5c5c;
    --color-border: #e8e8e8;
    --color-border-soft: #f0f0f0;
    --color-bg-light: #f6f7f9;
    --color-bg-soft: #fbfbfc;
    --color-white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 16px 44px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
}

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

a {
    transition: var(--transition);
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--color-black);
    line-height: 1.1;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

ul,
ol {
    margin-top: 0;
}

.section-kicker,
.hero-kicker,
.quick-link-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-kicker,
.hero-kicker {
    color: var(--color-red);
    margin-bottom: 14px;
}

.quick-link-label {
    color: var(--color-blue);
    margin-bottom: 10px;
}

/* =========================
   BUTTONS
========================= */
.btn,
.btn-primary,
.btn-secondary,
.header-cta,
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 800;
    border: 0;
}

.btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.btn-primary {
    min-height: 48px;
    padding: 0 24px;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.22);
}

.btn-primary:hover {
    background: var(--color-red-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    min-height: 48px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border-radius: 999px;
}

.btn-secondary:hover {
    background: #f3f3f3;
    transform: translateY(-1px);
}

.btn-contact {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 14px;
}

.btn-contact:hover {
    background: var(--color-red-dark);
}

.text-link {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 800;
}

.text-link:hover {
    color: var(--color-red-dark);
}

/* =========================
   HEADER - DYNAMIC
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
}

.top-strip {
    height: 8px;
    background: linear-gradient(90deg, var(--color-red) 0%, var(--color-blue) 58%, var(--color-black) 100%);
}

.header-shell {
    position: relative;
    background: var(--color-white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 96px;
}

.logo-block {
    position: relative;
    z-index: 3;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img {
    max-height: 62px;
    width: auto;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
}

.nav li {
    position: relative;
}

.nav a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--color-red);
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--color-blue);
}

.nav a:hover::before,
.nav a.active::before {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-cta {
    min-height: 46px;
    padding: 0 20px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.header-cta:hover {
    background: var(--color-red);
    transform: translateY(-1px);
}

.header-accent {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 220px;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, var(--color-red) 35%, var(--color-blue) 100%);
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.nav-mobile-contact {
    display: none;
}

/* =========================
   MOBILE MENU TOGGLE
========================= */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--color-black);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* =========================
   GENERIC SECTIONS
========================= */
.section {
    padding: 80px 0;
}

.section.gray {
    background: #f5f5f5;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--color-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* =========================
   HOME PAGE
========================= */
.home-page {
    background: var(--color-white);
}

/* =========================
   HERO HOME
========================= */
.hero-home {
    position: relative;
    min-height: 760px;
    background: url('/assets/images/hero-home.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(6, 11, 20, 0.82) 0%,
            rgba(8, 20, 34, 0.62) 40%,
            rgba(7, 16, 28, 0.18) 100%
        );
}

.hero-home::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.hero-overlay {
    display: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 36px;
    align-items: end;
    padding: 110px 0 140px;
}

.hero-copy {
    max-width: 760px;
    color: var(--color-white);
}

.hero-copy h1 {
    font-size: 58px;
    line-height: 1.02;
    color: var(--color-white);
    margin-bottom: 18px;
    max-width: 760px;
}

.hero-copy p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-side-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(8px);
}

.event-badge {
    display: inline-block;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero-side-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero-side-card p {
    color: var(--color-text-soft);
    line-height: 1.75;
    margin-bottom: 18px;
}

/* =========================
   QUICK LINKS
========================= */
.quick-links-section {
    position: relative;
    z-index: 5;
    margin-top: -70px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quick-link-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--color-black);
    box-shadow: var(--shadow-medium);
    border-top: 5px solid var(--color-red);
}

.quick-link-card:hover {
    transform: translateY(-5px);
}

.quick-link-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: var(--color-text-soft);
    line-height: 1.75;
}

/* =========================
   MEMBERSHIP HIGHLIGHT
========================= */
.membership-highlight {
    padding: 90px 0;
}

.membership-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.membership-copy h2 {
    font-size: 44px;
    margin-bottom: 16px;
}

.membership-copy p {
    color: var(--color-text-soft);
    line-height: 1.85;
    margin-bottom: 22px;
}

.benefits-list {
    padding-left: 18px;
    margin: 0 0 30px;
}

.benefits-list li {
    margin-bottom: 10px;
    color: var(--color-text);
}

.membership-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* =========================
   FEATURE PANELS
========================= */
.feature-panels {
    padding: 0 0 90px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    transition: var(--transition);
}

.feature-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feature-body {
    padding: 24px;
}

.feature-body h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.feature-body p {
    color: var(--color-text-soft);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* =========================
   RESOURCES STRIP
========================= */
.resources-strip {
    background: var(--color-bg-light);
    padding: 84px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 400px;
    gap: 30px;
    align-items: start;
}

.resources-menu h2 {
    font-size: 38px;
    margin-bottom: 18px;
}

.resources-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resources-menu li {
    margin-bottom: 14px;
}

.resources-menu a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
}

.resources-menu a:hover {
    color: var(--color-red);
}

.resources-cta {
    background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.resources-cta h3 {
    color: var(--color-white);
    font-size: 30px;
    margin-bottom: 12px;
}

.resources-cta p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 18px;
}

/* =========================
   SIMPLE HERO (fallback)
========================= */
.hero {
    position: relative;
    background: url('/assets/images/hero.jpg') center/cover no-repeat;
    color: var(--color-white);
    padding: 120px 20px;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.82);
    padding: 60px 0 24px;
}

.site-footer a {
    color: var(--color-white);
    text-decoration: none;
}

.site-footer a:hover {
    color: #dddddd;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .header-row {
        grid-template-columns: 1fr auto;
        min-height: 84px;
        gap: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .nav-mobile-contact {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        justify-content: flex-start;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        padding: 12px 0 18px;
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 20px;
    }

    .nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-border-soft);
    }

    .nav li:last-child {
        border-bottom: 0;
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .nav a::before {
        display: none;
    }

    .header-accent {
        width: 140px;
    }

    .hero-grid,
    .quick-links-grid,
    .membership-grid,
    .feature-grid,
    .resources-grid,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-home {
        min-height: auto;
    }

    .hero-grid {
        padding: 88px 0 120px;
        align-items: start;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .quick-links-section {
        margin-top: 0;
        padding-top: 24px;
    }
}

@media (max-width: 767px) {
    .container {
        width: 92%;
    }

    .top-strip {
        height: 6px;
    }

    .logo-link img {
        max-height: 52px;
    }

    .header-row {
        min-height: 74px;
    }

    .hero,
    .hero-home {
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero-grid {
        padding: 70px 0 110px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-side-card,
    .quick-link-card,
    .resources-cta,
    .card {
        padding: 22px;
    }

    .membership-highlight,
    .feature-panels,
    .resources-strip,
    .section {
        padding: 60px 0;
    }

    .membership-copy h2,
    .resources-menu h2 {
        font-size: 30px;
    }

    .feature-body h3,
    .quick-link-card h3,
    .hero-side-card h3 {
        font-size: 22px;
    }

    .feature-image img {
        height: 220px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}