/* ============================================
   ÄRA Pilates Studio - Custom Styles
   Brand Colors:
   Primary: #B7A68D
   Secondary: #D8D0C0
   Dark: #222222
   Accent: #A96744
   ============================================ */

/* ============================================
   CSS Variables & Reset
   ============================================ */
@font-face {
    font-family: 'Ivy Ora Display';
    src: url('img/ivyora-display-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --primary-color: #B7A68D;
    --secondary-color: #D8D0C0;
    --dark-color: #222222;
    --accent-color: #A96744;
    --white: #FFFFFF;
    --light-bg: #F9F7F4;
    --text-dark: #222222;
    --text-light: #666666;

    --font-primary: 'TAN Meringue', serif;
    --font-body: 'Open Sans', sans-serif;
    --font-display: 'Ivy Ora Display', serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUpCookie 0.4s ease-out;
    font-size: 0.95rem;
    display: none;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-family: var(--font-body);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 0.5rem;
}

.cookie-banner-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-body);
}

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

.cookie-btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.cookie-btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile responsiveness for cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
    }

    .cookie-banner-text {
        min-width: 100%;
    }
}

/* Prevent horizontal scroll on mobile */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

p {
    margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.7rem);
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

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

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

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

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

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-hero {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 400;
    letter-spacing: 2px;
    padding: 12px 30px;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    font-family: var(--font-display);
}

.btn-hero:hover {
    background-color: var(--white);
    color: #000000;
    border-color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(183, 166, 141, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
}

.navigation .container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 60px;
}

.nav-menu.nav-left {
    display: flex;
    flex: 1 1 0;
    justify-content: flex-end;
    gap: 2rem;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 32px;
}

.nav-menu.nav-right {
    display: flex;
    flex: 1 1 0;
    justify-content: flex-start;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: auto;
}

.nav-left {
    justify-content: space-around;
}

.nav-right {
     justify-content: space-around;
}

.mobile-only {
     display: none !important;
}

.nav-menu a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: #FFFFFF;
    position: relative;
    padding: 0.5rem 0;
}

.lang-switch {
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    transform: translateY(-2px);
}

.nav-menu a:hover {
    color: #FFFFFF;
}

.nav-menu a.active {
    color: #FFFFFF;
}

