:root {
    --navy: #0A2E3D;
    --navy-light: #0E3E52;
    --blue: #0D7377;
    --blue-accent: #14A3A8;
    --teal: #00BFA5;
    --teal-light: #2DD4BF;
    --teal-dark: #0B5E6B;
    --cream: #F4F9FA;
    --white: #FFFFFF;
    --gray-100: #EDF3F4;
    --gray-200: #D5E0E2;
    --gray-400: #7A9196;
    --gray-600: #4A5D62;
    --gray-800: #1C2E33;
    --red: #C0392B;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── TAPETY (utlumené pozadí) ─── */
body.page-home,
body.page-aplikace,
body.page-skoleni,
body.page-kontakt {
    position: relative;
}

body.page-home::before,
body.page-aplikace::before,
body.page-skoleni::before,
body.page-kontakt::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

body.page-home::before {
    background-image: url('Ikony/tapeta1.jpeg');
}

body.page-aplikace::before {
    background-image: url('Ikony/tapeta2.jpeg');
}

body.page-skoleni::before {
    background-image: url('Ikony/tapeta3.jpeg');
}

body.page-kontakt::before {
    background-image: url('Ikony/tapeta2.jpeg');
}

/* ─── HEADER (light) ─── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    transition: all 0.4s var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(10,46,61,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 140px;
    width: auto;
    display: block;
}

nav { display: flex; gap: 0.15rem; align-items: center; }

nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s var(--transition);
}

nav a:hover { color: var(--navy); }
nav a.active { color: var(--teal); font-weight: 600; }

nav a.cta-nav {
    background: var(--teal);
    color: var(--white);
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    margin-left: 0.75rem;
}
nav a.cta-nav:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,191,165,0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px; height: 2px;
    background: var(--navy);
    transition: all 0.3s var(--transition);
    border-radius: 1px;
    display: block;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0,191,165,0.25);
}
.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,191,165,0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.btn-white {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-white:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* ─── SECTION WAVES & DIVIDERS ─── */
.section-wave {
    position: relative;
    line-height: 0;
    overflow: visible;
    z-index: 1;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-hero-to-white {
    background: rgba(255,255,255,0.7);
    margin-top: -1px;
}

.wave-hero-to-cream {
    background: rgba(244,249,250,0.7);
    margin-top: -1px;
}

.wave-to-navy {
    background: rgba(244,249,250,0.7);
    margin-bottom: -1px;
}

.wave-icon {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(10,46,61,0.10);
    z-index: 5;
}

.wave-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 2rem;
    background: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.divider-icon {
    width: 40px;
    height: 40px;
    opacity: 0.35;
    flex-shrink: 0;
}

.divider-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-section h2,
.cta-section p,
.cta-section .btn { position: relative; z-index: 1; }

/* ─── SECTIONS ─── */
section { padding: 5rem 2rem; }
section.bg-cream { background: rgba(244,249,250,0.7); position: relative; z-index: 1; }
section.bg-white { background: rgba(255,255,255,0.7); position: relative; z-index: 1; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ─── MAIN HERO (dark, split layout) ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
    background: var(--navy);
}

/* Animated gradient overlay — smooth shifting */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13,115,119,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,191,165,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(20,163,168,0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: gradientShift 16s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
    25% { background-position: 50% 0%, 50% 50%, 100% 50%, 0% 0%; }
    50% { background-position: 100% 50%, 0% 100%, 50% 0%, 0% 0%; }
    75% { background-position: 50% 100%, 50% 50%, 0% 50%, 0% 0%; }
    100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 0%; }
}

/* Grid mesh pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0,191,165,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,165,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 70%);
}

/* Scan line effect */
.hero::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, rgba(0,191,165,0.4) 30%, rgba(0,191,165,0.6) 50%, rgba(0,191,165,0.4) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(0,191,165,0.3), 0 0 60px rgba(0,191,165,0.1);
    animation: scanLine 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scanLine {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    animation: particleFloat 8s infinite;
}

.p1 { width: 4px; height: 4px; left: 15%; top: 30%; animation-delay: 0s; }
.p2 { width: 3px; height: 3px; left: 45%; top: 20%; animation-delay: 1.5s; }
.p3 { width: 5px; height: 5px; left: 75%; top: 60%; animation-delay: 3s; }
.p4 { width: 3px; height: 3px; left: 85%; top: 25%; animation-delay: 4.5s; }
.p5 { width: 4px; height: 4px; left: 25%; top: 70%; animation-delay: 2s; }
.p6 { width: 3px; height: 3px; left: 60%; top: 80%; animation-delay: 5.5s; }
.p7 { width: 6px; height: 6px; left: 50%; top: 45%; animation-delay: 1s; animation-duration: 10s; }
.p8 { width: 2px; height: 2px; left: 35%; top: 55%; animation-delay: 3.5s; }
.p9 { width: 4px; height: 4px; left: 70%; top: 15%; animation-delay: 6s; animation-duration: 9s; }
.p10 { width: 3px; height: 3px; left: 90%; top: 65%; animation-delay: 7s; }

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
    80% { opacity: 0.3; transform: translateY(-80px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* Pixel pattern */
.hero-pixels {
    position: absolute;
    bottom: 40px; right: 20px;
    width: 300px; height: 300px;
    opacity: 0.15;
    z-index: 3;
    background-image: radial-gradient(circle, var(--teal) 2px, transparent 2px);
    background-size: 16px 16px;
    mask-image: radial-gradient(ellipse 160px 160px at 70% 70%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 160px 160px at 70% 70%, black 10%, transparent 70%);
    animation: pixelDrift 20s ease-in-out infinite;
}

@keyframes pixelDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -8px); }
}

