/* ═══════════════════════════════════════════════════════
   KLUB NAUTILUS PAKOŠTANE — STYLESHEET
   Color palette: deep ocean navy, electric blue
   Typography: Fraunces (serif display) + Inter Tight (sans body)
   ═══════════════════════════════════════════════════════ */

:root {
    /* Base palette */
    --c-ink: #080616;        /* near-black */
    --c-deep: #1A1953;        /* deep navy */
    --c-navy: #162E93;        /* core navy blue */
    --c-electric: #2F2FE4;    /* electric accent */

    /* Derived */
    --c-bg: #F6F4EE;          /* warm off-white paper */
    --c-bg-soft: #ECE8DC;     /* subtle warm tone */
    --c-surface: #FFFFFF;
    --c-line: rgba(8, 6, 22, 0.12);
    --c-line-soft: rgba(8, 6, 22, 0.06);
    --c-text: #14132A;
    --c-text-soft: rgba(20, 19, 42, 0.68);
    --c-text-muted: rgba(20, 19, 42, 0.5);

    /* Light text on dark sections */
    --c-on-dark: #F6F4EE;
    --c-on-dark-soft: rgba(246, 244, 238, 0.7);
    --c-on-dark-line: rgba(246, 244, 238, 0.15);

    /* Type */
    --font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section-y: clamp(5rem, 10vw, 8rem);

    /* Curves */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    /* Shadow */
    --sh-soft: 0 1px 2px rgba(8, 6, 22, 0.04), 0 8px 24px -8px rgba(8, 6, 22, 0.08);
    --sh-card: 0 1px 2px rgba(8, 6, 22, 0.06), 0 14px 40px -12px rgba(22, 46, 147, 0.18);
    --sh-deep: 0 30px 80px -30px rgba(47, 47, 228, 0.45);

    /* Easing */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── Reset & base ───────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 150px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

::selection {
    background: var(--c-electric);
    color: var(--c-on-dark);
}

/* Custom scrollbar */
html { scrollbar-color: var(--c-navy) var(--c-bg-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-soft); }
::-webkit-scrollbar-thumb { background: var(--c-deep); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-electric); }

/* ───────── Typography ───────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 300;
    color: var(--c-electric);
}

p { margin: 0; }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    color: var(--c-text);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

/* ───────── Layout helpers ───────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

.section-title {
    font-size: clamp(2.2rem, 5.6vw, 4rem);
    margin-top: 1rem;
    color: var(--c-ink);
}
.section-title.light { color: var(--c-on-dark); }
.section-title.light em { color: #87FAFF; opacity: 0.95; }

.section-intro {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    color: var(--c-text-soft);
    max-width: 600px;
    margin: 1.25rem auto 0;
    line-height: 1.6;
}
.section-intro.light { color: var(--c-on-dark-soft); }

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-navy);
}
.eyebrow-light { color: var(--c-on-dark); opacity: 0.85; }
.eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-electric);
    box-shadow: 0 0 0 4px rgba(47, 47, 228, 0.18);
    flex-shrink: 0;
}
.eyebrow-light .eyebrow-dot {
    background: #87FAFF;
    box-shadow: 0 0 0 4px rgba(135, 250, 255, 0.18);
}

/* ───────── Buttons ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.32s var(--ease);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--c-ink);
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(8, 6, 22, 0.2), 0 8px 22px -8px rgba(47, 47, 228, 0.4);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-electric), var(--c-deep));
    opacity: 0;
    transition: opacity 0.32s var(--ease);
}
.btn-primary > * { position: relative; z-index: 1; }
/* Make sure inline SVG and span both sit above the gradient overlay */
.btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #FFFFFF;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(8, 6, 22, 0.15), 0 18px 40px -10px rgba(47, 47, 228, 0.5);
}
.btn-primary:hover svg { transform: translateX(2px) rotate(-45deg); }
.btn-primary svg { transition: transform 0.32s var(--ease); }

