/* ============================================================================
   DEVILPOWER – Premium CSS Design System
   Sandra Teufelsbauer · Fitness · Pilates · Yoga
   ──────────────────────────────────────────────
   Established. Colorful. Full of Life (Lebenslust).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&family=Syne:wght@700;800&family=Prata&family=WindSong:wght@400;500&display=swap');

/* ============================================================================
   1. DESIGN TOKENS – Custom Properties
   ============================================================================ */
:root {
    /* ── Core Palette ─────────────────────────────── */
    --color-white: #ffffff;
    --color-off-white: #FFF9FA; /* Warmer, softer white */
    --color-cream: #FFEDF2;     /* Light pink/cream */
    --color-lavender-tint: #F2E8FF; /* More vibrant lavender */
    --color-black: #1A1A24;
    --color-gray-light: #EBEBEB;
    --color-gray-mid: #A0A0B0;
    --color-gray-dark: #4A4A5A;

    /* ── Vibrant Accent Colors (Kunterbunt!) ──────── */
    --color-coral: #FF4D6D;
    --color-sunset: #FF7096;
    --color-purple: #8338EC;
    --color-violet: #C77DFF;
    --color-golden: #FFBE0B;
    --color-teal: #06D6A0;
    --color-blue: #3A86FF;

    /* ── Gradients ────────────────────────────────── */
    --gradient-primary: linear-gradient(135deg, var(--color-coral) 0%, var(--color-purple) 100%);
    --gradient-hover: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
    --gradient-warm: linear-gradient(135deg, var(--color-coral) 0%, var(--color-golden) 100%);
    --gradient-cool: linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--color-sunset) 0%, var(--color-violet) 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A24 0%, #2D2B3D 100%);

    /* ── Typography ───────────────────────────────── */
    --font-heading: 'Poppins', sans-serif;
    --font-handwriting: 'Caveat', cursive;
    --font-body: 'Outfit', sans-serif;
    --font-nourd: 'Montserrat', sans-serif;
    --font-alta: 'Prata', serif;
    --font-brittany: 'WindSong', cursive;

    /* ── Design Tokens ────────────────────────────── */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 15px 40px rgba(255, 107, 107, 0.3);
    --shadow-glow-purple: 0 15px 40px rgba(157, 78, 221, 0.25);
    --shadow-glow-teal: 0 15px 40px rgba(46, 196, 182, 0.25);
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --content-width: 1100px;
    --header-height: 72px;
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-dark);
    background-color: var(--color-off-white);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(131, 56, 236, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(6, 214, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 190, 11, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================================ */

/* Gradient text — apply to any heading or span */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cool {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lead paragraph — large intro text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-gray-dark);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-lead {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Bio / about text styling */
.bio-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-gray-dark);
    position: relative;
    padding-left: 24px;
    border-left: 3px solid var(--color-violet);
}

/* Pull-quote / highlight text */
.highlight-text {
    font-family: var(--font-handwriting);
    font-size: 1.75rem;
    color: var(--color-purple);
    line-height: 1.5;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.06) 0%, rgba(255, 107, 107, 0.06) 100%);
    border-radius: var(--radius-md);
    position: relative;
}

/* Letter-spacing & text-transform helpers */
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

/* ============================================================================
   4. HEADER & NAVIGATION
   ============================================================================ */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(157, 78, 221, 0.06);
    /* Animated gradient bottom border */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--color-coral), var(--color-purple), var(--color-teal), var(--color-golden), var(--color-coral)) 1;
    animation: headerBorderShift 8s linear infinite;
    background-clip: padding-box;
}

@keyframes headerBorderShift {
    0%   { border-image: linear-gradient(90deg, var(--color-coral), var(--color-purple), var(--color-teal), var(--color-golden), var(--color-coral)) 1; }
    25%  { border-image: linear-gradient(90deg, var(--color-purple), var(--color-teal), var(--color-golden), var(--color-coral), var(--color-purple)) 1; }
    50%  { border-image: linear-gradient(90deg, var(--color-teal), var(--color-golden), var(--color-coral), var(--color-purple), var(--color-teal)) 1; }
    75%  { border-image: linear-gradient(90deg, var(--color-golden), var(--color-coral), var(--color-purple), var(--color-teal), var(--color-golden)) 1; }
    100% { border-image: linear-gradient(90deg, var(--color-coral), var(--color-purple), var(--color-teal), var(--color-golden), var(--color-coral)) 1; }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-family: var(--font-handwriting);
    font-size: 22px;
    color: var(--color-coral);
    margin-top: -2px;
    font-weight: 600;
    transform: rotate(-3deg);
    display: inline-block;
}

/* ── NEW LOGO LOCKUPS (PILATES & More) ────────── */
.logo-lockup-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-decoration: none;
}

