/* ============================================================
   Eurokreator — Custom Design System
   Built on top of Tailwind CSS utility layer
   ============================================================ */

/* --- Base & Reset Additions --- */
/* Fonts loaded via <link> in header.php — no @import here (render-blocking) */

:root {
    --brand-orange: #E87A1D;
    --brand-orange-hover: #D4690F;
    --brand-orange-light: #FEF3E8;
    --brand-orange-50: rgba(232, 122, 29, 0.08);
    --brand-graphite: #2D2D2D;
    --brand-graphite-light: #4A4A4A;

    --funnel-blue: #2563EB;
    --funnel-blue-light: #EFF6FF;
    --funnel-green: #059669;
    --funnel-green-light: #ECFDF5;
    --funnel-purple: #7C3AED;
    --funnel-purple-light: #F5F3FF;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    --header-height: 6rem;
}

/* --- Smooth scroll with offset for sticky header --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--brand-graphite);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body { font-size: 1.0625rem; }
}

@media (min-width: 1280px) {
    body { font-size: 1.1875rem; line-height: 1.75; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}

.font-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* --- Navigation --- */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* A `backdrop-filter: blur(6px)` on this position:fixed header used to live here
   (desktop only). It was the dominant scroll-jank cause: on every scroll frame the
   compositor had to re-rasterise AND re-blur the live content passing under the header,
   and while the hero is on screen that content is the most expensive on the page
   (stretched background image + large text-shadow halos) — hence "slow only at the top".
   The header background is already rgba(255,255,255,0.97) (see .site-header), so a 6px
   blur of the remaining ~3% was imperceptible. Removed for smooth scrolling. */

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.97);
}

.nav-link {
    position: relative;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-graphite);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 1px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

.btn-primary:hover {
    background: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 122, 29, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-graphite);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--brand-graphite);
    background: var(--gray-50);
}

.btn-blue {
    background: var(--funnel-blue);
    color: #fff;
    border-color: var(--funnel-blue);
}

.btn-blue:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-green {
    background: var(--funnel-green);
    color: #fff;
    border-color: var(--funnel-green);
}

.btn-green:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-purple {
    background: var(--funnel-purple);
    color: #fff;
    border-color: var(--funnel-purple);
}

.btn-purple:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

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

.btn-outline-orange:hover {
    background: var(--brand-orange);
    color: #fff;
}

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

.btn-outline-green:hover {
    background: var(--funnel-green);
    color: #fff;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1875rem;
}

/* --- Cards --- */
.card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-flat {
    border: none;
    background: var(--gray-50);
}

.card-flat:hover {
    background: var(--gray-100);
    box-shadow: none;
    transform: none;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.badge-orange {
    background: var(--brand-orange-light);
    color: var(--brand-orange);
}

.badge-blue {
    background: var(--funnel-blue-light);
    color: var(--funnel-blue);
}

.badge-green {
    background: var(--funnel-green-light);
    color: var(--funnel-green);
}

.badge-purple {
    background: var(--funnel-purple-light);
    color: var(--funnel-purple);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* --- Section layout --- */
.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

.section-lg {
    padding: 8rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: var(--gray-900);
    color: #fff;
}

.section-dark > * {
    position: relative;
    z-index: 1;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.55);
}

.section-dark ::selection {
    background: var(--brand-orange);
    color: #fff;
}
.section-dark ::-moz-selection {
    background: var(--brand-orange);
    color: #fff;
}


/* Dark-section card-flat: glassmorphism style */
.section-dark .card-flat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.section-dark .card-flat:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.section-dark .card-flat h3 {
    color: #fff;
}
.section-dark .card-flat p {
    color: rgba(255, 255, 255, 0.55);
}

.section-heading {
    margin-bottom: 3.5rem;
}

.overline,
.section-heading .overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    margin-bottom: 0.75rem;
    text-decoration: none !important;
}

.section-heading .overline::before,
.section-heading .overline::after {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--brand-orange);
    border-radius: 1px;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 42rem;
    line-height: 1.7;
}

/* --- Stat bar --- */
.stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, var(--gray-50) 50%, var(--brand-orange-50) 100%);
}

