/*
 * JOVAL.PT - MODERN INDUSTRIAL THEME
 *
 * DESIGN SYSTEM COMPLIANCE:
 * - This is the SINGLE SOURCE OF TRUTH for all frontend styles
 * - NEVER add inline styles to templates
 * - ALWAYS use CSS classes defined here
 * - Use CSS variables for colors, spacing, and sizing
 * - Design rules documented in CLAUDE.md
 *
 * ORGANIZATION:
 * 1. CSS Variables (:root)
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout Utilities
 * 5. Navigation & Header
 * 6. Components (Buttons, Cards, Forms, etc.)
 * 7. Page-Specific Sections
 * 8. Responsive Design
 * 9. Utility Classes
 *
 * Last Updated: December 14, 2025
 */

/* === FONTS === */
@font-face {
    font-family: 'Geist Sans';
    src: url('../fonts/Geist-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Palette: Industrial Navy & Blue */
    --color-primary: #0f172a;    /* Deep Navy - Headings, Footer */
    --color-primary-light: #1e293b;
    --color-accent: #0284c7;     /* Bright Blue - Buttons, Links */
    --color-accent-hover: #0369a1;
    --color-text-main: #334155;  /* Slate 700 - Body Text */
    --color-text-muted: #64748b; /* Slate 500 - Secondary Text */
    --color-bg-body: #f8fafc;    /* Very light blue-grey */
    --color-bg-white: #ffffff;
    
    /* Typography - Updated to Geist for superior legibility */
    --font-main: 'Geist Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Geist Sans', system-ui, sans-serif;
    --font-mono: 'Geist Mono', monospace;

    /* Base Typography Settings - Geist has a slightly larger x-height */
    --font-size-base: 16px;
    --line-height-base: 1.55;
    --letter-spacing-tight: -0.02em;

    /* Borders */
    --border-color: #e2e8f0;
    --border-radius: 4px; /* Utility radius for buttons/inputs */
    --radius-md: 12px;    /* Standard card radius */
    --radius-lg: 24px;    /* Premium/Section radius */
    
    /* Functional */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;

    /* Atmospheric depth */
    --gradient-mesh: 
        radial-gradient(at 0% 0%, rgba(15, 23, 42, 0.95) 0%, transparent 70%),
        radial-gradient(at 100% 0%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 41, 59, 0.95) 0%, transparent 70%),
        radial-gradient(at 0% 100%, rgba(15, 23, 42, 0.95) 0%, transparent 70%);
    
    --gradient-mesh-overlay: 
        radial-gradient(at 0% 0%, rgba(15, 23, 42, 0.85) 0%, transparent 70%),
        radial-gradient(at 100% 0%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 41, 59, 0.85) 0%, transparent 70%),
        radial-gradient(at 0% 100%, rgba(15, 23, 42, 0.85) 0%, transparent 70%);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;

    /* Orchestrated Motion */
    --ease-out-expo: cubic-bezier(0.33, 1, 0.68, 1);
    --motion-duration: 0.6s;

    /* Technical Patterns */
    --blueprint-grid:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);

    /* ===========================================
     * RESPONSIVE BREAKPOINTS (Standardized)
     * ===========================================
     * Use these values consistently across all media queries.
     *
     * --bp-xs:  480px  - Extra small (large phones landscape)
     * --bp-sm:  576px  - Small (phones)
     * --bp-md:  768px  - Medium (tablets)
     * --bp-lg:  992px  - Large (desktops)
     * --bp-xl:  1100px - Extra large (wide desktops)
     *
     * Mobile-first approach: base styles for mobile,
     * use min-width queries to enhance for larger screens.
     */
}

/* --- Technical Underlay --- */
body {
    background-image: var(--blueprint-grid);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* --- Machined Corner Utility --- */
.machined-corners {
    position: relative;
}

.machined-corners::before,
.machined-corners::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(2, 132, 199, 0.4); /* Muted accent */
    border-style: solid;
    pointer-events: none;
    z-index: 5;
}

/* Top-Left Bracket */
.machined-corners::before {
    top: 6px;
    left: 6px;
    border-width: 1px 0 0 1px;
}

/* Bottom-Right Bracket */
.machined-corners::after {
    bottom: 6px;
    right: 6px;
    border-width: 0 1px 1px 0;
}

.machined-corners:hover::before {
    border-color: var(--color-accent);
}

.machined-corners:hover::after {
    border-color: var(--color-accent);
}

