/* ==============================
   Schleehuber MPU – Custom Styles
   ============================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', system-ui, sans-serif; color: #1A2332; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; }

/* --- Hero background pattern --- */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0,100,180,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240,140,0,0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(0,100,180,0.04) 0%, transparent 45%);
}

/* --- Geometric accent shapes --- */
.geo-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Hero entry animations --- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgePop {
    0%   { opacity: 0; transform: scale(0.8); }
    60%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.hero-animate-1 { animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) both; }
.hero-animate-2 { animation: heroFadeUp 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.hero-animate-3 { animation: heroFadeUp 0.8s 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.hero-animate-4 { animation: heroBadgePop 0.6s 0.9s cubic-bezier(0.16,1,0.3,1) both; }

/* --- Card hover --- */
.service-card {
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,100,180,0.15);
}

/* --- Process step hover --- */
.process-step {
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0,100,180,0.12);
}
.process-step:hover .process-icon {
    transform: scale(1.08);
}
.process-icon {
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* --- Process connector line --- */
.process-connector {
    position: relative;
}
.process-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.75rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #0064B4, #F08C00);
    opacity: 0.3;
    transform: translateX(50%);
}
@media (max-width: 1023px) {
    .process-connector::after {
        display: none;
    }
}

/* --- FAQ accordion --- */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.faq-answer > .faq-answer-inner {
    overflow: hidden;
}
.faq-answer.open {
    grid-template-rows: 1fr;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* --- CTA pulse ring --- */
@keyframes pulseRing {
    0%   { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}
.cta-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid #F08C00;
    animation: pulseRing 2s ease-out infinite;
}

/* --- Stat counter gradient text --- */
.stat-number {
    color: #0064B4;
}

/* --- Trust bar --- */
.trust-bar {
    background: linear-gradient(160deg, #1a7fd4 0%, #0064B4 40%, #004E8C 100%);
}

/* --- Section divider --- */
.section-accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0064B4, #F08C00);
    border-radius: 2px;
}

/* --- Testimonial card --- */
.testimonial-card {
    border-left: 4px solid #F08C00;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0,100,180,0.12);
}

/* --- Testimonial Ticker --- */
.ticker-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
}

.ticker-track--left {
    animation: ticker-scroll-left 80s linear infinite;
}

.ticker-track--right {
    animation: ticker-scroll-right 90s linear infinite;
}

.ticker-row:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ticker-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ticker-card {
    flex-shrink: 0;
    width: 320px;
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #f3f4f6;
    border-left: 3px solid #F08C00;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0,100,180,0.12);
}

.ticker-card-whatsapp {
    flex-shrink: 0;
    width: 220px;
    border-radius: 1rem;
    overflow: hidden;
    border: 3px solid #25D366;
    box-shadow: 0 2px 8px rgba(37,211,102,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-card-whatsapp:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

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

.ticker-stack {
    flex-shrink: 0;
    width: 290px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.ticker-card--small {
    width: 100%;
    padding: 1rem 1.25rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F7FA; }
::-webkit-scrollbar-thumb { background: #0064B4; border-radius: 4px; }

/* --- Mobile nav overlay --- */
#mobile-menu {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Sticky header glass --- */
.header-scrolled {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

/* --- Trust bar scroll chevron --- */
@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.trust-bar-chevron {
    animation: subtleBounce 2s ease-in-out infinite;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Responsive images --- */
img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* --- Buttons --- */
.btn-primary {
    background: #F08C00;
    color: #fff;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
    background: #D07800;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(240,140,0,0.4);
}
.btn-secondary {
    background: #0064B4;
    color: #fff;
    transition: background 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background: #004E8C;
    transform: translateY(-2px);
}

/* --- Active nav indicator --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0064B4;
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover::after,
.nav-link.nav-active::after {
    width: 100%;
}

/* --- Form focus glow --- */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0,100,180,0.12);
}

/* --- Radio button pills --- */
.radio-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-pills li { list-style: none; }
.radio-pills input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1A2332;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.radio-pills label:hover {
    border-color: #0064B4;
    color: #0064B4;
}
.radio-pills input[type="radio"]:checked + label {
    background: #0064B4;
    border-color: #0064B4;
    color: #fff;
}

/* --- Expectation list hover --- */
.expect-item {
    transition: transform 0.2s ease;
}
.expect-item:hover {
    transform: translateX(4px);
}

/* ═══════════════════════════════
   LEARNING PORTAL
   ═══════════════════════════════ */

/* --- Worksheet field save feedback --- */
.field-saving { border-color: #F08C00 !important; }
.field-saved  { border-color: #22c55e !important; transition: border-color 0.3s ease; }

/* --- Checkbox styling --- */
.worksheet-checkbox {
    accent-color: #0064B4;
}

/* --- Prose styling for section content --- */
.prose h3 { font-family: 'DM Serif Display', Georgia, serif; color: #1A2332; margin-top: 1em; margin-bottom: 0.5em; }
.prose strong { color: #1A2332; }
.prose ul { list-style-type: disc; padding-left: 1.5em; margin: 0.5em 0; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin: 0.5em 0; }
.prose li { margin-bottom: 0.25em; }
.prose p { margin-bottom: 0.5em; }
