/* ═══════════════════════════════════════════════════════════
   SLAVYANKA — Base CI · Imperial Easter Standard
   ───────────────────────────────────────────────────────────
   12k Design Language: Editorial Luxury, Radical Typography,
   Architectural Precision, Generous Whitespace
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    /* ── Brand DNA ─────────────────────────── */
    --brand-red: #C62828;
    --brand-red-dark: #7F1616;
    --brand-red-light: #E05555;
    --brand-gold: #C9A962;
    --brand-gold-light: #E4CC8E;
    --brand-gold-muted: rgba(201, 169, 98, 0.15);

    /* ── New: Nature & Folk Palette ────────── */
    --brand-indigo: #1B1464;
    --brand-indigo-deep: #0F0A2E;
    --brand-indigo-light: #2D1B69;
    --brand-green: #4A7C3F;
    --brand-green-light: #6B9E5E;
    --hero-bg: #1B1464;

    /* ── Surfaces ──────────────────────────── */
    --bg-cream: #F8F5EE;
    --bg-warm: #F3EDE3;
    --bg-white: #FFFFFF;
    --bg-deep: #1A1A1A;

    /* ── Typography Colors ─────────────────── */
    --text-primary: #1A1A1A;
    --text-secondary: #6B6560;
    --text-tertiary: #A09890;
    --text-inverse: #FAF7F0;

    /* ── Borders ───────────────────────────── */
    --border-hairline: rgba(26, 26, 26, 0.08);
    --border-subtle: rgba(26, 26, 26, 0.12);

    /* ── Type System ───────────────────────── */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-ui: 'Manrope', -apple-system, sans-serif;

    /* ── Spacing System (8px base) ─────────── */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    --space-3xl: 160px;

    --container-max: 1120px;
    --gutter: clamp(24px, 5vw, 48px);

    /* ── Motion ─────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 400ms;
    --duration-slow: 800ms;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--brand-indigo-deep);
}

body {
    font-family: var(--font-ui);
    color: var(--text-primary);
    background: var(--bg-cream);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Global folk-art pattern texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../assets/hero-pattern.jpg');
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

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

a {
    color: inherit;
}

/* ── Container ──────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Sections ───────────────────────────────── */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
}

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

.section--dark {
    background: var(--bg-deep);
    color: var(--text-inverse);
}

/* ── Display Typography (Radicalized) ──────── */
.display-hero {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.display-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* ── UI Typography ──────────────────────────── */
.eyebrow {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.body-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.caption {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.03em;
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 52px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.btn:hover::after {
    opacity: 1;
}

.btn--primary {
    background: var(--text-primary);
    color: var(--bg-cream);
}

.btn--primary:hover {
    background: var(--brand-indigo);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(27, 20, 100, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 0.5px solid var(--text-primary);
}

.btn--outline:hover {
    background: var(--text-primary);
    color: var(--bg-cream);
}

/* ── Scroll Reveal ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

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

.reveal-stagger>.reveal {
    transition-delay: calc(var(--i, 0) * 80ms);
}

/* ── Hairline Divider ───────────────────────── */
.divider {
    width: 48px;
    height: 0.5px;
    background: var(--brand-gold);
    margin: var(--space-md) 0;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ─────────────────────────────────── */
.footer-base {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--hero-bg);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Pattern background */
.footer-pattern {
    position: absolute;
    inset: 0;
    background: url('../assets/img/header-pattern.jpg') center / cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Dark overlay for readability */
.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--hero-bg) 0%, rgba(14, 10, 50, 0.85) 40%, rgba(14, 10, 50, 0.7) 100%);
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 56px;
    width: auto;
    filter: brightness(10);
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-gold-muted);
}

.footer-divider {
    width: 48px;
    height: 0.5px;
    background: rgba(201, 169, 98, 0.3);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--duration) var(--ease-out);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.03em;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --space-2xl: 80px;
        --space-3xl: 100px;
    }

    /* Prevent horizontal overflow globally */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Container mobile padding */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Footer — stack and center on mobile */
    .footer-base {
        padding: var(--space-lg) 16px var(--space-xl);
    }

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

    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }

    .footer-logo {
        height: 28px;
    }

    .footer-tagline {
        font-size: 0.6rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-links a {
        font-size: 0.68rem;
    }

    .footer-copy {
        font-size: 0.6rem;
        padding: 0 16px;
        word-break: break-word;
    }

    /* Global button mobile sizing */
    .btn {
        padding: 16px 28px;
        font-size: 0.68rem;
    }

    /* Sections — tighter padding */
    section, .section {
        padding-left: 16px;
        padding-right: 16px;
    }
}