/* ============================================
   ZSENIBAGOLY - Official Brand Colors by Ivett
   Design: Playful, Friendly, Professional
   ============================================ */

/* --- CSS Custom Properties - OFFICIAL BRAND COLORS --- */
:root {
    /* Primary Teal (from logo) */
    --teal-dark: #1a5f6a;
    /* Main owl body, "BAGOLY" text - CONSOLIDATED TO PRIMARY */
    --teal: #1a5f6a;
    /* Slightly lighter - "zseni" text color */
    --teal-light: #7bccc8;
    /* Very light teal for backgrounds */
    --teal-lightest: #d4efed;

    /* Mint/Seafoam */
    --mint: #8fd4c8;
    --mint-light: #d4f0eb;
    --mint-dark: #5fb8a8;
    /* Kept for contrast if needed, check usage */

    /* Lavender */
    --lavender: #b8a9c9;
    --lavender-light: #e8e2f0;
    --lavender-dark: #9585aa;

    /* Peach/Coral */
    --peach: #f5b88a;
    --peach-light: #fde8d8;
    --peach-dark: #e89a5f;

    /* Pink */
    --pink: #f2c4d0;
    --pink-light: #fce8ed;
    --pink-dark: #e5a3b5;

    /* Orange (beak) */
    --orange: #e8945a;
    --orange-dark: #d47a3f;

    /* Neutrals */
    --cream: #fdfcfa;
    --cream-dark: #f5f2ed;
    --cream-warm: #fffbf7;

    --text: #2a3f42;
    --text-muted: #5a7074;
    --text-light: #8aa0a4;

    /* Accessible text-on-background pairs (WCAG AA validated) */
    --text-on-peach: #7a3a15;
    --text-on-mint: #0d4a42;
    --text-on-lavender: #3d2f52;
    --text-on-pink: #6b2040;
    --color-warning-text: #7a3a15;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography - Playful fonts matching logo style */
    --font-display: 'Quicksand', -apple-system, sans-serif;
    --font-body: 'Nunito', -apple-system, sans-serif;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-soft: 0 4px 20px rgba(26, 95, 106, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 95, 106, 0.12);
    --shadow-strong: 0 20px 60px rgba(26, 95, 106, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    /* Safe-area padding for sticky bottom elements on notched devices */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--teal-dark);
}

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

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

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

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* --- Global Text Overflow Prevention --- */
p, h1, h2, h3, h4, h5, h6, li, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- Global Focus States (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--teal-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 3px solid var(--peach);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 184, 138, 0.25);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Background Decorative Shapes --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--teal-light);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--lavender);
    bottom: 20%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--peach);
    bottom: -100px;
    right: 20%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-medium);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.btn svg {
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

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

.btn-primary:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--peach);
    color: var(--teal-dark);
    border-color: var(--peach);
}

.btn-secondary:hover {
    background: var(--peach-dark);
    border-color: var(--peach-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--teal-dark);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
}

.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    border-color: var(--teal-light);
}

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header & Navigation --- */
/* ============================================
   NAVIGATION SYSTEM
   Single source of truth for all nav behavior.
   Mobile breakpoint: 1199px (hamburger below 1200px)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 95, 106, 0.08);
    overflow-x: hidden;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-md);
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
    transform: scale(1.02) translateY(-2px);
}

/* Footer logo styles */
.footer-logo-link .logo-image {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-logo-link:hover .logo-image {
    opacity: 1;
}

/* --- Nav Menu (desktop default) --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-light);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--teal-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--teal-dark);
    color: white !important;
    border-radius: var(--radius-xl);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--teal);
}

/* --- Highlighted nav item (ZseniFészek) --- */
.nav-highlight {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--orange) 0%, var(--peach-dark) 100%);
    color: white !important;
    border-radius: var(--radius-xl);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.3);
    transition: all 0.3s ease;
}

.nav-highlight::after {
    display: none;
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 148, 90, 0.4);
    filter: brightness(1.05);
}

/* --- Dropdown (desktop: hover-based) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 240px;
    padding: 1rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 100;
    list-style: none;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--teal-lightest);
    color: var(--teal-dark);
    padding-left: 1.75rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--teal-lightest);
    margin: 0.5rem 1rem;
}

/* --- Cart icon --- */
.nav-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    color: var(--teal-dark);
    transition: all var(--transition-fast);
}

