/* G.I.R.L. One-Pager Layout v2
 * =====================================
 * Clean split-screen design matching reference
 */

/* Import design tokens */
@import url('design-tokens.css');

/* ==========================================
 * HIDE GLOBAL LAYOUT ELEMENTS
 * ========================================== */
body:has(.one-pager) .corner-logo,
body:has(.one-pager) .site-footer {
    display: none !important;
}

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

/* Ensure consistent scrollbar space across all pages */
html {
    scrollbar-gutter: stable;
}

/* ==========================================
 * TEXT SELECTION COLORS
 * ========================================== */
/* Default for one-pager: red (header, hero, GIRL form, footer) */
.one-pager::selection,
.one-pager *::selection {
    background: #EF3340 !important;
    color: #fff !important;
}
.one-pager::-moz-selection,
.one-pager *::-moz-selection {
    background: #EF3340 !important;
    color: #fff !important;
}

/* Partner form section - black background (override) */
.form-section--partners::selection,
.form-section--partners *::selection {
    background: #1a1a1a !important;
    color: #fff !important;
}
.form-section--partners::-moz-selection,
.form-section--partners *::-moz-selection {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* ==========================================
 * TYPOGRAPHY - Serif for Headlines
 * ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

.serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* ==========================================
 * ONE-PAGER CONTAINER
 * ========================================== */
/* Ensure html/body fill viewport when one-pager is present */
html:has(.one-pager),
body:has(.one-pager) {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.one-pager {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #F7F5F2;
    font-family: var(--font-primary);
    color: var(--color-black);
}

/* On very large desktops (1000px+ height), fit to viewport */
@media (min-height: 1000px) and (min-width: 1200px) {
    .one-pager {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
}

/* ==========================================
 * HEADER BAR
 * ========================================== */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 2.5rem;
    background: #FAFAF9;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.header-left {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(0,0,0,0.5);
    font-weight: 500;
    transition: color 0.2s;
    cursor: default;
}

.header-left:hover {
    color: #EF3340;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header logo - centered and proportional */
.header-logo {
    height: 18px;
    width: auto;
    display: block;
}

.header-right {
    color: rgba(0,0,0,0.4);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right:hover {
    color: #EF3340;
}

/* ==========================================
 * HERO SECTION
 * ========================================== */
.hero-section {
    text-align: center;
    padding: clamp(1.75rem, 5.5vh, 5.5rem) 2rem clamp(1.25rem, 3vh, 3rem);
    background: #F7F5F2;
    flex-shrink: 1;
}

/* Logo - black on transparent */
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.hero-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-logo-container img {
    height: clamp(50px, 10vh, 95px);
    width: auto;
    aspect-ratio: 2.07 / 1;
    transition: opacity 0.15s ease;
}

/* Hero headline - Large italic serif */
.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--color-black);
}

.hero-subline {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: rgba(0,0,0,0.55);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
    padding-bottom: 0.5rem;
}

.hero-tagline {
    white-space: nowrap;
}

/* ==========================================
 * IMAGE TRIO - Full Bleed with Dividers
 * ========================================== */
.image-trio {
    display: flex;
    width: 100%;
    height: clamp(100px, 20vh, 220px);
    overflow: hidden;
    flex-shrink: 1;
    /* Outer borders on left and right */
    border-left: 3px solid rgba(0,0,0,0.06);
    border-right: 3px solid rgba(0,0,0,0.06);
}

.trio-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Reserve space to prevent CLS */
    aspect-ratio: 3 / 2;
    /* Vertical divider between images */
    border-right: 3px solid rgba(0,0,0,0.06);
}

.trio-image:last-child {
    border-right: none;
}

.trio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No labels on images in clean design */
.trio-label {
    display: none;
}

/* ==========================================
 * DUAL FORMS - SPLIT SCREEN DESIGN
 * ========================================== */
.dual-forms {
    display: flex;
    flex: 1;
    min-height: 280px;
}

/* Left side - White/Light Gray */
.form-section--girls {
    flex: 1;
    background: #FFFFFF;
    padding: clamp(2rem, 4vh, 3.5rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Vertical divider on right edge - same as image dividers */
    border-right: 3px solid rgba(0,0,0,0.06);
}

/* Right side - Cream */
.form-section--partners {
    flex: 1;
    background: #F5F1EB;
    padding: clamp(2rem, 4vh, 3.5rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Form content wrapper - centered with max-width, content left-aligned */
.form-content {
    width: 100%;
    max-width: 480px;
}

/* Badge/Pill style headers */
.form-badge {
    display: inline-block;
    background: #EF3340;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    align-self: flex-start;
    border-radius: 2px;
}

/* Partner badge - outlined box style (same size as filled badge) */
.form-badge--outlined {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: calc(0.5rem - 1px) calc(1rem - 1px); /* Subtract border width to match filled badge */
}

/* Large italic serif taglines - one line, sets button width */
.form-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.form-tagline--pink {
    color: #EF3340;
}

.form-tagline--black {
    color: #1a1a1a;
}

/* Description text - two lines on desktop */
.form-desc {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.55;
    color: rgba(0,0,0,0.6);
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

/* ==========================================
 * FORM INPUTS - Underline Style
 * ========================================== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Underline input style */
.input-underline {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-black);
    outline: none;
    transition: border-color 0.2s;
}

.input-underline:focus {
    border-bottom-color: var(--color-black);
}

.input-underline::placeholder {
    color: rgba(0,0,0,0.4);
}

/* Input row for side-by-side */
.input-row {
    display: flex;
    gap: 1.5rem;
}

.input-row .input-underline {
    flex: 1;
}

/* Consent checkbox - minimal with accessible touch targets */
.consent-mini {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.5);
    cursor: pointer;
    line-height: 1.4;
}

/* Checkbox wrapper for larger touch target */
.consent-mini label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    /* Larger touch target on mobile */
    padding: 0.5rem 0;
    margin: -0.5rem 0;
}

/* Girl checkbox - red */
.form-section--girls .consent-mini input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
    accent-color: #EF3340;
    flex-shrink: 0;
}

/* Partner checkbox - black */
.form-section--partners .consent-mini input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0;
    cursor: pointer;
    accent-color: #1a1a1a;
    flex-shrink: 0;
}

