/*
Theme Name: Rotania B2B Custom
Theme URI: https://rotania.com
Author: Antigravity
Author URI: https://rotania.com
Description: Custom B2B Brand & Catalog theme for Rotania (Audio Systems). Modern startup aesthetic, light theme with red accents.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rotania
*/

:root {
    /* Color Palette - Light Theme */
    --clr-bg-main: #FAFAFA;
    --clr-bg-surface: #FFFFFF;
    --clr-bg-alt: #F3F4F6;
    
    --clr-text-main: #1F2937;
    --clr-text-muted: #6B7280;
    --clr-text-heading: #111827;
    
    --clr-accent-primary: #ee1d23;
    --clr-accent-hover: #d3181f;
    --clr-accent-light: #fee2e2;
    
    --clr-border: #E5E7EB;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Normalize */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

a {
    color: var(--clr-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--clr-accent-hover); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-heading);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-top: 0; margin-bottom: 1.5rem; }

/* Base Layout */
.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1440px) {
    .container { max-width: 1720px; }
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Utility Classes */
.bg-white { background-color: var(--clr-bg-surface); }
.bg-gray { background-color: var(--clr-bg-alt); }
.text-center { text-align: center; }

.section-py { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.section-py-lg { padding-top: clamp(6rem, 12vw, 10rem); padding-bottom: clamp(6rem, 12vw, 8rem); }

.border-bottom { border-bottom: 1px solid var(--clr-border); }
.border-top { border-top: 1px solid var(--clr-border); }

/* Modern Cards */
.card {
    background-color: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-accent-primary);
}

/* Buttons */
.button, button, input[type="submit"], .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-accent-primary);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.button:hover, button:hover, input[type="submit"]:hover, .btn-primary:hover {
    background-color: var(--clr-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-xl {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
}

.button:focus-visible, button:focus-visible, input[type="submit"]:focus-visible, a:focus-visible {
    outline: 3px solid var(--clr-accent-primary);
    outline-offset: 2px;
}

.button-outline, .btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-text-heading);
    color: var(--clr-text-heading);
    box-shadow: none;
}

.button-outline:hover, .btn-outline:hover {
    background-color: var(--clr-text-heading);
    color: #ffffff;
}

.button-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}
.button-whatsapp:hover {
    background-color: #20C05C;
    border-color: #20C05C;
}
.button-whatsapp svg { margin-inline-end: 0.5rem; fill: currentColor; }


/* Header & Nav */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0;
    text-transform: uppercase;
}

.site-title a {
    color: var(--clr-text-heading);
    display: flex;
    align-items: center;
}

.site-title a span {
    color: var(--clr-accent-primary);
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--clr-text-heading);
}