.nav-cart:hover {
    color: var(--orange);
    transform: scale(1.1);
}

.nav-cart svg {
    display: block;
}

/* --- Hamburger toggle (hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

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

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

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

/* --- Future/Coming Soon Page Indicators --- */
.future-page {
    position: relative;
    background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 100%);
    opacity: 0.75;
}

.future-page::after {
    content: "Hamarosan";
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lavender-dark);
    background: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.future-page:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 100%);
    color: var(--teal-dark);
}

/* ==============================================
   MOBILE NAV — Full-screen overlay (< 1200px)
   Stratos-style immersive mobile menu
   ============================================== */
@media (max-width: 1199px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 999;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px var(--space-lg) var(--space-xl);
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Staggered entrance animation for menu items */
    .nav-menu > li {
        border-bottom: none;
        padding: 0;
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active > li {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu.active > li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.active > li:nth-child(2) { transition-delay: 0.14s; }
    .nav-menu.active > li:nth-child(3) { transition-delay: 0.20s; }
    .nav-menu.active > li:nth-child(4) { transition-delay: 0.26s; }
    .nav-menu.active > li:nth-child(5) { transition-delay: 0.32s; }
    .nav-menu.active > li:nth-child(6) { transition-delay: 0.38s; }
    .nav-menu.active > li:nth-child(7) { transition-delay: 0.44s; }

    /* Reset delay on close for clean exit */
    .nav-menu:not(.active) > li {
        transition-delay: 0s;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        white-space: normal;
        color: var(--teal-dark);
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--teal);
        transform: scale(1.05);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-highlight {
        text-align: center;
        margin-top: var(--space-sm);
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }

    .nav-menu .nav-cart {
        justify-content: center;
        padding: 0.75rem 0 !important;
    }

    .nav-menu .nav-cart svg {
        width: 28px;
        height: 28px;
    }

    /* --- Mobile dropdown: tap-based, not hover --- */
    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        background: rgba(40, 122, 134, 0.05);
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        min-width: 100%;
        margin-top: 0.25rem;
        padding: 0.5rem 0;
        border-radius: var(--radius-md);
    }

    /* Disable desktop hover entirely on mobile */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Only show via JS .active class */
    .dropdown.active .dropdown-menu,
    .dropdown.active:hover .dropdown-menu {
        display: block;
    }

    .dropdown-toggle .dropdown-icon {
        transition: transform var(--transition-fast);
    }

    .dropdown.active .dropdown-toggle .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 0.6rem 1.5rem;
        font-size: 1.05rem;
        white-space: normal;
        text-align: center;
    }
}

