/*
 * StradiS Aquatics — Custom Child Theme Styles
 * Version: 1.0.0
 * Design target: Approved Replit preview (June 2026)
 * Reference: .local/approved-preview-snapshot.md
 *
 * COLOUR PALETTE (South American freshwater lake)
 * --stradis-navy:   #042240   deep ocean background
 * --stradis-blue:   #0d5ea0   primary interactive blue
 * --stradis-ice:    #7dd9f5   accent ice-blue / headlines
 * --stradis-green:  #25D366   WhatsApp green
 * --stradis-white:  #ffffff
 *
 * TABLE OF CONTENTS
 * 1.  CSS Variables & Base
 * 2.  Typography
 * 3.  Header & Navigation
 * 4.  Hero Section
 * 5.  Trust Badges
 * 6.  Discus Pop Cards
 * 7.  Discus Marquee Strips
 * 8.  Category Cards
 * 9.  WooCommerce Product Grid
 * 10. Live Fish — WhatsApp Badge
 * 11. Footer
 * 12. Buttons
 * 13. Mobile Responsive
 * 14. Utility Classes
 */

/* ============================================================
   1. CSS Variables & Base
   ============================================================ */
:root {
    --stradis-navy:       #042240;
    --stradis-blue:       #0d5ea0;
    --stradis-blue-light: #1a78c2;
    --stradis-ice:        #7dd9f5;
    --stradis-ice-dark:   #4dc8f0;
    --stradis-green:      #25D366;
    --stradis-green-dark: #1ebd5a;
    --stradis-white:      #ffffff;
    --stradis-text:       #1a2e42;
    --stradis-muted:      #64748b;
    --stradis-border:     #e2e8f0;
    --stradis-bg-light:   #f5f8fc;
    --stradis-radius:     0.75rem;
    --stradis-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Apply Inter font site-wide */
body,
.site,
.entry-content,
.woocommerce {
    font-family: var(--stradis-font) !important;
}

/* ============================================================
   2. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--stradis-font) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================================================
   3. Header & Navigation
   ============================================================ */

/* Header bar background + height */
.site-header,
.main-header-bar,
.ast-primary-header-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--stradis-border) !important;
}

/* Sticky header */
.site-header.ast-sticky-active,
.ast-primary-header-bar.ast-sticky-active {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 34, 64, 0.08) !important;
}

/* Logo — full colour, no filter */
.custom-logo-link img,
.custom-logo,
.site-logo img,
.astra-logo-svg {
    height: 80px !important;
    width: auto !important;
    filter: none !important;     /* never invert — logo must show in full colour */
    max-height: 80px !important;
}

/* Nav link styles */
.main-navigation .menu-item > a,
.primary-navigation .menu-item > a,
#site-navigation .menu-item > a,
.ast-primary-header-bar .main-navigation a {
    font-family: var(--stradis-font) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--stradis-muted) !important;
    transition: color 0.2s ease !important;
    padding: 0.5rem 0.75rem !important;
}

.main-navigation .menu-item > a:hover,
.main-navigation .current-menu-item > a,
.primary-navigation .menu-item > a:hover,
.primary-navigation .current-menu-item > a {
    color: var(--stradis-blue) !important;
}

/* WhatsApp icon in nav (add class "stradis-nav-whatsapp" to a custom nav item) */
.stradis-nav-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    color: var(--stradis-green) !important;
    transition: background 0.2s;
}
.stradis-nav-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
}

/* ============================================================
   4. Hero Section
   Add class "stradis-hero" to the Elementor section in WP Admin.
   ============================================================ */
.stradis-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: var(--stradis-navy);
}

/* Hero background image — set via Elementor background settings */
.stradis-hero .elementor-background-overlay {
    background: linear-gradient(
        to right,
        rgba(4, 34, 64, 0.94) 0%,
        rgba(4, 34, 64, 0.60) 50%,
        rgba(4, 34, 64, 0.25) 100%
    ) !important;
}

/* Bottom fade so floating fish blend in */
.stradis-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--stradis-navy) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero tagline */
.stradis-hero-tagline {
    display: inline-block;
    color: var(--stradis-ice) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

/* Hero headline */
.stradis-hero-headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
}

