/* ============================================================
   IPOOLGO — Professional polish layer (loaded after style.css)
   Buttons, typography, cards, sliders, colored socials.
   ============================================================ */

:root {
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-pill: 999px;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 50px rgba(0, 102, 204, 0.25);
    --ring: rgba(255, 255, 255, 0.08);
}

/* ---------- Typography refinement ---------- */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.1px;
}
h1, h2, h3, h4, .section-title, .page-title, .hero-title {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.section-title { font-weight: 800; }
.section-subtitle, .hero-subtitle {
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* ---------- Buttons: smaller, refined, professional ---------- */
.btn {
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: none;
    border-radius: var(--radius-pill);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    gap: 8px;
}
.btn-lg {
    padding: 13px 30px;
    font-size: 14px;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}
.btn i { font-size: 0.95em; }
.btn-primary {
    background: var(--gradient-blue);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 102, 204, 0.4);
}
.btn-outline {
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}
.btn-outline:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- Cards & containers ---------- */
.product-card, .category-card, .blog-card, .testimonial-card {
    border: 1px solid var(--ring);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product-card:hover, .category-card:hover, .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 168, 232, 0.4);
}
.product-card-img, .category-card-img, .blog-card-img {
    overflow: hidden;
}
.product-card img, .category-card-img, .blog-card-img img {
    transition: transform 0.6s var(--ease);
}
.product-card:hover img,
.category-card:hover .category-card-img,
.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

/* subtle badge polish */
.product-badge, .badge {
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ---------- Colored social icons (always filled, like ipoolgo.com) ---------- */
.footer-social a {
    border: none;
    color: #fff;
    width: 42px; height: 42px;
    font-size: 17px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.footer-social a:hover { transform: translateY(-4px) scale(1.06); filter: brightness(1.12); color:#fff; }
.footer-social a:nth-child(1) { background: #1877F2; }                                                    /* facebook */
.footer-social a:nth-child(2) { background: #000; border: 1px solid rgba(255,255,255,.25); }              /* x */
.footer-social a:nth-child(3) { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); } /* instagram */
.footer-social a:nth-child(4) { background: #000; border: 1px solid rgba(255,255,255,.25); }              /* tiktok */
.footer-social a:nth-child(5) { background: #FF0000; }                                                    /* youtube */
.footer-social a:nth-child(6) { background: #0A66C2; }                                                    /* linkedin */
.footer-social a:nth-child(7) { background: #25D366; }                                                    /* whatsapp */

/* floating buttons colored */
.floating-btn { box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.floating-btn:hover { transform: scale(1.08); }
.floating-btn.whatsapp { background: #25D366 !important; }

/* ---------- Hero slider polish ---------- */
.hero-slide-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,10,20,.85) 0%, rgba(5,10,20,.55) 45%, rgba(5,10,20,.25) 100%);
}
.hero-slide-content { position: relative; z-index: 2; }
.hero-title {
    color: #ffffff;
}
.slider-dots { gap: 10px; }
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.35);
    transition: all .3s var(--ease); cursor: pointer; border: none;
}
.slider-dot.active { background: var(--secondary-color); width: 28px; border-radius: 6px; }
.slider-arrow {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
    color: #fff; backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    transition: all .25s var(--ease); cursor: pointer;
}
.slider-arrow:hover { background: var(--primary-color); transform: scale(1.06); }

/* ---------- Hot products carousel ---------- */
.hot-carousel-wrap { position: relative; }
.hot-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hot-carousel::-webkit-scrollbar { display: none; }
.hot-carousel .product-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}
@media (max-width: 600px) {
    .hot-carousel .product-card { flex: 0 0 78%; }
}
.hot-nav {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--dark-bg-light); border: 1px solid var(--ring);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: all .25s var(--ease);
    box-shadow: var(--shadow-md);
}
.hot-nav:hover { background: var(--primary-color); }
.hot-nav.prev { left: -10px; }
.hot-nav.next { right: -10px; }
@media (max-width: 768px) { .hot-nav { display: none; } }

/* ---------- Section rhythm ---------- */
.section { padding: 90px 0; }
.section-header { margin-bottom: 50px; }
.category-card-content, .product-card-body { padding: 20px; }

/* video section */
.video-section {
    position: relative; border-radius: var(--border-radius-lg);
    overflow: hidden; box-shadow: var(--shadow-card);
}
.video-section video, .video-section iframe { width: 100%; display: block; }
.video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.25);
}
.video-play i {
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff; border: 2px solid rgba(255,255,255,.6);
    transition: all .3s var(--ease);
}
.video-section:hover .video-play i { transform: scale(1.1); background: var(--primary-color); }

/* ---------- Mobile nav: close button + overlay ---------- */
.nav-close-row { display: none; }
.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 998;
    opacity: 0; transition: opacity .25s var(--ease);
}
.nav-overlay.show { display: block; opacity: 1; }
@media (max-width: 992px) {
    .nav-menu { z-index: 999; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
    .nav-close-row {
        display: block; position: absolute; top: 18px; right: 22px;
    }
    .nav-close-btn {
        background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
        color: #fff; width: 42px; height: 42px; border-radius: 50%;
        font-size: 26px; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all .25s var(--ease);
    }
    .nav-close-btn:hover { background: var(--danger-color); transform: rotate(90deg); }
}

/* ---------- Compact testimonial slider (one at a time, auto-rotate) ---------- */
.testimonials-slider { max-width: 760px; min-height: 0; }
.testimonial-item {
    padding: 24px 20px;
    display: none;
    animation: fadeIn .5s var(--ease);
}
.testimonial-item.active { display: block; }
.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonial-author { gap: 14px; }
.testimonial-author-img { width: 48px; height: 48px; border-width: 2px; }
.testimonial-author-name { font-size: 15px; }
.testimonial-author-company { font-size: 12px; }
.testimonial-rating { font-size: 13px; margin-top: 4px; }
.testimonial-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 6px;
}
.testimonial-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s var(--ease);
}
.testimonial-dots button.active { background: var(--secondary-color); width: 22px; border-radius: 5px; }