.hero-home {
    min-height: max(440px, 62vh);
    padding: 3.25rem 0;
    background-image: url('../images/hero-network-mobile.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.hero-home > * {
    position: relative;
    z-index: 2;
}

/* Home hero H1 (text-display is used ONLY here). The docx headline is much longer than the
   old "Nowoczesne szkolenia. Realne efekty." it was sized for, so the original
   clamp(2rem,6vw,5.5rem) wrapped to 5-6 lines and pushed the CTA + trust line below the fold.
   Cap it smaller so the whole hero (headline → CTA → proof) fits the first screen. */
.text-display {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    line-height: 1.08 !important;
}

@media (min-width: 769px) {
    .hero-home {
        background-image: url('../images/hero-network-desktop.webp');
    }
}

.hero-sub {
    min-height: auto;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
}

.hero-geometric {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, var(--brand-orange-50) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Trust bar --- */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.trust-bar-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-300);
}

/* --- Training cards --- */
.training-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.training-card .card-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.training-card .card-body p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
}

.training-card .card-footer {
    padding: 1.125rem 1.75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Top colored accent on training cards */
.training-card[data-category="sprzedaz"] { border-top: 3px solid var(--funnel-blue); }
.training-card[data-category="komunikacja"] { border-top: 3px solid #0891B2; }
.training-card[data-category="zarzadzanie"] { border-top: 3px solid var(--brand-orange); }
.training-card[data-category="ai-cyfrowe"] { border-top: 3px solid var(--funnel-purple); }
.training-card[data-category="edukacja"] { border-top: 3px solid var(--funnel-green); }
.training-card[data-category="specjalistyczne"] { border-top: 3px solid #EC4899; }

/* --- Trainer cards --- */
.trainer-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.trainer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--gray-100);
    transition: border-color 0.3s ease;
}

.trainer-card:hover .trainer-avatar {
    border-color: var(--brand-orange);
}

/* --- Project cards --- */
.project-card .project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.project-card .project-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.project-card .project-status.active::before { background: var(--funnel-green); }
.project-card .project-status.completed::before { background: var(--gray-400); }

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--brand-graphite);
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(232, 122, 29, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

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

/* --- Triple CTA block --- */
.cta-triple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cta-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.cta-card:hover {
    transform: translateY(-3px);
}

.cta-card.blue {
    background: var(--funnel-blue-light);
    border-color: rgba(37, 99, 235, 0.12);
}

.cta-card.green {
    background: var(--funnel-green-light);
    border-color: rgba(5, 150, 105, 0.12);
}

.cta-card.purple {
    background: var(--funnel-purple-light);
    border-color: rgba(124, 58, 237, 0.12);
}

.cta-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--brand-orange);
}

.breadcrumbs .sep {
    color: var(--gray-300);
}

/* --- FAQ accordion --- */
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-trigger:hover {
    color: var(--brand-orange);
}

.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-content-inner {
    padding: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* --- Client logos --- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.logo-grid img {
    max-height: 48px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Timeline (projects) --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-orange);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-orange);
    transform: translateX(-4px);
}

.timeline-item.completed::before {
    background: var(--gray-400);
    box-shadow: 0 0 0 2px var(--gray-400);
}

/* --- Footer --- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
}

.site-footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    margin-bottom: 1.25rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA shiver removed — primary buttons no longer shake on hover/click (kept the subtle lift only). */

/* Scroll reveal */
.aos-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delays for children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* --- Counter animation --- */
.counter {
    display: inline-block;
}

/* --- Mobile menu overlay --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 85vw);
    background: #fff;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--gray-50);
    color: var(--brand-orange);
}

/* --- Rich text / prose --- */
.prose {
    max-width: 65ch;
    color: var(--gray-700);
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose li::marker {
    color: var(--brand-orange);
}

.prose a {
    color: var(--brand-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--brand-orange-hover);
}

.prose blockquote {
    border-left: 3px solid var(--brand-orange);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--gray-600);
    font-style: italic;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th, .prose td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.prose th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
}