/* ─── Nav Hover: Sound-Wave Underline (desktop only) ─── */
@media (min-width: 993px) {

    .main-navigation .menu > li > a,
    .main-navigation #primary-menu > li > a {
        position: relative;
        display: inline-block;
        overflow: visible;
    }

    /* Animated sine-wave underline with varied amplitude */
    .main-navigation .menu > li > a::after,
    .main-navigation #primary-menu > li > a::after {
        content: '';
        position: absolute;
        z-index: -1;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 8px;
        /* 80px-wide wave with organically varying peaks & troughs */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 4Q5 1 10 4Q15 6.5 20 4Q25 1.5 30 4Q35 7 40 4Q45 0.5 50 4Q55 6 60 4Q65 2 70 4Q75 5.5 80 4' fill='none' stroke='%23ee1d23' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: repeat-x;
        background-size: 80px 8px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, background-position;
    }

    .main-navigation .menu > li > a:hover::after,
    .main-navigation #primary-menu > li > a:hover::after,
    .main-navigation .current-menu-item > a::after {
        transform: scaleX(1);
        animation: wave-scroll 2s linear infinite;
    }

    @keyframes wave-scroll {
        from { background-position-x: 0; }
        to   { background-position-x: 80px; }
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        color: var(--clr-accent-primary);
    }

    /* ─── Click: Wave collapses → dot rises → ripples burst ─── */

    /* Phase 1: Wave collapses horizontally at the bottom */
    .main-navigation .menu > li > a.nav-wave-burst::after,
    .main-navigation #primary-menu > li > a.nav-wave-burst::after {
        animation: wave-collapse 0.3s ease-in forwards !important;
        transform-origin: center center;
    }

    @keyframes wave-collapse {
        0%   { transform: scaleX(1); opacity: 1; }
        100% { transform: scaleX(0); opacity: 0.4; }
    }

    /* Phase 2: Dot rises from wave position to link center */
    .nav-click-dot {
        position: absolute;
        width: 6px;
        height: 6px;
        left: 50%;
        border-radius: 50%;
        background: var(--clr-accent-primary);
        pointer-events: none;
        z-index: -1;
        transform: translateX(-50%);
        transition: top 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Phase 3: Ripple rings burst from center */
    .nav-click-ripple {
        position: absolute;
        left: 50%;
        top: 50%;
        border-radius: 50%;
        border: 1.5px solid var(--clr-accent-primary);
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: -1;
        animation: nav-ripple-burst 0.6s cubic-bezier(0, 0.5, 0.3, 1) forwards;
    }

    @keyframes nav-ripple-burst {
        0%   { width: 0; height: 0; opacity: 0.6; }
        100% { width: 80px; height: 80px; opacity: 0; }
    }

} /* end @media min-width: 993px */

.header-cta {
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.header-cta:hover {
    background-color: var(--clr-accent-primary);
    color: #ffffff;
}

/* Footer */
.site-footer {
    background-color: var(--clr-bg-surface);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--clr-border);
    margin-top: 5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.widget-title {
    font-size: 1.125rem;
    color: var(--clr-text-heading);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-widget p, .footer-widget a {
    color: var(--clr-text-muted);
}
.footer-widget a:hover {
    color: var(--clr-accent-primary);
}

.site-info {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-text-main);
    font-size: 0.9rem;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background-color: var(--clr-bg-main);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text-main);
    transition: all var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-accent-primary);
    box-shadow: 0 0 0 3px rgba(238, 29, 35, 0.15);
    background-color: var(--clr-bg-surface);
}

/* Validation Styles */
input.invalid, select.invalid, textarea.invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

input.invalid:focus, select.invalid:focus, textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.error-message {
    font-weight: 500;
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* International Tel Input Customization */
.iti { width: 100%; }
.iti__country-list {
    background-color: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 101;
}
.iti__country {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-main);
}
.iti__country.iti__highlight {
    background-color: var(--clr-bg-alt);
}
.iti__country-name {
    font-weight: 500;
}
.iti__selected-dial-code {
    font-weight: 600;
    color: var(--clr-text-heading);
}
.iti--separate-dial-code .iti__selected-dial-code {
    margin-inline-start: 8px;
}

/* Ensure dropdowns look consistent */
select#b2b_country, select#b2b_subject {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-inline-end: 3rem;
}


/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--clr-text-heading);
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: none;
}
.menu-toggle:hover {
    background: var(--clr-bg-alt);
    color: var(--clr-accent-primary);
    transform: none;
}
.menu-toggle svg { display: block; }

/* Hero Section */
/* Hero Sections (Home, About, Services) */
.hero-section,
.about-hero,
.services-hero {
    min-height: calc(100vh - 84px); /* Fallback for header height */
    min-height: calc(100vh - var(--header-height, 84px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom right, var(--clr-bg-surface), var(--clr-bg-alt));
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--clr-text-heading);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-accent-primary);
    margin-bottom: 1.5rem;
}

/* Section headings */
.section-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--clr-text-heading);
}

.section-subheading {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 3.5rem;
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY GRID (Front Page)
   ═══════════════════════════════════════════════════════════ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--clr-bg-alt);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.category-card:hover .category-card__image img {
    transform: scale(1.06);
}

.category-card__placeholder {
    color: var(--clr-text-muted);
    opacity: 0.3;
}

.category-card__info {
    padding: 1.5rem;
    text-align: center;
}