/* --- Orchestrated Motion --- */
.reveal-in {
    opacity: 0;
    transform: translateY(10px);
    animation: reveal-in var(--motion-duration) var(--ease-out-expo) forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

@keyframes reveal-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CRITICAL: Touch optimization === */
/* Eliminates 300ms tap delay and prevents double-tap zoom interference */
a, button, input, select, textarea,
[role="button"], [role="link"],
.product-card, .card-link, .thumb-item,
.action-btn, .nav-link, .category-link {
    touch-action: manipulation;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Industrial Grain Texture Overlay */
.bg-primary::before,
.hero::before,
.contact-card::before,
.quality-policy-card-horizontal::before,
.selector-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

/* === ANIMATED GRAIN EFFECT - TV static flicker === */
@keyframes grain {
  0% { transform: translate(0, 0) }
  20% { transform: translate(-80px, 60px) }
  40% { transform: translate(70px, -90px) }
  60% { transform: translate(-60px, -70px) }
  80% { transform: translate(90px, 80px) }
  100% { transform: translate(0, 0) }
}

/* Reusable grain effect base styles */
.grain-effect,
.site-footer::before,
.hero:not(.home-hero)::after,
.selector-hero::after,
.products-hero::after {
    position: absolute;
    top: -200px;
    left: -200px;
    right: -200px;
    bottom: -200px;
    background-image: url('/noise.jpg');
    background-repeat: repeat;
    background-size: 150px auto;
    opacity: 0.27;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    animation: grain 0.12s steps(5) infinite !important;
    animation-duration: 0.12s !important;
    animation-iteration-count: infinite !important;
}

/* Pseudo-elements need content */
.site-footer::before,
.hero:not(.home-hero)::after,
.selector-hero::after,
.products-hero::after {
    content: "";
}

.site-footer > * {
    position: relative;
    z-index: 2;
}

.hero, .contact-card, .quality-policy-card-horizontal, .site-footer, .selector-hero {
    position: relative;
    overflow: hidden;
}

.hero > *, .contact-card > *, .quality-policy-card-horizontal > *, .products-hero > * {
    position: relative;
    z-index: 2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
    letter-spacing: -0.02em; /* Tighter tracking for display font */
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: 2rem; letter-spacing: var(--letter-spacing-tight); text-wrap: balance; }
h3 { font-size: 1.5rem; letter-spacing: -0.015em; text-wrap: balance; }
h4 { font-size: 1.25rem; letter-spacing: var(--letter-spacing-tight); }
h5 { font-size: 1.1rem; letter-spacing: var(--letter-spacing-tight); }
h6 { font-size: 1rem; letter-spacing: var(--letter-spacing-tight); }

p { margin-bottom: 1.5rem; text-wrap: pretty; }

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover { color: var(--color-accent-hover); }

/* === LAYOUT UTILS === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HEADER & NAV === */
header {
    background: var(--color-bg-white);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 64px;
    transition: max-height 0.3s ease;
}

.pro-view-indicator {
    color: var(--color-accent);
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    background: rgba(2, 132, 199, 0.1);
    padding: 4px;
    border-radius: 50%;
    border: 1px solid rgba(2, 132, 199, 0.2);
    animation: pro-view-pulse 2s infinite;
}

@keyframes pro-view-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    color: var(--color-primary);
    z-index: 101;
    line-height: 0; /* Align icon better */
}

.mobile-search-toggle svg {
    pointer-events: none;
}

.header-actions {
    display: none; /* Only show on mobile */
    align-items: center;
    gap: 0.25rem;
}

/* Hamburger Menu Icon */
.mobile-menu-toggle .bar {
    display: block;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(0.68, -0.3, 0.32, 1.3),
        width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease-out;
}

/* Staggered asymmetrical widths - right-aligned technical aesthetic */
.mobile-menu-toggle .bar:nth-child(1) {
    width: 20px;
    margin-bottom: 5px;
}

.mobile-menu-toggle .bar:nth-child(2) {
    width: 16px;
    margin-left: auto;
    margin-bottom: 5px;
}

.mobile-menu-toggle .bar:nth-child(3) {
    width: 12px;
    margin-left: auto;
}

/* Hover: bars align and expand */
.mobile-menu-toggle:hover .bar,
.mobile-menu-toggle:focus-visible .bar {
    width: 20px;
    margin-left: 0;
}

nav {
    margin: 0 auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--color-accent);
}

/* === NAV DROPDOWN === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: inherit;
    padding: 0.5rem 0;
    margin: 0;
    position: relative;
    transition: color 0.2s;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.is-active {
    color: var(--color-accent);
}

.nav-dropdown__chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown__chevron,
.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 220px;
    background: var(--color-bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

.nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--color-bg-white);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-radius: 2px 0 0 0;
}

.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    border-radius: 6px;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
    background: var(--color-bg-body);
    color: var(--color-accent);
}

.nav-dropdown__menu a[aria-current="page"] {
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 6%, transparent);
}

.nav-dropdown__icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-dropdown__menu a:hover .nav-dropdown__icon,
.nav-dropdown__menu a[aria-current="page"] .nav-dropdown__icon {
    opacity: 1;
}

.nav-dropdown__divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.35rem 0.75rem;
}

/* Scrolled Header State */
body.header-scrolled {
    --header-height: 56px;
}

body.header-scrolled header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}

body.header-scrolled .logo img {
    max-height: 44px;
}

/* === LANGUAGE SWITCHER === */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem; /* Reduced from 2rem to balance */
    padding-left: 1rem; /* Reduced from 2rem */
    border-left: 1px solid var(--border-color);
    height: 32px;
}

.lang-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.lang-link:hover {
    color: var(--color-primary);
}

.lang-link.active {
    color: var(--color-accent);
    cursor: default;
}

/* === SEARCH FORM === */
.search-container {
    margin-left: 0; /* Let nav center take space */
    margin-right: 0;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-body);
    border: 1px solid var(--border-color);
    border-radius: 99px; /* Pill shape */
    /* overflow: hidden; Removed to allow dropdown */
    transition: border-color 0.2s, box-shadow 0.2s; /* Removed width transition */
    width: 260px; /* Fixed comfortable width */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: text;
    position: relative;
}

/* Focused state styles */
.search-form:focus-within,
.search-form:hover,
.search-form.has-value {
    /* width: 320px; REMOVED to fix layout shift */
    background: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.6rem 1rem 0.6rem 1.2rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--color-text-main);
    outline: none;
    width: 100%;
}

.search-form input[type="search"]::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8;
}

.search-form button {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.search-form button svg {
    width: 20px;
    height: 20px;
}

/* === SEARCH RESULTS === */
.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-bg-body);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.search-query {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-main);
}

.search-info .btn-outline {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.search-info .btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-bg-body);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.no-results h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lang-separator {
    color: var(--border-color);
    font-size: 0.85rem;
    user-select: none;
}


.flag-icon-svg {
    display: inline-block;
    vertical-align: middle;
    height: 1.2em;
    width: auto;
    position: relative;
    top: -1px;
}

.home-hero .flag-icon-svg {
    margin-left: 0.5em;
}

.made-in-portugal .flag-icon-svg {
    margin-right: 0.5em;
}

.made-in-portugal {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* --- Hero Section --- */

.hero {
    background: var(--gradient-mesh), var(--color-primary);
    background-position: center center;
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
}

/* Technical Grid Overlay */
.home-hero::before {
    content: "" !important; /* Keep original home hero grid */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
    mask-image: none !important; /* Disable radial mask for home page */
    -webkit-mask-image: none !important;
}

.home-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh), url('/uploads/images/JOVALgamadeprodutos.png');
    background-size: cover;
    background-position: center center;
    z-index: 0;
    animation: hero-subtle-zoom 30s ease-in-out infinite alternate;
}

@keyframes hero-subtle-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

/* Home-hero grain overlay z-index override (needs to be above ::after background) */
.home-hero .grain-overlay {
    z-index: 2;
}

@media (max-width: 768px) {
    .home-hero::after { animation: none; }

    /* Disable grain animation on mobile for battery savings */
    .grain-effect,
    .site-footer::before,
    .hero:not(.home-hero)::after,
    .selector-hero::after,
    .products-hero::after {
        animation: none !important;
    }
}

.hero h1 { color: white; margin-bottom: 1rem; }

.home-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Deep shadow for spatial depth */
    letter-spacing: -0.04em;
}

