/* ==========================================
   NOHEMI FONT LOADING
   ========================================== */

/* Fallback system: try CDN, use system stack if unavailable */
@import url('https://fonts.cdnfonts.com/css/nohemi');
@import url('https://fonts.cdnfonts.com/css/rockville-solid');

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    --bg-dark: #1D1D1B;
    --green-deep: #000000;
    --green-medium: #111111;
    --green-sage: #666666;
    --pink-dusty: #EA9AB2;
    --pink-light: #FFDBE5;
    --cream-warm: #EAE4DA;
    --white: #FFFFFF;

    --font-black: 'Nohemi', 'Arial Black', sans-serif;
    --font-bold: 'Nohemi', 'Arial', sans-serif;
    --font-light: 'Nohemi', 'Arial', sans-serif;
    --font-regular: 'Nohemi', 'Arial', sans-serif;

    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition: 0.4s var(--ease-smooth);
}

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

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

body {
    font-family: var(--font-regular);
    font-weight: 300;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
}

/* ==========================================
   TYPOGRAPHY HELPERS
   ========================================== */
h1,
h2 {
    font-family: var(--font-black);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-bold);
    font-weight: 700;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 60px;
}

/* ==========================================
   LABEL
   ========================================== */
.label {
    display: block;
    font-family: var(--font-light);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 40px;
    color: var(--green-sage);
}

.label.pink {
    color: var(--pink-dusty);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--pink-dusty);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 18px 44px;
    font-family: var(--font-bold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--pink-light);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--white);
    color: var(--green-medium);
    text-decoration: none;
    padding: 18px 44px;
    font-family: var(--font-bold);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--transition);
    width: fit-content;
}

.btn-secondary:hover {
    background-color: var(--pink-dusty);
    color: var(--bg-dark);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

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

/* Staggered delay for sibling reveals */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
    transition: all 0.5s var(--ease-smooth);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 0;
}

.nav-container {
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    max-width: min(28vw, 180px);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 34px;
    object-fit: contain;
}

.nav-btn {
    color: var(--white);
    padding: 10px 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-family: var(--font-regular);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-btn:hover {
    background-color: var(--pink-dusty);
    border-color: var(--pink-dusty);
    color: var(--bg-dark);
}

/* ==========================================
   HERO
   ========================================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    background-color: var(--green-deep);
    /* fallback / colour bleed */
    overflow: hidden;
}

/* Full-bleed background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Deep black on the left where text lives, fades to transparent right */
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.72) 40%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0.15) 100%),
        /* Bottom gradient so text always readable */
        linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 40%);
}

/* Text layer floats above */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.0;
}

.hero-subtitle {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    color: var(--pink-light);
    margin-bottom: 48px;
    max-width: 580px;
    line-height: 1.55;
}

.hero-location {
    position: absolute;
    bottom: 44px;
    right: 60px;
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 0.72rem;
    color: var(--green-sage);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    z-index: 2;
}

/* ==========================================
   WHAT WE ARE
   ========================================== */
#what-we-are {
    background-color: var(--pink-dusty);
    color: var(--bg-dark);
    padding: 140px 0;
    text-align: center;
}

#what-we-are .container {
    padding-top: 0;
    padding-bottom: 0;
}

#what-we-are .label {
    color: rgba(29, 29, 27, 0.6);
    margin-bottom: 32px;
}

#what-we-are h2 {
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    color: var(--bg-dark);
    margin-bottom: 56px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    max-width: 1100px;
    margin-inline: auto;
}

.italic-highlight-dark {
    font-family: var(--font-light);
    font-style: italic;
    font-weight: 300;
    color: var(--bg-dark);
}

#what-we-are p {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    color: var(--bg-dark);
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================
   FOR WHOM / STAGES
   ========================================== */
#for-whom {
    background-color: var(--bg-dark);
    padding: 0;
}

#for-whom .container {
    padding-bottom: 120px;
}

.section-description {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: clamp(1.3rem, 2.2vw, 2.1rem);
    line-height: 1.6;
    max-width: 900px;
    opacity: 0.9;
    margin-top: 20px;
    color: var(--white);
}

.section-title-big {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 40px;
}

