/* Site-wide motion and scroll reveal */

@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;
    }

    .oae-reveal,
    .oae-hero-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Scroll reveal */
.oae-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--oae-delay, 0ms);
    will-change: opacity, transform;
}

.oae-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance */
.oae-hero-in {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--oae-hero-delay, 0ms);
}

.oae-hero-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top strip offer pulse */
.top-strip-offer {
    animation: oaeOfferPulse 3.5s ease-in-out infinite;
}

@keyframes oaeOfferPulse {
    0%, 100% { color: #1f2937; }
    50% { color: #0b3268; }
}

/* Navbar polish */
.site-header {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.site-header.scrolled .header-card {
    box-shadow: 0 8px 28px rgba(11, 50, 104, 0.12);
}

.nav-menu-link {
    position: relative;
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.nav-menu-link:hover::after,
.nav-menu-link:focus-visible::after {
    transform: scaleX(1);
}

/* Buttons */
.btn-order-now,
.btn-unlock-discount,
.order-link-btn,
.fill-bg,
.order-button,
.btn-primary,
.btn-cta {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-order-now:hover,
.btn-unlock-discount:hover,
.order-link-btn:hover,
.fill-bg:hover,
.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 168, 34, 0.35);
}

.header-wa-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Interactive cards */
.expert-box,
.expert-card,
.city-card,
.sample-card,
.blog-card,
.testimonial-card,
.features-boxes,
.stats-boxes li,
.process-item,
.subject-chip,
.pricing-box,
.service-card,
.contact-card,
.guarantee-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.expert-box:hover,
.expert-card:hover,
.city-card:hover,
.sample-card:hover,
.blog-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
}

.stats-boxes li:hover {
    transform: translateY(-4px);
}

/* FAQ open animation */
.faq-inner li.open .inner {
    animation: oaeFadeDown 0.35s ease;
}

@keyframes oaeFadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp pulse */
.whatsapp-float {
    animation: oaeWaPulse 2.8s ease-in-out infinite;
}

@keyframes oaeWaPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* Back to top */
.back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
    animation: oaeBounceIn 0.45s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

@keyframes oaeBounceIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Section headings */
.common-heading {
    position: relative;
}

.common-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.common-heading.is-visible::after,
.oae-reveal.is-visible .common-heading::after {
    transform: scaleX(1);
}

/* Marquee already animated; subtle hover pause feel on trust logos */
.uni-logo-item.uni-logo-badge {
    transition: transform 0.3s ease;
}

.uni-logo-item.uni-logo-badge:hover {
    transform: scale(1.05);
}

/* Dropdown menu fade */
.dropdown-menu {
    animation: oaeMenuIn 0.22s ease;
}

@keyframes oaeMenuIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus glow */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(26, 159, 212, 0.18);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Icon boxes subtle hover */
.oae-icon-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-boxes:hover .oae-icon-box,
.process-item:hover .oae-icon-box,
.subject-chip:hover .oae-icon-box {
    transform: scale(1.06) rotate(-2deg);
}