.hero .tagline { 
    font-family: var(--font-display);
    font-size: 1.25rem; 
    color: #94a3b8; /* Slate 400 */
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.home-hero .tagline {
    font-size: 1.5rem;
    color: #e2e8f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stack hero buttons on small screens (bp-sm: 576px) */
@media (max-width: 576px) {
    .hero .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.btn:hover::after {
    animation: btn-glint 0.8s ease-in-out;
}

@keyframes btn-glint {
    0% { left: -60%; }
    100% { left: 140%; }
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: inset 0 3px 5px rgba(15, 23, 42, 0.1);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(2, 132, 199, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -1px rgba(15, 23, 42, 0.2);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger { background: var(--color-danger); color: white; }

/* === CARDS & GRID === */

/* Products Meta Header - Shows count and active filters */
.products-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.products-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.products-filter-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(2, 132, 199, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Visual Row Dividers - Break information into digestible chunks */
.products-grid-break {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    margin: 0.5rem 0;
}

.products-grid-break .break-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-color) 15%,
        var(--border-color) 85%,
        transparent
    );
}

.products-grid-break .break-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-body);
    border: 1px dashed var(--border-color);
    border-radius: 100px;
}

/* Reduced motion: Simplify animations */
@media (prefers-reduced-motion: reduce) {
    .products-grid-break .break-line {
        background: var(--border-color);
    }
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    border-color: var(--color-accent);
}

/* Touch feedback for mobile - provides visual confirmation of tap */
.product-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

/* Disable hover effects on touch devices to prevent sticky hover states */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-color);
    }
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Removed padding to fill container */
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the container */
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

.product-card:hover .product-image-primary {
    transform: scale(1.05);
}

.product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__model-label {
    font-family: var(--font-main);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 800;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card__footer::after {
    content: "→";
    color: var(--color-accent);
    transition: transform 0.3s var(--ease-out-expo);
}

.product-card:hover .product-card__footer::after {
    transform: translateX(4px);
}

/* === FORMS === */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Improved touch targets for mobile forms */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem 0.75rem;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* === ALERTS === */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-container {
    background: white;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.tech-card-request-access {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.tech-card-request-access .btn-link {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    font-size: 0.8125rem;
}

.tech-card-request-access .btn-link:hover {
    text-decoration: underline;
}

#tech-card-request .form-group {
    margin-bottom: 0.75rem;
}

#tech-card-request .form-row {
    display: flex;
    gap: 0.75rem;
}

#tech-card-request .col-md-6 {
    flex: 1;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* === MAIN CONTENT === */
main {
    flex-grow: 1;
    width: 100%;
}

/* === UTILITY CLASSES === */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Scroll shadow indicator for tables */
.table-responsive::before,
.table-responsive::after {
    content: "";
    position: sticky;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.table-responsive::after {
    right: 0;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.08), transparent);
}

.table-responsive.is-scrollable::after {
    opacity: 1;
}