.category-card__info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    color: var(--clr-text-heading);
}

.category-card__count {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
}

.category-card__link {
    color: var(--clr-accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.category-card:hover .category-card__link {
    letter-spacing: 0.02em;
}

@media(max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════ */

.trust-bar {
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-bg-surface);
    padding: 1.5rem 0;
}

.trust-bar__inner {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-muted);
}

.trust-item svg {
    color: var(--clr-accent-primary);
    flex-shrink: 0;
}

.trust-item div {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 0.9rem;
    color: var(--clr-text-heading);
    font-weight: 700;
    line-height: 1.3;
}

.trust-item span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}


/* ═══════════════════════════════════════════════════════════
   WHY ROTANIA SECTION
   ═══════════════════════════════════════════════════════════ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2.5rem;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-4px);
}

.why-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-accent-light);
    border-radius: 50%;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════ */

.stats-section {
    background: linear-gradient(135deg, var(--clr-text-heading) 0%, #374151 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--clr-accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

/* Story Grid */
.about-story__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.about-story__content h2 {
    margin-bottom: 1.5rem;
}

.about-story__content p {
    color: var(--clr-text-main);
    line-height: 1.8;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--clr-border);
    transition: all var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent-primary);
}

.value-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-accent-light);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Global Presence Map */
.global-map-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.global-map-img {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

/* Region Cards */
.global-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.region-card {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--clr-border);
    transition: all var(--transition-smooth);
}

.region-card:hover {
    border-color: var(--clr-accent-primary);
    box-shadow: var(--shadow-md);
}

.region-card__icon {
    margin-bottom: 1rem;
}

.region-card h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-badge {
    font-size: 0.65rem;
    background: var(--clr-accent-primary);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.region-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-alt);
    border-radius: 50%;
    border: 2px solid var(--clr-border);
}

.team-card__name {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.team-card__role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent-primary);
    margin-bottom: 1rem;
}

.team-card__bio {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}



/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════ */

.service-detail-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-detail-content, .service-detail-image {
    flex: 1;
}

.service-detail-content h2 {
    margin-bottom: 1.5rem;
}

.service-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.service-list li {
    position: relative;
    padding-inline-start: 1.75rem;
    font-weight: 500;
    color: var(--clr-text-heading);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--clr-accent-primary);
    border-radius: 2px;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
}

@media (max-width: 992px) {
    .service-detail-row, .service-detail-row.reverse {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 4.5rem;
    }
    .service-detail-row:last-child { margin-bottom: 0; }
}

/* ── Industries Grid ─────────────────────────────────────── */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.industry-card {
    display: flex;
    flex-direction: column;
}

.industry-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--clr-bg-alt);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--clr-border);
}

.industry-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    border-radius: 0;
}

.industry-card:hover .industry-card__image img {
    transform: scale(1.05);
}

.industry-card__content {
    padding: 2rem;
    flex-grow: 1;
}

.industry-card__content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.industry-card__content p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   POLICY PAGES
   ═══════════════════════════════════════════════════════════ */

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-text-heading);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    color: var(--clr-text-main);
    line-height: 1.8;
}