.consent-mini a {
    color: rgba(0,0,0,0.6);
    text-decoration: underline;
    /* Larger touch target for links */
    padding: 0.25rem 0;
    margin: -0.25rem 0;
}

.consent-mini a:hover {
    color: var(--color-black);
}

/* Form error */
.form-error {
    font-size: 0.8rem;
    color: #EF3340;
    margin: -0.5rem 0 0;
}

/* ==========================================
 * BUTTONS
 * ========================================== */

/* Girls button - Red outline, fills on hover, matches title width */
.btn-girls {
    width: fit-content;
    min-width: 340px;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #EF3340;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background: transparent;
    color: #EF3340;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.btn-girls:hover,
.btn-girls:active {
    background: #EF3340;
    color: #fff;
}

.btn-girls:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Partners button - Black outline only, longer than girls button */
.btn-partners {
    width: fit-content;
    min-width: 380px;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    background: transparent;
    color: #1a1a1a;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.btn-partners:hover,
.btn-partners:active {
    background: #1a1a1a;
    color: #fff;
}

.btn-partners:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-arrow {
    font-size: 1em;
}

/* ==========================================
 * FOOTER - Minimal (all content on left)
 * ========================================== */
.one-pager-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 0.625rem 2.5rem;
    background: #F5F1EB;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: auto; /* Always push footer to bottom of flex container */
}

.one-pager-footer .copyright {
    font-size: 0.7rem;
    line-height: 18px;
    color: rgba(0,0,0,0.35);
    transition: color 0.2s;
    cursor: default;
}

.one-pager-footer .copyright:hover {
    color: #EF3340;
}

.one-pager-footer .footer-links {
    display: flex;
    gap: 2rem;
}

.one-pager-footer .footer-links a {
    font-size: 0.7rem;
    line-height: 18px;
    color: rgba(0,0,0,0.45);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.one-pager-footer .footer-links a:hover {
    color: #EF3340;
}

/* ==========================================
 * DESKTOP LAYOUT LOCK (min-width: 769px)
 * Below 1200px height: lock element sizes and enable scroll
 * Above 1200px height: allow flex to fill viewport
 * ========================================== */
@media (min-width: 769px) and (max-height: 1199px) {
    .one-pager {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Lock all elements to fixed sizes - no flex shrink/grow */
    .hero-section {
        flex-shrink: 0;
        padding: 3.5rem 2rem 2rem;
    }

    .hero-logo-container img {
        height: 80px;
    }

    .image-trio {
        flex-shrink: 0;
        height: 180px;
    }

    .dual-forms {
        flex: 1 0 auto; /* Grow to fill space, don't shrink, auto base size */
        min-height: 340px;
    }

    .form-section--girls,
    .form-section--partners {
        padding: 2.5rem 4rem;
    }
}

/* ==========================================
 * TABLET (768px - 1024px)
 * ========================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-bar {
        padding: 0.625rem 1.5rem;
    }

    .hero-section {
        padding: 3.5rem 1.5rem 2rem;
    }

    .hero-logo-container img {
        height: 70px;
    }

    .image-trio {
        height: 180px;
    }

    .form-section--girls,
    .form-section--partners {
        padding: 2rem 3rem;
    }
}

/* ==========================================
 * MOBILE (< 768px)
 * ========================================== */
@media (max-width: 768px) {
    .one-pager {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .dual-forms {
        min-height: auto;
    }

    .header-bar {
        padding: 1rem 1.25rem;
    }

    .header-center {
        display: none;
    }

    .hero-section {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .hero-logo {
        margin-bottom: 1.25rem;
    }

    .hero-logo-container img {
        height: 60px;
    }

    .hero-headline {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-subline {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .image-trio {
        height: 120px;
    }

    /* Stack forms vertically on mobile */
    .dual-forms {
        flex-direction: column;
        min-height: auto;
    }

    .form-section--girls,
    .form-section--partners {
        padding: 2rem 1.5rem;
    }

    .form-badge {
        font-size: 0.6rem;
        padding: 0.5rem 0.9rem;
    }

    .form-tagline {
        font-size: 1.4rem;
        white-space: normal;
    }

    .form-desc {
        font-size: 0.9rem;
    }

    .btn-girls,
    .btn-partners {
        width: 100%;
        min-width: unset;
        justify-content: flex-start;
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
    }

    .one-pager-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.625rem 1.25rem;
    }

    .one-pager-footer .footer-links {
        gap: 1rem;
    }
}

/* ==========================================
 * SMALL MOBILE (< 400px)
 * ========================================== */
@media (max-width: 400px) {
    .hero-logo-container img {
        height: 50px;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .form-tagline {
        font-size: 1.25rem;
    }

    .image-trio {
        height: 90px;
    }

    .one-pager-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