/* Scroll Hint Indicator - shows on first view when table is scrollable */
.scroll-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.scroll-hint::after {
    content: "→";
    font-size: 0.85rem;
    animation: scroll-hint-bounce 1s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.table-responsive.show-scroll-hint .scroll-hint {
    opacity: 1;
}

.table-responsive.has-scrolled .scroll-hint {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint::after {
        animation: none;
    }
}

/* === Mobile Menu Scroll Lock === */
/* Uses overflow:hidden on html — avoids iOS Safari scroll-jump from position:fixed */
html.menu-open {
    overflow: hidden;
}
html.menu-open body {
    overflow: hidden;
    touch-action: none;
}

.grid-50-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Stack 50/50 grid on tablet and below (bp-lg: 992px) */
@media (max-width: 992px) {
    .grid-50-50 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.border-bottom { border-bottom: 1px solid var(--border-color); }
.text-accent { color: var(--color-accent); }
.text-accent-light { color: #7dd3fc; } /* Lighter sky blue for better contrast on dark backgrounds */
.text-white { color: white; }
.text-white-muted { color: rgba(255, 255, 255, 0.8); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white-90 { color: rgba(255, 255, 255, 0.9); }

.d-flex-center { display: flex; justify-content: center; align-items: center; }
.rounded-8 { border-radius: 8px; }
.w-100 { width: 100%; }

/* Reorder utilities for desktop (bp-lg: 992px) */
@media (min-width: 993px) {
    .order-md-1 { order: 1; }
    .order-md-2 { order: 2; }
}

.section-padding {
    padding: clamp(2.5rem, 5vh, 4rem) 0;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.align-middle { vertical-align: middle; }
.bg-light { 
    background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-body) 100%);
    position: relative;
}
.border-top { 
    border-top: 1px solid var(--border-color);
    position: relative;
}
.border-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.4;
    filter: blur(0.5px);
}
.leading-tight { line-height: 1.2; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-4, .mt-2rem { margin-top: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-8 { margin-top: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* Reduce large margins on mobile */
@media (max-width: 768px) {
    .mt-8 { margin-top: 1.5rem; }
    .mb-8 { margin-bottom: 1.5rem; }

    /* Performance section specifically - keep consistent with tech card gaps */
    #performance-section.mt-8 {
        margin-top: 0.75rem;
    }
}
.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }
.d-block { display: block; }
.self-start { align-self: flex-start; }
.hidden { display: none !important; }
.align-middle { vertical-align: middle !important; }

.btn-download {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.coming-soon-message {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-body);
    border-radius: var(--border-radius);
}

.company-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-box {
    position: relative;
    background: white;
    padding: 3.5rem 2rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 2.5rem; /* Accommodate the popped-out icon */
    transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.feature-box .feature-icon {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    color: var(--color-accent);
    z-index: 2;
    transition: border-color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.feature-box:hover .feature-icon {
    border-color: var(--color-accent);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-box h3 { 
    color: var(--color-accent); 
    font-size: 1.25rem; 
    margin-top: 0.5rem;
}

/* === GEO MASTERY & EEAT STYLES === */
.product-geo-summary {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.geo-highlights-card {
    background: #ffffff;
    border: 1px solid var(--border-color); /* Slate-200 equivalent usually */
    border-top: 3px solid var(--color-primary);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.geo-highlights-title {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.geo-highlights-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.geo-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .geo-highlights-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
    }
}

.geo-highlights-list li {
    font-size: 0.9rem;
    color: var(--color-text-main);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.geo-highlights-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.geo-highlights-list li strong {
    font-weight: 600;
    color: var(--color-primary);
}

/* Expert Tip Component (BEM) */
.expert-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f0f9ff; /* Light sky blue */
    border-left: 4px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-tip:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.expert-tip__icon {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 0.125rem;
}

.expert-tip__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.expert-tip__content {
    flex-grow: 1;
}

.expert-tip__title {
    color: var(--color-accent); /* Or Primary if preferred */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.expert-tip__text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* === CATEGORY CARDS === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--color-primary);
    line-height: 1.35;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* === TABLES === */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-text-main);
}

.table th {
    background-color: #f8fafc;
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: #e2e8f0;
    transition: background 0.15s ease;
}

/* === MOBILE SAFE AREAS === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    
    #whatsapp-widget {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Prevent iOS zoom on inputs */
    input, select, textarea {
        font-size: 16px !important; 
    }

    header { height: auto; position: sticky; top: 0; padding: 0.5rem 0; }
    
    header .container {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
    }

    .header-actions {
        display: flex;
        order: 2; /* Ensure it stays right */
    }

    .logo {
        order: 1;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--color-primary);
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.2s;
    }

    .mobile-menu-toggle {
        flex-direction: column;
        padding: 11px;
    }

    .mobile-menu-toggle:active,
    .mobile-search-toggle:active {
        background-color: rgba(15, 23, 42, 0.05);
    }

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    /* Mobile Sidebar Toggle (Products) */
    .mobile-toggle-icon {
        display: block;
        color: var(--color-accent);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .products-sidebar.active .mobile-toggle-icon {
        transform: rotate(180deg);
    }

    .sidebar-content {
        display: none;
    }

    .products-sidebar.active .sidebar-content {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    /* Hide desktop nav and lang switch on mobile — drawer handles navigation */
    header nav,
    header .language-switch {
        display: none !important;
    }

    .search-container {
        display: none !important; /* Always hide in mobile menu, use overlay instead */
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .search-form {
        width: 100%;
        max-width: none;
    }

    /* Disable hover expand effect on mobile, keep it full width */
    .search-form,
    .search-form:focus-within,
    .search-form:hover {
        width: 100%;
    }

    /* Hamburger → X animation */
    header.mobile-menu-open .mobile-menu-toggle .bar {
        width: 20px;
        margin-left: 0;
    }

    header.mobile-menu-open .mobile-menu-toggle .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.mobile-menu-open .mobile-menu-toggle .bar:nth-child(2) {
        transform: scaleX(0);
        opacity: 0;
    }

    header.mobile-menu-open .mobile-menu-toggle .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
}

@media (min-width: 769px) {
    .mobile-toggle-icon {
        display: none;
    }

    .products-sidebar .sidebar-header {
        cursor: default;
    }

    .sidebar-content {
        display: block !important;
    }
}

/* === MOBILE MENU DRAWER === */

/* Backdrop overlay */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-menu-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Drawer panel */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: min(340px, 88vw);
    height: 100dvh;
    height: 100%;
    background: var(--color-bg-white);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.2);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.is-open {
    transform: translateX(0);
}

/* Drawer header */
.mobile-menu-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--color-bg-white);
}

.mobile-menu-drawer__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-menu-drawer__logo img {
    height: 26px;
    width: auto;
}

/* Close button — 44x44 touch target */
.mobile-menu-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(15, 23, 42, 0.04);
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.mobile-menu-drawer__close:hover,
.mobile-menu-drawer__close:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    color: var(--color-primary);
}

.mobile-menu-drawer__close:active {
    transform: scale(0.92);
}

.mobile-menu-drawer__close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Drawer navigation */
.mobile-menu-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.75rem;
}

.mobile-menu-drawer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Staggered entrance animation */
.mobile-menu-drawer__nav li {
    opacity: 0;
    transform: translateX(24px);
}

.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li {
    animation: drawerItemSlide 0.4s var(--ease-out-expo) forwards;
}

.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(2) { animation-delay: 0.10s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(3) { animation-delay: 0.14s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(4) { animation-delay: 0.18s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(5) { animation-delay: 0.22s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(6) { animation-delay: 0.26s; }
.mobile-menu-drawer.is-open .mobile-menu-drawer__nav li:nth-child(7) { animation-delay: 0.30s; }

@keyframes drawerItemSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav links — large touch targets with icon + label */
.mobile-menu-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    font-family: var(--font-main);
    font-size: 0.975rem;
    font-weight: 460;
    letter-spacing: -0.01em;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s, color 0.15s, transform 0.1s;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-drawer__nav a:hover,
.mobile-menu-drawer__nav a:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    color: var(--color-primary);
}

.mobile-menu-drawer__nav a:active {
    background: rgba(15, 23, 42, 0.07);
    transform: scale(0.985);
}

/* Nav icons */
.drawer-nav-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

.mobile-menu-drawer__nav a:hover .drawer-nav-icon,
.mobile-menu-drawer__nav a:focus-visible .drawer-nav-icon,
.mobile-menu-drawer__tools-section a:hover .drawer-nav-icon,
.mobile-menu-drawer__tools-section a:focus-visible .drawer-nav-icon {
    color: var(--color-primary);
}

/* Active page indicator */
.mobile-menu-drawer__nav a[aria-current="page"] {
    color: var(--color-accent);
    font-weight: 560;
    background: rgba(2, 132, 199, 0.06);
}

.mobile-menu-drawer__nav a[aria-current="page"] .drawer-nav-icon,
.mobile-menu-drawer__tools-section a[aria-current="page"] .drawer-nav-icon {
    color: var(--color-accent);
}

.mobile-menu-drawer__nav a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 0 3px 3px 0;
}

/* Position context for the active indicator */
.mobile-menu-drawer__nav li {
    position: relative;
}

/* Mobile drawer — tools section */
.mobile-menu-drawer__tools-section {
    padding: 0.5rem 0;
    margin: 0.25rem 0.75rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-drawer__section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem 0.25rem;
}

.mobile-menu-drawer__tools-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-drawer__tools-section li {
    position: relative;
}

.mobile-menu-drawer__tools-section a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s, color 0.15s;
    position: relative;
    min-height: 44px;
}

.mobile-menu-drawer__tools-section a:hover,
.mobile-menu-drawer__tools-section a:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    color: var(--color-primary);
}

.mobile-menu-drawer__tools-section a[aria-current="page"] {
    color: var(--color-accent);
    font-weight: 560;
    background: rgba(2, 132, 199, 0.06);
}

.mobile-menu-drawer__tools-section a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 0 3px 3px 0;
}

/* Mobile drawer — secondary links */
.mobile-menu-drawer__secondary {
    padding: 0.5rem 0.75rem;
}

.mobile-menu-drawer__secondary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-drawer__secondary a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s, color 0.15s;
    min-height: 40px;
}

.mobile-menu-drawer__secondary a:hover,
.mobile-menu-drawer__secondary a:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    color: var(--color-text-main);
}

