/* =========================================================
   HOME BANNER DESIGN (index.php hero only)
   Same content & layout, new look. To undo: remove the hero.css
   <link> line in header.php.
   "H" = .hero-section:has(.hero-glow-1)  (only the home banner has .hero-glow-1)
========================================================= */

@property --hero-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---------- Base ---------- */
.hero-section:has(.hero-glow-1) {
    color: var(--text-dark);
    background: linear-gradient(180deg, #F7FAFF 0%, #EDF3FF 100%);
}

/* Fine dot pattern, fading out from the top-left */
.hero-section:has(.hero-glow-1)::before {
    inset: 0;
    opacity: 1;
    background-image: radial-gradient(rgba(0, 82, 255, 0.22) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 15% 25%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 55% 60% at 15% 25%, #000 10%, transparent 75%);
}

/* Bottom edge line */
.hero-section:has(.hero-glow-1)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.35), rgba(0, 210, 255, 0.35), transparent);
    pointer-events: none;
}

/* ---------- Diagonal animated colour band (behind the form) ---------- */
.hero-section:has(.hero-glow-1) .hero-glow-2 {
    top: -25%;
    bottom: auto;
    right: -20%;
    left: auto;
    width: 64%;
    height: 150%;
    border-radius: 0;
    filter: none;
    opacity: 1;
    background: linear-gradient(125deg, #0052FF 0%, #00C6FF 25%, #1D4ED8 50%, #00D2FF 75%, #0052FF 100%);
    background-size: 300% 300%;
    transform: skewX(-10deg);
    animation: heroBandFlow 14s ease-in-out infinite;
    box-shadow: -30px 0 80px rgba(0, 82, 255, 0.25);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* Soft light streaks inside the band */
.hero-section:has(.hero-glow-1) .hero-glow-2::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 70px),
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 70%);
}

@keyframes heroBandFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pastel blob on the left */
.hero-section:has(.hero-glow-1) .hero-glow-1 {
    background: radial-gradient(circle, rgba(0, 82, 255, 0.20) 0%, transparent 70%);
}

/* ---------- Decorations injected by effects.js ---------- */
.hero-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Mouse-follow spotlight */
.hero-deco::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 40%), rgba(0, 82, 255, 0.10), transparent 60%);
    transition: background 0.1s linear;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #FFFFFF 0%, #BFE9FF 16%, #38BDF8 40%, #0052FF 72%, #1E1B6B 100%);
    box-shadow: inset -10px -14px 30px rgba(10, 20, 80, 0.35), 0 20px 40px rgba(0, 82, 255, 0.30);
    animation: heroFloat 7s ease-in-out infinite;
}

.hero-orb.violet {
    background: radial-gradient(circle at 30% 28%, #FFFFFF 0%, #DBEAFE 16%, #60A5FA 42%, #1D4ED8 72%, #172554 100%);
    box-shadow: inset -10px -14px 30px rgba(23, 37, 84, 0.35), 0 20px 40px rgba(0, 210, 255, 0.30);
}

.hero-orb.cyan {
    background: radial-gradient(circle at 30% 28%, #FFFFFF 0%, #CFFAFE 16%, #22D3EE 42%, #0891B2 75%, #164E63 100%);
    box-shadow: inset -8px -10px 24px rgba(8, 60, 90, 0.35), 0 16px 30px rgba(0, 210, 255, 0.30);
}

.hero-orb.o1 { width: 84px;  height: 84px;  left: 44%;  top: 14%;  animation-duration: 8s; }
.hero-orb.o2 { width: 44px;  height: 44px;  left: 4%;   bottom: 12%; animation-duration: 6s; animation-delay: -2s; }
.hero-orb.o3 { width: 120px; height: 120px; right: 3%;  top: 9%;   animation-duration: 9s; animation-delay: -4s; }
.hero-orb.o4 { width: 30px;  height: 30px;  left: 47%;  bottom: 16%; animation-duration: 5s; animation-delay: -1s; }

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    animation: heroSpin 30s linear infinite;
}

.hero-ring.r1 { width: 260px; height: 260px; right: 6%;  bottom: 6%; }
.hero-ring.r2 { width: 150px; height: 150px; left: 36%; bottom: -80px; border: 2px solid rgba(0, 82, 255, 0.14); animation-duration: 40s; }

.hero-plus {
    position: absolute;
    width: 18px;
    height: 18px;
    animation: heroTwinkle 3s ease-in-out infinite;
}

.hero-plus::before,
.hero-plus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.hero-plus::before { width: 100%; height: 3px; }
.hero-plus::after  { width: 3px;  height: 100%; }

.hero-plus.p1 { left: 40%; top: 32%; color: #0052FF; }
.hero-plus.p2 { left: 12%; top: 8%;  color: #1D4ED8; animation-delay: -1s; }
.hero-plus.p3 { right: 2%; bottom: 30%; color: #FFFFFF; animation-delay: -2s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(8deg); }
}

@keyframes heroSpin {
    to { transform: rotate(360deg); }
}

@keyframes heroTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.1) rotate(90deg); }
}