.logo-lockup-header .logo-title {
    font-family: var(--font-nourd);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-black);
}

.logo-lockup-header .logo-sub {
    font-family: var(--font-alta);
    font-size: 12px;
    color: var(--color-coral);
    letter-spacing: 0.03em;
    margin-top: 2px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-lockup-header .logo-estd {
    font-family: var(--font-brittany);
    font-size: 15px;
    color: var(--color-purple);
    font-weight: 500;
    display: inline-block;
}

/* Footer Logo Lockup */
.logo-lockup-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    color: var(--color-white);
    text-decoration: none;
}

.logo-lockup-footer .logo-title {
    font-family: var(--font-nourd);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
}

.logo-lockup-footer .logo-sub {
    font-family: var(--font-alta);
    font-size: 12px;
    color: var(--color-cream);
    letter-spacing: 0.03em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-lockup-footer .logo-estd {
    font-family: var(--font-brittany);
    font-size: 15px;
    color: var(--color-golden);
    font-weight: 500;
    display: inline-block;
}

/* Page Wipe Transition Logo Lockup */
.stamp-logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    color: var(--color-white);
    text-align: center;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transition-delay: 0.1s;
}

.stamp-logo-lockup .stamp-title {
    font-family: var(--font-nourd);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
}

.stamp-logo-lockup .stamp-sub {
    font-family: var(--font-alta);
    font-size: 15px;
    color: var(--color-cream);
    margin-top: 4px;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stamp-logo-lockup .stamp-estd {
    font-family: var(--font-brittany);
    font-size: 18px;
    color: var(--color-golden);
    font-weight: 500;
    display: inline-block;
}

.stamp-logo-lockup .stamp-trainer {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(255, 107, 107, 0.3));
    animation: trainerBounce 1.8s ease-in-out infinite alternate;
}

@keyframes trainerBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.02); }
}

/* Hero Badge Logo Lockup */
.hero-logo-badge-container {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
}

.hero-logo-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 117, 143, 0.25);
    padding: 30px;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.06);
    position: relative;
    transition: var(--transition-spring);
    animation: heroLogoFadeIn 1s ease-out;
}

.hero-logo-badge:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(255, 117, 143, 0.6);
    box-shadow: var(--shadow-glow);
}

.hero-logo-badge .badge-estd {
    font-family: var(--font-brittany);
    font-size: 24px;
    color: var(--color-purple);
    margin-bottom: 2px;
    transform: rotate(-8deg);
}

.hero-logo-badge .badge-title {
    font-family: var(--font-nourd);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-align: center;
}

.hero-logo-badge .badge-sub {
    font-family: var(--font-alta);
    font-size: 13px;
    color: var(--color-gray-dark);
    margin-top: 6px;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Responsiveness for logo lockup */
@media (max-width: 768px) {
    .logo-lockup-header .logo-title {
        font-size: 17px;
    }
    .logo-lockup-header .logo-sub {
        font-size: 10px;
    }
    .logo-lockup-header .logo-estd {
        font-size: 14px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(16px, 2vw, 30px);
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-gray-dark);
    transition: var(--transition-smooth);
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition-spring);
}

.nav-link:hover {
    color: var(--color-black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Hamburger Menu (mobile) ──────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-black);
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================================
   5. HERO & PARALLAX
   ============================================================================ */
.parallax-wrapper {
    position: relative;
}

.parallax-section {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* Dark gradient overlay on parallax images for legibility */
.parallax-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 26, 36, 0.45) 0%,
        rgba(26, 26, 36, 0.15) 40%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

.parallax-section > * {
    position: relative;
    z-index: 1;
}

/* Parallax Image Divider between sections */
.parallax-divider {
    height: 350px;
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.1), inset 0 -20px 40px rgba(0,0,0,0.1);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 60px 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 800px;
    margin: 0 20px;
    transition: var(--transition-spring);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF758F 0%, #C77DFF 52%, #8BE8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.18;
    padding-bottom: 0.12em;
}

.hero-title-sub {
    display: block;
    font-size: 0.6em;
    font-weight: 500;
    margin-top: 14px;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--color-gray-dark);
}

.hero-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: heroLogoFadeIn 1s ease-out;
}

@keyframes heroLogoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content Overlay (pulls up over parallax) */
.content-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-height: 100vh;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.07);
    margin-top: -40px;
    padding-top: 40px;
}

/* ============================================================================
   6. BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-spring);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.2);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Ripple effect on click via ::after */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn:active::after {
    opacity: 1;
    transition: opacity 0s;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-hover);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-light);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-purple);
    border-color: var(--color-violet);
    box-shadow: var(--shadow-glow-purple);
}