.mobile-menu-drawer__secondary a[aria-current="page"] {
    color: var(--color-accent);
}

/* Drawer footer — language switch */
.mobile-menu-drawer__footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.015);
}

.drawer-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drawer-lang-label {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    margin-right: 0.25rem;
}

.drawer-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-decoration: none;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 8px;
    transition: background-color 0.15s, color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.drawer-lang-btn:hover,
.drawer-lang-btn:focus-visible {
    background: rgba(15, 23, 42, 0.08);
    color: var(--color-primary);
}

.drawer-lang-btn:active {
    transform: scale(0.95);
}

.drawer-lang-btn.is-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.drawer-lang-btn.is-active:hover {
    background: var(--color-primary-light);
}

/* Hide drawer on desktop */
@media (min-width: 769px) {
    .mobile-menu-drawer,
    .mobile-menu-backdrop {
        display: none !important;
    }
}

/* iOS safe area padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-menu-drawer__footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .mobile-menu-drawer__nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* === ABOUT PAGE (MODERN INDUSTRIAL) === */
.about-page .hero {
    background: var(--gradient-mesh-overlay), url('/uploads/images/jovalFachada.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 10rem 0;
    text-align: center;
}

/* Enhanced hero with parallax */
.about-page .hero.hero--parallax {
    background: var(--color-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.about-page .hero.hero--parallax .hero-bg {
    background-image: url('/uploads/images/jovalFachada.jpg');
    opacity: 0.35;
    filter: saturate(0.8);
}

.about-page .hero.hero--parallax .hero-overlay {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.about-page .hero::before,
.facts-page .hero::before,
.faq-page .hero::before,
.contact-page .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

/* Contact page hero - matches about page pattern */
.contact-page .hero {
    background: var(--gradient-mesh-overlay), url('/uploads/images/hero-wallpaper.png');
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 10rem 0;
    text-align: center;
}

.contact-page .hero.hero--parallax {
    background: var(--color-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.contact-page .hero.hero--parallax .hero-bg {
    background-image: url('/uploads/images/hero-wallpaper.png');
    opacity: 0.4;
    filter: saturate(0.9);
}

.contact-page .hero.hero--parallax .hero-overlay {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
}

@media (max-width: 768px) {
    .contact-page .hero.hero--parallax {
        min-height: 50vh;
        padding: 5rem 0;
    }

    .contact-page .hero.hero--parallax .hero-bg {
        transform: none !important;
    }
}

.about-lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Mission & Content Sections */
@media (max-width: 768px) {
    .section-padding { padding: 2rem 0; }
}

.about-page h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.about-page p {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.7;
}

/* Premium Stats (Glassmorphism) */
.stats-container {
    padding: 6rem 0;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--blueprint-grid);
    opacity: 0.05;
}

.bg-blueprint {
    position: relative;
    overflow: hidden;
}

.bg-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    z-index: 0;
    pointer-events: none;
    animation: bg-float 20s ease-in-out infinite alternate;
}

@keyframes bg-float {
    from { transform: translate(0, 0); }
    to { transform: translate(-20px, -20px); }
}

.bg-blueprint > * {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    position: relative;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 16px;
    color: var(--color-accent);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

/* === HISTORY TIMELINE === */
.timeline-section {
    position: relative;
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical spine */
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-accent) 10%,
        var(--color-accent) 90%,
        transparent 100%
    );
}

@media (min-width: 769px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 3rem;
}

@media (min-width: 769px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 50px;
        padding-right: 0;
    }
}

/* Timeline marker */
.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--color-primary);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}

/* Pulse ring on revealed markers */
.timeline-item.is-revealed .timeline-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: timeline-pulse 2s ease-out forwards;
}

@keyframes timeline-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.timeline-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.timeline-item:hover .timeline-marker::after {
    transform: scale(1);
}

@media (min-width: 769px) {
    .timeline-marker {
        left: auto;
        right: -13px;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        left: -13px;
    }
}