.btn-ghost {
    background: transparent;
    color: var(--c-on-dark);
    border: 1px solid var(--c-on-dark-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(246, 244, 238, 0.1);
    border-color: rgba(246, 244, 238, 0.4);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.1rem 2rem;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all 0.4s var(--ease);
    padding: 1.5rem 0;
}

.site-header.is-scrolled {
    padding: 0.85rem 0;
    background: rgba(246, 244, 238, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--c-line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 11;
}
.logo {
    height: 110px;
    width: auto;
    transition: filter 0.4s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled .logo { height: 88px; }

/* Logo white at top of hero (no scroll) */
.site-header:not(.is-scrolled) .logo {
    filter: invert(1) brightness(2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav-links a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-on-dark);
    transition: color 0.3s var(--ease);
    position: relative;
    padding: 0.4rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.site-header.is-scrolled .nav-links a { color: var(--c-text); }

/* When scrolled the CTA still has its own colors */
.site-header.is-scrolled .btn-cta,
.site-header.is-scrolled .btn-cta:hover,
.site-header.is-scrolled .btn-cta:focus {
    background: var(--c-ink);
    color: #FFFFFF;
}

.btn-cta {
    padding: 0.95rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
}
.btn-cta,
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
    color: #FFFFFF;
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 11;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--c-on-dark);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}
.site-header.is-scrolled .nav-toggle span { background: var(--c-text); }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: min(100vh, 880px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 11rem 0 5rem;
    color: var(--c-on-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('../images/hero.jpg') center/cover no-repeat;
    transform: scale(1.04);
    animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(8, 6, 22, 0.2), transparent 60%),
        linear-gradient(180deg, rgba(8, 6, 22, 0.55) 0%, rgba(26, 25, 83, 0.6) 50%, rgba(8, 6, 22, 0.85) 100%),
        linear-gradient(120deg, rgba(22, 46, 147, 0.4) 0%, transparent 70%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.4vw, 5.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--c-on-dark);
    margin: 1.5rem 0 1.75rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero-title em {
    font-style: italic;
    color: #87FAFF;
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    color: rgba(246, 244, 238, 0.88);
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 4rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(246, 244, 238, 0.18);
    max-width: 620px;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.meta-item strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 900;
    color: #87FAFF;
    letter-spacing: -0.02em;
    line-height: 1;
}
.meta-item span {
    font-size: 0.82rem;
    color: var(--c-on-dark-soft);
    line-height: 1.3;
}
.meta-divider {
    width: 1px;
    height: 36px;
    background: rgba(246, 244, 238, 0.2);
}

.hero-depth {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.6;
}
.depth-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--c-on-dark));
    animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
.depth-text {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--c-on-dark);
    letter-spacing: 0.05em;
}

.scroll-down { display: none; }

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
.section-about {
    background: var(--c-bg);
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 8rem;
    right: -8rem;
    width: 24rem; height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 47, 228, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-about .container { position: relative; z-index: 1; }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.about-text p { margin-bottom: 1.1rem; color: var(--c-text-soft); }
.about-text p.lead { color: var(--c-text); font-weight: 400; }

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pillar {
    background: var(--c-surface);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    position: relative;
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar::before {
    content: '';
    position: absolute;
    left: 0; top: 1.5rem; bottom: 1.5rem;
    width: 2px;
    background: var(--c-electric);
    border-radius: 2px;
    transform: scaleY(0.4);
    transform-origin: top;
    transition: transform 0.4s var(--ease);
}
.pillar:hover {
    transform: translateX(4px);
    border-color: var(--c-line);
    box-shadow: var(--sh-soft);
}
.pillar:hover::before { transform: scaleY(1); }

.pillar-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--c-electric);
    letter-spacing: 0.05em;
}
.pillar h3 {
    font-size: 1.35rem;
    margin: 0.4rem 0 0.5rem;
    color: var(--c-ink);
}
.pillar p {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   ACTIVITIES — dark section
   ═══════════════════════════════════════════════════════ */
.section-activities {
    color: var(--c-on-dark);
    overflow: hidden;
}
.section-activities .section-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(47, 47, 228, 0.4), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(22, 46, 147, 0.5), transparent 50%),
        linear-gradient(180deg, var(--c-deep), var(--c-ink));
    z-index: 0;
}
.section-activities .container { position: relative; z-index: 1; }

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.activity-card {
    background: rgba(246, 244, 238, 0.04);
    border: 1px solid rgba(246, 244, 238, 0.08);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.45s var(--ease);
    isolation: isolate;
}
.activity-card-wide { grid-column: span 4; }

