/**
 * Modern Design System - Promusement Party Rental
 * Bold & Vibrant Party Vibe with Bootstrap 5.3
 */

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #1abc9c;
    --primary-dark: #159a80;
    --secondary-color: #2c3e50;
    --accent-color: #ff13ad;
    --accent-light: #ff6ed4;
    --warm-orange: #ff6b35;
    --warm-yellow: #ffc857;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    --gradient-accent: linear-gradient(135deg, #ff13ad 0%, #ff6b35 100%);
    --gradient-hero: linear-gradient(135deg, #1abc9c 0%, #2c3e50 50%, #ff13ad 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #ff13ad 50%, #1abc9c 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --gradient-party: linear-gradient(135deg, #1abc9c 0%, #3498db 25%, #9b59b6 50%, #ff13ad 75%, #ff6b35 100%);

    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-dramatic: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
    --shadow-glow-teal: 0 0 20px rgba(26,188,156,0.4), 0 0 40px rgba(26,188,156,0.2);
    --shadow-glow-pink: 0 0 20px rgba(255,19,173,0.4), 0 0 40px rgba(255,19,173,0.2);

    /* Animation */
    --bounce-ease: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-speed: 0.3s;

    /* Layout */
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --border-radius-xl: 2rem;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
    overflow-x: hidden;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Luckiest Guy', 'Montserrat', cursive;
    font-weight: 400;
    letter-spacing: 1px;
}

h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background: var(--gradient-primary) !important; }

/* Gradient text utility */
.text-gradient {
    background: var(--gradient-party);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--bounce-ease), box-shadow 0.3s var(--smooth-ease);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, #159a80 0%, #117964 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-teal);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    border-radius: 50rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--bounce-ease), box-shadow 0.3s var(--smooth-ease);
    font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-pink);
}

.btn-outline-light {
    border-radius: 50rem;
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s var(--bounce-ease);
}
.btn-outline-light:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-dramatic);
}

.btn-outline-dark {
    border-width: 2px;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s var(--bounce-ease);
}
.btn-outline-dark:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Pulsing CTA */
.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 50rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(26, 188, 156, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    60% { opacity: 1; transform: scale(1.05) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(300%); }
}

.fade-in { opacity: 0; animation: fadeIn 1s ease-in-out forwards; }
.slide-up { opacity: 0; transform: translateY(30px); animation: slideUp 0.8s ease-in-out forwards; }
.animate-on-scroll .animated { animation-duration: 0.8s; animation-fill-mode: both; }

/* Staggered card entrance */
.stagger-in > *:nth-child(1) { animation-delay: 0s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.4s; }

/* ==========================================================================
   Navigation
   ========================================================================== */
#mainNav {
    transition: all 0.4s var(--smooth-ease);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#mainNav.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none;
}

#mainNav.navbar-shrink {
    background-color: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-dramatic);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.navbar-nav .nav-link {
    border-radius: 50rem;
    transition: all 0.3s var(--smooth-ease);
    position: relative;
}

.navbar-nav .nav-item .nav-link.active {
    background: var(--gradient-accent) !important;
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Animated hamburger */
.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    z-index: 1050;
    position: relative;
    transition: all 0.3s ease;
}
.navbar-toggler:hover {
    border-color: var(--primary-color);
    background-color: rgba(26,188,156,0.1);
}

.navbar-toggler-icon {
    transition: transform 0.3s ease;
}

/* CTA button in nav */
.nav-cta-btn {
    background: var(--gradient-accent) !important;
    border: none !important;
    border-radius: 50rem !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--bounce-ease) !important;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink) !important;
    color: #fff !important;
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}
.navbar-collapse.show {
    background-color: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 1rem;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }
    .navbar-collapse.show {
        max-height: 80vh;
        overflow-y: auto;
        padding: 1rem;
    }
    .navbar-nav .nav-item { margin-bottom: 0.5rem; }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--border-radius) !important;
        transition: background-color 0.2s ease;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus { background-color: rgba(255,255,255,0.1); }
    .dropdown-menu {
        background-color: rgba(0,0,0,0.2);
        border: none;
        border-radius: var(--border-radius);
        margin-top: 0.25rem;
        padding: 0.5rem;
    }
    .dropdown-item {
        color: white;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius);
    }
    .dropdown-item:hover,
    .dropdown-item:focus { background-color: rgba(255,255,255,0.1); color: white; }
}