.nav-cta {
    min-width: 140px;
    padding: 10px 40px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    transform: translateY(0);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@keyframes pulse-subtle {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(183, 166, 141, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(183, 166, 141, 0);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #CCCCCC;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    min-height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    margin-top: 0;
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(-45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

html {
    height: -webkit-fill-available;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 300;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

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

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 50px 0;
    background-color: var(--white);
}

.about .container {
    max-width: 1200px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 700px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .image-wrapper {
        aspect-ratio: 16/9;
        max-height: 200px;
    }

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

    .about-text {
        font-size: 0.85rem;
    }
}

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

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
}

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

.image-wrapper:hover img {
    transform: scale(1.08) rotate(1deg);
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    z-index: -1;
    transition: all 0.4s ease;
}

.image-wrapper:hover .image-frame {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    border-radius: 2px;
}

.about-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.about-cta {
    margin-top: 2rem;
}

.about-cta-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-cta-link:hover {
    color: var(--primary-color);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    margin-bottom: 1.5rem;
}

.service-image .image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    font-size: 1rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: 0;
    background: linear-gradient(135deg, rgba(112, 105, 96, 0.9) 0%, rgba(90, 84, 76, 0.9) 100%);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/pricing.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

@supports not (background-image: url('x.webp')) {
    .pricing::before {
        background-image: url('img/pricing.png');
    }
}

.pricing-hero {
    padding: 60px 40px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pricing-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.pricing-hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--white);
    font-weight: 300;
}

.pricing .container {
    max-width: 1200px;
    padding: 40px 100px 80px;
    position: relative;
    z-index: 1;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    opacity: 0.9;
}

.pricing-section-title:first-child {
    margin-top: 0;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--white);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-item:hover {
    padding-left: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.pricing-item:hover::before {
    height: 60%;
}

.pricing-item-content {
    flex: 1;
}

.pricing-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.pricing-item-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-highlight {
    text-decoration: underline;
    font-weight: 600;
}

.pricing-item-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pricing-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    min-width: 100px;
    text-align: right;
    letter-spacing: 1px;
}

.btn-pricing {
    background-color: var(--white);
    color: var(--dark-color);
    border: none;
    padding: 10px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-pricing:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(0);
}

/* ============================================
   Pilates Classes Section
   ============================================ */
.classes {
    padding: 0;
    background-color: var(--white);
}

.classes-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    background-image: url('img/pilates_oraink.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.classes-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.classes-hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.classes-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-family: var(--font-display);
}

.classes-hero-description {
    font-size: 1.0rem;
    line-height: 1.7;
    color: var(--white);
    font-weight: 300;
}

.inline-link {
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.inline-link:hover {
    opacity: 0.7;
}

.classes .container {
    max-width: 1200px;
    padding: 80px 100px;
    overflow: visible;
}

.classes-carousel {
    position: relative;
    overflow: visible;
}

.carousel-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.classes-carousel-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.classes-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.class-card-elegant {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 320px;
    scroll-snap-align: start;
}

@media (max-width: 1200px) {
    .class-card-elegant {
        flex: 0 0 calc(50% - 1rem);
    }

    .class-card-elegant-content {
        padding: 4rem 2.5rem;
    }
}

@media (max-width: 840px) {
    .class-card-elegant-content {
        padding: 2.5rem 2rem;
        font-size: 0.9rem;
    }

    .class-card-elegant-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .class-card-elegant {
        flex: 0 0 100%;
    }

    .class-card-elegant-content {
        padding: 3rem 2rem;
    }
}

.class-card-elegant-content {
    background-color: var(--light-bg);
    padding: 3rem 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.class-card-elegant-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.class-card-elegant-content:hover::before {
    left: 100%;
}

.class-card-elegant-content:hover {
    background-color: var(--secondary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.class-card-elegant-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.class-card-elegant-description {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.carousel-arrow {
    background-color: transparent;
    border: 1px solid var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.class-card {
    background-color: var(--white);
    padding: 0;
    transition: all 0.4s ease;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.class-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.class-badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-image .image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    font-size: 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.class-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    padding: 0 1.2rem;
    padding-top: 1rem;
}

.class-description {
    color: var(--text-light);
    line-height: 1.5;
    padding: 0 1.2rem 1.2rem;
    font-size: 0.8rem;
}

.motibro-widget {
    margin-top: 3rem;
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 6px;
    text-align: center;
    color: #000000;
}

.motibro-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.motibro-widget p {
    font-size: 1rem;
    margin: 0;
    color: #000000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    /* Classes Carousel Tablet */
    .classes .container {
        max-width: 100%;
        padding: 50px 20px;
        overflow: hidden;
    }

    .classes-carousel {
        position: relative;
        overflow: hidden;
    }

    .carousel-header {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .classes-carousel-wrapper {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 15px 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .class-card-elegant {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
        scroll-snap-align: start;
    }

    .class-card-elegant-content {
        padding: 2rem 1.5rem;
    }

    .class-card-elegant-title {
        font-size: 0.8rem;
    }

    .class-card-elegant-description {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* Pricing Section Tablet */
    .pricing-hero {
        padding: 50px 30px 35px;
    }

    .pricing-hero-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 0.75rem;
    }

    .pricing-hero-subtitle {
        font-size: 0.8rem;
        padding: 0 20px;
    }

    .pricing .container {
        max-width: 100%;
        padding: 40px 25px 60px;
    }

    .pricing-section-title {
        font-size: 0.85rem;
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .pricing-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 1.75rem 0;
        gap: 1rem;
    }

    .pricing-item-content {
        flex: 1;
    }

    .pricing-item-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .pricing-item-description {
        font-size: 0.82rem;
    }

    .pricing-item-right {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-end;
        flex-shrink: 0;
    }

    .pricing-item-price {
        font-size: 1rem;
        min-width: 90px;
        text-align: right;
    }

    .btn-pricing {
        padding: 8px 18px;
        font-size: 0.68rem;
        white-space: nowrap;
        width: auto;
        max-width: 160px;
    }

    /* Footer Tablet */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column-logo {
        justify-content: center;
    }

    .footer-logo {
        position: relative;
        height: 100px;
        left: 0;
        transform: none;
    }

     /* Contact Section */
     .contact-details {
         grid-template-columns: 1fr;
         gap: 2rem;
     }
 }

/* Team Section - Single Column at 1024px and below */
@media (max-width: 700px) {
    .team {
        padding: 60px 0;
    }

    .team-grid {
        gap: 2.5rem;
        max-width: 100%;
    }

    .team-member {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        align-items: stretch;
        overflow: visible;
    }

    .team-member:nth-child(even) {
        direction: ltr !important;
    }

    .team-member:nth-child(even) > * {
        direction: ltr !important;
    }

    .team-photo {
        height: 450px;
        width: 100%;
    }

    .team-info {
        padding: 0;
        justify-content: flex-start;
        text-align: center;
    }

    .team-name {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .team-role {
        margin-bottom: 1rem;
        font-size: 0.75rem;
    }

    .team-bio-toggle {
        display: block;
        margin: 0 auto;
    }

    .team-bio {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {

    /* Classes Section Mobile */
    .classes .container {
        max-width: 100%;
        padding: 40px 15px;
        overflow: hidden;
    }

    .classes-carousel {
        position: relative;
        overflow: hidden;
    }

    .carousel-header {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .classes-carousel-wrapper {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 15px 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .class-card-elegant {
        flex: 0 0 calc(100% - 1rem);
        min-width: 280px;
        scroll-snap-align: start;
    }

    .class-card-elegant-content {
        background-color: var(--light-bg);
        padding: 2rem 1.5rem;
        height: 100%;
        min-height: auto;
    }

    .class-card-elegant-title {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 1rem;
    }

    .class-card-elegant-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 24px;
    }

    /* Pricing Section Mobile */
    .pricing {
        padding: 0;
    }

    .pricing-hero {
        padding: 40px 20px 30px;
    }

    .pricing-hero-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-bottom: 0.75rem;
    }

    .pricing-hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .pricing .container {
        max-width: 100%;
        padding: 30px 15px 50px;
        overflow: hidden;
    }

    .pricing-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pricing-section-title {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        margin-top: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .pricing-section-title:first-child {
        margin-top: 0;
    }

    .pricing-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 0;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .pricing-item-content {
        flex: 1;
        width: 100%;
    }

    .pricing-item-title {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.3rem;
    }

    .pricing-item-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .pricing-item-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        align-items: center;
    }

    .pricing-item-price {
        font-size: 1rem;
        min-width: auto;
        text-align: center;
    }

    .btn-pricing {
        width: auto;
        padding: 8px 16px;
        font-size: 0.65rem;
        max-width: 150px;
    }

       /* Team Section Mobile */
      .team {
          padding: 50px 0;
      }

      .team .container {
          padding: 0 15px;
      }

      .team-grid {
          gap: 2rem;
          max-width: 100%;
      }

      .team-member {
          grid-template-columns: 1fr !important;
          gap: 1.25rem !important;
          margin-bottom: 0;
          align-items: stretch !important;
          overflow: visible !important;
      }

      .team-member:nth-child(even) {
          direction: ltr !important;
      }

      .team-member:nth-child(even) > * {
          direction: ltr !important;
      }

       .team-photo {
           height: 350px;
           width: 100%;
       }

       .team-info {
           padding: 1rem 0 0 0;
           justify-content: flex-start;
           text-align: center;
       }

       .team-name {
           font-size: 1.2rem;
           margin-bottom: 0.4rem;
       }

       .team-role {
           font-size: 0.7rem;
           margin-bottom: 0.8rem;
           letter-spacing: 0.8px;
       }

       .team-bio-toggle {
           font-size: 0.85rem;
           display: inline-block;
       }

      .team-bio {
          font-size: 0.85rem;
          line-height: 1.6;
      }

     /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column-logo {
        justify-content: center;
    }

    .footer-logo {
        position: relative;
        height: 100px;
        left: 0;
        transform: none;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 0;
    background-color: var(--white);
    position: relative;
}

.contact-elegant-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}

.contact-elegant-content {
    margin-bottom: 4rem;
}

.contact-elegant-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 300;
    font-family: var(--font-display);
}

.contact-elegant-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-light);
    font-weight: 300;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-detail-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 2px solid var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-detail-item:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.contact-detail-value {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.contact-detail-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-elegant-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-elegant-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-elegant-link:hover {
    color: var(--primary-color);
}

.contact-elegant-link:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 15px 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-motto {
    font-size: 0.8rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-style: italic;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    min-height: 80px;
}

.footer-column {
    display: flex;
}

.footer-column-logo {
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 80px;
}

.footer-logo {
    height: auto;
    width: 280px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    position: static;
    transform: none;
    left: 0;
}

.footer-column-links {
    justify-content: center;
    align-items: center;
}

.footer-column-social {
    justify-content: flex-end;
    align-items: center;
}

.footer-links-group,
.footer-info-compact,
.footer-social-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links-group {
    justify-content: center;
}

.footer-info-compact {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    justify-content: center;
}

.footer-links-group a,
.footer-info-compact a,
.footer-social-compact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links-group a:hover,
.footer-info-compact a:hover,
.footer-social-compact a:hover {
    color: var(--white);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-bottom {
    padding: 1rem 0;
    background-color: #141414;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    background: var(--white);
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-member:nth-child(even) {
    direction: rtl;
}

.team-member:nth-child(even) > * {
    direction: ltr;
}

.team-member:hover .team-photo img {
    transform: scale(1.02);
}

.team-photo {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: transparent;
    position: relative;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-role {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team-bio-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.team-bio-toggle:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.team-bio-toggle[aria-expanded="true"] {
    color: var(--accent-color);
}

.team-bio-content {
    margin-top: 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

.team-bio-content.visible {
    max-height: 600px;
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Footer Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column-logo,
    .footer-column-links,
    .footer-column-social {
        justify-content: center;
    }

    .footer-links-group,
    .footer-info-compact,
    .footer-social-compact {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Tablet & Below */
@media (max-width: 992px) {

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
    }

    .nav-wrapper {
        display: flex;
        justify-content: center;
        position: relative;
    }

     .nav-left,
     .nav-right {
         position: fixed;
         top: 100px;
         left: -100%;
         width: 100%;
         height: auto;
         background-color: rgba(255, 255, 255, 1);
         display: flex !important;
         flex-direction: column !important;
         align-items: center !important;
         justify-content: flex-start !important;
         gap: 0.5rem !important;
         transition: left 0.3s ease;
         box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
         z-index: 999;
         padding: 0.5rem 0 !important;
     }

      .nav-right {
          display: flex !important;
      }

      .mobile-only {
          display: flex !important;
      }

     .nav-left.active {
         left: 0;
         display: flex;
     }

     .nav-menu {
         margin: 0;
         padding: 0;
         list-style: none;
     }

     .nav-menu li {
         margin: 0;
         padding: 0;
     }

     .nav-menu a {
         font-size: 1rem;
         letter-spacing: 2px;
         color: #000000;
         padding: 0.25rem 0;
         display: block;
     }

     .nav-menu a.active {
         color: #000000;
         font-weight: 700;
     }

     .nav-menu a:hover {
         color: #000000;
     }

    .logo {
        order: 0;
    }

    /* Contact Section */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-hero {
        margin-bottom: 3rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Footer Tablet */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column-logo,
    .footer-column-links,
    .footer-column-social {
        justify-content: center;
    }

    .footer-logo {
        position: relative;
        height: 100px;
        left: 0;
        transform: none;
    }

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact Section */
    .contact-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about,
    .services,
    .classes,
    .team,
    .pricing,
    .contact {
        padding: 60px 0;
    }
}

/* Mobile Landscape & Below */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 2rem;
    }
}

/* Print Styles */
@media print {

    .navigation,
    .btn,
    .contact-form,
    .footer-social {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        margin-top: 0;
        page-break-after: always;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo-svg,
    .image-placeholder {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 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;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in future */
}

/* ============================================
   Custom Font Loading (Fallback)
   ============================================ */
@font-face {
    font-family: 'TAN Meringue';
    src: local('TAN Meringue'), local('Georgia'), local('serif');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Smooth scrolling with offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade in from right */
.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Scale in */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for children */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-item:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-item:nth-child(8) {
    transition-delay: 0.8s;
}

.stagger-item:nth-child(9) {
    transition-delay: 0.9s;
}

.stagger-item:nth-child(10) {
    transition-delay: 1s;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.logo-img {
    height: 210px;
    max-width: 200px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.footer-links-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .footer-links-group {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
/* ============================================
   Performance Optimizations
   ============================================ */

/* Optimize animations - use GPU acceleration */
.team-member,
.class-card-elegant-content,
.team-photo img {
    will-change: transform;
}

/* Optimize hero image loading */
.hero-image {
    background-size: cover;
    background-position: center;
    contain: layout style paint;
}

/* Reduce repaints on scroll */
.navigation {
    will-change: transform;
}

/* Optimize button interactions */
.btn {
    will-change: background-color, border-color;
}


/* WebP Fallback for older browsers */
@supports not (background-image: url('x.webp')) {
    .classes-hero {
        background-image: url('img/pilates_oraink.png');
    }
}

/* ============================================
   Ultra-Mobile (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .team {
        padding: 40px 0;
    }

    .team .container {
        padding: 0 12px;
    }

    .team-grid {
        gap: 1.5rem;
    }

    .team-member {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    .team-member:nth-child(even) {
        direction: ltr !important;
    }

    .team-member:nth-child(even) > * {
        direction: ltr !important;
    }

    .team-photo {
        height: 380px;
        width: 100%;
    }

    .team-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .team-role {
        font-size: 0.65rem;
        margin-bottom: 0.7rem;
    }

    .team-info {
        padding: 0.75rem 0 0 0;
        justify-content: flex-start;
        text-align: center;
    }

    .team-bio-toggle {
        font-size: 0.8rem;
        display: inline-block;
    }

    .team-bio {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .team-bio-content {
        margin-top: 1rem;
    }
}