/* Gradient on "World of Discus" */
.stradis-headline-gradient {
    background: linear-gradient(90deg, #7dd9f5 0%, #4dc8f0 50%, #3ab5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero description paragraph */
.stradis-hero-desc {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    max-width: 480px;
    margin-bottom: 2rem !important;
}

/* Hero CTA buttons row */
.stradis-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Primary hero CTA — WhatsApp / Shop Live Fish */
.stradis-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--stradis-ice);
    color: var(--stradis-navy) !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(125, 217, 245, 0.35);
}
.stradis-btn-primary:hover {
    background: #5fcfee;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(125, 217, 245, 0.45);
    color: var(--stradis-navy) !important;
}

/* Secondary hero CTA — ghost */
.stradis-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.stradis-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* ============================================================
   5. Trust Badges
   Add class "stradis-trust-badges" to the Elementor section.
   ============================================================ */
.stradis-trust-badges {
    background: var(--stradis-bg-light);
    padding: 3rem 0;
}

.stradis-trust-badges .stradis-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.stradis-trust-badges .stradis-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 94, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stradis-blue);
    font-size: 1.25rem;
}

.stradis-trust-badges .stradis-badge-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--stradis-text);
}

/* ============================================================
   6. Discus Pop Cards
   Add class "stradis-pop-section" to the Elementor section.
   ============================================================ */
.stradis-pop-section {
    padding: 5rem 0;
    background: #ffffff;
}

.stradis-pop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stradis-pop-card .stradis-pop-circle {
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(13, 94, 160, 0.25);
    box-shadow: 0 8px 24px rgba(13, 94, 160, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.stradis-pop-card:hover .stradis-pop-circle {
    border-color: rgba(125, 217, 245, 0.7);
    box-shadow: 0 0 40px rgba(13, 94, 160, 0.4);
    transform: scale(1.08) translateY(-8px);
}

.stradis-pop-card .stradis-pop-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stradis-pop-card:hover .stradis-pop-circle img {
    transform: scale(1.1);
}

.stradis-pop-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--stradis-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================
   7. Discus Marquee Strips
   These are custom HTML widgets placed in Elementor.
   The HTML + CSS is in /elementor-widgets/discus-strip-widget.html
   ============================================================ */
@keyframes stradis-marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes stradis-marquee-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.stradis-strip-row {
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
}

.stradis-strip-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.stradis-strip-track--left {
    animation: stradis-marquee-left 32s linear infinite;
}

.stradis-strip-track--right {
    animation: stradis-marquee-right 40s linear infinite;
}

.stradis-strip-track:hover {
    animation-play-state: paused;
}

.stradis-strip-item {
    flex-shrink: 0;
    position: relative;
    cursor: default;
}

.stradis-strip-circle {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.stradis-strip-item:hover .stradis-strip-circle {
    border-color: rgba(125, 217, 245, 0.6);
    box-shadow: 0 0 30px rgba(125, 217, 245, 0.35);
}

.stradis-strip-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stradis-strip-item:hover .stradis-strip-circle img {
    transform: scale(1.1);
}

/* Right-moving strip — fish face right */
.stradis-strip-track--right .stradis-strip-circle img {
    transform: scaleX(-1);
}
.stradis-strip-track--right .stradis-strip-item:hover .stradis-strip-circle img {
    transform: scaleX(-1) scale(1.1);
}

/* Section wrapper for both strips */
.stradis-strips-section {
    background: linear-gradient(to bottom, var(--stradis-navy) 0%, #0a3057 100%);
    padding: 2.5rem 0;
}

/* ============================================================
   8. Category Cards
   Add class "stradis-cat-cards" to the Elementor section.
   ============================================================ */
.stradis-cat-cards {
    padding: 4rem 0;
    background: var(--stradis-bg-light);
}

.stradis-cat-card {
    position: relative;
    border-radius: var(--stradis-radius);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.stradis-cat-card img.stradis-cat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.stradis-cat-card:hover img.stradis-cat-bg {
    transform: scale(1.06);
}

.stradis-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,34,64,0.85) 0%, transparent 60%);
}

.stradis-cat-card__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.stradis-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.stradis-cat-badge--whatsapp {
    background: var(--stradis-green);
    color: #ffffff;
}

.stradis-cat-badge--pudo {
    background: #f97316;
    color: #ffffff;
}

.stradis-cat-card h3 {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem !important;
}

.stradis-cat-card p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem !important;
    margin: 0 0 1.25rem !important;
}

/* ============================================================
   9. WooCommerce Product Grid
   ============================================================ */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.5rem !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border-radius: var(--stradis-radius);
    border: 1px solid var(--stradis-border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 94, 160, 0.06);
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 94, 160, 0.15);
}

