/* ============================================
   Elizabeth Farrell Music - Design System
   style.css - Global tokens, resets, utilities
   ============================================ */

/* Public pages load the locally hosted fonts in homepage.css and studio.css. */

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors */
    --color-black: #1d242d;
    --color-dark: #151a22;
    --color-darker: #0f1318;
    --color-gold: #afa170;
    --color-gold-light: #c4b68a;
    --color-gold-dark: #8e8159;
    --color-gold-muted: rgba(175, 161, 112, 0.15);
    --color-bg: #f9f9fb;
    --color-white: #ffffff;
    --color-text: #1d242d;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-on-dark: #d1d5db;
    --color-border: #e5e7eb;
    --color-border-gold: rgba(175, 161, 112, 0.3);
    --color-overlay: rgba(29, 36, 45, 0.75);
    --color-overlay-heavy: rgba(15, 19, 24, 0.85);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.5rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --header-height: 64px;

    /* Section Padding */
    --section-py: 120px;
    --section-py-tablet: 80px;
    --section-py-mobile: 60px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(175, 161, 112, 0.25);
    --shadow-gold-lg: 0 8px 40px rgba(175, 161, 112, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: var(--text-6xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

h4 {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-light);
}

a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

strong, b {
    font-weight: 600;
}

ul, ol {
    list-style: none;
}

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

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

/* ---- Eyebrow Label ---- */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.eyebrow::before,
.eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.eyebrow::after {
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.eyebrow--light {
    color: var(--color-gold-light);
}

.eyebrow--light::before {
    background: linear-gradient(90deg, transparent, var(--color-gold-light));
}

.eyebrow--light::after {
    background: linear-gradient(90deg, var(--color-gold-light), transparent);
}

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

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

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

/* ---- Sections ---- */
.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section--dark {
    background: linear-gradient(180deg, var(--color-black) 0%, #080b0f 100%);
    color: var(--color-white);
    background-image:
        linear-gradient(180deg, var(--color-black) 0%, #080b0f 100%),
        radial-gradient(ellipse at 20% 50%, rgba(175, 161, 112, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(175, 161, 112, 0.03) 0%, transparent 50%);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--color-white);
}

.section--dark p {
    color: var(--color-text-on-dark);
}

.section--darker {
    background-color: var(--color-dark);
    color: var(--color-white);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(175, 161, 112, 0.05) 0%, transparent 70%);
}

.section--darker h1,
.section--darker h2,
.section--darker h3,
.section--darker h4,
.section--darker h5,
.section--darker h6 {
    color: var(--color-white);
}

.section--darker p {
    color: var(--color-text-on-dark);
}

.section--light {
    background-color: var(--color-bg);
}

.section--white {
    background-color: var(--color-white);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section__header h2 {
    margin-bottom: var(--space-md);
}

.section__header p {
    font-size: var(--text-lg);
}

/* ---- Gold Separator ---- */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    margin: var(--space-lg) auto;
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    inset: -3px -10px;
    background: linear-gradient(90deg, transparent, rgba(175, 161, 112, 0.3), transparent);
    filter: blur(4px);
    border-radius: 4px;
}

.gold-line--left {
    margin-left: 0;
}

/* ---- Grid System ---- */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

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

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

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

.grid--center {
    align-items: center;
}

/* ---- Flexbox Utilities ---- */
.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--column {
    flex-direction: column;
}

.flex--wrap {
    flex-wrap: wrap;
}

.flex--gap-sm {
    gap: var(--space-sm);
}

.flex--gap-md {
    gap: var(--space-md);
}

.flex--gap-lg {
    gap: var(--space-lg);
}

.flex--gap-xl {
    gap: var(--space-xl);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn--primary:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

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

.btn--secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-1px);
}

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

.btn--ghost:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-1px);
}

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

.btn--dark:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 18px 40px;
    font-size: var(--text-base);
}

.btn--sm {
    padding: 10px 20px;
    font-size: var(--text-xs);
}

.btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ---- Hero Sections ---- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: var(--color-black);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero--full {
    min-height: 100vh;
}

.hero--short {
    min-height: 45vh;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(15, 19, 24, 0.92) 0%,
        rgba(29, 36, 45, 0.78) 40%,
        rgba(175, 161, 112, 0.12) 100%
    );
    z-index: 1;
}

/* Subtle vignette on hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__content--center {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    font-size: var(--text-6xl);
}

.hero p {
    color: var(--color-text-on-dark);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero__content--center p {
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__content--center .hero__actions {
    justify-content: center;
}

/* Hero SVG Wave Divider */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Section Dividers ---- */
.divider-wave {
    position: relative;
    line-height: 0;
    margin-top: -1px;
}

.divider-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Cards ---- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--dark {
    background: var(--color-black);
    border-color: rgba(175, 161, 112, 0.15);
}

.card--dark:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card__body {
    padding: var(--space-xl);
}

.card--dark .card__body h3,
.card--dark .card__body h4 {
    color: var(--color-white);
}

.card--dark .card__body p {
    color: var(--color-text-on-dark);
}

/* ---- Quote/Callout ---- */
.callout {
    text-align: center;
    padding: var(--section-py) 0;
}

.callout__text {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.4;
}

/* ---- Stats/Features ---- */
.stat {
    text-align: center;
    padding: var(--space-xl);
}

.stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat__label {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.section--dark .stat__label {
    color: var(--color-text-on-dark);
}

/* ---- Scroll Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.7s; }

/* ---- Text Utilities ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }

/* ---- Spacing Utilities ---- */
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--color-gold);
    color: var(--color-black);
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

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

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-py: var(--section-py-tablet);
    }

    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--2-1,
    .grid--1-2 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-xl);
    }

    .callout__text {
        font-size: var(--text-2xl);
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    :root {
        --section-py: var(--section-py-mobile);
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero--full {
        min-height: 80vh;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-md);
    }

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

    .hero__content--center .hero__actions {
        align-items: center;
    }

    .btn--lg {
        padding: 14px 32px;
        font-size: var(--text-sm);
    }

    .section__header {
        margin-bottom: var(--space-2xl);
    }

    .callout__text {
        font-size: var(--text-xl);
    }

    .stat__number {
        font-size: var(--text-4xl);
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: var(--text-3xl);
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero p {
        font-size: var(--text-base);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