/* ==========================================================================
   Hero / Masthead
   ========================================================================== */
.masthead {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(6rem + 74px);
    padding-bottom: 6rem;
}

.masthead.hero-gradient {
    background: linear-gradient(135deg, #1abc9c 0%, #2c3e50 40%, #1a252f 60%, #ff13ad 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

.masthead.bg-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.masthead.bg-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(44,62,80,0.7) 0%, rgba(26,37,47,0.5) 50%, rgba(44,62,80,0.8) 100%);
    z-index: 0;
}
.masthead .container {
    position: relative;
    z-index: 2;
}

/* Floating party shapes */
.hero-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}
.hero-shape:nth-child(1) { top: 10%; left: 5%; font-size: 3rem; animation-delay: 0s; }
.hero-shape:nth-child(2) { top: 20%; right: 10%; font-size: 2.5rem; animation-delay: 1s; animation-duration: 7s; }
.hero-shape:nth-child(3) { bottom: 20%; left: 15%; font-size: 2rem; animation-delay: 2s; animation-duration: 8s; }
.hero-shape:nth-child(4) { bottom: 30%; right: 5%; font-size: 3.5rem; animation-delay: 0.5s; animation-duration: 5s; }
.hero-shape:nth-child(5) { top: 50%; left: 50%; font-size: 2rem; animation-delay: 3s; animation-duration: 9s; }
.hero-shape:nth-child(6) { top: 5%; left: 40%; font-size: 1.5rem; animation-delay: 1.5s; animation-duration: 6s; }

.masthead-heading {
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-family: 'Luckiest Guy', cursive;
}
.masthead-subheading {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.masthead.bg-dark {
    background: var(--gradient-dark) !important;
    min-height: auto;
    padding-top: calc(6rem + 104px);
    padding-bottom: 4rem;
}
.masthead.bg-dark h3,
.masthead.bg-dark h5 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}
.scroll-indicator a {
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    transition: color 0.3s;
}
.scroll-indicator a:hover { color: #fff; }

/* Gradient divider */
.divider-gradient {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 1rem auto 1.5rem;
}
.divider-gradient.divider-wide { width: 120px; }

/* Legacy divider support */
.divider-custom {
    margin: 1.25rem 0 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.divider-custom .divider-custom-line {
    width: 100%;
    max-width: 7rem;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    border: none;
}
.divider-custom .divider-custom-line:first-child { margin-right: 1rem; }
.divider-custom .divider-custom-line:last-child { margin-left: 1rem; }
.divider-custom .divider-custom-icon { color: var(--accent-color) !important; font-size: 2rem; }
.divider-custom.divider-light .divider-custom-line { background: rgba(255,255,255,0.5); }
.divider-custom.divider-light .divider-custom-icon { color: #fff !important; }

/* ==========================================================================
   Section Transitions - Wave Dividers
   ========================================================================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}
.wave-divider.wave-flip { transform: rotate(180deg); }

/* ==========================================================================
   Product Cards (Homepage Grid)
   ========================================================================== */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    transition: transform 0.4s var(--bounce-ease), box-shadow 0.3s;
    height: 280px;
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-party);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.product-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow-teal);
}
.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--smooth-ease);
}
.product-item:hover img { transform: scale(1.12); }

.product-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 3rem 1rem 1.25rem;
    color: white;
    text-align: center;
    transition: padding var(--transition-speed);
}
.product-item:hover .product-overlay { padding-bottom: 1.5rem; }

.product-title {
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}

/* Price badge */
.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

/* ==========================================================================
   Feature Boxes (glassmorphic - for dark backgrounds)
   ========================================================================== */