/* Small phones: tighter menu spacing */
@media (max-width: 1199px) and (max-height: 700px) {
    .nav-menu {
        padding-top: 80px;
        padding-bottom: var(--space-md);
    }

    .nav-menu .nav-link {
        padding: 0.5rem 0;
        font-size: 1.25rem;
    }

    .nav-menu .nav-highlight {
        font-size: 1.25rem;
        padding: 0.5rem 1.5rem;
    }

    .dropdown-item {
        padding: 0.4rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* --- Urgency banner stacking (any viewport) --- */
body.has-urgency-banner .header {
    z-index: 1050;
}

@media (max-width: 1199px) {
    body.has-urgency-banner .nav-menu {
        z-index: 1040;
        padding-top: calc(100px + 44px);
    }
}

@media (max-width: 768px) {
    body.has-urgency-banner .nav-menu {
        padding-top: calc(100px + 38px);
    }
}

/* V2 Section Title Styles are now in v2-landing.css */

/* (Mobile dropdown + nav-toggle rules consolidated into NAVIGATION SYSTEM above) */

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--teal-dark);
    color: white;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s var(--transition-slow) both;
}

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

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--teal-lightest);
    color: var(--teal-dark);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.text-gradient {
    display: block;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Visual / Owl Illustration */
.hero-visual {
    position: relative;
    animation: slideUp 0.8s 0.2s var(--transition-slow) both;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    will-change: transform;
    animation: floatItem 6s ease-in-out infinite;
}

.float-book {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.float-star {
    top: 15%;
    right: 5%;
    animation-delay: 1s;
}

.float-heart {
    bottom: 30%;
    left: 0%;
    animation-delay: 2s;
}

.float-circle {
    bottom: 20%;
    right: 10%;
    animation-delay: 0.5s;
}

@keyframes floatItem {

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

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Hero wave transition */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* --- Features Bar (3 Cols) --- */
.features-bar {
    padding: var(--space-xl) 0;
    background: white;
    /* Clean white background below hero */
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--cream);
    /* Very subtle tint */
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--mint);
    /* Cyan/Mint tone */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Blobby shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 12px rgba(143, 212, 200, 0.3);
}

.feature-title {
    color: var(--teal-dark);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.feature-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--teal-dark);
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-grid-new {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bg-shape {
        width: 100%;
        height: 60%;
        top: 0;
        left: 0;
        border-radius: 0 0 50px 50px;
        transform: none;
    }

    .hero-content-new {
        padding-left: 0;
        order: 1;
        /* Image first on mobile? Or text? Design usually text first */
    }

    .hero-visual-new {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .centered-nav {
        /* Keep row on mobile for toggle? No, rely on JS */
        align-items: stretch;
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--teal-dark);
    color: white;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-sm);
}

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

.section-subtitle {
    font-size: 1.125rem;
}

/* --- Courses Section --- */
.courses {
    padding: var(--space-2xl) 0;
    background: var(--cream-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.course-card {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-medium);
    border: 2px solid transparent;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--teal-light);
}

.course-featured {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    color: white;
    grid-row: span 2;
}

.course-featured .course-title,
.course-featured .course-desc {
    color: white;
}

.course-featured .course-desc {
    opacity: 0.9;
}

.course-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.375rem 0.75rem;
    background: var(--peach);
    color: var(--teal-dark);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
}

.course-icon {
    margin-bottom: var(--space-md);
}

.course-title {
    margin-bottom: var(--space-sm);
}

.course-desc {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.course-features {
    margin-bottom: var(--space-lg);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: white;
    opacity: 0.85;
}

.course-features li::before {
    content: '✓';
    font-weight: bold;
    color: var(--teal-light);
}

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

/* --- Hero Image Styling --- */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(26, 95, 106, 0.2),
        0 8px 24px rgba(26, 95, 106, 0.1);
    background: linear-gradient(135deg, var(--teal-lightest), var(--mint-light));
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(123, 204, 200, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 72px rgba(26, 95, 106, 0.25),
        0 12px 32px rgba(26, 95, 106, 0.12);
}

.hero-img-main {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Owl overlapping the hero image */
.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.owl-container {
    position: absolute;
    bottom: -30px;
    right: -20px;
    z-index: 3;
    filter: drop-shadow(0 12px 24px rgba(26, 95, 106, 0.2));
    transition: transform var(--transition-medium);
}

.owl-container:hover {
    transform: translateY(-6px) rotate(-3deg);
}

.owl-main {
    width: 100%;
    max-width: 160px;
    height: auto;
    filter: none;
}

.owl-main:hover {
    transform: none;
    filter: none;
}

/* --- Course Card Image Styling --- */
.course-image-wrapper {
    position: relative;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
    width: calc(100% + 2 * var(--space-lg));
    overflow: hidden;
    background: var(--cream-dark);
}

.course-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--cream) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.course-featured .course-image-wrapper::after {
    background: linear-gradient(to top, var(--teal-dark) 0%, transparent 100%);
}

.course-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
}

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

.course-featured .course-img {
    height: 260px;
}

/* Course icon positioning on top of image */
.course-image-wrapper + .course-icon {
    position: relative;
    margin-top: -28px;
    margin-bottom: var(--space-sm);
    z-index: 2;
}

.course-image-wrapper + .course-icon svg {
    box-shadow: 0 4px 12px rgba(26, 95, 106, 0.15);
    border-radius: 50%;
    background: white;
}

/* --- Courses Section --- */
.courses {
    padding: var(--space-2xl) 0;
    background: var(--cream-dark);
    position: relative;
}

/* --- About Section --- */
.about {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 3 / 4;
    background: var(--cream-dark);
}

.image-frame .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--teal-light);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.image-placeholder {
    aspect-ratio: 1;
    background: var(--cream-dark);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--teal-dark);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-content .section-tag {
    margin-bottom: var(--space-sm);
}