/* ---------- Text & controls ---------- */
.hero-section:has(.hero-glow-1) .hero-title {
    color: var(--dark-navy);
    animation: heroRise 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .hero-badge {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 82, 255, 0.25);
    color: var(--brand-blue);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.12);
    animation: heroRise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    animation: heroSweep 4.5s 1s ease-in-out infinite;
}

.hero-section:has(.hero-glow-1) .hero-desc {
    color: #475569 !important;
    animation: heroRise 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .hero-desc + .d-flex {
    animation: heroRise 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .hero-trust-bar {
    border-top-color: rgba(15, 23, 42, 0.1);
    animation: heroRise 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .trust-item {
    color: var(--text-dark);
}

.hero-section:has(.hero-glow-1) .trust-item i {
    color: var(--brand-blue);
    filter: drop-shadow(0 0 6px rgba(0, 82, 255, 0.35));
}

/* Highlighted words: blue → violet → cyan shimmer + drawn underline */
.hero-section:has(.hero-glow-1) .gradient-text-glow {
    background: linear-gradient(90deg, #0052FF 0%, #1D4ED8 30%, #00B4FF 60%, #0052FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    text-shadow: none;
    animation: heroShimmer 6s linear infinite;
}

@media (min-width: 992px) {
    .hero-section:has(.hero-glow-1) .hero-title .gradient-text-glow {
        position: relative;
        display: inline-block;
    }

    .hero-section:has(.hero-glow-1) .hero-title .gradient-text-glow::after {
        content: '';
        position: absolute;
        left: 2px;
        right: 2px;
        bottom: -10px;
        height: 5px;
        border-radius: 5px;
        background: linear-gradient(90deg, #0052FF, #1D4ED8, #00D2FF);
        box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35);
        transform-origin: left center;
        animation: heroUnderline 1.1s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }
}

.hero-section:has(.hero-glow-1) .btn-glass-secondary {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--dark-navy) !important;
}

.hero-section:has(.hero-glow-1) .btn-glass-secondary:hover {
    background: #FFFFFF;
    border-color: rgba(0, 82, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.15);
}

/* Primary buttons: light sweep on hover */
.btn-glow-primary {
    position: relative;
    overflow: hidden;
}

.btn-glow-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-glow-primary:hover::after {
    left: 130%;
}

/* ---------- Form card: frosted glass over the colour band ---------- */
.hero-section:has(.hero-glow-1) .hero-lead-card {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 40px 80px rgba(11, 30, 90, 0.25), inset 0 1px 0 #FFFFFF;
    transition: transform 0.25s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    animation: heroRise 1s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-section:has(.hero-glow-1) .hero-lead-card h3 { color: var(--dark-navy) !important; }

.hero-section:has(.hero-glow-1) .hero-lead-card p {
    color: #64748B !important;
    opacity: 1 !important;
}

.hero-section:has(.hero-glow-1) .hero-lead-card .form-label { color: #1E293B !important; }

.hero-section:has(.hero-glow-1) .hero-lead-card .form-control,
.hero-section:has(.hero-glow-1) .hero-lead-card .form-select {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #D5E0F0 !important;
    color: var(--text-dark) !important;
}

.hero-section:has(.hero-glow-1) .hero-lead-card .form-control::placeholder { color: #94A3B8; }

.hero-section:has(.hero-glow-1) .hero-lead-card .form-control:focus,
.hero-section:has(.hero-glow-1) .hero-lead-card .form-select:focus {
    background-color: #FFFFFF !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12) !important;
}

/* Rotating gradient border */
.hero-section:has(.hero-glow-1) .hero-lead-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--hero-border-angle), transparent 0deg, #00D2FF 50deg, #0052FF 110deg, transparent 170deg, transparent 190deg, #1D4ED8 250deg, #00D2FF 300deg, transparent 350deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: heroBorderSpin 6s linear infinite;
    pointer-events: none;
}

/* ---------- Keyframes ---------- */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSweep {
    0%   { left: -60%; }
    45%  { left: 130%; }
    100% { left: 130%; }
}

@keyframes heroShimmer {
    to { background-position: -200% center; }
}

@keyframes heroUnderline {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes heroBorderSpin {
    to { --hero-border-angle: 360deg; }
}

/* ---------- Tablets & phones: band moves behind the form ---------- */
@media (max-width: 991.98px) {
    .hero-section:has(.hero-glow-1) .hero-glow-2 {
        top: auto;
        bottom: -8%;
        right: -30%;
        width: 160%;
        height: 52%;
        transform: skewY(-10deg);
        -webkit-mask-image: none;
                mask-image: none;
    }

    .hero-orb.o1 { left: auto; right: 6%; top: 3%; width: 56px; height: 56px; }
    .hero-orb.o3 { width: 70px; height: 70px; right: 4%; top: auto; bottom: 46%; }
    .hero-orb.o4,
    .hero-ring.r2,
    .hero-plus.p1 { display: none; }
    .hero-ring.r1 { width: 180px; height: 180px; right: -40px; bottom: 2%; }
}

@media (max-width: 575.98px) {
    .hero-orb.o1 { width: 40px; height: 40px; top: 2%; }
    .hero-orb.o2,
    .hero-orb.o3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section:has(.hero-glow-1) *,
    .hero-section:has(.hero-glow-1) *::before,
    .hero-section:has(.hero-glow-1) *::after {
        animation: none !important;
    }
}