.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--stradis-text) !important;
    padding: 1rem 1rem 0.25rem !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--stradis-blue) !important;
    padding: 0 1rem 0.75rem !important;
    display: block !important;
}

/* Product card add-to-cart button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    display: block !important;
    width: calc(100% - 2rem) !important;
    margin: 0 1rem 1rem !important;
    padding: 0.75rem 1rem !important;
    background: var(--stradis-blue) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    border-radius: 0.5rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: var(--stradis-blue-light) !important;
}

/* ============================================================
   10. Live Fish — WhatsApp Badge & Button
   Products in the "live-fish" category get a WhatsApp badge.
   Add class "product_cat-live-fish" via Elementor or WP category.
   ============================================================ */

/* WhatsApp badge on live fish product thumbnails */
.product_cat-live-fish .stradis-whatsapp-badge,
.stradis-live-fish-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--stradis-green);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

/* WhatsApp quote button — replaces add-to-cart on live fish pages */
.stradis-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--stradis-green) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.stradis-whatsapp-btn:hover {
    background: var(--stradis-green-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer,
.footer-widget-area,
.ast-footer-overlay {
    background-color: var(--stradis-navy) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer logo — full colour, no filter */
.site-footer .custom-logo,
.site-footer .custom-logo-link img,
.ast-footer-logo img,
.footer-logo img {
    filter: none !important;     /* critical: never invert the logo in footer */
    height: 64px !important;
    width: auto !important;
}

/* Footer headings */
.site-footer h3,
.site-footer h4,
.footer-widget-area h3,
.footer-widget-area h4 {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
}

/* Footer links */
.site-footer a,
.footer-widget-area a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.site-footer a:hover,
.footer-widget-area a:hover {
    color: #ffffff !important;
}

/* Footer social icons */
.stradis-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stradis-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: #ffffff !important;
    font-size: 1.1rem;
}

.stradis-footer-social a:hover {
    opacity: 0.85;
}

.stradis-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ============================================================
   12. Global Button Overrides
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.ast-btn,
.ast-button,
a.ast-btn {
    background: var(--stradis-blue) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    transition: background 0.2s !important;
    border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.ast-btn:hover,
.ast-button:hover {
    background: var(--stradis-blue-light) !important;
    color: #ffffff !important;
}

/* Checkout proceed button */
.woocommerce #place_order,
.woocommerce-checkout #place_order {
    background: var(--stradis-blue) !important;
    color: #ffffff !important;
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    width: 100% !important;
}

/* ============================================================
   13. Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
    /* Hero — single column on mobile */
    .stradis-hero {
        min-height: 100vh;
    }

    .stradis-hero-headline {
        font-size: 2.5rem !important;
    }

    /* Logo smaller on mobile */
    .custom-logo-link img,
    .custom-logo,
    .site-logo img {
        height: 56px !important;
        max-height: 56px !important;
    }

    /* Product grid — 2 columns on tablet, 1 on mobile */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Discus strips — smaller circles on mobile */
    .stradis-strip-circle {
        width: 100px !important;
        height: 100px !important;
    }

    /* Category cards stacked on mobile */
    .stradis-cat-cards .elementor-row {
        flex-direction: column !important;
    }

    .stradis-cat-card {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .stradis-hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .stradis-btn-primary,
    .stradis-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   14. Utility Classes
   ============================================================ */

/* Section container max-width matching the approved preview */
.stradis-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navy section background */
.stradis-section-navy {
    background-color: var(--stradis-navy) !important;
    color: #ffffff;
}

/* Light section background */
.stradis-section-light {
    background-color: var(--stradis-bg-light) !important;
}

/* White section background */
.stradis-section-white {
    background-color: #ffffff !important;
}

/* Animate on scroll (add "stradis-fade-up" to any element) */
.stradis-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stradis-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