/* Outline button with gradient border */
.btn-outline {
    background: transparent;
    color: var(--color-purple);
    box-shadow: none;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--color-off-white), var(--color-off-white)), var(--gradient-primary);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    font-weight: 600;
}

.btn-outline:hover {
    background-image: var(--gradient-primary);
    background-clip: padding-box;
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

/* Large button variant */
.btn-lg {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: var(--radius-md);
}

/* ============================================================================
   7. SECTIONS & LAYOUT
   ============================================================================ */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-handwriting);
    font-size: 34px;
    color: var(--color-coral);
    display: block;
    margin-bottom: 5px;
    transform: rotate(-3deg);
}

/* Alternating section backgrounds */
.section-alt {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.section-alt:nth-child(even) {
    background-color: var(--color-lavender-tint);
}

/* Bold gradient section with white text */
.section-colored {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 120px 0;
}

.section-colored h1,
.section-colored h2,
.section-colored h3,
.section-colored h4,
.section-colored .section-subtitle {
    color: var(--color-white);
    -webkit-text-fill-color: var(--color-white);
}

.section-colored .lead,
.section-colored p {
    color: rgba(255, 255, 255, 0.9);
}

/* Wavy divider between sections (clip-path) */
.divider-wave {
    position: relative;
    height: 80px;
    overflow: hidden;
    background: transparent;
}

.divider-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background: var(--color-off-white);
    clip-path: ellipse(55% 65% at 50% 100%);
}

/* Inverse wave (for colored sections) */
.divider-wave-inverse::before {
    background: var(--color-cream);
    clip-path: ellipse(55% 65% at 50% 0%);
    bottom: auto;
    top: 0;
}

/* ============================================================================
   8. COURSE ROWS (Approved Layout)
   ============================================================================ */
.course-row {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: var(--transition-spring);
    border: none;
}

.course-row:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.course-row.reverse {
    flex-direction: column;
}

.course-image {
    max-width: 600px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.course-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.course-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.15;
    transition: var(--transition-smooth);
}

.course-row:hover .course-image::before {
    top: -20px;
    left: -20px;
    opacity: 0.25;
}

.course-row.reverse .course-image::before {
    left: 15px;
    right: -15px;
}

/* Alternating accent colors on course-row image decorations */
.course-row:nth-child(3n+2) .course-image::before {
    background: var(--gradient-warm);
}

.course-row:nth-child(3n+3) .course-image::before {
    background: var(--gradient-cool);
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    position: relative;
    z-index: 1;
    aspect-ratio: 4/3;
    transition: var(--transition-spring);
}

.course-row:hover .course-image img {
    transform: scale(1.03);
}

.course-details {
    flex: 1;
}

.course-category {
    font-family: var(--font-handwriting);
    color: var(--color-coral);
    font-size: 24px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 20px;
}

/* ============================================================================
   9. IMAGE ENHANCEMENTS
   ============================================================================ */

/* Decorative image frame with gradient border + slight rotation */
.image-frame {
    position: relative;
    display: inline-block;
    padding: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    transform: rotate(-2deg);
    transition: var(--transition-spring);
}

.image-frame img {
    border-radius: calc(var(--radius-lg) - 4px);
    display: block;
}

.image-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ============================================================================
   10. DECORATIVE ELEMENTS
   ============================================================================ */

/* ── Blockquote ───────────────────────────────── */
.blockquote {
    position: relative;
    padding: 32px 40px 32px 48px;
    margin: 40px 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid;
    border-image: var(--gradient-primary) 1;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}

.blockquote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--font-handwriting);
    font-size: 1.3rem;
    color: var(--color-coral);
    font-style: normal;
}

/* ── Badge / Pill ─────────────────────────────── */
.badge,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-warm { background: var(--gradient-warm); }
.badge-cool { background: var(--gradient-cool); }
.badge-sunset { background: var(--gradient-sunset); }

.badge-outline {
    background: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-violet);
}

/* ── Stats Grid ───────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 40px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-spring);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-purple);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item:nth-child(2) .stat-number {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-item:nth-child(3) .stat-number {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-dark);
    font-weight: 500;
}

/* ── Timeline ─────────────────────────────────── */
.timeline {
    position: relative;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

/* Alternate sides */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 50px;
}

/* Dot on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 28px;
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border: 4px solid var(--color-coral);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-spring);
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-item:nth-child(3n+2)::before {
    border-color: var(--color-purple);
}

.timeline-item:nth-child(3n+3)::before {
    border-color: var(--color-teal);
}

.timeline-item:hover::before {
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.15);
}

.timeline-content {
    background: var(--color-white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-spring);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.timeline-year {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--color-coral);
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 6px;
}

/* ============================================================================
   11. SCHEDULE TABLE
   ============================================================================ */
.schedule-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-width: 600px;
}

.schedule-table th,
.schedule-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
}

