/* ═══════════════════════════════════════════════════════════════
   De Verhuizing — Premium Visual Effects
   Scroll reveals, overlays, transitions, backgrounds
   ═══════════════════════════════════════════════════════════════ */

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.dv-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dv-reveal.dv-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-dv-stagger] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-dv-stagger].dv-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── SECTION BACKGROUNDS & OVERLAYS ─── */
/* Subtle dot pattern on light sections */
.elementor-top-section:nth-child(3),
.elementor-top-section:nth-child(6),
.elementor-top-section:nth-child(8) {
    background-image: radial-gradient(circle at 1px 1px, rgba(21,43,93,0.03) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

/* Diagonal gradient overlay between sections */
.elementor-top-section:not(:first-child):not(:last-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Decorative floating shapes */
.elementor-top-section:nth-child(4)::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,103,6,0.04) 0%, transparent 60%);
    top: -100px;
    right: -150px;
    z-index: 0;
    pointer-events: none;
}
.elementor-top-section:nth-child(7)::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,43,93,0.03) 0%, transparent 60%);
    bottom: -80px;
    left: -120px;
    z-index: 0;
    pointer-events: none;
}
.elementor-top-section {
    position: relative;
    overflow: hidden;
}
.elementor-widget-html {
    position: relative;
    z-index: 2;
}

/* ─── CARD EFFECTS ─── */
/* Service cards with image */
a[style*="border-radius:16px"] {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease !important;
    will-change: transform;
}
a[style*="border-radius:16px"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
    border-color: rgba(249,103,6,0.4) !important;
}
a[style*="border-radius:16px"]:hover img {
    transform: scale(1.08) !important;
}
/* Image transition */
a[style*="border-radius:16px"] img,
article img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Feature/USP cards */
div[style*="border:1px solid #E2E8F0"][style*="border-radius"] {
    transition: all 0.3s ease !important;
}
div[style*="border:1px solid #E2E8F0"][style*="border-radius"]:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06) !important;
    transform: translateY(-3px);
}

/* ─── BUTTON GLOW EFFECTS ─── */
a[style*="background:#F96706"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}
a[style*="background:#F96706"]:hover {
    background: #E85D00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(249,103,6,0.5) !important;
}
/* Shine effect on orange buttons */
a[style*="background:#F96706"]::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transition: all 0.5s ease;
    transform: translateX(-100%);
}
a[style*="background:#F96706"]:hover::after {
    transform: translateX(100%);
}

/* ─── ICONIFY ENHANCEMENTS ─── */
.iconify {
    display: inline-flex !important;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
/* Icons in cards grow on parent hover */
a:hover .iconify,
div:hover > .iconify {
    transform: scale(1.15);
}

/* ─── FORM FIELD ANIMATIONS ─── */
input, select, textarea {
    transition: all 0.3s ease !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #F96706 !important;
    box-shadow: 0 0 0 4px rgba(249,103,6,0.08) !important;
    transform: translateY(-1px);
}

/* Submit buttons pulse */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}
button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(249,103,6,0.4) !important;
}

/* ─── REVIEW CARDS ─── */
div[style*="font-family:serif"][style*="opacity"] {
    transition: opacity 0.4s ease;
}

/* ─── BADGE/PILL HOVER ─── */
span[style*="border-radius:50px"],
a[style*="border-radius:50px"] {
    transition: all 0.3s ease !important;
}
a[style*="border-radius:50px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ─── SECTION WAVE SEPARATOR ─── */
.elementor-top-section:nth-child(2)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%23F6F7F9' d='M0,20 C360,40 720,0 1080,20 C1260,30 1380,25 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") center bottom/100% auto no-repeat;
    z-index: 5;
    pointer-events: none;
}

/* ─── BLOG TEMPLATES ─── */
/* Article cards */
article[style*="border-radius"] {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease !important;
}
article[style*="border-radius"]:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1) !important;
}
article[style*="border-radius"]:hover img {
    transform: scale(1.06) !important;
}

/* Blog content enhancements */
.dv-blog-content img {
    border-radius: 12px;
    margin: 24px 0;
}
.dv-blog-content h2 {
    position: relative;
    padding-bottom: 12px;
}
.dv-blog-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #F96706;
    border-radius: 2px;
}

/* ─── FOOTER PREMIUM ─── */
footer a:hover {
    color: #fff !important;
}
footer a[aria-label] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
footer a[aria-label]:hover {
    background: #F96706 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(249,103,6,0.3) !important;
}

