/* ========================
   CSS Custom Properties
   ======================== */
:root {
    --deep-forest: #1A2421;
    --charcoal: #2B2B2B;
    --gold: #C9A961;
    --cream: #F4EFE6;
    --soft-white: #FAFAF8;
    --input-fill: rgba(244, 239, 230, 0.08);
}

/* ========================
   Base Reset
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', serif;
    color: var(--cream);
    background: var(--deep-forest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================
   Layout - Mobile First
   ======================== */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================
   Content Panel
   ======================== */
.content-panel {
    background: var(--deep-forest);
    padding: 56px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 40vh;
    position: relative;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    order: 2; /* Display after image on mobile */
}

.brand-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 64px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.tagline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 64px;
}

.tagline-intro {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--cream);
    opacity: 0;
    animation: slideUpSubtle 0.8s ease-out 0.4s forwards;
}

.tagline-hero {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cream);
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.email-form {
    max-width: 360px;
}

.email-input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    background: var(--input-fill);
    font-family: 'Karla', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream);
    outline: none;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.8s forwards;
}

.email-input::placeholder {
    color: var(--cream);
    opacity: 0.4;
}

.email-input:hover {
    border-color: rgba(201, 169, 97, 0.5);
}

.email-input:focus {
    border-color: var(--gold);
    background: rgba(244, 239, 230, 0.12);
}

/* ========================
   Image Panel
   ======================== */
.image-panel {
    position: relative;
    height: 60vh; /* Landscape crop on mobile - per spec */
    overflow: hidden;
    order: 1; /* Display first on mobile */
}

.image-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(26, 36, 33, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

/* ========================
   Animations
   ======================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpSubtle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================
   Reduced Motion Support
   ======================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================
   Tablet & Desktop (768px+)
   ======================== */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
        height: 100vh;
    }

    .content-panel {
        width: 40%;
        min-height: 100vh;
        padding: 80px 64px;
        border-bottom: none;
        border-right: 1px solid rgba(201, 169, 97, 0.2);
        justify-content: flex-start;
        order: 1; /* Reset to normal order on desktop (left side) */
    }

    .brand-name {
        font-size: 22px;
        margin-bottom: 0;
    }

    .tagline {
        margin-top: auto;
        margin-bottom: auto;
    }

    .tagline-intro {
        font-size: 28px;
    }

    .tagline-hero {
        font-size: 54px;
    }

    .email-form {
        margin-top: auto;
        padding-bottom: 100px;
    }

    .email-input {
        font-size: 13px;
    }

    .image-panel {
        width: 60%;
        height: 100vh;
        order: 2; /* Reset to normal order on desktop (right side) */
    }
}

/* ========================
   Large Desktop (1200px+)
   ======================== */
@media (min-width: 1200px) {
    .content-panel {
        padding: 100px 80px;
    }

    .brand-name {
        font-size: 22px;
    }

    .tagline-intro {
        font-size: 28px;
    }

    .tagline-hero {
        font-size: 54px;
    }

    .email-form {
        padding-bottom: 40px;
    }
}