.schedule-table th {
    background: var(--gradient-dark);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr {
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

.schedule-table tbody tr:hover {
    background-color: rgba(157, 78, 221, 0.04);
    transform: scale(1.01);
}

.schedule-table tbody tr:nth-child(even) {
    background-color: rgba(244, 162, 97, 0.03);
}

.schedule-table tbody tr:nth-child(even):hover {
    background-color: rgba(244, 162, 97, 0.08);
}

/* ============================================================================
   12. CONTACT FORM
   ============================================================================ */
.contact-grid {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
    padding-right: 40px;
}

.contact-card {
    flex: 1;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    background: #FDFDFD;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-purple);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================================
   13. PROFESSIONAL FOOTER
   ============================================================================ */
footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 3;
    padding: 0;
}

/* Gradient line above footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-coral), var(--color-golden), var(--color-teal), var(--color-purple), var(--color-coral));
    background-size: 200% 100%;
    animation: footerLineShift 6s linear infinite;
}

@keyframes footerLineShift {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding: 70px 0 50px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.8;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--color-coral);
    padding-left: 6px;
}

/* Social icon links */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: var(--transition-spring);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    border-color: transparent;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: var(--color-coral);
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--color-golden);
}

/* Legacy footer-links (backward compat) */
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: var(--color-gray-light);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-coral);
}

/* ============================================================================
   14. ANIMATIONS & ENTRANCE EFFECTS
   ============================================================================ */

/* ── Fade-in (default: upward) ────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Directional entrances ────────────────────── */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

.fade-in-left.fade-in-visible,
.fade-in-right.fade-in-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Staggered animation delays via data-delay ── */
[data-delay="1"] { transition-delay: 0.1s !important; }
[data-delay="2"] { transition-delay: 0.2s !important; }
[data-delay="3"] { transition-delay: 0.3s !important; }
[data-delay="4"] { transition-delay: 0.4s !important; }
[data-delay="5"] { transition-delay: 0.5s !important; }
[data-delay="6"] { transition-delay: 0.6s !important; }
[data-delay="7"] { transition-delay: 0.7s !important; }
[data-delay="8"] { transition-delay: 0.8s !important; }

/* ── Subtle float for decorative elements ─────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ── Pulse for CTAs ───────────────────────────── */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 107, 107, 0); }
}

.btn-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

/* ============================================================================
   15. RESPONSIVE DESIGN
   ============================================================================ */

/* ── Tablet (≤ 1024px) ────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 64px;
        padding-right: 20px;
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 16px !important;
        right: auto !important;
    }
}

/* ── Mobile-landscape / small tablets (≤ 900px) ─ */
@media (max-width: 900px) {
    .course-row,
    .course-row.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 28px;
    }

    .course-image {
        max-width: 100%;
    }

    .course-image::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    .course-row.reverse .course-image::before {
        left: -10px;
        right: 10px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info {
        padding-right: 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .glass-card {
        padding: 40px 24px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 28px;
    }
}

/* ── Navigation: Hamburger ab Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    /* Show hamburger, hide inline nav */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 0;
        padding: 16px 0 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-bottom: 3px solid transparent;
        border-image: var(--gradient-primary) 1;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 14px 28px;
        width: 100%;
        font-size: 17px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-link:hover {
        background: rgba(157, 78, 221, 0.04);
        color: var(--color-purple);
    }

    .nav-menu .nav-cta {
        display: block;
        margin: 16px 28px 0;
        text-align: center;
    }
}