.policy-content ul, .policy-content ol {
    padding-inline-start: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
    line-height: 1.7;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.policy-table th, .policy-table td {
    padding: 0.875rem 1.25rem;
    text-align: start;
    border-bottom: 1px solid var(--clr-border);
}

.policy-table th {
    background: var(--clr-bg-alt);
    font-weight: 700;
    color: var(--clr-text-heading);
    font-size: 0.9rem;
}

.policy-table td {
    color: var(--clr-text-main);
    font-size: 0.9rem;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover {
    background: var(--clr-bg-alt);
}


/* ═══════════════════════════════════════════════════════════
   CATALOG PAGE & AJAX FILTER SYSTEM
   ═══════════════════════════════════════════════════════════ */

.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    position: relative;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.catalog-sidebar {
    background: var(--clr-bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    padding: 1.75rem;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    box-shadow: var(--shadow-sm);

    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--clr-border) transparent;
}
.catalog-sidebar::-webkit-scrollbar { width: 4px; }
.catalog-sidebar::-webkit-scrollbar-track { background: transparent; }
.catalog-sidebar::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 4px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
}

.sidebar-title {
    font-size: 1.125rem;
    margin: 0;
    color: var(--clr-text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title svg {
    color: var(--clr-accent-primary);
}

.reset-filters {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.reset-filters:hover {
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
}

/* ── Active Filter Pills ─────────────────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--clr-border);
}

.rotania-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    border: 1px solid rgba(238, 29, 35, 0.15);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: none;
}
.rotania-filter-pill:hover {
    background: var(--clr-accent-primary);
    color: #fff;
    transform: none;
    box-shadow: none;
}
.rotania-filter-pill svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.rotania-filter-pill:hover svg {
    opacity: 1;
}

/* ── Filter Sections (Collapsible) ────────────────────────── */
.rotania-filter-section {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--clr-border);
}
.rotania-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rotania-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}
.rotania-filter-header span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text-heading);
    letter-spacing: -0.01em;
}
.rotania-filter-header:hover span {
    color: var(--clr-accent-primary);
}
.rotania-filter-header .chevron {
    transition: transform var(--transition-smooth);
    color: var(--clr-text-muted);
    flex-shrink: 0;
}

.rotania-filter-section.collapsed .rotania-filter-header .chevron {
    transform: rotate(-90deg);
}

.rotania-filter-body {
    padding-bottom: 0.85rem;
    max-height: 400px;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth), opacity var(--transition-smooth);
    opacity: 1;
}
.rotania-filter-section.collapsed .rotania-filter-body {
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* ── Custom Checkboxes ────────────────────────────────────── */
.rotania-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    margin: 0.15rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--clr-text-main);
    border-radius: 6px;
    transition: background var(--transition-fast);
    position: relative;
}
.rotania-checkbox-label:hover {
    background: var(--clr-bg-alt);
}

.rotania-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--clr-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background: var(--clr-bg-surface);
    position: relative;
}
.checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s cubic-bezier(0.65, 0, 0.35, 1);
    margin-top: -1px;
}

.rotania-checkbox-label input:checked + .checkmark {
    background: var(--clr-accent-primary);
    border-color: var(--clr-accent-primary);
    box-shadow: 0 0 0 2px rgba(238, 29, 35, 0.15);
}
.rotania-checkbox-label input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.rotania-checkbox-label input:focus-visible + .checkmark {
    box-shadow: 0 0 0 3px rgba(238, 29, 35, 0.25);
}

.filter-count {
    margin-inline-start: auto;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    background: var(--clr-bg-alt);
    padding: 0.1rem 0.5rem;
    border-radius: 2rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
}

/* Disabled (zero results) filter option */
.filter-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.filter-disabled .filter-count {
    background: transparent;
}

/* ── Sort Select ──────────────────────────────────────────── */
.rotania-sort-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background: var(--clr-bg-main);
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.rotania-sort-select:focus {
    border-color: var(--clr-accent-primary);
    box-shadow: 0 0 0 2px rgba(238, 29, 35, 0.1);
}

/* ── Product Grid ─────────────────────────────────────────── */
.catalog-products {
    position: relative;
}

.catalog-results-bar {
    margin-bottom: 1rem;
}

.result-count-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.catalog-products-grid.loading {
    pointer-events: none;
}

/* ── Product Cards ────────────────────────────────────────── */
.product-card__image {
    border-bottom: 1px solid var(--clr-border);
    background-color: var(--clr-bg-alt);
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}
.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__details {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--clr-bg-surface);
}

.product-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--clr-text-heading);
    line-height: 1.3;
    font-weight: 700;
}

.product-card__category {
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.spec-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.product-card__cta {
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.55rem;
    text-align: center;
}

/* ── Loading Overlay ──────────────────────────────────────── */
.rotania-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    border-radius: var(--radius-lg);
}
.rotania-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--clr-border);
    border-top-color: var(--clr-accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── No Results ───────────────────────────────────────────── */
.rotania-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--clr-text-muted);
}
.rotania-no-results svg {
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}
.rotania-no-results h3 {
    color: var(--clr-text-heading);
    margin-bottom: 0.5rem;
}
.rotania-no-results p {
    max-width: 400px;
    margin: 0 auto;
}