/* --- Utility adjustments --- */
.container-narrow {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 3rem;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 2px;
}

/* Image placeholder for development */
.img-placeholder {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Global mobile overflow prevention --- */
.section-dark {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Responsive: very small screens --- */
@media (max-width: 380px) {
    .max-w-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .section {
        padding: 1.75rem 0;
    }

    .section-lg {
        padding: 2rem 0;
    }

    .hero-home {
        padding: 1.25rem 0;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    .btn-lg {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    .card {
        border-radius: 0.625rem;
    }

    .cta-card {
        padding: 1rem;
    }

    .training-card .card-body {
        padding: 1rem;
    }

    .section-heading {
        margin-bottom: 1.5rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* --- Responsive: mobile --- */
@media (max-width: 768px) {
    :root {
        --header-height: 3.75rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-lg {
        padding: 3rem 0;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading h2 {
        font-size: 1.375rem;
    }

    .hero-home {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-sub {
        padding: 2rem 0 1.5rem;
    }

    .btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .card {
        border-radius: 0.75rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .training-card .card-body {
        padding: 1.25rem;
    }

    .training-card .card-body h3 {
        font-size: 1.0625rem;
    }

    .stat-bar {
        gap: 1rem;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 0.75rem 1.5rem;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    z-index: 100;
    transition: top 0.2s;
}

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

/* Selection color — solid brand orange stays legible on any background (light or dark) */
::selection {
    background: var(--brand-orange);
    color: #fff;
}
::-moz-selection {
    background: var(--brand-orange);
    color: #fff;
}

/* --- Text truncation utilities --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Mobile touch-friendly form inputs --- */
@media (max-width: 768px) {
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.875rem 1rem;
        font-size: 1rem; /* 16px prevents iOS zoom on focus */
    }
}

/* --- Tiny screens (≤360px) — e.g. 290px Galaxy Fold etc --- */
@media (max-width: 360px) {
    /* Prevent any element from causing horizontal overflow */
    body { overflow-x: hidden; }

    /* Reduce section padding to gain space */
    .section { padding: 2rem 0; }

    /* Hero: tighter padding, smaller min-height */
    .hero-home { padding: 1.25rem 0; min-height: auto; }
    .hero-sub  { padding: 1.25rem 0 1rem; }

    /* Headings: clamp floor is fine but add hard cap */
    .section-heading h2 { font-size: 1.25rem; }

    /* Buttons: always full width, prevent text overflow */
    .btn { white-space: normal; text-align: center; }
    .btn-lg { font-size: 0.875rem; padding: 0.75rem 1rem; }

    /* Logo: slightly smaller so hamburger never squeezes */
    .site-header img { height: 2.25rem; }

    /* Stat items: no min-width on tiny screens */
    .stat-item { min-width: 0; }
}

/* --- Print --- */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .mobile-menu-overlay,
    .btn,
    .cta-triple {
        display: none !important;
    }

    body {
        font-size: 11pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Utility not emitted by the purged Tailwind build but used on consent-checkbox labels */
.cursor-pointer { cursor: pointer; }

/* Cookie consent banner (assets/js/consent.js) */
#ek-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 660px; margin: 0 auto;
  background: #20242e; color: #e8e8ea; border-radius: 14px; padding: 15px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 13.5px; line-height: 1.5;
  transform: translateY(160%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
#ek-consent.ek-show { transform: translateY(0); }
#ek-consent .ek-consent-text { flex: 1 1 300px; color: #cfd3db; }
#ek-consent a { color: #E87A1D; text-decoration: underline; }
#ek-consent .ek-consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
#ek-consent .ek-btn { border: 0; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
#ek-consent .ek-reject { background: transparent; color: #cfd3db; border: 1px solid #3a4457; }
#ek-consent .ek-reject:hover { background: #272c38; }
#ek-consent .ek-accept { background: #E87A1D; color: #fff; }
#ek-consent .ek-accept:hover { background: #D4690F; }
@media (max-width: 520px) { #ek-consent .ek-consent-actions { width: 100%; } #ek-consent .ek-btn { flex: 1; } }