.activity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 47, 228, 0.18), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
}
.activity-card:hover {
    background: rgba(246, 244, 238, 0.07);
    border-color: rgba(135, 250, 255, 0.4);
    transform: translateY(-4px);
}
.activity-card:hover::before { opacity: 1; }

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.card-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #87FAFF;
    letter-spacing: -0.02em;
}
.card-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-on-dark-soft);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--c-on-dark-line);
    border-radius: 999px;
}
.activity-card h3 {
    font-size: 1.4rem;
    color: var(--c-on-dark);
    margin-bottom: 0.7rem;
    line-height: 1.15;
}
.activity-card p {
    font-size: 0.93rem;
    color: var(--c-on-dark-soft);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.card-line {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(135, 250, 255, 0.6), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.activity-card:hover .card-line { transform: scaleX(1); }

/* ═══════════════════════════════════════════════════════
   MEMBERSHIP
   ═══════════════════════════════════════════════════════ */
.section-membership {
    background: var(--c-bg);
}

.membership-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.membership-text .eyebrow { margin-bottom: 0.5rem; }
.membership-text .section-title { margin-top: 0.6rem; margin-bottom: 1.5rem; }
.membership-text .lead { color: var(--c-text-soft); margin-bottom: 2rem; }

.benefits {
    margin-bottom: 2.5rem;
}
.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--c-line-soft);
    font-size: 0.98rem;
    color: var(--c-text);
}
.benefits li:last-child { border-bottom: 1px solid var(--c-line-soft); }
.benefits li::before {
    content: '';
    width: 18px; height: 1px;
    background: var(--c-electric);
    margin-top: 0.85rem;
    flex-shrink: 0;
    transition: width 0.3s var(--ease);
}
.benefits li:hover::before { width: 28px; }

/* Membership card — like a vintage diving permit */
.membership-card {
    background: linear-gradient(135deg, var(--c-deep), var(--c-ink));
    color: var(--c-on-dark);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-deep);
    transform: rotate(-1.5deg);
    transition: transform 0.5s var(--ease);
}
.membership-card:hover { transform: rotate(0deg) translateY(-4px); }

.mc-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--c-electric) 0%, #87FAFF 50%, var(--c-electric) 100%);
}
.mc-grain {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
}

.mc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}
.mc-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-on-dark-soft);
}
.mc-id {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: #87FAFF;
}

.mc-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
    color: var(--c-on-dark);
    margin-bottom: 0.4rem;
    position: relative;
    letter-spacing: -0.02em;
}
.mc-place {
    font-size: 0.95rem;
    color: var(--c-on-dark-soft);
    margin-bottom: 2rem;
}

.mc-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(246, 244, 238, 0.2);
    position: relative;
}
.mc-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.mc-rows dt {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-on-dark-soft);
}
.mc-rows dd {
    font-size: 0.92rem;
    color: var(--c-on-dark);
    text-align: right;
}

.mc-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    color: rgba(135, 250, 255, 0.6);
    opacity: 0.5;
}
.mc-wave svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */
.section-gallery {
    background: var(--c-bg-soft);
    position: relative;
}
.section-gallery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--c-line);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-deep);
    cursor: zoom-in;
    grid-column: span 2;
    grid-row: span 1;
    min-height: 240px;
}
/* First item — tall on the left */
.gallery-item-tall {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
}
/* Last item — wide across the bottom */
.gallery-item-wide {
    grid-column: span 4;
    min-height: 280px;
}

