/**
 * MONLIS Schule - Main Stylesheet
 * 
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base
 * 3. Typography
 * 4. Layout & Utilities
 * 5. Components
 * 6. Header
 * 7. Footer
 * 8. Sections
 * 9. Animations
 * 10. Responsive
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #232323;
    --color-primary-rgb: 35, 35, 35;
    --color-accent: #ffcfd9;
    --color-accent-rgb: 255, 207, 217;
    --color-white: #ffffff;
    --color-white-rgb: 255, 255, 255;
    --color-light: #f9f9f9;
    --color-gray: #666666;
    --color-gray-light: #e5e5e5;
    --color-gray-dark: #333333;
    --color-border: #e5e5e5;
    --color-text-light: #ffffff;
    --color-text-dark: #232323;
    --color-bg-light: #ffffff;
    --color-border-light: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: Georgia, 'Times New Roman', serif;
    
    /* Font Sizes */
    --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 */
    --text-7xl: 4.5rem;     /* 72px */
    --text-8xl: 6rem;       /* 96px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-32: 8rem;       /* 128px */
    
    /* Container */
    --container-max: 1440px;
    --container-padding: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Space for fixed header: top bar (33.5px) + main header (~100px) */
    padding-top: 0; /* Hero section handles this with its own height */
}

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

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-light);
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, var(--text-7xl));
}

h2 {
    font-size: clamp(2rem, 4vw, var(--text-5xl));
}

h3 {
    font-size: clamp(1.5rem, 3vw, var(--text-3xl));
}

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

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

h6 {
    font-size: var(--text-lg);
}

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

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

.text-accent {
    font-family: var(--font-accent);
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

/* ==========================================================================
   4. Layout & Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

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

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

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

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

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

.gap-2 {
    gap: var(--space-2);
}

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

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* Grid */
.grid {
    display: grid;
}

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

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

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

/* Text alignment */
.text-center {
    text-align: center;
}

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

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

/* Visibility */
.hidden {
    display: none !important;
}

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

/* Background colors */
.bg-white {
    background-color: var(--color-white);
}

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

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

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

/* ==========================================================================
   5. Components
   ========================================================================== */

/* 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: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

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

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

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

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

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

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

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

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

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

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

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

/* Form Elements */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid transparent;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Cards */
.card {
    background-color: var(--color-white);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: var(--space-6);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-12);
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gray);
    margin-bottom: var(--space-4);
}

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

.section-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-gray);
}

/* Divider */
.divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-primary);
    margin: var(--space-6) auto;
}

/* ==========================================================================
   6. Header Styles - Based on Figma Design
   ========================================================================== */

/* Top Bar - Dark #232323 - Height 33.5px */
.header-top-bar {
    background-color: #232323 !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 310 !important;
    display: none;
    height: 33.5px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (min-width: 768px) {
    .header-top-bar {
        display: flex !important;
        align-items: center !important;
    }
}

/* When scrolled - hide top bar */
.header-top-bar.hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}

.header-top-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.65px;
    line-height: 16.5px;
    color: #ffffff;
    opacity: 0.8;
}

.header-top-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.65px;
    line-height: 16.5px;
    color: #ffffff;
    transition: color 0.2s ease;
}

.header-top-phone:hover {
    color: var(--color-accent);
}