.feature-box {
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: transform 0.4s var(--bounce-ease), box-shadow 0.3s;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.18);
}

/* Feature Cards (solid - for light backgrounds) */
.feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: transform 0.4s var(--bounce-ease), box-shadow 0.3s;
    background: #fff;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic);
}
.feature-card h4 {
    color: var(--secondary-color);
}
.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--bounce-ease);
}
.feature-icon i { font-size: 1.75rem; color: #fff; }
.feature-box:hover .feature-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Cards (Product & General)
   ========================================================================== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--bounce-ease), box-shadow 0.3s var(--smooth-ease);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic);
}

.card-img-top {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.card-img-container {
    position: relative;
    overflow: hidden;
}
.card-img-container img {
    transition: transform 0.6s var(--smooth-ease);
}
.card-img-container:hover img { transform: scale(1.08); }

/* Glassmorphic card variant */
.card-glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Gradient border card */
.card-gradient-border {
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-party);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ==========================================================================
   Review Cards
   ========================================================================== */
.review-card {
    position: relative;
    padding-top: 2rem;
}
.review-card::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.star-rating {
    color: #ffc857;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    border: 1px solid rgba(0,0,0,0.05);
}

/* BS5 Floating labels enhancement */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}
.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26,188,156,0.25);
}

/* Legacy floating label support */
.floating-label-form-group {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e9ecef;
}
.floating-label-form-group input,
.floating-label-form-group textarea {
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    padding-right: 0;
    padding-left: 0;
    resize: none;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none !important;
    transition: border-color var(--transition-speed);
}
.floating-label-form-group input:focus,
.floating-label-form-group textarea:focus {
    border-bottom: 2px solid var(--primary-color);
}
.floating-label-form-group label {
    font-size: 0.85em;
    line-height: 1.764705882em;
    position: relative;
    z-index: 0;
    top: 2em;
    display: block;
    margin: 0;
    transition: top 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    opacity: 0;
}
.floating-label-form-group:not(:first-child) {
    padding-left: 14px;
    border-left: 1px solid #e9ecef;
}
.floating-label-form-group-with-value label { top: 0; opacity: 1; }
.floating-label-form-group-with-focus label { color: var(--primary-color); }
form .row:first-child .floating-label-form-group { border-top: 1px solid #e9ecef; }

/* Gradient submit button */
.btn-submit {
    background: var(--gradient-accent);
    border: none;
    border-radius: 50rem;
    color: #fff;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s var(--bounce-ease);
    box-shadow: var(--shadow-md);
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-pink);
    color: #fff;
}
.btn-submit:disabled {
    opacity: 0.7;
    transform: none;
}

/* Contact info cards */
.contact-info-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: transform 0.4s var(--bounce-ease);
}
.contact-info-card:hover { transform: translateY(-5px); }
.contact-info-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}
.contact-info-card .icon-circle i { font-size: 1.5rem; color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer, .footer {
    padding: 5rem 0;
    background: var(--gradient-dark) !important;
    color: white;
    position: relative;
}
footer h4, .footer h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}
footer h4::after, .footer h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-top: 8px;
}
@media (max-width: 767.98px) {
    footer h4::after, .footer h4::after { margin-left: auto; margin-right: auto; }
}
@media (min-width: 768px) {
    footer h4::after, .footer h4::after { margin-left: 0; }
}

footer .contact-info a, .footer .contact-info a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
footer .contact-info a:hover, .footer .contact-info a:hover {
    color: var(--primary-color);
}

/* Footer brand */
.footer-brand img {
    filter: brightness(1.1);
    transition: transform 0.3s var(--bounce-ease);
}
.footer-brand img:hover {
    transform: scale(1.05);
}

/* Footer quick links */
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s var(--bounce-ease);
    border: 2px solid rgba(255,255,255,0.15);
}
footer .footer-social a:hover {
    background: var(--gradient-accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-glow-pink);
    border-color: transparent;
    color: #fff;
}