/* ==========================================
   HANDWRITTEN STAGES
   ========================================== */
.handwritten-header {
    margin-bottom: 60px;
    padding: 80px 60px 0;
    max-width: 1400px;
    margin-inline: auto;
}

.hw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-bottom: 40px;
}

.hw-item {
    position: relative;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 60px;
    border-radius: 12px;
    background-color: var(--bg-dark);
}

.hw-item:nth-child(even) {
    margin-top: 0;
    /* staggered look */
}

/* Content */
.hw-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hw-decade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-black);
    font-size: clamp(8rem, 15vw, 13rem);
    color: rgba(234, 154, 178, 0.08);
    /* slight fill */
    -webkit-text-stroke: 1.5px rgba(234, 154, 178, 0.5);
    /* thicker lighter stroke */
    opacity: 0.6;
    /* increase visibility */
    z-index: 2;
    /* Still below main text */
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.hw-text {
    font-family: 'Rockville Solid', 'Caveat', cursive;
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    color: var(--white);
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: rotate(-1.5deg);
    max-width: 90%;
    position: relative;
    z-index: 3;
}

.hw-item:nth-child(even) .hw-text {
    transform: rotate(1deg);
}

.hw-highlight {
    color: var(--pink-dusty);
    font-size: 1.15em;
    display: inline-block;
}

.hw-highlight.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* ==========================================
   WHAT YOU FIND
   ========================================== */
#what-you-find {
    background-color: var(--cream-warm);
    color: var(--bg-dark);
}

.hw-headline {
    display: block;
    font-family: 'Seaweed Script', cursive;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: var(--pink-dusty);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: none;
}

#what-you-find>.container>h2 {
    font-family: var(--font-black);
    font-weight: 900;
    font-size: clamp(3rem, 6.5vw, 6rem);
    color: var(--green-deep);
    margin-bottom: 80px;
    line-height: 0.88;
}

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

.card {
    background: var(--white);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(9, 55, 31, 0.12);
}

.card-bg-num {
    position: absolute;
    bottom: -15px;
    right: 0px;
    font-family: var(--font-black);
    font-weight: 900;
    font-size: 7.5rem;
    color: var(--pink-light);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

.card-label {
    display: block;
    font-family: var(--font-bold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--green-deep);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card h3 {
    font-family: var(--font-black);
    font-weight: 900;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--bg-dark);
}

.card p {
    font-family: var(--font-regular);
    font-weight: 400;
    font-size: 1.05rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    color: var(--bg-dark);
}

/* ==========================================
   OUTSIDE CLUB
   ========================================== */
#outside-club {
    background-color: var(--green-medium);
    display: flex;
    min-height: 90vh;
}

.outside-image {
    flex: 0 0 50%;
    overflow: hidden;
}

.outside-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.outside-content {
    flex: 0 0 50%;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#outside-club .label {
    color: rgba(255, 219, 229, 0.6);
}

#outside-club h2 {
    font-size: clamp(3.5rem, 6vw, 7rem);
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
}

.italic-highlight {
    font-family: var(--font-light);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: var(--pink-light);
    margin-bottom: 32px;
    line-height: 1.4;
}

.description {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 56px;
    max-width: 560px;
    line-height: 1.7;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--green-sage);
    margin-bottom: 56px;
}

.attr {
    padding: 22px 0;
    border-bottom: 1px solid var(--green-sage);
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.attr:nth-child(even) {
    padding-left: 36px;
    border-left: 1px solid var(--green-sage);
}

/* ==========================================
   CTA FINAL
   ========================================== */
#cta-final {
    background-color: var(--green-deep);
    padding: 40px 0;
}

#cta-final h2 {
    font-size: clamp(3rem, 7vw, 7.5rem);
    margin-bottom: 32px;
    line-height: 1.05;
}

#cta-final .subtitle {
    font-family: var(--font-light);
    font-weight: 300;
    color: var(--pink-light);
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    margin-bottom: 60px;
    line-height: 1.5;
}

#membership-form {
    max-width: 760px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

#membership-form input,
#membership-form select {
    flex: 1;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px 0;
    color: var(--white);
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--transition);
}