.about-content .section-title {
    margin-bottom: var(--space-xs);
}

.about-role {
    color: var(--teal-dark);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.about-text {
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cream-dark);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Guarantee Section --- */
.guarantee {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
}

.guarantee-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.guarantee-icon {
    margin-bottom: var(--space-md);
}

.guarantee-title {
    color: white;
    margin-bottom: var(--space-md);
}

.guarantee-text {
    color: white;
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

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

.gf-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: white;
    font-weight: 500;
}

/* Guarantee card reset (homepage) */
.guarantee .guarantee-card {
    background: transparent;
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.guarantee .guarantee-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* --- Contact Section --- */
.contact {
    padding: var(--space-2xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info .section-tag {
    margin-bottom: var(--space-sm);
}

.contact-info .section-title {
    margin-bottom: var(--space-sm);
}

.contact-text {
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream-dark);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: var(--teal-lightest);
    transform: translateX(8px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-dark);
    color: white;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.label-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-value {
    display: block;
    font-weight: 600;
    color: var(--teal-dark);
}

/* Contact Form */
.contact-form {
    background: var(--cream-dark);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--teal-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    border: 2px solid var(--cream);
    border-radius: var(--radius-sm);
    background: var(--cream);
    transition: var(--transition-fast);
    -webkit-appearance: none; /* Consistent styling on iOS */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--teal-light);
    outline-offset: 2px;
    border-color: var(--teal-light);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

/* --- Footer --- */
.footer {
    background: var(--teal-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: white;
    opacity: 0.75;
    font-size: 0.95rem;
}

.footer-nav h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: white;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--teal-light);
}

.footer-social h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: white;
    opacity: 0.75;
    font-size: 0.875rem;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-subtitle {
        margin: 0 auto var(--space-lg);
    }

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

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

    .hero-image-wrapper {
        max-width: 340px;
    }

    .owl-container {
        bottom: -20px;
        right: -10px;
    }

    .owl-main {
        max-width: 120px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

/* (Mobile nav rules consolidated into NAVIGATION SYSTEM section above) */

/* Mobile/Tablet layout (< 992px) */
@media (max-width: 991px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .logo-icon {
        height: 50px;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: calc(70px + var(--space-xl));
        min-height: auto;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .owl-container {
        bottom: -16px;
        right: -5px;
    }

    .owl-main {
        max-width: 100px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-featured {
        grid-row: auto;
    }

    .course-img {
        height: 180px;
    }

    .course-featured .course-img {
        height: 200px;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        flex: 0 0 calc(50% - var(--space-md));
    }

    .guarantee-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

/* (Urgency banner nav stacking consolidated into NAVIGATION SYSTEM section above) */

/* ============================================
   GLOBAL: Mobile (768px) Enhancements
   ============================================ */
@media (max-width: 768px) {
    /* Reduce spacing on mobile */
    :root {
        --space-lg: 2rem;
    }

    /* Footer grid single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

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

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

    /* Form improvements */
    .form-group textarea {
        min-height: 100px;
    }

    /* Checkbox touch target */
    .form-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    /* Button sizing */
    .btn-large {
        padding: 0.95rem 1.8rem;
        font-size: 1rem;
    }
}

/* --- Global overflow prevention ---
   Prevent any element from causing horizontal scroll on mobile.
   overflow-x: hidden is the fallback for in-app browsers (Facebook, etc.)
   that don't support overflow-x: clip. */
main,
section,
.footer {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Images and media must never exceed their container */
img,
video,
iframe,
svg:not(.dropdown-icon):not(.spinner) {
    max-width: 100%;
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.75rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .btn-large {
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: var(--space-md) auto 0;
    }

    /* Container tighter padding */
    .container {
        padding: 0 var(--space-sm);
    }

    /* Form compact */
    .form-group textarea {
        min-height: 80px;
    }

    .contact-form {
        padding: var(--space-md);
    }

    /* Persona closing */
    .persona-closing-highlight {
        font-size: 1.05rem;
    }

    /* Section titles */
    .hv2-section-title,
    .fv2-section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animations for cards */
.course-card:nth-child(1) {
    transition-delay: 0.1s;
}

.course-card:nth-child(2) {
    transition-delay: 0.2s;
}

.course-card:nth-child(3) {
    transition-delay: 0.3s;
}

.course-card:nth-child(4) {
    transition-delay: 0.4s;
}

.course-card:nth-child(5) {
    transition-delay: 0.5s;
}

.course-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--teal-dark);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-family: var(--font-display);
    font-weight: 600;
    transition: top var(--transition-fast);
}

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

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

    html {
        scroll-behavior: auto;
    }

    .shape,
    .float-item {
        animation: none !important;
    }
}

/* ============================================
   GLOBAL IMAGE UTILITIES — Reusable across all pages
   ============================================ */

/* Framed image with border, shadow and rounded corners */
.img-framed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Image wrapper with shadow and rounded overflow */
.img-frame-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--cream-dark);
}

.img-frame-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular portrait frame */
.img-circle {
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
    background: var(--cream-dark);
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product card image wrapper */
.product-card-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream-dark);
    aspect-ratio: 4 / 3;
    margin-bottom: var(--space-md);
}

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

.product-card-image img[style*="padding"] {
    object-fit: contain;
}

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

/* Category highlight images */
.category-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    background: var(--cream-dark);
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured course card images (akcio page) */
.featured-course-card-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: var(--space-md);
    background: var(--cream-dark);
}

.featured-course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Workspace gallery grid (kapcsolat) */
.workspace-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.workspace-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.workspace-gallery > * {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

/* Team portrait */
.team-photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
}

.team-photo-wrapper .team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
}

/* Composite image pair */
.team-composite {
    display: flex;
    gap: 0;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-composite img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Downsell and section-level images */
.ds-section-img img,
.mockup-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* Instructor photo (course pages — real photo) */
.instructor-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 95, 106, 0.12);
    position: relative;
    background: linear-gradient(135deg, var(--teal-lightest) 0%, var(--mint-light) 100%);
}