.copyright {
    background-color: #1a252f;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Footer badge styling */
footer .badge, .footer .badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 50rem;
    transition: transform 0.2s var(--bounce-ease), box-shadow 0.2s;
    background: rgba(26,188,156,0.2) !important;
    border: 1px solid rgba(26,188,156,0.3);
    color: #fff;
    text-decoration: none;
}
a.badge { cursor: pointer; }
footer .badge:hover, .footer .badge:hover {
    transform: scale(1.08);
    background: rgba(26,188,156,0.35) !important;
    box-shadow: 0 0 10px rgba(26,188,156,0.3);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-dramatic);
    transition: opacity 0.3s, transform 0.3s var(--bounce-ease);
    opacity: 0;
    display: none;
}
.back-to-top.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-glow-pink);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb-modern {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50rem;
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    margin-bottom: 1.5rem;
}
.breadcrumb-modern a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-modern a:hover { color: #fff; }
.breadcrumb-modern .separator {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.4);
}
.breadcrumb-modern .current {
    color: var(--warm-yellow);
    font-weight: 600;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,19,173,0.1) 0%, transparent 50%);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 992px) {
    .masthead {
        padding-top: calc(6rem + 104px);
        padding-bottom: 6rem;
    }
    .masthead-heading { font-size: 4.5rem; line-height: 1.1; }
    .masthead-subheading { font-size: 1.5rem; }
    .floating-label-form-group:not(:first-child) { border-left: 1px solid #e9ecef; }
    .dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
}

@media (max-width: 991.98px) {
    .masthead {
        min-height: auto;
        padding-top: calc(6rem + 74px);
        padding-bottom: 4rem;
    }
    .floating-label-form-group:not(:first-child) { border-left: none; padding-left: 0; }
    .home-products-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .nav-link, .btn, .dropdown-item { padding: 0.75rem 1rem; margin-bottom: 0.25rem; }
    .navbar-brand img { height: 80px; }
}

@media (max-width: 767.98px) {
    .masthead-heading { font-size: 2.5rem; line-height: 1.2; }
    .masthead-subheading { font-size: 1.1rem; }
    .home-products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .page-section { padding: 3rem 0; }
    .feature-box { padding: 1.5rem 1rem; margin-bottom: 1rem; }
    footer .footer-social a { height: 3rem; width: 3rem; font-size: 1.25rem; }
    .card-img-top { height: 220px; }
    .hero-shapes { display: none; }
}

@media (max-width: 575.98px) {
    .home-products-grid { grid-template-columns: 1fr; }
    .product-item { height: 220px; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .navbar-brand img { height: 60px; }
    .btn-xl { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .card-img-top { height: 200px; }
    .masthead-heading { font-size: 2rem; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus { outline: 3px solid var(--primary-color); outline-offset: 2px; }

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary-color); color: white;
    padding: 8px 16px; z-index: 9999;
    transition: top 0.3s; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: white; }

a:focus, button:focus, input:focus, textarea:focus, select:focus, .btn:focus, .nav-link:focus, .dropdown-item:focus {
    box-shadow: 0 0 0 3px rgba(26,188,156,0.5);
    outline: none;
}

@media (forced-colors: active) {
    .btn, .nav-link, .feature-box, .product-item, .card { border: 1px solid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in, .slide-up { opacity: 1; transform: none; }
    .masthead.hero-gradient { animation: none; background-size: 100% 100%; }
    .hero-shape { animation: none; }
    .cta-section { animation: none; background-size: 100% 100%; }
}

@media print {
    .navbar, footer, .back-to-top, .hero-shapes, .wave-divider { display: none; }
    .masthead { padding: 1rem 0; text-align: center; min-height: auto; }
    .masthead-heading { font-size: 2rem; color: black; text-shadow: none; }
    body { font-size: 12pt; color: #000; background-color: #fff; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; width: 100%; }
}

/* Lazy loading */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img[data-src].loaded { opacity: 1; }
.img-placeholder {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}
.img-placeholder::before {
    content: "";
    display: block;
    position: absolute;
    left: -150px; top: 0;
    height: 100%; width: 150px;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

/* ==========================================================================
   Trust Bar (homepage hero)
   ========================================================================== */
.trust-bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}
.trust-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}
.trust-bar > span > i { margin-right: 0.15rem; }
.trust-bar .stars { color: var(--warm-yellow); letter-spacing: 1px; }
.trust-bar .sep {
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}
@media (max-width: 575.98px) {
    .trust-bar {
        font-size: 0.82rem;
        gap: 0.35rem 0.85rem;
        padding: 0.6rem 1rem;
        border-radius: var(--border-radius);
    }
    .trust-bar .sep { display: none; }
}

/* ==========================================================================
   Featured Reviews (homepage)
   ========================================================================== */
.featured-reviews {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}
.aggregate-rating-display {
    text-align: center;
    margin-bottom: 2rem;
}
.aggregate-rating-display .big-stars {
    color: var(--warm-yellow);
    font-size: 1.75rem;
    letter-spacing: 4px;
    margin-bottom: 0.25rem;
}
.aggregate-rating-display .rating-text {
    font-size: 1.05rem;
    color: #6c757d;
}
.aggregate-rating-display .rating-text strong {
    color: var(--secondary-color);
    font-size: 1.15rem;
}

/* ==========================================================================
   Homepage FAQ Accordion
   ========================================================================== */
.home-faq {
    max-width: 820px;
    margin: 2rem auto 0;
}
.home-faq .faq-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--border-radius-lg);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    transition: box-shadow 0.3s var(--smooth-ease);
}
.home-faq .faq-item:hover { box-shadow: var(--shadow-md); }
.home-faq .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}
.home-faq .faq-item summary::-webkit-details-marker { display: none; }
.home-faq .faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s var(--smooth-ease);
}
.home-faq .faq-item[open] summary::after { content: '–'; }
.home-faq .faq-item summary:hover { color: var(--accent-color); }
.home-faq .faq-item .faq-answer {
    padding: 0 1.4rem 1.25rem;
    color: #495057;
    line-height: 1.6;
}