#membership-form select option {
    background-color: var(--bg-dark);
    color: var(--white);
}

#membership-form .form-row {
    position: relative;
}

#membership-form .form-row:has(select)::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

#membership-form input:focus {
    border-bottom-color: var(--pink-dusty);
}

#membership-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.btn-primary.full-width {
    width: 100%;
    margin-top: 44px;
    padding: 22px;
    font-size: 1rem;
    text-align: center;
}

.privacy-note {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 20px;
    line-height: 1.6;
}

/* Success Message */
#success-message {
    max-width: 760px;
}

.success-inner {
    border: 1px solid rgba(234, 154, 178, 0.4);
    padding: 64px 48px;
    text-align: center;
}

.success-emoji {
    font-size: 2rem;
    color: var(--pink-dusty);
    margin-bottom: 24px;
}

#success-message h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--pink-dusty);
    margin-bottom: 16px;
    font-family: var(--font-black);
    font-weight: 900;
    text-transform: uppercase;
}

#success-message>.success-inner>p {
    font-family: var(--font-light);
    font-size: 1.2rem;
    opacity: 0.7;
}

.hidden {
    display: none;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: var(--bg-dark);
    padding: 80px 60px 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-logo {
    font-family: var(--font-black);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.footer-location {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 60px;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition);
}

.social-links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.social-links span {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-copy {
    font-family: var(--font-light);
    font-weight: 300;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1280px) {
    .container {
        padding: 100px 48px;
    }

    .nav-container {
        padding: 0 48px;
    }
}

@media (max-width: 1024px) {

    /* Hero */
    .hero-content {
        padding: 0 40px 80px;
        max-width: 100%;
    }

    .hero-location {
        right: 40px;
        bottom: 32px;
    }

    /* Handwritten Stages */
    .handwritten-header {
        padding: 40px 40px 0;
    }

    .hw-grid {
        grid-template-columns: 1fr;
    }

    .hw-item {
        height: auto;
        min-height: 280px;
        padding: 40px;
    }

    .hw-item:nth-child(even) {
        margin-top: 0;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* What we are */
    #what-we-are {
        padding: 80px 0;
    }

    /* Outside Club */

    #outside-club {
        flex-direction: column-reverse;
        /* Content on top, image below on mobile */
    }

    .outside-image {
        flex: none;
        height: 100vw;
        /* Increased height to show more of the photo */
        min-height: 450px;
    }

    .outside-content {
        flex: none;
        padding: 72px 48px;
    }

    /* What we are */
    #what-we-are {
        padding: 100px 0;
    }

    /* Form */

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Nav */
    .nav-container {
        padding: 0 28px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 72px 24px;
    }

    .hero-content {
        padding: 120px 24px 48px;
    }

    .hero-location {
        left: 24px;
        bottom: 32px;
    }

    /* Handwritten Stages */
    .handwritten-header {
        padding: 40px 24px 0;
        margin-bottom: 40px;
    }

    .hw-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hw-item {
        height: auto;
        min-height: 140px;
        padding: 32px 16px;
        border-radius: 8px;
    }

    .hw-decade {
        font-size: clamp(6rem, 18vw, 8rem);
    }

    .outside-content {
        padding: 60px 24px;
    }

    .footer-inner {
        padding: 0 24px;
    }

    footer {
        padding: 60px 24px 48px;
    }

    .social-links {
        flex-wrap: nowrap;
        gap: 20px;
        margin-bottom: 40px;
    }

    .social-links span {
        display: none;
    }

    .social-links svg {
        width: 18px;
        height: 18px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .logo {
        max-width: min(42vw, 150px);
    }

    .logo img {
        max-height: 28px;
    }

}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 540px;
    padding: 60px 48px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(30px);
    transition: transform 0.6s var(--ease-smooth);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.close-modal-btn:hover {
    opacity: 1;
}

.modal-header {
    margin-bottom: 40px;
    text-align: center;
}

.modal-header h3 {
    font-family: var(--font-black);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--pink-dusty);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-header p {
    font-family: var(--font-light);
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.5;
}

#registration-modal #success-message {
    margin-inline: auto;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 48px 24px;
    }
}