/* ── Mobile (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-height: 62px;
    }

    /* Footer collapses to single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0 30px;
    }

    .footer-col h4::after {
        left: 0;
    }

    /* Stats grid stacks */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    /* Schedule table scrollable */
    .schedule-wrapper {
        margin: 0 -24px;
        padding: 0 24px;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .glass-card {
        padding: 32px 18px;
        margin: 0 12px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .blockquote {
        padding: 24px 20px 24px 32px;
    }

    .blockquote::before {
        font-size: 3.5rem;
        left: 8px;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 16px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 48px;
        padding-right: 0;
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 8px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 18px 20px;
    }

    .image-frame {
        transform: rotate(0deg);
    }
}

/* ── Small mobile (≤ 480px) ───────────────────── */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: 24px;
    }

    .course-row {
        padding: 20px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .lead {
        font-size: 1.05rem;
    }

    .highlight-text {
        font-size: 1.4rem;
        padding: 18px 20px;
    }

    .stat-item {
        padding: 24px 16px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-sub {
        font-size: 18px;
    }

}

/* ============================================================================
   16. PRINT STYLES
   ============================================================================ */
@media print {
    header,
    .hamburger,
    .parallax-section,
    .divider-wave {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .content-overlay {
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
    }

    .btn {
        border: 1px solid #333;
        color: #333;
        background: none;
        box-shadow: none;
    }
}

/* ============================================================================
   17. 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;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }

    .parallax-section {
        position: relative;
    }
}

/* Focus-visible styles for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--color-coral);
    outline-offset: 3px;
}

/* ============================================================================
   18. MISSING COMPONENT STYLES
   ============================================================================ */

/* ── Hero Overlay & Description ───────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 26, 36, 0.5) 0%,
        rgba(26, 26, 36, 0.2) 40%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

.hero > .hero-content {
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--color-gray-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Text Center Utility ──────────────────────── */
.text-center {
    text-align: center;
}

/* ── Highlight span ───────────────────────────── */
.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Generic section padding ──────────────────── */
.section {
    padding: 100px 0;
}

/* ── Card Grid ────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-spring);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-image .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    padding: 5px 14px;
}

.card-body {
    padding: 28px 24px;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-black);
}

.card-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: 18px;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-coral);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover {
    color: var(--color-purple);
    gap: 10px;
}

/* ── Button Variants ──────────────────────────── */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: none;
    font-weight: 700;
}

.btn-white:hover {
    background: var(--color-white);
    color: var(--color-purple);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ── CTA Section Elements ─────────────────────── */
.cta-quote {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    line-height: 1.5;
    color: var(--color-white);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-author {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-style: italic;
}

/* ── Table Responsive Wrapper ─────────────────── */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

/* ── Form Labels ──────────────────────────────── */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

/* ── Form Success Message ─────────────────────── */
.form-success {
    text-align: center;
    padding: 50px 30px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-success-visible {
    opacity: 1;
    transform: scale(1);
}

.form-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 40px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-white);
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-black);
}

.form-success p {
    font-size: 17px;
    color: var(--color-gray-dark);
}

/* ── Course Text (alternative to course-details) ── */
.course-text {
    flex: 1;
}

.course-text h2 {
    margin-bottom: 10px;
}

.course-text .section-subtitle {
    margin-bottom: 15px;
    text-align: left;
    transform: none;
}

.course-text p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
}

/* ── Footer Navigation ────────────────────────── */
.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--color-coral);
    padding-left: 6px;
}

/* ── Header Scrolled State ────────────────────── */
.header-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ── Responsive additions for new components ──── */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-quote {
        font-size: 1.5rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-colored {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 22px 18px;
    }

    .cta-quote {
        font-size: 1.3rem;
    }
}

/* ============================================================================
   ANIMATED SLIDESHOW BACKGROUND (V2 - 8 Slides)
   ============================================================================ */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeBackground8 40s infinite;
}

/* Dynamically injected images per page */
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 5s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 10s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 15s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 20s; }
.hero-slideshow .slide:nth-child(6) { animation-delay: 25s; }
.hero-slideshow .slide:nth-child(7) { animation-delay: 30s; }
.hero-slideshow .slide:nth-child(8) { animation-delay: 35s; }

@keyframes fadeBackground8 {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    12.5% { opacity: 1; }
    17.5% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

/* Variable Slide-Anzahl: Dauer = Anzahl × 5s, Keyframe-Fenster proportional.
   data-count wird pro Seite serverseitig gesetzt (= Anzahl tatsächlicher Slides). */
.hero-slideshow[data-count="4"] .slide { animation-name: fadeBackground4; animation-duration: 20s; }
.hero-slideshow[data-count="5"] .slide { animation-name: fadeBackground5; animation-duration: 25s; }
.hero-slideshow[data-count="6"] .slide { animation-name: fadeBackground6; animation-duration: 30s; }
.hero-slideshow[data-count="7"] .slide { animation-name: fadeBackground7; animation-duration: 35s; }

@keyframes fadeBackground4 {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    25% { opacity: 1; }
    35% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}
@keyframes fadeBackground5 {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; }
    20% { opacity: 1; }
    28% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}
@keyframes fadeBackground6 {
    0% { opacity: 0; transform: scale(1); }
    6.67% { opacity: 1; }
    16.67% { opacity: 1; }
    23.33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}