.gi-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.gi-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
    filter: saturate(0.88);
}
.gallery-item:hover .gi-image-wrap img {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    color: var(--c-on-dark);
    background: linear-gradient(180deg, transparent, rgba(8, 6, 22, 0.85));
    z-index: 1;
}
.gi-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: #87FAFF;
    flex-shrink: 0;
}
.gi-text {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: right;
}

/* For tall items, ensure image fills */
.gallery-item-tall { min-height: 500px; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.section-contact {
    color: var(--c-on-dark);
    overflow: hidden;
}
.section-contact .section-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(47, 47, 228, 0.35), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(22, 46, 147, 0.4), transparent 50%),
        linear-gradient(180deg, var(--c-ink), var(--c-deep));
    z-index: 0;
}
.section-contact .container { position: relative; z-index: 1; }

.contact-card {
    margin-top: 3rem;
    background: linear-gradient(155deg, rgba(246, 244, 238, 0.06), rgba(246, 244, 238, 0.02));
    border: 1px solid rgba(246, 244, 238, 0.1);
    border-radius: var(--r-xl);
    padding: clamp(1.75rem, 4vw, 3rem);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.contact-card-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(135, 250, 255, 0.18), transparent 60%);
    pointer-events: none;
    filter: blur(40px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    transition: transform 0.3s var(--ease);
    border-bottom: 1px solid rgba(246, 244, 238, 0.08);
}
.contact-item:nth-last-child(-n+2) { border-bottom: 0; }

a.contact-item:hover {
    transform: translateX(3px);
}
a.contact-item:hover .contact-icon {
    background: var(--c-electric);
    border-color: var(--c-electric);
    color: var(--c-on-dark);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(246, 244, 238, 0.2);
    color: #87FAFF;
    transition: all 0.3s var(--ease);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.contact-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-on-dark-soft);
}
.contact-value {
    font-size: 1rem;
    color: var(--c-on-dark);
    font-weight: 400;
    word-break: break-word;
}

.contact-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 244, 238, 0.15), transparent);
    margin: 2rem 0 1.75rem;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.social-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-on-dark-soft);
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(246, 244, 238, 0.2);
    font-size: 0.85rem;
    color: var(--c-on-dark);
    transition: all 0.3s var(--ease);
}
.social-links a:not(.social-disabled):hover {
    background: var(--c-electric);
    border-color: var(--c-electric);
    transform: translateY(-2px);
}
.social-disabled { opacity: 0.4; cursor: default; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
    background: var(--c-ink);
    color: var(--c-on-dark);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1.25rem;
}
.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--c-on-dark-soft);
    max-width: 320px;
    font-weight: 300;
}

.site-footer h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #87FAFF;
    margin-bottom: 1.25rem;
}

.site-footer ul li {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    color: var(--c-on-dark-soft);
}
.site-footer ul li a {
    transition: color 0.3s var(--ease);
}
.site-footer ul li a:hover { color: #87FAFF; }
.footer-disabled { opacity: 0.5; }

.footer-bottom {
    border-top: 1px solid var(--c-on-dark-line);
    padding: 1.5rem 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--c-on-dark-soft);
}
.footer-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    color: #87FAFF;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.activity-card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.activities-grid > .activity-card:nth-child(1) { --i: 0; }
.activities-grid > .activity-card:nth-child(2) { --i: 1; }
.activities-grid > .activity-card:nth-child(3) { --i: 2; }
.activities-grid > .activity-card:nth-child(4) { --i: 3; }
.activities-grid > .activity-card:nth-child(5) { --i: 4; }