.instructor-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--teal-light);
    opacity: 0.4;
    animation: instructor-ring-rotate 20s linear infinite;
}

.instructor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Downsell instructor photo */
.ds-instructor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-dark);
    box-shadow: var(--shadow-medium);
}

.ds-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Story image frame (rolam page) */
.story-img-frame {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 5px solid white;
}

.story-img-frame .story-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission/generic image frame */
.img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

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

/* Responsive image utilities */
@media (max-width: 991px) {
    .workspace-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .instructor-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .team-photo-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .instructor-image-wrapper {
        width: 130px;
        height: 130px;
    }

    .ds-instructor-photo {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   IMAGE PLACEHOLDERS — For future AI generation
   ============================================ */

.img-placeholder {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px dashed var(--teal-light);
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--teal-lightest) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    overflow: hidden;
    transition: var(--transition-medium);
}

.img-placeholder:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-soft);
}

/* Aspect ratio variants */
.img-placeholder--hero { aspect-ratio: 16 / 10; }
.img-placeholder--portrait { aspect-ratio: 3 / 4; }
.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--card { aspect-ratio: 3 / 2; }
.img-placeholder--wide { aspect-ratio: 21 / 9; }
.img-placeholder--cover { aspect-ratio: 4 / 3; }

/* Color theme variants */
.img-placeholder--pink {
    border-color: var(--pink-dark);
    background: linear-gradient(135deg, var(--pink-light) 0%, #fce8ed 100%);
}
.img-placeholder--lavender {
    border-color: var(--lavender);
    background: linear-gradient(135deg, var(--lavender-light) 0%, #f0ecf5 100%);
}
.img-placeholder--teal {
    border-color: var(--teal-light);
    background: linear-gradient(135deg, var(--teal-lightest) 0%, #e8f6f5 100%);
}
.img-placeholder--mint {
    border-color: var(--mint);
    background: linear-gradient(135deg, var(--mint-light) 0%, #e8f8f3 100%);
}
.img-placeholder--peach {
    border-color: var(--peach);
    background: linear-gradient(135deg, var(--peach-light) 0%, #fff3eb 100%);
}
.img-placeholder--orange {
    border-color: var(--orange);
    background: linear-gradient(135deg, #fde8d8 0%, #fff0e0 100%);
}

.img-placeholder__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
    opacity: 0.6;
    line-height: 1;
}

.img-placeholder__id {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    background: rgba(255,255,255,0.7);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: var(--space-xs);
}

.img-placeholder__desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
}

.img-placeholder__desc strong {
    color: var(--text);
    font-weight: 600;
}

/* When used inside course cards */
.course-card .img-placeholder {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
    width: calc(100% + 2 * var(--space-lg));
    padding: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .img-placeholder__desc {
        font-size: 0.7rem;
    }
    .img-placeholder__icon {
        font-size: 2rem;
    }
    .img-placeholder--hero {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================
   PERSONA CARDS — Shared across all pages
   Design: Soft gradient cards, overlapping circular
   avatars, decorative quotes, tier badges
   ============================================ */

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding-top: 60px;
}

.persona-card {
    position: relative;
    border-radius: 20px;
    padding: 70px var(--space-lg) var(--space-lg);
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.persona-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 95, 106, 0.15);
}

/* Color variants */
.persona-lila {
    background: linear-gradient(160deg, #f3eef8 0%, #e8e0f0 40%, #ddd4ea 100%);
}

.persona-turkiz {
    background: linear-gradient(160deg, #e6f4f2 0%, #d4efed 40%, #c5e8e4 100%);
}

.persona-rozsaszin {
    background: linear-gradient(160deg, #fdf0f3 0%, #fce4eb 40%, #f8d6e0 100%);
}

/* Avatar — circular, overlapping top edge */
.persona-avatar {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.persona-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Name */
.persona-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

/* Quote with decorative marks */
.persona-quote {
    position: relative;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-md);
}

.persona-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: -4px;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--teal-light);
    opacity: 0.5;
    line-height: 1;
}

/* Tier badge */
.persona-tier-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.persona-lila .persona-tier-tag {
    background: var(--lavender-light);
    color: var(--text);
}

.persona-turkiz .persona-tier-tag {
    background: var(--teal-dark);
    color: white;
}

.persona-rozsaszin .persona-tier-tag {
    background: var(--pink-light);
    color: var(--text);
}

/* Bullet points with checkmarks */
.persona-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.persona-bullets li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.persona-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5f6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.persona-lila .persona-bullets li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239585aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.persona-rozsaszin .persona-bullets li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5a3b5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* Closing CTA */
.persona-closing {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.persona-closing-highlight {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.25rem;
}

.persona-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Responsive */
@media (max-width: 991px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .persona-grid > :last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .persona-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-top: 50px;
        max-width: 400px;
        margin: 0 auto;
    }

    .persona-grid > :last-child {
        max-width: none;
    }

    .persona-card {
        padding: 60px var(--space-md) var(--space-md);
    }

    .persona-avatar {
        width: 96px;
        height: 96px;
        top: -44px;
    }

    .persona-card h3 {
        font-size: 1.2rem;
    }

    .persona-closing-highlight {
        font-size: 1.15rem;
    }
}

/* ============================================
   GLOBAL: Sticky CTA Bar (Mobile)
   Shared base for all course/subscription pages.
   Page-specific colours override via page CSS.
   ============================================ */
.global-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(26, 95, 106, 0.12);
    padding: 0.85rem var(--space-md);
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-sticky-cta.visible {
    transform: translateY(0);
}

.global-sticky-cta-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--teal-dark);
}

.global-sticky-cta-text .sticky-price {
    color: var(--peach-dark);
    font-weight: 800;
}

.global-sticky-cta .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.global-sticky-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 95, 106, 0.25);
}

@media (max-width: 600px) {
    .global-sticky-cta {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.6rem var(--space-sm);
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    }
    .global-sticky-cta-text {
        font-size: 0.82rem;
    }
    .global-sticky-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
    }
}

/* ============================================
   GLOBAL: FAQ Accordion Base
   Shared structure; page CSS provides colours.
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--teal);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   GLOBAL: Reduced Motion (Accessibility)
   ============================================ */
@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;
    }

    .bg-shapes,
    .floating-elements {
        display: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {

    .header,
    .hero-wave,
    .bg-shapes,
    .floating-elements {
        display: none;
    }

    .hero {
        padding-top: var(--space-lg);
        min-height: auto;
    }

    body {
        background: white;
    }
}