/*
Theme Name: North La Jolla
Theme URI: https://northlajolla.com
Author: North La Jolla
Author URI: https://northlajolla.com
Description: California Coastal Luxury. Elevated basics for elevated living. A premium theme for the North La Jolla apparel brand.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: north-la-jolla
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

North La Jolla - Where the coast meets reality.
92081 • 92083 • 92084
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Colors - extracted from logo */
    --color-navy: #1e3249;
    --color-navy-dark: #152435;
    --color-cream: #f5f0e6;
    --color-cream-light: #faf8f3;
    --color-coral: #e07356;
    --color-coral-dark: #c85d42;

    /* Neutrals */
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-gray-100: #f7f7f7;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - fluid typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);
    --text-hero: clamp(3.5rem, 2rem + 7.5vw, 9rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-base: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-cream-light);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-hero {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.text-tagline {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background-color: var(--color-navy);
    color: var(--color-cream);
    border-color: var(--color-navy);
}

.btn--primary:hover {
    background-color: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-cream);
    border-color: var(--color-cream);
}

.btn--secondary:hover {
    background-color: var(--color-cream);
    color: var(--color-navy);
}

.btn--coral {
    background-color: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn--coral:hover {
    background-color: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
}

/* ==========================================================================
   Video Hero Section
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 50, 73, 0.3) 0%,
        rgba(30, 50, 73, 0.5) 50%,
        rgba(30, 50, 73, 0.7) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-cream);
    padding: var(--space-6);
    max-width: 1000px;
}

.hero__logo {
    width: 120px;
    height: auto;
    margin: 0 auto var(--space-8);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero__title {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
}

.hero__tagline {
    margin-top: var(--space-6);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero__zip-codes {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    letter-spacing: 0.25em;
    color: var(--color-coral);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.hero__cta {
    margin-top: var(--space-10);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 1.5s, 2.5s;
}

.hero__scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--color-cream);
}

/* ==========================================================================
   Email Capture / Founding Members
   ========================================================================== */

.email-capture {
    background-color: var(--color-navy);
    color: var(--color-cream);
    padding: var(--space-24) var(--space-6);
    text-align: center;
}

.email-capture__title {
    color: var(--color-cream);
}

.email-capture__subtitle {
    margin-top: var(--space-4);
    color: var(--color-gray-400);
    max-width: 600px;
    margin-inline: auto;
}

.email-capture__form {
    margin-top: var(--space-8);
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin-inline: auto;
}

.email-capture__input {
    flex: 1;
    min-width: 250px;
    padding: var(--space-4) var(--space-5);
    background-color: transparent;
    border: 1px solid var(--color-gray-600);
    color: var(--color-cream);
    font-size: var(--text-base);
}

.email-capture__input::placeholder {
    color: var(--color-gray-500);
}

.email-capture__input:focus {
    outline: none;
    border-color: var(--color-coral);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.site-header--scrolled {
    background-color: rgba(30, 50, 73, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-4) var(--space-6);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin-inline: auto;
}

.site-header__logo {
    height: 50px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.site-header__nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cream);
    transition: color var(--transition-fast);
}

.site-header__nav-link:hover {
    color: var(--color-coral);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-navy-dark);
    color: var(--color-cream);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.site-footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-gray-700);
}

.site-footer__brand {
    max-width: 300px;
}

.site-footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-4);
}

.site-footer__tagline {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

.site-footer__nav-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.site-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.site-footer__nav-link {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.site-footer__nav-link:hover {
    color: var(--color-coral);
}

.site-footer__bottom {
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.site-footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.site-footer__zip-codes {
    font-size: var(--text-xs);
    color: var(--color-coral);
    letter-spacing: 0.15em;
}

.site-footer__disclaimer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-700);
}

.site-footer__disclaimer-text {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    line-height: 1.6;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .site-header__nav {
        display: none; /* Mobile menu handled by JS */
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
    }
}