/* ── Mobile Filter Toggle Button ──────────────────────────── */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-heading);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.mobile-filter-toggle:hover {
    border-color: var(--clr-accent-primary);
    color: var(--clr-accent-primary);
    transform: none;
}
.mobile-filter-toggle svg {
    color: var(--clr-accent-primary);
}

/* ── Filter Overlay (mobile) ──────────────────────────────── */
.filter-overlay {
    display: none;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 6vw, 4rem);
}


/* ═══════════════════════════════════════════════════════════
   ENHANCED FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    background-color: var(--clr-text-heading);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
    border-top: none;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--clr-accent-primary);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
    cursor: default;
}

.social-icon:hover {
    background: var(--clr-accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer Column Titles */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    padding-inline-start: 4px;
}

/* Footer Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--clr-accent-primary);
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
    color: #fff;
}

.footer-regions {
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

.footer-regions strong {
    color: rgba(255,255,255,0.7);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-certifications svg {
    color: var(--clr-accent-primary);
}


/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER
   ═══════════════════════════════════════════════════════════ */

.nav-overlay {
    display: none;
}

.mobile-nav-cta {
    display: none;
}


/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */

/* Reduced motion */
@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;
    }
}

/* High contrast focus */
:focus-visible {
    outline: 3px solid var(--clr-accent-primary);
    outline-offset: 2px;
}

.skip-link:focus {
    clip: auto !important;
    clip-path: none !important;
    height: auto;
    width: auto;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 999;
    background: var(--clr-accent-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════ */

@media(max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 340px;
        max-width: 85vw;
        max-height: 100vh;
        z-index: 200;
        border-radius: 0;
        border: none;
        border-inline-end: 1px solid var(--clr-border);
        box-shadow: var(--shadow-hover);
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
        padding-top: 2rem;
    }
    .catalog-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 199;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-smooth);
    }
    .filter-drawer-open .filter-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media(max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--clr-bg-surface);
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-hover);
        z-index: 201;
        gap: 0.5rem;
        border-inline-start: 1px solid var(--clr-border);
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        margin: 0;
        list-style: none;
        overflow-y: auto;
    }

    .main-navigation ul.toggled {
        display: flex;
        transform: translateX(0);
    }

    .main-navigation ul li a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
        color: var(--clr-text-heading);
    }

    .main-navigation ul li a:hover {
        background: var(--clr-bg-alt);
    }

    .main-navigation .mobile-nav-cta {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--clr-border);
    }

    .menu-toggle {
        position: relative;
        z-index: 202;
    }

    .header-actions {
        display: none !important;
    }

    /* Nav overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-smooth);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Prevent body scroll when nav is open */
    body.nav-open {
        overflow: hidden;
    }

    /* About page story grid */
    .about-story__grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trust-bar__inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 2rem;
        padding-bottom: 0.5rem;
    }

    .trust-item {
        flex-shrink: 0;
    }
}

@media(max-width: 640px) {
    .catalog-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
}

/* Hide default WC product loop */
ul.products { display: none !important; }

/* WooCommerce notice styling overrides */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* WooCommerce pagination override — show all products */
.woocommerce-pagination {
    display: none !important;
}

/* Image Quality Disclaimer */
.catalog-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-quality-notice-small {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    justify-content: center;
}

.image-quality-notice svg,
.image-quality-notice-small svg {
    flex-shrink: 0;
    opacity: 0.7;
}

@media(max-width: 640px) {
    .catalog-results-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.why-grid .reveal-on-scroll:nth-child(2),
.categories-grid .reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.why-grid .reveal-on-scroll:nth-child(3),
.categories-grid .reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

/* Ensure main product gallery images also fit properly */
.woocommerce-product-gallery__image img {
    object-fit: contain !important;
    max-height: 500px;
    margin: 0 auto;
}