/* ==========================================================================
   Quote Builder
   ========================================================================== */
/* Floating quote pill (desktop only) */
.quote-pill {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1045;
    pointer-events: none; /* let the link itself catch clicks; container ignores */
}
.quote-pill[hidden] { display: none; }
.quote-pill-link {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 50rem;
    box-shadow: var(--shadow-glow-pink);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s var(--bounce-ease), box-shadow 0.25s;
}
.quote-pill-link:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-pink), 0 12px 30px rgba(0,0,0,0.2);
}
.quote-pill-link i { font-size: 1.05rem; }
.quote-pill-link .quote-pill-cta {
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}
@media (max-width: 767.98px) {
    /* On mobile the pill collapses into the action bar — hide standalone */
    .quote-pill { display: none !important; }
}

/* Add to Quote button + variant chooser inside product cards */
.btn-add-to-quote {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 50rem;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s var(--bounce-ease), box-shadow 0.25s;
}
.btn-add-to-quote:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink);
}
.btn-add-to-quote:disabled, .btn-add-to-quote.btn-added {
    background: var(--success-color);
    color: #fff;
    cursor: default;
    opacity: 1;
    transform: none;
    box-shadow: var(--shadow-md);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 50rem;
    overflow: hidden;
    margin: 0 0.5rem;
}
.qty-control button {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-control button:hover { background: rgba(26,188,156,0.1); }
.qty-control input {
    border: none;
    outline: none;
    width: 3rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Variant chooser radios on product cards */
.variant-chooser {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.variant-chooser label {
    cursor: pointer;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    border: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s var(--smooth-ease);
}
.variant-chooser input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.variant-chooser input[type="radio"]:checked + label {
    border-color: var(--accent-color);
    background: rgba(255,19,173,0.08);
    color: var(--accent-color);
}
.variant-chooser input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Nav cart icon + count badge — minimal, ecommerce-style. No pill, just the
   shopping bag with a small accent badge tucked at the top-right. */
.nav-quote-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
}
.nav-quote-link i { font-size: 1.15rem; }
.nav-quote-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.1rem;
    min-width: 1.1rem;
    padding: 0.05rem 0.35rem;
    background: var(--gradient-accent);
    color: #fff !important;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 1px 3px rgba(255,19,173,0.45);
    transform: translate(25%, -25%);
}
@media (max-width: 991.98px) {
    /* Collapsed mobile menu: badge drops back inline since the nav stacks vertically. */
    .nav-quote-link { gap: 0.4rem; }
    .nav-quote-badge {
        position: static;
        transform: none;
    }
}

/* Pink "Deals" nav link — distinct color when inactive, falls through to the
   normal .active gradient (white text) when on the deals page. */
.navbar-nav .nav-link.nav-link-deals { color: #ff6b9d; }
.navbar-nav .nav-link.nav-link-deals:hover { color: #ff85b3; }

/* /quote page table */
.quote-table {
    width: 100%;
    border-collapse: collapse;
}
.quote-table th, .quote-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}
.quote-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-weight: 700;
}
.quote-table .col-num { text-align: right; white-space: nowrap; }
.quote-table .row-remove {
    background: transparent;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.15s;
}
.quote-table .row-remove:hover { color: var(--accent-color); }
.quote-table .item-name { font-weight: 700; color: var(--secondary-color); }
.quote-totals {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26,188,156,0.05), rgba(255,19,173,0.05));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(26,188,156,0.1);
}
.quote-totals .total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.quote-totals .grand-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    border-top: 2px solid rgba(0,0,0,0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.quote-totals .grand-total .amount {
    color: var(--accent-color);
    font-size: 2rem;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}
.quote-disclaimer {
    background: #fff8e1;
    border-left: 4px solid var(--warm-yellow);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: #5d4e1a;
    margin: 1.5rem 0;
}
.quote-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #6c757d;
}
.quote-empty i { font-size: 4rem; opacity: 0.3; margin-bottom: 1rem; display: block; }