/* Split layout */
.hero-split {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.hero-text { text-align: left; }

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(0,191,165,0.1);
    border: 1px solid rgba(0,191,165,0.2);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--transition) 0.1s both;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,191,165,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,191,165,0); }
}

.hero h1 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s var(--transition) 0.2s both;
}

.hero-highlight {
    font-weight: 600;
    font-style: normal;
    position: relative;
    display: inline;
    background: linear-gradient(135deg, var(--white) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: underlineReveal 1.2s var(--transition) 1s both;
    box-shadow: 0 0 8px rgba(0,191,165,0.4);
}

@keyframes underlineReveal {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 0.7; transform: scaleX(1); }
}

.hero-simply {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-style: italic;
    animation: fadeInUp 0.8s var(--transition) 0.35s both;
}

.hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--transition) 0.45s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--transition) 0.55s both;
}

/* Outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s var(--transition);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(0,191,165,0.05);
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeInUp 0.8s var(--transition) 0.7s both;
}

.hero-stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
}

/* ─── Hero visual (right side) ─── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 1s var(--transition) 0.3s both;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Glow behind icon */
.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,191,165,0.2) 0%, rgba(20,163,168,0.08) 50%, transparent 70%);
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Icon ring */
.hero-icon-ring {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(0,191,165,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ringRotate 30s linear infinite;
}

.hero-icon-ring::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--teal);
    animation: ringRotate 8s linear infinite;
}

.hero-icon-ring::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,191,165,0.08);
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.hero-icon-inner {
    width: 200px;
    height: 200px;
    animation: ringRotateReverse 30s linear infinite;
}

@keyframes ringRotateReverse {
    to { transform: rotate(-360deg); }
}

.hero-icon-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0,191,165,0.3));
}

/* Floating accent emojis */
.hero-float {
    position: absolute;
    font-size: 1.6rem;
    background: rgba(10,46,61,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,191,165,0.15);
    border-radius: 12px;
    padding: 0.6rem;
    line-height: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: floatBounce 6s ease-in-out infinite;
}

.hero-float-1 { top: 5%; left: 5%; animation-delay: 0s; }
.hero-float-2 { top: 15%; right: 0; animation-delay: 2s; }
.hero-float-3 { bottom: 10%; left: 15%; animation-delay: 4s; }

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--teal), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
    100% { opacity: 1; transform: scaleY(1); }
}