@keyframes fadeBackground7 {
    0% { opacity: 0; transform: scale(1); }
    5.71% { opacity: 1; }
    14.29% { opacity: 1; }
    20% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

/* ============================================================================
   FLOATING BACKGROUND IMAGES (V2)
   ============================================================================ */
.floating-bg-image {
    position: fixed;
    z-index: -1;
    opacity: 0.1;
    border-radius: 40px;
    animation: floatGently 25s ease-in-out infinite alternate;
    pointer-events: none;
    object-fit: cover;
    will-change: transform;
}

.float-1 { top: 5%; left: -5%; width: 450px; animation-delay: 0s; transform: rotate(-10deg); }
.float-2 { top: 35%; right: -10%; width: 550px; animation-delay: -5s; transform: rotate(15deg); }
.float-3 { bottom: 10%; left: 5%; width: 400px; animation-delay: -10s; transform: rotate(-5deg); }
.float-4 { top: 65%; right: 10%; width: 350px; animation-delay: -15s; transform: rotate(20deg); }

@keyframes floatGently {
    0% { transform: translateY(0) rotate(-10deg) scale(1); opacity: 0.1; }
    50% { transform: translateY(-40px) rotate(5deg) scale(1.05); opacity: 0.25; }
    100% { transform: translateY(30px) rotate(15deg) scale(0.95); opacity: 0.1; }
}

.hero-overlay-vibrant {
    position: absolute;
    inset: 0;
    /* A colorful semi-transparent overlay to keep text readable but vibrant */
    background: linear-gradient(
        135deg,
        rgba(26, 26, 36, 0.5) 0%,
        rgba(131, 56, 236, 0.3) 50%,
        rgba(255, 77, 109, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.glass-card-vibrant {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 60px 50px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(131, 56, 236, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition-spring);
}

/* ============================================================================
   UX ELEMENTS (V3): PRICING, TESTIMONIALS, FAQ
   ============================================================================ */

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
    transition: var(--transition-spring);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(131, 56, 236, 0.15);
}
.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--color-lavender-tint);
    position: absolute;
    top: 10px; left: 20px;
    line-height: 1;
    z-index: 0;
}
.testimonial-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
}
.testimonial-author {
    font-weight: 700;
    color: var(--color-purple);
}

/* ── Pricing Cards ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(131, 56, 236, 0.1);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(131, 56, 236, 0.2);
}
.pricing-card.popular {
    border: 2px solid var(--color-purple);
    transform: scale(1.05);
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}
.pricing-badge {
    position: absolute;
    top: 20px; right: -35px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: bold;
}
.pricing-title {
    font-size: 1.5rem;
    color: var(--color-gray-dark);
    margin-bottom: 15px;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 20px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    text-align: left;
    display: inline-block;
}
.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
}
.pricing-features li::before {
    content: '✓';
    color: var(--color-teal);
    font-weight: bold;
    margin-right: 10px;
}

/* ── FAQ Accordion ── */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: var(--color-lavender-tint);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
    color: var(--color-gray-dark);
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