.header-top-phone svg {
    width: 12px;
    height: 12px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top-social a {
    display: flex;
    align-items: center;
    color: #ffffff;
    transition: color 0.2s ease;
}

.header-top-social a:hover {
    color: var(--color-accent);
}

.header-top-social svg {
    width: 12px;
    height: 12px;
}

.header-top-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.65px;
    line-height: 16.5px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-top-lang:hover {
    color: var(--color-accent);
}

.header-top-lang svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.header-top-lang:hover svg {
    transform: rotate(180deg);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher__current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.65px;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.lang-switcher__current:hover {
    color: var(--color-accent);
}

.lang-switcher__current svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher__current svg {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 140px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    list-style: none;
    z-index: 1000;
}

.lang-switcher.open .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__dropdown li {
    margin: 0;
}

.lang-switcher__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.lang-switcher__dropdown a:hover {
    background: var(--color-light);
}

.lang-switcher__dropdown li.active a {
    color: var(--color-accent);
    background: rgba(255, 207, 217, 0.1);
}

.lang-switcher__dropdown .lang-name {
    font-weight: 400;
    color: var(--color-gray);
    font-size: 12px;
}

/* Light version for white header */
.lang-switcher--light {
    display: none;
}

@media (min-width: 768px) {
    .lang-switcher--light {
        display: block;
    }
}

.lang-switcher--light .lang-switcher__current {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 1px solid var(--color-gray-light);
    border-radius: 4px;
}

.lang-switcher--light .lang-switcher__current:hover {
    border-color: var(--color-primary);
    background: var(--color-light);
}

.lang-switcher--light .lang-switcher__current svg {
    color: var(--color-gray);
}

.lang-switcher--light.open .lang-switcher__current {
    border-color: var(--color-primary);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background: var(--color-light);
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.mobile-lang-btn:hover {
    background: var(--color-gray-light);
}

.mobile-lang-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Main Header - White - positioned below top bar initially */
.site-header,
#site-header {
    position: fixed !important;
    top: 33.5px; /* Below top bar initially */
    left: 0;
    right: 0;
    z-index: 300 !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid transparent;
    transition: all 0.5s ease;
}

/* When scrolled - header moves to top */
.site-header.scrolled,
#site-header.scrolled {
    top: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* On mobile - no top bar, header always at top */
@media (max-width: 767px) {
    .site-header,
    #site-header {
        top: 0 !important;
    }
}



.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 32px 43px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
}

.site-header.scrolled .header-container {
    padding: 16px 43px;
}

/* Logo - Left aligned */
.header-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 50;
}

.header-logo-text {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 5.4px;
    line-height: 36px;
    color: #232323;
    transition: font-size 0.3s ease;
}

.site-header.scrolled .header-logo-text {
    font-size: 28px;
}

.header-logo-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 15px;
    color: #ffcfd9;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-logo-subtitle {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Navigation - Centered */
.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none !important;
}

@media (min-width: 1024px) {
    .header-nav {
        display: block !important;
    }
}

.header-nav-list,
.header-nav ul,
.header-nav > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 40px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-nav-list li,
.header-nav ul li,
.header-nav > ul > li {
    margin: 0 !important;
    list-style: none !important;
}

.header-nav-list a,
.header-nav ul a,
.header-nav > ul > li > a {
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1.8px !important;
    line-height: 16px !important;
    color: #232323 !important;
    text-transform: uppercase !important;
    position: relative !important;
    padding: 8px 0 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.header-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #ffcfd9;
    transition: all 0.3s ease;
}

.header-nav-list a:hover::after,
.header-nav-list .current-menu-item a::after {
    width: 100%;
    left: 0;
}

/* CTA Button - Right aligned */
.header-cta-btn {
    display: none !important;
    background-color: #232323 !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 2.4px !important;
    line-height: 16px;
    padding: 16px 34px !important;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

@media (min-width: 1024px) {
    .header-cta-btn {
        display: inline-block !important;
    }
}

.header-cta-btn:hover {
    background-color: #ffcfd9;
    color: #232323;
}

/* CTA Group */
.header-cta-group {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1024px) {
    .header-cta-group {
        display: flex;
    }
}

/* Calendar Button */
.header-calendar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid #e5e5e5;
    color: #232323;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-calendar-btn:hover {
    background-color: #232323;
    border-color: #232323;
    color: #ffffff;
}

.header-calendar-btn svg {
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: #232323;
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .header-mobile-toggle {
        display: none !important;
    }
}

.header-mobile-toggle:hover {
    color: #ffcfd9;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) + 10);
    background-color: #232323;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3.6px;
}

.mobile-menu-close {
    padding: 8px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: #ffcfd9;
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active .mobile-menu-list li {
    animation: mobileMenuItemIn 0.4s ease forwards;
}

.mobile-menu.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .mobile-menu-list li:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-menu-list li:nth-child(6) { animation-delay: 0.35s; }

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

.mobile-menu-list a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4.8px;
    color: #ffffff;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mobile-menu-list a:hover {
    color: #ffcfd9;
}