/* ---------- Footer: mobile accordions + payment badges ---------- */
.footer-payments {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding: 26px 0 6px; border-top: 1px solid var(--ring); margin-top: 40px;
}
.pay-badge {
    background: #fff; color: #1a1a2e;
    border-radius: 6px; padding: 4px 10px;
    font-size: 22px; line-height: 1; display: inline-flex; align-items: center;
}
.pay-badge .fa-cc-visa { color: #1A1F71; }
.pay-badge .fa-cc-mastercard { color: #EB001B; }
.pay-badge .fa-cc-amex { color: #2E77BC; }
.pay-badge .fa-cc-paypal { color: #003087; }
.pay-badge .fa-google-pay { color: #5F6368; }
.pay-badge .fa-cc-apple-pay { color: #000; }
.pay-badge .fa-cc-jcb { color: #0B4EA2; }
.pay-badge .fa-cc-diners-club { color: #0079BE; }
.pay-badge .fa-cc-discover { color: #FF6000; }

@media (max-width: 768px) {
    .footer-links-col .footer-title,
    .footer-contact-col .footer-title,
    .footer-newsletter-col .footer-title {
        display: flex; align-items: center; justify-content: space-between;
        cursor: pointer; padding: 16px 0; margin: 0;
        border-top: 1px solid var(--ring);
        text-transform: uppercase; letter-spacing: 1px; font-size: 15px;
        user-select: none;
    }
    .footer-links-col .footer-title::after,
    .footer-contact-col .footer-title::after,
    .footer-newsletter-col .footer-title::after {
        content: "\f078"; /* chevron-down */
        font-family: "Font Awesome 6 Free"; font-weight: 900;
        font-size: 12px; transition: transform .3s var(--ease); color: var(--text-muted);
    }
    .footer-links-col.open .footer-title::after,
    .footer-contact-col.open .footer-title::after,
    .footer-newsletter-col.open .footer-title::after { transform: rotate(180deg); }
    .footer-links-col > *:not(.footer-title),
    .footer-contact-col > *:not(.footer-title),
    .footer-newsletter-col > *:not(.footer-title) {
        display: none;
    }
    .footer-links-col.open > *:not(.footer-title),
    .footer-contact-col.open > *:not(.footer-title),
    .footer-newsletter-col.open > *:not(.footer-title) {
        display: block;
        animation: fadeIn .3s var(--ease);
    }
    .footer-grid { gap: 0 !important; }
    .footer-brand { margin-bottom: 20px; }
}

/* ---------- Scroll reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 150px; right: 20px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--dark-bg-light); border: 1px solid var(--ring); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: all .3s var(--ease); cursor: pointer; box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--primary-color); }
@media (max-width: 600px) { .back-to-top { bottom: 130px; right: 12px; width: 42px; height: 42px; } }

/* ---------- Brand logos marquee ---------- */
.partners-marquee { overflow: hidden; position: relative; }
.partners-track {
    display: flex; gap: 60px; align-items: center;
    width: max-content; animation: marquee 28s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Robust hamburger button (always tappable, icon-font-safe) ---------- */
.mobile-menu-btn {
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    line-height: 1;
}
@media (max-width: 992px) {
    .mobile-menu-btn { display: inline-flex !important; }
}
.mobile-menu-btn::before {
    content: "\2261"; /* ≡ fallback */
    font-size: 26px;
}
.mobile-menu-btn i { display: none; }
