/* ============================================================
   Homepage-only visual layer: glassmorphism, glossy sheen sweeps,
   gradient text/backgrounds, and scroll-reveal polish.
   Loaded only on the homepage (see base.html {% block extra_css %}),
   so other pages keep their current payload size.
   ============================================================ */

/* --gradient-brand, --glass-bg/-strong/-border, .gloss-text, .glass-panel,
   and .sheen now live in style.css (shared site-wide, since the navbar
   redesign uses them too) — not duplicated here. */

/* Reveal-on-scroll: the JS observer (initScrollAnimations) adds
   .animate-fade-in to [data-scroll] elements — we just make the
   "before" state a clean hidden position so the reveal reads intentionally
   instead of "content popping in from nowhere". */
[data-scroll] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll].animate-fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* the base .animate-fade-in keyframe would double up with this transition */
}

[data-scroll-group] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-group].animate-fade-in > * {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll-group].animate-fade-in > *:nth-child(1) { transition-delay: 0.05s; }
[data-scroll-group].animate-fade-in > *:nth-child(2) { transition-delay: 0.15s; }
[data-scroll-group].animate-fade-in > *:nth-child(3) { transition-delay: 0.25s; }
[data-scroll-group].animate-fade-in > *:nth-child(4) { transition-delay: 0.35s; }
[data-scroll-group].animate-fade-in > *:nth-child(5) { transition-delay: 0.45s; }
[data-scroll-group].animate-fade-in > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Section header (eyebrow + gradient heading) ---------- */

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(0, 123, 255, 0.1), rgba(40, 167, 69, 0.1));
    border: 1px solid rgba(0, 123, 255, 0.18);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

/* style.css has a global `section h2::after` rule that draws its own solid
   underline on every <h2> inside a <section> — this new .section-head
   component supplies its own gradient .section-underline element instead,
   so suppress the old one here to avoid two stacked lines. */
.section-head h2::after {
    display: none;
}

.section-head p {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.section-underline {
    width: 70px;
    height: 4px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: var(--gradient-brand);
    background-size: 200% auto;
    animation: glossTextShift 6s ease-in-out infinite;
}

/* ---------- HERO enhancements ---------- */

.hero-slider {
    background: #0b1626;
}

/* Brand-tinted diagonal gradient + soft ambient color glows, all as ONE
   background on .slider-overlay (which already sits correctly above the
   photo and below the text inside each slide's own stacking context).
   NOTE: an earlier version put the glow blobs in a separate sibling <div>
   positioned over the whole hero section. That div lived outside each
   slide's local stacking context, so at a tied/higher z-index it painted
   above the *entire* slide — photo, dark tint, and text together — instead
   of staying safely behind the copy. Baking the glow into this single
   element sidesteps that entirely: it can only ever land where the dark
   tint already does. Kept deliberately light so the actual uploaded photo
   stays clearly visible. */
.slider-overlay {
    background:
        radial-gradient(circle 420px at 8% -5%, rgba(0, 123, 255, 0.28), transparent 70%),
        radial-gradient(circle 360px at 32% 115%, rgba(40, 167, 69, 0.24), transparent 70%),
        radial-gradient(circle 300px at 92% 12%, rgba(255, 193, 7, 0.2), transparent 70%),
        linear-gradient(115deg, rgba(4, 20, 40, 0.55) 0%, rgba(4, 20, 40, 0.22) 45%, rgba(6, 40, 30, 0.28) 100%);
    background-repeat: no-repeat;
    mix-blend-mode: normal;
}

/* Slow Ken Burns creep on whichever slide is active */
.slider-slide {
    transform: scale(1.04);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.2, 0, 0.2, 1);
}