/* Timeline content card */
.timeline-content {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

@media (min-width: 769px) {
    .timeline-content::before {
        left: auto;
        right: -10px;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -10px;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(2, 132, 199, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.timeline-text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin: 0;
}

/* Timeline reveal animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.timeline-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for timeline items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }

/* === FACTS PAGE === */
.facts-page .hero {
    background: var(--gradient-mesh-overlay), url('/uploads/images/jovalArmazem.jpg');
    background-size: cover;
    background-position: center center;
}

.facts-page .table-standard th {
    width: 30%;
    font-weight: 700;
    color: var(--color-primary);
}

.facts-page .table-standard td {
    text-align: left;
    padding-left: 2rem;
}

.bg-black-20 { background-color: rgba(0, 0, 0, 0.2); }
.text-xs { font-size: 0.75rem; }
.p-3 { padding: 0.75rem; }
.rounded { border-radius: 4px; }

.btn-map {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-map:hover {
    background: white !important;
    color: var(--color-primary) !important;
    border-color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}


.section-featured {
    padding: 6rem 0;
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.03) 0%, transparent 70%), white;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.section-header h2 {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    padding-left: 1.5rem;
}

.link-view-all {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.link-view-all:hover {
    background: var(--color-primary);
    color: white;
}

.placeholder-image {
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.section-categories {
    position: relative;
    padding: 6rem 0;
    margin: 2rem 0;
}

.section-categories h2 {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-categories {
        padding: 4rem 0;
        margin: 1rem 0;
    }
    .section-categories h2 {
        margin-bottom: 2.5rem;
    }
}

/* About Page & General Typography */
.eyebrow {
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* === CONTACT CARDS (Standardized) === */
.contact-card {
    background: var(--color-primary);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card--gradient {
    background: var(--gradient-mesh), var(--color-primary);
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 350px;
    height: 350px;
    background-image: url('../uploads/images/gota JOVAL branca.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.contact-card h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-card__info {
    position: relative;
    z-index: 1;
}

.contact-card__info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.15rem;
    font-weight: 400;
}

.contact-card__description {
    max-width: 400px;
}

.contact-card__actions {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white !important;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method-item:hover {
    color: var(--color-accent-light) !important;
    transform: translateX(8px);
}

.contact-method-item .icon-circle {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method-item:hover .icon-circle {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: scale(1.1) rotate(-5deg);
}

.contact-method-item span {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.contact-method-item small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    opacity: 0.6;
}

.btn-map {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-map:hover {
    background: white !important;
    color: var(--color-primary) !important;
    border-color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1100px) {
    .contact-card {
        gap: 3rem;
        padding: 3.5rem;
    }
}

@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 3rem;
    }
    
    .contact-card h2 {
        font-size: 2rem;
    }
    
    .contact-card::after {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 0;
    }
    
    .contact-card__actions {
        padding: 2rem 1.5rem;
    }
    
    .contact-method-item {
        gap: 1rem;
    }
    
    .contact-method-item span {
        font-size: 1.05rem;
    }
}

/* === UTILITIES === */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.p-0 { padding: 0 !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.mt-6 { margin-top: 4rem !important; }
.display-4 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.lead { font-size: 1.25rem; font-weight: 300; }
.max-w-700 { max-width: 700px; }

@media (max-width: 768px) {
    .display-4 { font-size: 2.25rem; }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: var(--color-primary);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem 1.5rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 340px;
    max-width: 460px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.toast--success .toast__icon-wrap { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); }
.toast--error .toast__icon-wrap { background: color-mix(in srgb, var(--color-danger) 15%, transparent); color: var(--color-danger); }
.toast--info .toast__icon-wrap { background: color-mix(in srgb, var(--color-accent) 15%, transparent); color: var(--color-accent); }

@keyframes toastSlideIn {
    from { transform: translateY(16px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast__icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast__icon {
    width: 20px;
    height: 20px;
}

.toast__content { flex-grow: 1; min-width: 0; }
.toast__title { font-weight: 600; display: block; font-size: 0.875rem; color: white; margin-bottom: 0.2rem; }
.toast__message { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin: 0 !important; line-height: 1.5; }

.toast__dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.toast__dismiss:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 5rem;
    }
    .toast {
        min-width: 0;
        max-width: none;
    }
}

/* Existing Sections */
.form-privacy-notice {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.honeypot {
    display: none;
}

/* Quality Policy Card Horizontal */
.quality-policy-card-horizontal {
    background: var(--gradient-mesh), var(--color-primary);
    color: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quality-policy-card-horizontal::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -20px;
    width: 400px;
    height: 400px;
    background-image: url('../uploads/images/gota JOVAL branca.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.quality-card__info {
    position: relative;
    z-index: 1;
}

.quality-card__info h2 {
    color: white !important;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.quality-card__list {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
    position: relative;
}

.quality-features-grid {
    display: grid;
    gap: 2rem;
}

.quality-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.quality-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.quality-feature-item:hover .quality-feature-icon {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1);
}

.quality-card__info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.15rem;
    font-weight: 400;
}

@media (max-width: 1100px) {
    .quality-policy-card-horizontal {
        gap: 3rem;
        padding: 3.5rem;
    }
}

@media (max-width: 992px) {
    .quality-policy-card-horizontal {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .quality-policy-card-horizontal {
        padding: 2.5rem 1.5rem;
        border-radius: 0;
    }
    
    .quality-card__list {
        padding: 2rem 1.25rem;
    }
}

/* Map Section Standard */
.map-container-standard {
    height: 500px;
    width: 100%;
}

.map-container-standard iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === FACTS PAGE === */
.facts-container {
    max-width: 800px;
    margin: 0 auto;
}

.facts-intro {
    margin-bottom: 3rem;
    font-size: 1.25rem;
    color: var(--color-text-main);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.facts-why-section {
    margin-top: 4rem;
}

.facts-why-section h2 {
    margin-bottom: 1.5rem;
}

.fact-card {
    background: var(--color-bg-body);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.fact-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.facts-why-list {
    list-style: none;
    padding: 0;
}

.facts-why-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.facts-why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* === FORM SUCCESS PANEL === */
.form-success-panel {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.4s ease-out;
}
.form-success-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-success, #16a34a) 10%, transparent);
    color: var(--color-success, #16a34a);
    margin-bottom: 1.5rem;
}
.form-success-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}
.form-success-panel__description {
    font-size: 1.05rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.form-success-panel__urgent {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 2rem;
}
.form-success-panel__urgent a {
    color: var(--color-primary);
    text-decoration: none;
}
.form-success-panel__urgent a:hover {
    text-decoration: underline;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === INLINE FORM ALERTS === */
.form-inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md, 8px);
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease-out;
    transition: opacity 0.2s, transform 0.2s;
    position: relative;
}

.form-inline-alert--error {
    background: color-mix(in srgb, var(--color-danger) 8%, white);
    border: 1px solid color-mix(in srgb, var(--color-danger) 20%, transparent);
}

.form-inline-alert--success {
    background: color-mix(in srgb, var(--color-success) 8%, white);
    border: 1px solid color-mix(in srgb, var(--color-success) 20%, transparent);
}

.form-inline-alert--info {
    background: color-mix(in srgb, var(--color-accent) 8%, white);
    border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.form-inline-alert__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-inline-alert--error .form-inline-alert__icon { background: color-mix(in srgb, var(--color-danger) 12%, transparent); color: var(--color-danger); }
.form-inline-alert--success .form-inline-alert__icon { background: color-mix(in srgb, var(--color-success) 12%, transparent); color: var(--color-success); }
.form-inline-alert--info .form-inline-alert__icon { background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); }

.form-inline-alert__message {
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin: 0;
    padding-top: 0.3rem;
}

.form-inline-alert__dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.form-inline-alert__dismiss:hover {
    opacity: 1;
}

/* Dark-theme overrides (inside product CTA card) */
.products-cta__form-card .form-inline-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.products-cta__form-card .form-inline-alert--success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.2);
}

.products-cta__form-card .form-inline-alert--info {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.2);
}

.products-cta__form-card .form-inline-alert__message {
    color: rgba(255, 255, 255, 0.85);
}

.products-cta__form-card .form-inline-alert__dismiss {
    color: rgba(255, 255, 255, 0.4);
}

.products-cta__form-card .form-inline-alert__dismiss:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* === FAQ PAGE === */
.faq-hero {
    background: var(--gradient-mesh-overlay), url('/uploads/images/jovalArmazem.jpg');
    background-size: cover;
    background-position: center;
}

.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-box {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-search-box:focus-within,
.faq-search-box.has-value {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.faq-search-box .search-icon {
    color: var(--color-accent);
    margin-right: 1rem;
}

.faq-search-box input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--color-primary);
    outline: none;
}

.faq-search-box input::placeholder {
    color: #94a3b8;
}

/* Accordion Improvements */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-primary);
    transition: color 0.2s ease;
    padding-right: 1.5rem;
}

.faq-item:hover .faq-question h3 {
    color: var(--color-accent);
}

.faq-question .icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--color-accent);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-question .icon {
    transform: rotate(180deg);
    background: var(--color-accent);
    color: white;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

/* FAQ Categories */
.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category:last-of-type {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

/* Hide empty categories during search */
.faq-category.hidden {
    display: none;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 0; /* Reduced to sit closer to border */
    font-size: 0.9rem;
    color: var(--color-text-muted);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* Hide for Firefox */
}

.breadcrumbs::-webkit-scrollbar {
    display: none; /* Hide for Chrome/Safari */
}

.breadcrumbs--machined [aria-current="page"] strong {
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    background: rgba(2, 132, 199, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Don't squash segments */
}

.breadcrumbs li:not(:last-child)::after {
    content: '\203A';
    margin: 0 0.75rem;
    color: var(--border-color);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.25rem;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text);
    font-weight: 700;
}

/* === WHATSAPP WIDGET === */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-widget a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

#whatsapp-widget a:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

#whatsapp-widget a:active {
    transform: translateY(0);
}

#whatsapp-widget span {
    font-weight: 600;
}

@media (max-width: 768px) {
    #whatsapp-widget {
        bottom: 16px;
        right: 16px;
    }

    #whatsapp-widget a {
        padding: 10px 14px;
        font-size: 13px;
    }

    #whatsapp-widget a span {
        display: none; /* Hide text on mobile, show only icon */
    }
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Above WhatsApp widget on desktop */
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    outline: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:not(.is-visible) {
    transform: translateY(20px);
}

.back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    background-color: var(--color-accent);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px; /* Above WhatsApp widget on mobile */
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

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

/* === PRINT STYLES === */
/* Moved to public/css/print-media.css */

/* === SEARCH AUTOCOMPLETE === */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    min-width: 260px; /* Ensure it matches form width at minimum */
}

.search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--color-text-main);
    transition: background-color 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover, .search-item:focus {
    background-color: #f8fafc;
    color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.search-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.search-item span {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* === TRUST SIGNALS === */
.trust-signals {
    padding: 5rem 0;
    background: var(--color-bg-body);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    background: white;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
    border-color: var(--color-accent);
}

.trust-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.trust-label {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

.trust-cta {
    text-align: center;
    margin-top: 3rem;
}

/* === LIGHTBOX === */
.zoomable-image {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    user-select: none;
    cursor: zoom-in;
    will-change: transform, opacity;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    /* 48px touch target */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: background-color 0.2s, transform 0.1s;
}

.lightbox-close:active {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
}

/* Mobile swipe hint for lightbox */
.lightbox-hint {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    opacity: 1;
    animation: lightbox-hint-fade 4s ease-out forwards;
    pointer-events: none;
    z-index: 2001;
    display: none;
}

@media (max-width: 768px) {
    .lightbox-hint {
        display: block;
    }

    .lightbox-close {
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 10px;
    }
}

@keyframes lightbox-hint-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: lightbox-spin 1s ease-in-out infinite;
    z-index: 2000;
}

@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* === LEGAL & DYNAMIC PAGES === */
.content-wrapper--legal {
    line-height: 1.8;
    color: var(--color-text-main);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.content-wrapper--legal h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.content-wrapper--legal h2:first-of-type {
    margin-top: 1rem;
}

.content-wrapper--legal h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-wrapper--legal h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.content-wrapper--legal p {
    margin-bottom: 1.5rem;
    color: #475569; /* Slate 600 */
}

.content-wrapper--legal ul {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    list-style: none;
}

.content-wrapper--legal li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-wrapper--legal li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 800;
}

.content-wrapper--legal strong {
    color: var(--color-primary);
}

.legal-highlight-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
    border-top: 4px solid var(--color-accent);
}

.legal-highlight-box p:last-child {
    margin-bottom: 0;
}

.legal-highlight-box a {
    font-weight: 700;
    font-size: 1.2rem;
}

/* === SEARCH OVERLAY === */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: none; /* Back to display:none for jQuery show/hide compatibility */
    flex-direction: column;
    padding: 1.5rem;
}

.search-overlay.active {
    display: flex;
}

.search-overlay__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.search-overlay__close {
    background: #f1f5f9;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    /* Explicit 44x44px touch target */
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.search-overlay__close:active {
    background-color: #e2e8f0;
    transform: scale(0.95);
}

.search-overlay__close svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-overlay__content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-form--overlay {
    width: 100% !important;
    background: #f8fafc !important;
    border: 2px solid var(--color-accent) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.search-form--overlay .search-input-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-form--overlay input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 1rem !important;
    font-size: 1.25rem !important;
    outline: none !important;
    color: var(--color-primary) !important;
}

.search-form--overlay button {
    background: none !important;
    border: none !important;
    color: var(--color-accent) !important;
    padding: 0 1rem !important;
}

.search-overlay__results {
    margin-top: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.search-overlay__results .search-results {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}

.search-overlay__results .search-item {
    padding: 1.25rem 1rem !important;
}

.search-overlay__results .search-item span {
    font-size: 1.1rem !important;
}

/* === MOBILE ACTION BAR === */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw; /* Hard stop */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 23, 42, 0.08); /* Softer border */
    padding: 0.75rem 1rem;
    z-index: 900;
    gap: 0.75rem;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08); /* Deeper lift */
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* Smoother Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s ease, background-color 0.2s;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.action-btn:active {
    transform: scale(0.96);
}

/* Secondary Actions (Call/WA) */
.action-btn--icon {
    width: 48px; /* Fixed standard size */
    flex-shrink: 0;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.action-btn--icon span {
    display: none; /* Hide labels by default to prevent overflow */
}

.action-btn--icon svg {
    width: 24px;
    height: 24px;
}

/* Show labels on larger mobile screens (bp-xs: 480px) */
@media (min-width: 480px) {
    .action-btn--icon {
        width: auto;
        padding: 0 0.75rem;
        flex-direction: column;
        height: 48px;
        font-size: 0.6rem;
        gap: 2px;
    }
    .action-btn--icon span {
        display: block;
    }
    .action-btn--icon svg {
        width: 20px;
        height: 20px;
    }
}

/* WhatsApp Specific Brand Color (Optional, but good for UX) */
.action-btn--icon[href*="wa.me"] {
    color: #128c7e;
    border-color: #e4f2f0;
    background: #f0fdfa;
}

/* Primary CTA */
.action-btn--primary {
    background: var(--color-accent);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    flex: 1; /* Allow it to grow AND shrink */
    min-width: 0; /* Critical for flex child truncation */
    font-size: 0.95rem; 
    padding: 0 1rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    border: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact mobile action bar below xs breakpoint */
@media (max-width: 479px) {
    .mobile-action-bar {
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .action-btn--icon {
        width: 44px; /* Compact icon-only buttons */
    }

    .action-btn--primary {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}

.action-btn--primary:hover, .action-btn--primary:focus {
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    color: white;
}

@media (max-width: 768px) {
    /* Show bar only on product pages where it exists */
    .mobile-action-bar {
        display: flex;
    }
    
    /* Add padding to body so content isn't covered ONLY if bar exists */
    /* Fallback for older browsers: just add padding on product pages if we had a class */
    body:has(.mobile-action-bar) {
        padding-bottom: 80px; 
    }
    
    /* Hide floating widgets when bar is present */
    body:has(.mobile-action-bar) #whatsapp-widget, 
    body:has(.mobile-action-bar) #back-to-top {
        display: none !important; 
    }
    
    /* Adjust footer padding */
    body:has(.mobile-action-bar) .site-footer {
        padding-bottom: 80px;
    }
}

/* === CHART SCROLL GUARD === */
.chart-overlay-guard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); /* Very subtle tint */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.chart-overlay-guard.is-active {
    opacity: 0;
}

.chart-guard-msg {
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    pointer-events: none;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.chart-overlay-guard:active .chart-guard-msg {
    transform: scale(0.95);
}

@media (min-width: 992px) {
    .chart-overlay-guard {
        display: none !important;
    }
}

/* === MOBILE ACCORDION TECH CARDS === */
@media (max-width: 768px) {
    .tech-card {
        border-radius: 8px;
    }

    .tech-card__header {
        cursor: pointer;
        position: relative;
        user-select: none;
        transition: background-color 0.2s;
        /* Reduced padding for mobile */
        padding: 0.875rem 1rem;
        min-height: 48px;
        gap: 0.5rem;
    }

    .tech-card__header:active {
        background-color: #eef2f6;
    }

    .tech-card__title {
        font-size: 0.875rem !important;
        gap: 0.5rem !important;
        line-height: 1.3;
    }

    .tech-card__title::before {
        width: 3px;
        height: 14px;
        flex-shrink: 0;
    }

    .tech-card__model {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .tech-card__suffix {
        font-size: 0.7rem;
        display: none; /* Hide suffix on mobile to save space */
    }

    /* Content Transition Wrapper */
    .tech-card__content,
    .tech-card .table-responsive, 
    .tech-card .performance-chart-container,
    .tech-card .table-note-wrapper,
    .tech-card .dimensions-diagram-group,
    .tech-card .dimensions-diagram,
    .tech-card .performance-diagram {
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        max-height: 2500px;
        opacity: 1;
        overflow: hidden;
    }

    /* Collapse Logic */
    .tech-card.is-collapsed .tech-card__content,
    .tech-card.is-collapsed .table-responsive,
    .tech-card.is-collapsed .performance-chart-container,
    .tech-card.is-collapsed .table-note-wrapper,
    .tech-card.is-collapsed .dimensions-diagram-group,
    .tech-card.is-collapsed .dimensions-diagram,
    .tech-card.is-collapsed .performance-diagram {
        max-height: 0 !important;
        min-height: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /* Ensure chart canvas is also hidden when collapsed */
    .tech-card.is-collapsed .performance-chart-container canvas,
    .tech-card.is-collapsed .performance-chart-container.chart-loaded canvas {
        height: 0 !important;
        max-height: 0 !important;
    }
    
    /* Remove bottom border from header when collapsed to look cleaner */
    .tech-card.is-collapsed .tech-card__header {
        border-bottom-color: transparent;
        border-radius: var(--radius-md);
    }
}

/* === 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;
    }

    .reveal-in,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* === ACCESSIBILITY: SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Screen-reader only utility */
.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;
}

/* === ACCESSIBILITY: ENHANCED FOCUS STATES === */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* === BUTTON DISABLED STATE === */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled::after,
.btn[disabled]::after {
    display: none;
}

/* === SPINNER FOR LOADING STATES === */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-style: dotted;
    }
}

/* === ABOUT PAGE ENHANCEMENTS: RESPONSIVE === */
@media (max-width: 768px) {
    /* Stats responsive */
    .stats-container {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-number .stat-suffix {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    /* Timeline responsive */
    .timeline-section {
        padding: 3rem 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.15rem;
    }

    .timeline-text {
        font-size: 0.95rem;
    }

    /* Hero parallax responsive */
    .about-page .hero.hero--parallax {
        min-height: 50vh;
        padding: 5rem 0;
    }

    .about-page .hero.hero--parallax .hero-bg {
        /* Disable parallax on mobile for performance */
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-number .stat-suffix {
        font-size: 1.25rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-marker {
        left: 4px;
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   GLOSSARY PAGE
   ============================================ */
.glossary-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border, #e2e8f0);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.glossary-letter-group:first-child .glossary-letter {
    margin-top: 0;
}

.alpha-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.alpha-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.alpha-link:hover,
.alpha-link.active {
    background: var(--color-primary);
    color: #fff;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}


.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-primary);
    color: #fff;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-consent__text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: var(--color-accent-light, #7dd3fc);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
    color: #fff;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm, 4px);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: #fff;
    color: var(--color-primary);
}

.cookie-consent__btn--accept:hover {
    background: var(--color-accent-light, #e0f2fe);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-consent__btn--reject:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }
}


/* === FOOTER === */
/* Footer Refactoring */
.site-footer {
    background: var(--gradient-mesh), var(--color-primary);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid .brand-section {
        grid-column: 1 / -1;
    }
}

/* Single column footer on mobile (bp-sm: 576px) */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-institutional-banner {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.footer-institutional-banner .institutional-banner {
    max-width: 350px;
    width: 100%;
    height: auto;
    background: white;
    padding: 0.4rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-logo-centered {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-logo-centered .footer-logo {
    max-width: 140px;
    height: auto;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.footer-logo-centered .footer-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.footer-description {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.made-in-portugal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: #0077b5;
}

/* Footer contact list with icons */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.footer-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: white;
}

.phone-note {
    margin-top: -1rem;
    margin-left: 32px;
    margin-bottom: 1rem;
}

/* Footer links navigation */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
}

.footer-links a::before {
    content: '›';
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.4;
    transition: opacity 0.3s ease, margin-right 0.3s ease;
    color: var(--color-accent);
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.footer-links a:hover::before {
    opacity: 1;
    margin-right: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-legal p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.iso-badge {
    color: white;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(2, 132, 199, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(2, 132, 199, 0.3);
    display: inline-block;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