/* Quote thank-you state (replaces #quoteContent on successful submit) */
.quote-thanks {
    max-width: 720px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(26,188,156,0.06), rgba(255,19,173,0.06));
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(26,188,156,0.15);
    animation: bounceIn 0.6s var(--bounce-ease) both;
}
.quote-thanks .thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 3rem;
    box-shadow: var(--shadow-glow-teal);
    margin-bottom: 1.5rem;
    animation: pulse 2s 0.6s 2;
}
.quote-thanks h2 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}
.quote-thanks .lead { color: var(--secondary-color); }
.quote-thanks .lead strong { color: var(--accent-color); }

@media (max-width: 575.98px) {
    .quote-table thead { display: none; }
    .quote-table, .quote-table tbody, .quote-table tr, .quote-table td {
        display: block;
        width: 100%;
    }
    .quote-table tr {
        padding: 1rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    .quote-table td {
        border: none;
        padding: 0.25rem 0;
    }
    .quote-table .col-num { text-align: left; }
    .quote-table td[data-label]::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
        color: #6c757d;
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   Mobile Sticky Action Bar (Call / Quote)
   ========================================================================== */
.mobile-action-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    padding: 0.5rem;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    gap: 0.5rem;
}
.mobile-action-bar a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s var(--bounce-ease);
    /* Guarantee 44x44 minimum touch target */
    min-height: 48px;
}
.mobile-action-bar a:active { transform: scale(0.98); }
.mobile-action-bar .mab-call {
    background: var(--gradient-primary);
    color: #fff;
}
.mobile-action-bar .mab-quote {
    background: var(--gradient-accent);
    color: #fff;
}
.mobile-action-bar .mab-call:hover,
.mobile-action-bar .mab-quote:hover { color: #fff; }

@media (max-width: 767.98px) {
    .mobile-action-bar { display: flex; }
    /* Reserve space at bottom of page so the floating bar doesn't cover content */
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-action-bar {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }
    /* Lift back-to-top above the action bar */
    .back-to-top {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    /* Hide nav's phone CTA on mobile since it's now in the sticky bar */
    .navbar-nav .nav-cta-btn { display: none; }
}