.slider-slide.active {
    transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
    .slider-slide,
    .slider-slide.active {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.slider-content {
    z-index: 5;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-eyebrow i {
    color: #ffc107;
}

.hero-eyebrow span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Glossy primary CTA on the hero */
.btn-hero-glossy {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.95rem 2.1rem;
    border-radius: 999px;
    border: none;
    color: #08210f;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.btn-hero-glossy:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #08210f;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.95rem 2.1rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    transform: translateY(-4px);
}

/* Floating glass trust chips over the hero (desktop only — too cramped on mobile) */
.hero-floating-chips {
    position: absolute;
    right: 6%;
    bottom: 14%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 16px;
    color: #fff;
    min-width: 220px;
    animation: chipFloat 5s ease-in-out infinite;
}

.hero-chip:nth-child(2) { animation-delay: -1.6s; }
.hero-chip:nth-child(3) { animation-delay: -3.2s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--gradient-brand);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-chip-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
}

.hero-chip-sub {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 991px) {
    .hero-floating-chips { display: none; }
}

/* ---------- Trust / info bar (glass pill strip) ---------- */

.trust-bar-wrap {
    position: relative;
    z-index: 10;
    margin-top: -46px;
}

.trust-bar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 40, 70, 0.12);
    padding: 1.6rem 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-item-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-item:hover .trust-item-icon {
    transform: scale(1.12) rotate(-6deg);
}

.trust-item-icon.bg-grad-blue { background: linear-gradient(135deg, #2b8fff, #0056b3); }
.trust-item-icon.bg-grad-green { background: linear-gradient(135deg, #34d399, #1e7e34); }
.trust-item-icon.bg-grad-gold { background: linear-gradient(135deg, #ffd166, #e0a300); }
.trust-item-icon.bg-grad-red { background: linear-gradient(135deg, #ff6b6b, #bb2d3b); }
.trust-item-icon.bg-grad-teal { background: linear-gradient(135deg, #22d3ee, #0e7490); }

.trust-item h6 {
    font-weight: 700;
    margin-bottom: 1px;
    font-size: 0.92rem;
}

.trust-item p {
    font-size: 0.76rem;
    color: #8a94a6;
    margin: 0;
}

/* ---------- Stats / counter band ---------- */

.stats-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #061a34 0%, #0a2f4d 45%, #06381f 100%);
    background-size: 200% 200%;
    animation: gradientShift 14s ease infinite;
    padding: 4rem 0;
}

.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0, transparent 40%),
                       radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0, transparent 45%);
    pointer-events: none;
}

.stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 18px;
    position: relative;
}

.stat-card + .stat-card {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .stat-card + .stat-card { border-left: none; }
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
    background: linear-gradient(120deg, #ffffff, #bfe3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Category / service card polish ---------- */

.category-card, .service-card {
    border-radius: 18px !important;
}

.category-card-overlay {
    background: linear-gradient(180deg, rgba(4, 20, 40, 0) 30%, rgba(4, 20, 40, 0.82) 100%) !important;
}

.service-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.18);
}

/* ---------- Why choose us — glossy icon cards ---------- */

.why-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.2rem 1.4rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 40, 70, 0.06);
    border: 1px solid rgba(15, 40, 70, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 40, 70, 0.14);
}

.why-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-card:hover .why-icon {
    transform: rotate(-8deg) scale(1.08);
}

.why-icon.grad-1 { background: linear-gradient(135deg, #34d399, #1e7e34); }
.why-icon.grad-2 { background: linear-gradient(135deg, #2b8fff, #0056b3); }
.why-icon.grad-3 { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.why-icon.grad-4 { background: linear-gradient(135deg, #ffd166, #e0a300); }

.why-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: #8a94a6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Bottom CTA banner ---------- */

.home-cta {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(120deg, #007bff 0%, #06b6d4 50%, #28a745 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    padding: 3.5rem 2rem;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 123, 255, 0.25);
}

.home-cta::before,
.home-cta::after {
    content: '\f1b0'; /* paw */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    font-size: 9rem;
    pointer-events: none;
}

.home-cta::before { top: -20px; left: -20px; transform: rotate(-15deg); }
.home-cta::after { bottom: -30px; right: -10px; transform: rotate(20deg); }

.home-cta h2 {
    color: #fff;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.home-cta .cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .section-head h2 { font-size: 1.8rem; }
    .home-cta h2 { font-size: 1.6rem; }
    .home-cta { padding: 2.5rem 1.25rem; }
}