/* ─── FEATURES ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--transition);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10,46,61,0.08);
}

.feature-icon {
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── TRUST BAR ─── */
.trust-bar {
    background: rgba(244,249,250,0.7);
    padding: 3.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.trust-bar .section-inner {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-item { text-align: center; color: var(--navy); }

.trust-number {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ─── CTA BANNER ─── */
.cta-section {
    background: rgba(255,255,255,0.7);
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(10,46,61,0.55);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.wave-cta-to-footer {
    background: rgba(255,255,255,0.7);
    margin-bottom: -1px;
}

/* ─── PAGE HERO (subpages) ─── */
.page-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    padding-top: calc(72px + 4rem);
    overflow: hidden;
    background: var(--navy);
    text-align: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,46,61,0.9) 0%, rgba(10,46,61,0.75) 50%, rgba(10,46,61,0.95) 100%),
        linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    z-index: 0;
}

/* Decorative Q for subpage hero */
.page-hero-q {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}
.page-hero-q svg, .page-hero-q img { width: 100%; height: 100%; object-fit: contain; }

.page-kontakt .page-hero-q { top: 65%; }

.page-hero .section-inner { position: relative; z-index: 2; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-subtitle { color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; }
.page-hero .section-label { color: var(--teal-light); }

/* ─── DETAIL SECTIONS ─── */
.detail-section { padding: 5rem 2rem; position: relative; z-index: 1; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-grid.reversed { direction: rtl; }
.detail-grid.reversed > * { direction: ltr; }

.detail-visual {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.detail-visual-dark {
    background: var(--navy);
    border-color: var(--navy-light);
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.detail-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: rgba(0,191,165,0.1);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: rgba(13,115,119,0.08);
    border: 1px solid rgba(13,115,119,0.12);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    margin: 0.2rem;
}

.meta-tags-cloud { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ─── PROCESS FLOW ─── */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--transition);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,46,61,0.08);
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: -16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 32px;
}

.process-icon { font-size: 2rem; margin-bottom: 1rem; width: 100px; height: 100px; margin-left: auto; margin-right: auto; }
.process-icon img { width: 100%; height: 100%; object-fit: contain; }
.process-title { font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.process-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

/* ─── TRAINING CARDS ─── */
.training-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.training-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--transition);
    border: 1px solid var(--gray-200);
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(10,46,61,0.1);
}

.training-card-top { padding: 2rem 2rem 0; }

.training-type {
    display: inline-flex;
    padding: 0.3rem 0.85rem;
    background: var(--teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.training-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.training-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; }

.training-card-bottom {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.training-detail { font-size: 0.85rem; color: var(--gray-400); }
.training-detail strong { color: var(--navy); font-weight: 600; }

/* ─── FAQ ─── */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--blue-accent); }

.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s var(--transition);
    color: var(--teal);
}

.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition);
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
    padding-bottom: 1.25rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    height: fit-content;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-row:last-child { border-bottom: none; }

.contact-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.contact-label { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 0.15rem; }
.contact-value { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.contact-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.contact-form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-form-card > p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.form-group label span { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--cream);
    transition: all 0.3s var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,191,165,0.1);
    background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit { width: 100%; padding: 0.85rem; justify-content: center; }

/* ─── FOOTER ─── */
footer {
    background: rgba(10,46,61,0.85);
    padding: 2rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .logo-img {
    height: 140px;
    width: auto;
    margin: -2rem 0 -1rem -1rem;
    display: block;
}

.footer-brand p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-legal a:hover { color: var(--teal-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
    .hero-split { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-icon-ring { width: 240px; height: 240px; }
    .hero-icon-inner { width: 150px; height: 150px; }
    .hero-glow { width: 250px; height: 250px; }
    .hero-float { font-size: 1.2rem; padding: 0.4rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .process-flow { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .detail-grid.reversed { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .training-cards { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .hamburger { display: flex; }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 72px;
        padding: 0 1.25rem;
        align-content: center;
        overflow: hidden;
    }

    .logo { flex: 1; min-width: 0; overflow: hidden; height: 72px; display: flex; align-items: center; }
    .logo-img { height: 140px; }

    nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        padding: 0.5rem 0 1rem;
        gap: 0.15rem;
        border-top: 1px solid var(--gray-200);
    }

    nav.open { display: flex; }

    nav a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        color: var(--navy);
    }

    nav a.active { color: var(--teal); }

    nav a.cta-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .process-flow { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr !important; }
    .trust-bar .section-inner { gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-inner { padding: 0 1rem; }
    .hero h1 { font-size: 2rem; }
    .hero-icon-ring { width: 200px; height: 200px; }
    .hero-icon-inner { width: 120px; height: 120px; }
    .hero-stats { gap: 1rem; flex-wrap: wrap; }
    .hero-float { display: none; }
    section { padding: 3.5rem 1.25rem; }
    .section-wave svg { height: 50px; }
    .wave-icon { width: 36px; height: 36px; bottom: -18px; padding: 6px; }
    .divider-line { max-width: 120px; }
    .divider-icon { width: 30px; height: 30px; }
}

/* ─── Cookie banner ─── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem 2rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cookie-banner p {
    margin: 0;
    color: rgba(255,255,255,0.8);
}
.cookie-banner a {
    color: var(--teal-light);
    text-decoration: underline;
}
.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
    background: var(--teal);
    color: var(--white);
}
.cookie-btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
}
@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.25rem;
    }
}