.gallery-item.reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.gallery-grid > .gallery-item:nth-child(1) { --i: 0; }
.gallery-grid > .gallery-item:nth-child(2) { --i: 1; }
.gallery-grid > .gallery-item:nth-child(3) { --i: 2; }
.gallery-grid > .gallery-item:nth-child(4) { --i: 3; }
.gallery-grid > .gallery-item:nth-child(5) { --i: 4; }
.gallery-grid > .gallery-item:nth-child(6) { --i: 5; }
.gallery-grid > .gallery-item:nth-child(7) { --i: 6; }
.gallery-grid > .gallery-item:nth-child(8) { --i: 7; }
.gallery-grid > .gallery-item:nth-child(9) { --i: 8; }

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(8, 6, 22, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.lightbox.is-open {
    display: flex;
    opacity: 1;
}
body.lightbox-open { overflow: hidden; }

.lb-stage {
    position: relative;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.lb-image-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
}

.lb-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.25s var(--ease);
}
.lb-image.is-loading { opacity: 0.4; }

.lb-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--c-on-dark);
    padding: 0 0.5rem;
    gap: 1rem;
    flex-shrink: 0;
}
.lb-caption {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    min-width: 0;
}
.lb-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    color: #87FAFF;
    font-size: 1rem;
    flex-shrink: 0;
}
.lb-text {
    font-size: 1rem;
    color: var(--c-on-dark);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-counter {
    font-size: 0.85rem;
    color: var(--c-on-dark-soft);
    letter-spacing: 0.06em;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Lightbox buttons */
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(246, 244, 238, 0.08);
    border: 1px solid rgba(246, 244, 238, 0.2);
    color: var(--c-on-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    z-index: 2;
}
.lb-btn:hover {
    background: var(--c-electric);
    border-color: var(--c-electric);
    transform: translateY(-50%) scale(1.05);
}
.lb-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(246, 244, 238, 0.08);
    border: 1px solid rgba(246, 244, 238, 0.2);
    color: var(--c-on-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    z-index: 3;
}
.lb-close:hover {
    background: var(--c-electric);
    border-color: var(--c-electric);
    transform: rotate(90deg);
}

/* Mobile lightbox tweaks */
@media (max-width: 720px) {
    .lightbox { padding: 1rem; }
    .lb-btn { width: 44px; height: 44px; }
    .lb-prev { left: 0.5rem; }
    .lb-next { right: 0.5rem; }
    .lb-close { top: 0.75rem; right: 0.75rem; }
    .lb-text { font-size: 0.9rem; }
    .lb-meta { padding: 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .activity-card-wide { grid-column: span 2; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }

    .membership-inner { grid-template-columns: 1fr; gap: 3rem; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item, .gallery-item-tall, .gallery-item-wide {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }
    .gallery-item-tall { min-height: 380px; }
    .gallery-item-wide { grid-column: span 2; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════ */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(360px, 100vw);
        height: 100vh;
        background: var(--c-ink);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    }
    .main-nav.is-open { transform: translateX(0); }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }
    .nav-links a {
        color: var(--c-on-dark);
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .site-header.is-scrolled .nav-links a { color: var(--c-on-dark); }

    .main-nav .btn-cta {
        margin-top: 1rem;
        width: 100%;
    }

    .hero {
        padding: 9rem 0 4rem;
        min-height: auto;
    }
    .logo { height: 72px; }
    .site-header.is-scrolled .logo { height: 60px; }
    .hero-meta {
        gap: 1rem;
        padding-top: 1.5rem;
    }
    .meta-divider { display: none; }

    .hero-depth { display: none; }

    .activities-grid { grid-template-columns: 1fr; }
    .activity-card-wide { grid-column: span 1; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .gallery-item, .gallery-item-tall, .gallery-item-wide {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 240px;
    }
    .gallery-item-tall { min-height: 320px; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .contact-item:nth-last-child(2) { border-bottom: 1px solid rgba(246, 244, 238, 0.08); }

    .contact-social {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .membership-card { padding: 2rem 1.5rem; }

    .pillar { padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-meta { gap: 1.5rem; }
    .meta-item strong { font-size: 1.8rem; }
}

/* ───────── Reduce motion ───────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-image { animation: none; transform: none; }
}
