/* ============================================
   LUMÉ YOGA - BREATHE. FLOW. EVOLVE.
   Minimal · Airy · Natural · Balanced
   ============================================ */

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

/* ============================================
   DESIGN TOKENS - CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* === REQUIRED CMS COLORS === */
    --brand-primary: #FFB5A7;
    /* Blush Peach */
    --brand-dark: #8B7355;
    /* Warm Taupe */
    --brand-light: #FFF8F0;
    /* Cream White */
    --brand-accent: #F4C430;
    /* Soft Gold */
    --brand-neutral: #E8DDD1;
    /* Neutral Beige */

    /* === EXTENDED COLOR SYSTEM === */
    --color-text-primary: #2D2520;
    --color-text-secondary: #6B5D54;
    --color-text-tertiary: #9B8B7E;
    --color-text-light: #B8ADA3;

    --color-background-primary: #FFFCF9;
    --color-background-secondary: #FFF8F0;
    --color-background-tertiary: #F5EDE3;

    --color-surface: #FFFFFF;
    --color-border-subtle: #F0E8DF;
    --color-border-default: #E0D5C8;
    --color-border-emphasis: #D0C0AF;

    /* Color with transparency */
    --color-overlay-light: rgba(255, 252, 249, 0.95);
    --color-overlay-dark: rgba(45, 37, 32, 0.6);
    --color-shadow-soft: rgba(139, 115, 85, 0.08);
    --color-shadow-medium: rgba(139, 115, 85, 0.12);
    --color-shadow-strong: rgba(139, 115, 85, 0.16);

    /* === TYPOGRAPHY SCALE (REQUIRED) === */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Responsive Typography with clamp() */
    --text-display-xl: clamp(3rem, 5vw + 1rem, 5.5rem);
    /* 48-88px */
    --text-display-lg: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    /* 40-72px */
    --text-display-md: clamp(2rem, 3vw + 1rem, 3.5rem);
    /* 32-56px */
    --text-display-sm: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
    /* 28-44px */

    /* === FONT FAMILIES === */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Cinzel', serif;

    /* === SPACING SCALE (8px base unit) === */
    --space-0: 0;
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-5: 2.5rem;
    /* 40px */
    --space-6: 3rem;
    /* 48px */
    --space-7: 4rem;
    /* 64px */
    --space-8: 5rem;
    /* 80px */
    --space-9: 6rem;
    /* 96px */
    --space-10: 8rem;
    /* 128px */
    --space-11: 10rem;
    /* 160px */
    --space-12: 12rem;
    /* 192px */

    /* === LAYOUT WIDTHS === */
    --width-content: 65ch;
    --width-narrow: 45ch;
    --width-wide: 90ch;
    --width-full: 1280px;
    --width-section: 1440px;

    /* === BORDER RADIUS === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* === SHADOWS (5-level system) === */
    --shadow-1: 0 1px 2px 0 var(--color-shadow-soft);
    --shadow-2: 0 2px 4px 0 var(--color-shadow-soft),
        0 1px 2px 0 var(--color-shadow-medium);
    --shadow-3: 0 4px 8px 0 var(--color-shadow-soft),
        0 2px 4px 0 var(--color-shadow-medium);
    --shadow-4: 0 8px 16px 0 var(--color-shadow-soft),
        0 4px 8px 0 var(--color-shadow-medium);
    --shadow-5: 0 16px 32px 0 var(--color-shadow-soft),
        0 8px 16px 0 var(--color-shadow-strong);

    /* === TRANSITIONS === */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* === Z-INDEX SCALE === */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   REQUIRED CMS UTILITY CLASSES
   ============================================ */
.cms-bg-primary {
    background-color: var(--brand-primary);
}

.cms-text-primary {
    color: var(--brand-primary);
}

.cms-border-primary {
    border-color: var(--brand-primary);
}

.cms-bg-dark {
    background-color: var(--brand-dark);
}

.cms-text-dark {
    color: var(--brand-dark);
}

.cms-border-dark {
    border-color: var(--brand-dark);
}

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

.cms-text-light {
    color: var(--brand-light);
}

.cms-border-light {
    border-color: var(--brand-light);
}

.cms-bg-accent {
    background-color: var(--brand-accent);
}

.cms-text-accent {
    color: var(--brand-accent);
}

.cms-border-accent {
    border-color: var(--brand-accent);
}

.cms-bg-neutral {
    background-color: var(--brand-neutral);
}

.cms-text-neutral {
    color: var(--brand-neutral);
}

.cms-border-neutral {
    border-color: var(--brand-neutral);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-background-primary);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3) 0;
}

h1 {
    font-size: var(--text-display-lg);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-display-md);
    font-weight: 500;
    font-style: italic;
}

h3 {
    font-size: var(--text-display-sm);
    font-weight: 500;
    font-style: italic;
}

h4 {
    font-size: var(--text-2xl);
    font-weight: 500;
    font-style: italic;
}

h5 {
    font-size: var(--text-xl);
    font-weight: 500;
    font-style: italic;
}

h6 {
    font-size: var(--text-lg);
    font-weight: 500;
    font-style: italic;
}

p {
    margin: 0 0 var(--space-3) 0;
    line-height: 1.7;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--brand-dark);
}

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

strong,
b {
    font-weight: 600;
}

em,
i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
}

.text-accent {
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   LAYOUT SYSTEM
   ============================================ */
.container {
    width: 100%;
    max-width: var(--width-full);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

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

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

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

.section {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}

.section-sm {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.section-lg {
    padding-top: var(--space-11);
    padding-bottom: var(--space-11);
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

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

/* Ensure button text is always visible */
.btn:hover,
.btn:active,
.btn:visited {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: var(--shadow-2);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-1);
}

.btn-secondary {
    background-color: var(--brand-dark);
    color: white;
    box-shadow: var(--shadow-2);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-3);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
}

.btn-light {
    background-color: white;
    color: var(--brand-primary);
    box-shadow: var(--shadow-2);
}

.btn-light:hover {
    background-color: var(--brand-light);
    color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-3);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-smooth);
}

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

.card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--color-background-tertiary);
    /* Superellipse frame - soft oval between square and circle */
    border-radius: 28% / 32%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image img {
    transform: scale(1.03);
}

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: var(--width-wide);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-8);
}

.section-label {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-accent);
    display: inline-block;
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: var(--text-display-md);
    font-weight: 300;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BADGE & TAG SYSTEM
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
}

.badge-primary {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

.badge-primary:hover {
    background-color: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Alignment */
.text-left {
    text-align: left;
}

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

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

/* Font Weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Colors */
.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-tertiary {
    color: var(--color-text-tertiary);
}

/* Spacing */
.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-1);
}

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

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

/* Display */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-fade-in {
    animation: fadeIn 600ms var(--transition-base) forwards;
}

.animate-slide-in {
    animation: slideIn 600ms var(--transition-base) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: var(--z-modal);
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-9: 4rem;
        --space-10: 6rem;
        --space-11: 8rem;
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .section {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7);
    }

    .grid {
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    :root {
        --space-7: 3rem;
        --space-8: 4rem;
        --space-9: 3rem;
    }

    .container {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print {
        display: none !important;
    }

    a {
        text-decoration: underline;
    }
}