/* ─── RESPONSIVE ANIMATIONS ─── */
@media (prefers-reduced-motion: reduce) {
    .dv-reveal,
    [data-dv-stagger],
    a[style*="border-radius:16px"],
    article[style*="border-radius"] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ─── HERO MOBILE RESPONSIVE ─── */
@media (max-width: 1024px) {
    /* Hero grid: stack on tablet */
    div[style*="grid-template-columns:1fr 380px"],
    div[style*="grid-template-columns:1.1fr 1fr"],
    div[style*="grid-template-columns:1fr 400px"] {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    /* Hero form card: full width, more padding */
    div[style*="border-radius:20px"][style*="box-shadow"] {
        max-width: 500px !important;
    }
    /* ALL 4-col grids → 2 cols on tablet */
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Stats: 2x2 grid */
    div[style*="font-size:3.2rem"] {
        font-size: 2.4rem !important;
    }
}

@media (max-width: 768px) {
    .dv-reveal {
        transform: translateY(20px);
    }
    /* Reduce parallax on mobile */
    .elementor-top-section:first-child img[style*="position:absolute"] {
        transform: none !important;
    }
    /* Hero: auto height, less padding */
    div[style*="min-height:620px"],
    div[style*="min-height:560px"],
    div[style*="min-height:500px"],
    div[style*="min-height:420px"] {
        min-height: auto !important;
    }
    div[style*="padding:80px 40px"],
    div[style*="padding:60px 48px"] {
        padding: 40px 20px !important;
    }
    /* Hero heading smaller */
    h1[style*="clamp(2rem"],
    h1[style*="clamp(2.2rem"],
    h1[style*="clamp(2.4rem"] {
        font-size: 1.5rem !important;
    }
    /* Buttons stack on mobile */
    div[style*="display:flex;gap:14px;flex-wrap"],
    div[style*="display:flex;gap:12px;flex-wrap"],
    div[style*="display:flex;gap:16px;justify-content:center"] {
        flex-direction: column !important;
    }
    div[style*="display:flex;gap:14px;flex-wrap"] > a,
    div[style*="display:flex;gap:12px;flex-wrap"] > a,
    div[style*="display:flex;gap:16px;justify-content:center"] > a {
        text-align: center !important;
        justify-content: center !important;
    }
    /* ALL 4-col and 3-col grids → 1 col on mobile */
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    /* 2-col layouts → 1 col */
    div[style*="grid-template-columns:1.2fr 1fr"],
    div[style*="grid-template-columns:1.3fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"][style*="gap:12px"],
    div[style*="grid-template-columns:1fr 340px"],
    div[style*="grid-template-columns:1fr 380px"],
    div[style*="grid-template-columns:1fr 400px"] {
        grid-template-columns: 1fr !important;
    }
    /* Hero form: full width */
    div[style*="border-radius:20px"][style*="box-shadow"] {
        max-width: 100% !important;
    }
    /* USP strip: wrap properly */
    div[style*="display:flex;justify-content:center;gap:40px"],
    div[style*="display:flex;justify-content:center;gap:36px"] {
        gap: 12px 20px !important;
        padding: 12px 16px !important;
    }
    /* Section padding mobile */
    .elementor-top-section:not(:first-child):not(:last-child) {
        padding: 40px 0 !important;
    }
    /* Stats: 2x2, smaller text */
    div[style*="font-size:3.2rem"] {
        font-size: 1.8rem !important;
    }
    div[style*="font-size:1.7rem"][style*="font-weight:800"] {
        font-size: 1.3rem !important;
    }
    /* Stats container: keep 2 cols */
    div[style*="display:flex;gap:28px"] {
        gap: 16px !important;
    }
    /* Footer grid mobile */
    footer div[style*="grid-template-columns:2fr 1fr 1fr 1.5fr"],
    footer div[style*="grid-template-columns:2fr"] {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    /* Dropdown menu mobile */
    .site-header nav > ul > li > .sub-menu {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 4px 0 4px 16px !important;
        border-left: 2px solid #F96706 !important;
        min-width: auto !important;
    }
    /* CTA section padding */
    div[style*="padding:60px 40px"],
    div[style*="padding:70px 40px"] {
        padding: 40px 20px !important;
    }
    /* Service cards: full width images */
    div[style*="height:200px"][style*="overflow:hidden"],
    div[style*="height:180px"][style*="overflow:hidden"] {
        height: 160px !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller hero */
    div[style*="min-height:500px"],
    div[style*="min-height:400px"],
    div[style*="min-height:350px"] {
        min-height: auto !important;
    }
    /* Stats: stack vertically */
    div[style*="display:flex;gap:28px"],
    div[style*="display:flex;gap:24px"][style*="margin-bottom"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    div[style*="display:flex;gap:28px"] > div[style*="width:1px"],
    div[style*="display:flex;gap:24px"] > div[style*="width:1px"] {
        display: none !important;
    }
    /* USP: single col */
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    /* Cards single col */
    div[style*="grid-template-columns:repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}