.mobile-menu-footer {
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu-cta {
    display: block;
    width: 100%;
    max-width: 280px;
    background-color: #ffffff;
    color: #232323;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.4px;
    padding: 16px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background-color: #ffcfd9;
}

.mobile-menu-social {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.mobile-menu-social a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.mobile-menu-social a:hover {
    color: #ffcfd9;
}

/* ==========================================================================
   7. Footer Styles
   ========================================================================== */

.site-footer {
    background-color: #111111;
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.site-footer > .container {
    padding-top: 96px;
    padding-bottom: 96px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1.2fr;
    gap: 32px;
}

/* Brand Column */
.footer-brand {
    max-width: 460px;
}

.footer-brand__header {
    margin-bottom: 32px;
}

.footer-brand__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 32px;
    margin: 0 0 8px;
}

.footer-brand__subtitle {
    font-family: 'Tinos', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: var(--color-accent);
    line-height: 24px;
    margin: 0;
}

.footer-brand__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-brand__item svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-brand__item p,
.footer-brand__item a {
    font-family: var(--font-body);
    font-size: 16px;
    color: #99a1af;
    line-height: 24px;
    margin: 0;
}

.footer-brand__item a:hover {
    color: var(--color-white);
}

/* Navigation Column */
.footer-nav__title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #6a7282;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    line-height: 20px;
    margin: 0 0 32px;
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 28px;
    transition: color 0.3s ease;
}

.footer-nav__list a:hover {
    color: var(--color-accent);
}

.footer-nav__list a svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-nav__list a:hover svg {
    opacity: 1;
}

/* Newsletter Column */
.footer-newsletter__box {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 33px;
    margin-bottom: 32px;
}

.footer-newsletter__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 32px;
    margin: 0 0 8px;
}

.footer-newsletter__text {
    font-family: var(--font-body);
    font-size: 16px;
    color: #99a1af;
    line-height: 24px;
    margin: 0 0 24px;
}

.footer-newsletter__form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.footer-newsletter__form input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a5565;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-white);
    outline: 2px solid transparent;
}

.footer-newsletter__form input::placeholder {
    color: #4a5565;
}

.footer-newsletter__form input:focus {
    border-bottom-color: var(--color-accent);
    box-shadow: 0 1px 0 0 var(--color-accent);
}

.footer-newsletter__form button {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.footer-newsletter__form button:hover {
    color: var(--color-white);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0;
}

.footer-bottom__copyright {
    font-family: var(--font-body);
    font-size: 12px;
    color: #6a7282;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 16px;
    margin: 0;
}

.footer-bottom__links {
    display: flex;
    gap: 32px;
}

.footer-bottom__links a {
    font-family: var(--font-body);
    font-size: 12px;
    color: #6a7282;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 16px;
    transition: color 0.3s ease;
}

.footer-bottom__links a:hover {
    color: var(--color-white);
}

/* Footer decorative text */
.footer-decoration {
    font-family: var(--font-heading);
    font-size: 164px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -8.2px;
    line-height: 164px;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    margin-top: 16px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    
    .footer-newsletter {
        grid-column: span 2;
    }
    
    .footer-decoration {
        font-size: 100px;
        line-height: 100px;
    }
}

@media (max-width: 768px) {
    .site-footer > .container {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-newsletter {
        grid-column: auto;
    }
    
    .footer-bottom__inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-decoration {
        font-size: 60px;
        line-height: 60px;
    }
}

/* ==========================================================================
   8. Section Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(var(--color-primary-rgb), 0.3) 0%,
        rgba(var(--color-primary-rgb), 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-8);
    max-width: 900px;
}

.hero-since {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: var(--font-light);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title .accent {
    font-family: var(--font-accent);
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
}

.hero-description {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    opacity: 0.9;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-white);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
}

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

/* Decorative line */
.hero-line {
    position: absolute;
    top: 50%;
    left: var(--space-8);
    width: 1px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

/* ==========================================================================
   9. Animations
   ========================================================================== */

/* Fade animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Scale animation */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Image hover */
.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform var(--transition-slow);
}

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

/* Underline animation */
.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-base);
}

.underline-hover:hover::after {
    width: 100%;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    .section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
    
    /* Header mobile */
    .header-top-bar {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Footer mobile */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Grid mobile */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

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