/* ── Mobile Performance Fix ── */
@media (max-width: 768px) {
    .floating-bg-images {
        display: none !important;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}
/* ============================================================================
   GIF-BASED PAGE WIPE TRANSITION
   ============================================================================ */
.page-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
    background: linear-gradient(135deg, rgba(255, 240, 243, 0.1) 0%, rgba(243, 230, 255, 0.1) 50%, rgba(230, 250, 235, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.page-wipe.is-animating {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.page-wipe.is-leaving {
    opacity: 0;
    pointer-events: all;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.wipe-gif-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    /* Die Blend-Methode auf dem Container lässt das Weiß des GIFs unsichtbar werden */
    mix-blend-mode: multiply;
}

.page-wipe.is-animating .wipe-gif-container {
    transform: scale(1);
}

.page-wipe.is-leaving .wipe-gif-container {
    transform: scale(1.05);
}

.wipe-gif {
    width: 350px; /* Schön groß für die Ansicht */
    max-width: 90vw;
    height: auto;
}

@media (max-width: 768px) {
    .wipe-gif {
        max-width: 200px;
    }
}

.page-wipe.no-transition,
.page-wipe.no-transition * {
    transition: none !important;
}

/* ============================================================================
   SOMMERPROGRAMM / SAISONALE SEITE & BANNER
   ============================================================================ */
.summer-banner {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap; text-align: center;
    background: linear-gradient(90deg, #ff9d00, #ff4d6d 55%, #a4508b);
    color: #fff; padding: 13px 22px;
}
.summer-banner .sb-text { font-size: 17px; font-weight: 600; }
.summer-banner .sb-text strong { font-weight: 800; }
.summer-banner .btn { margin: 0; padding: 9px 20px; }
@media (max-width: 600px) { .summer-banner .sb-text { font-size: 15px; } }

.summer-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 44px; align-items: center; margin-top: 30px;
}
.summer-grid.reverse .summer-info { order: 2; }
.summer-grid.reverse .summer-flyer { order: 1; }
@media (max-width: 860px) {
    .summer-grid { grid-template-columns: 1fr; gap: 26px; }
    .summer-grid.reverse .summer-info { order: 2; }
    .summer-grid.reverse .summer-flyer { order: 1; }
}

.summer-detail { margin: 0 0 16px; }
.summer-detail h4 { margin: 0 0 4px; font-size: 19px; }
.summer-detail p { margin: 0; color: var(--color-gray-dark, #555); }
.summer-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.summer-meta span {
    background: rgba(164, 80, 139, 0.10); color: var(--color-purple, #a4508b);
    border-radius: 20px; padding: 4px 13px; font-size: 13px; font-weight: 600;
}
.summer-price {
    background: #fff; border: 1px solid #ece6ef; border-radius: 14px;
    padding: 16px 20px; margin-top: 22px; box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.summer-price .sp-head { font-weight: 700; color: var(--color-accent-1, #a4508b); }
.summer-price ul { margin: 8px 0 0; padding-left: 18px; }
.summer-price li { margin: 3px 0; }

.summer-flyer { margin: 0; }
.summer-flyer a {
    display: block; border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 34px rgba(0,0,0,0.16); transition: transform 0.3s ease;
}
.summer-flyer a:hover { transform: translateY(-5px); }
.summer-flyer img { width: 100%; display: block; }
.summer-flyer figcaption {
    font-size: 12px; color: #8a8290; text-align: center; margin-top: 10px;
}
/* hervorgehobener Menüpunkt für die Saison */
.nav-link.nav-highlight {
    color: #ff4d6d; font-weight: 700;
}

/* ============================================================================
   PREISE (Tabelle, Gratis-Schnupperstunde, Personaltraining) & RECHTSSEITEN
   ============================================================================ */
.trial-highlight {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
    background: linear-gradient(90deg, rgba(31,157,85,0.10), rgba(164,80,139,0.08));
    border: 1px solid rgba(31,157,85,0.25); border-radius: 16px;
    padding: 18px 24px; margin: 0 auto 34px; max-width: 780px; text-align: center;
}
.trial-highlight .trial-badge {
    background: #1f9d55; color: #fff; font-weight: 800; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px; border-radius: 20px; padding: 5px 14px;
}
.trial-highlight .btn { margin: 0; }
.price-table th:not(:first-child), .price-table td:not(:first-child) { text-align: center; }
.pt-grid { display: flex; justify-content: center; margin-top: 36px; }
.pt-card {
    background: #fff; border: 1px solid #ece6ef; border-radius: 18px;
    padding: 30px 34px; max-width: 520px; width: 100%; text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.pt-card h3 { margin: 0 0 6px; font-size: 22px; }
.pt-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.pt-card li { padding: 8px 0; border-bottom: 1px solid #f0ecf2; }
.pt-card li:last-child { border-bottom: none; }

.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 0; }
.legal-content h3 { margin-top: 26px; font-size: 19px; }
.legal-content p, .legal-content li { color: var(--color-gray-dark, #444); line-height: 1.7; }
.legal-content a { color: var(--color-purple, #a4508b); }

/* Probestunde-Button in der Navigation */
.nav-menu .nav-cta {
    display: inline-block;
    background: linear-gradient(90deg, #ff4d6d, #a4508b);
    color: #fff; padding: 9px 18px; border-radius: 30px;
    font-weight: 700; text-decoration: none; line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-menu .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(164,80,139,0.35); color: #fff;
}

/* ── Region-Karte (schematisch, SVG) ── */
.region-map { max-width:820px; margin:0 auto; }
.rm-canvas { position:relative; width:100%; aspect-ratio:800/560; }
.rm-bg { position:absolute; inset:0; border-radius:24px; overflow:hidden;
    box-shadow:0 12px 40px rgba(95,10,135,.12); border:1px solid #ece6ef; }
.rm-bg svg { width:100%; height:100%; display:block; }
.rm-town { position:absolute; transform:translate(-50%,-50%); font-size:13px;
    color:#9a8fa6; font-weight:600; letter-spacing:.3px;
    pointer-events:none; text-shadow:0 1px 2px rgba(255,255,255,.7); }
.rm-town::before { content:""; display:inline-block; width:6px; height:6px;
    border-radius:50%; background:#c9bcd6; margin-right:5px; vertical-align:middle; }
.rm-pin { position:absolute; transform:translate(-50%,-50%); background:none;
    border:none; padding:0; cursor:pointer; z-index:2; }
.rm-pin:hover, .rm-pin:focus { z-index:10; outline:none; }
.rm-dot { display:block; width:20px; height:20px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%,#ff7aa0,#ff4d6d 55%,#a4508b);
    box-shadow:0 3px 10px rgba(214,69,109,.5); position:relative; transition:transform .18s ease; }
.rm-dot::after { content:""; position:absolute; inset:-7px; border-radius:50%;
    border:2px solid rgba(255,77,109,.5); animation:rmpulse 2.2s ease-out infinite; }
.rm-pin:hover .rm-dot, .rm-pin:focus .rm-dot { transform:scale(1.25); }
@keyframes rmpulse { 0%{transform:scale(.6);opacity:.8} 100%{transform:scale(1.6);opacity:0} }
.rm-name { display:block; margin-top:4px; font-size:12px; font-weight:700;
    white-space:nowrap; transform:translateX(-50%); margin-left:10px;
    color:#5f0a87; text-shadow:0 1px 3px rgba(255,255,255,.9); }
.rm-tip { position:absolute; left:50%; bottom:34px;
    transform:translateX(-50%) translateY(6px); width:210px; background:#fff;
    border-radius:14px; box-shadow:0 14px 34px rgba(0,0,0,.22);
    padding:13px 15px; opacity:0; visibility:hidden; transition:.18s ease;
    text-align:left; pointer-events:none; }
.rm-tip::after { content:""; position:absolute; left:50%; bottom:-7px;
    transform:translateX(-50%); border:8px solid transparent;
    border-top-color:#fff; border-bottom:0; }
.rm-pin:hover .rm-tip, .rm-pin:focus .rm-tip { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.rm-tip h4 { margin:0 0 3px; font-size:14px; color:#2a2530; }
.rm-tip .rm-course { display:block; font-size:12px; color:#a4508b; font-weight:600; margin-bottom:8px; }
.rm-tip .rm-addr { display:block; font-size:11px; color:#8a8290; margin-bottom:9px; }
.rm-tip a { display:inline-block; font-size:12px; font-weight:700; color:#fff;
    background:linear-gradient(90deg,#ff4d6d,#a4508b); padding:5px 12px;
    border-radius:20px; text-decoration:none; }
.rm-pin.edge-r .rm-tip { left:auto; right:-6px; transform:translateY(6px); }
.rm-pin.edge-r:hover .rm-tip, .rm-pin.edge-r:focus .rm-tip { transform:translateY(0); }
.rm-pin.edge-r .rm-tip::after { left:auto; right:18px; }
.rm-legend { display:flex; align-items:center; justify-content:center;
    gap:8px; margin-top:16px; font-size:13px; color:#8a8290; }
.rm-legend .ld { width:14px; height:14px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%,#ff7aa0,#ff4d6d 55%,#a4508b); }

/* ============================================================================
   FIX FOR IOS SAFARI & MOBILE PARALLAX
   ============================================================================ */
@supports (-webkit-touch-callout: none) {
    .parallax-divider,
    .parallax-section,
    .hero,
    body {
        background-attachment: scroll !important;
    }
}

@media (max-width: 768px) {
    .parallax-divider,
    .parallax-section,
    .hero,
    body {
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {
    /* Compact mobile home hero */
    .page-home .parallax-section.hero {
        position: relative;
        top: auto;
        height: auto;
        min-height: calc(100svh - var(--header-height));
        padding: 24px 0 36px;
        align-items: flex-start;
    }

    .page-home .hero-grid {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .page-home .glass-card-vibrant {
        width: calc(100% - 48px);
        max-width: 342px;
        margin: 16px auto 0;
        padding: 22px 18px 20px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.48);
    }

    .page-home .hero-logo {
        max-width: 120px;
        margin-bottom: 12px;
    }

    .page-home .hero-title {
        font-size: 26px;
        line-height: 1.08;
        margin-bottom: 10px;
    }

    .page-home .hero-title-sub {
        margin-top: 8px;
    }

    .page-home .hero-description {
        font-size: 15px;
        max-width: 29ch;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .page-home .hero-buttons {
        gap: 10px;
    }

    .page-home .hero-buttons .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .page-home .content-overlay {
        margin-top: 0;
        padding-top: 24px;
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
    }
}

@media (max-width: 768px) {
    /* Compact centered mobile footer */
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 0 28px;
        text-align: center;
    }

    footer .footer-col {
        min-width: 0;
    }

    footer .footer-col:first-child {
        max-width: 34rem;
        margin: 0 auto;
    }

    footer .footer-logo-img {
        max-width: min(220px, 70vw);
    }

    footer .footer-col:first-child p {
        max-width: 34ch;
        margin: 12px auto 0 !important;
        line-height: 1.55;
    }

    footer .footer-col h4 {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    footer .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    footer .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 18px;
        max-width: 34rem;
        margin: 0 auto;
    }

    footer .footer-nav li {
        margin-bottom: 0;
    }

    footer .footer-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0;
    }

    footer .footer-nav a:hover {
        padding-left: 0;
    }

    footer .footer-col:last-child p {
        margin: 0;
        line-height: 1.6;
    }

    footer .footer-col:last-child p + p {
        margin-top: 4px;
    }

    footer .footer-bottom {
        padding: 18px 0;
    }

    footer .footer-bottom .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    footer .footer-bottom p {
        max-width: 34ch;
        line-height: 1.5;
    }

    footer .footer-links {
        gap: 22px;
        margin-top: 0;
        flex-wrap: wrap;
    }
}
