/*
Theme Name: AMPRA-Theme
Theme URI: https://www.webify.build
Author: Webify
Author URI: https://www.webify.build
Description: Custom theme for AMPRA — maintenance-free automotive batteries by Nile Vantage Automotive / Karnak Industrial Group.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ampra-theme
Tags: minimal, automotive, bilingual, rtl
*/

/* ============================================================
   TABLE OF CONTENTS
    1.  Design Tokens
    2.  Reset & Base
    3.  Typography
    4.  Utility Classes
    5.  Top Utility Bar
    6.  Header — Layout (two-tier)
    7.  Header — Logo
    8.  Header — Desktop Navigation
    9.  Header — Dropdown Menus
   10.  Header — Where to Buy CTA
   11.  Header — Hamburger Button
   12.  Header — Mobile Navigation Drawer
   13.  Header — Sticky / Scroll State
   14.  WhatsApp Floating Button
   15.  Button System
   16.  Section Headings
   17.  Hero Section
   18.  Hero — Trust Badges
   19.  USP Strip
   20.  Product Categories
   21.  Technology Section
   22.  Heritage / About Section
   23.  Stat Counter Elements
   24.  Downloads Section
   25.  Distributors Section
   26.  Contact Strip
   27.  Page & Blog Templates
   28.  Scroll Animations
   29.  Footer — Layout
   30.  Footer — Top Section
   31.  Footer — Middle / Columns
   32.  Footer — Contact Column
   33.  Footer — Social Icons
   34.  Footer — Bottom Bar
   35.  Responsive — Tablet  (≤ 1024px)
   36.  Responsive — Mobile  (≤ 768px)
   37.  Responsive — Small   (≤ 480px)
   38.  RTL Support
   39.  Product Detail Pages
   40.  Concept-Design Badge
============================================================ */

/* ============================================================
   1. DESIGN TOKENS
============================================================ */

:root {
    /* Brand palette */
    --color-primary:         #1B2C5C;   /* AMPRA navy              */
    --color-primary-dark:    #0f1a3a;   /* Darker navy for hero bg      */
    --color-accent:          #D62828;   /* AMPRA red               */
    --color-accent-hover:    #b91c1c;
    --color-accent-on-dark:  #F87171;   /* AMPRA red lifted for dark grounds: 4.86:1 on navy, 6.15:1 on #1c1c1e */
    --color-white:           #ffffff;
    --color-text:            #222222;
    --color-text-light:      #4b5563;
    --color-muted:           #6b7280;
    --color-muted-strong:    #5b6472;   /* muted text on the light-grey surface: 5.44:1 (the 6b7280 above gives 4.40) */
    --color-border:          #e5e7eb;
    --color-surface:         #F4F4F4;   /* light gray section bg        */
    /* Button fills carry white text, so they must clear WCAG AA 4.5:1.
       Brand green #25D366 gives white text 1.98:1; #0E7A45 gives 5.40:1 and
       its hover #0A5C36 8.09:1. The bright green survives only as an accent
       on dark grounds, where it measures 8.58:1 against #1c1c1e. */
    --color-whatsapp:        #0E7A45;
    --color-whatsapp-hover:  #0A5C36;
    --color-whatsapp-bright: #25D366;

    /* Footer */
    --footer-bg:             #0F1A3D;
    --footer-top-bg:         #1B2C5C;
    --footer-text:           #cbd5e1;
    --footer-heading:        #f1f5f9;
    --footer-link-hover:     #D62828;
    --footer-bottom-bg:      #080f22;

    /* Header */
    --header-bg:             #ffffff;
    --top-bar-bg:            #1B2C5C;
    --top-bar-height:        40px;
    --main-header-height:    72px;
    --header-total-height:   calc(var(--top-bar-height) + var(--main-header-height));
    --header-shadow:         0 2px 20px rgba(0, 0, 0, 0.08);

    /* Spacing */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   1.5rem;
    --space-xl:   2rem;
    --space-2xl:  3rem;
    --space-3xl:  5rem;

    /* Typography */
    --font-sans:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-arabic:  'Cairo', sans-serif;
    --text-xs:      0.75rem;
    --text-sm:      0.875rem;
    --text-base:    1rem;
    --text-lg:      1.125rem;
    --text-xl:      1.25rem;

    /* Shape & motion */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    16px;
    --transition:   0.2s ease;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 1.5rem;
}

/* ============================================================
   2. RESET & BASE
============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: var(--header-total-height); }

body.nav-open { overflow: hidden; }

ul { list-style: none; }

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img, svg { display: block; max-width: 100%; }

address { font-style: normal; }

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

/* ============================================================
   4. UTILITY CLASSES
============================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.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;
}

/* ============================================================
   5. TOP UTILITY BAR
============================================================ */

.top-bar {
    background-color: var(--top-bar-bg);
    height: var(--top-bar-height);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.lang-link {
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.lang-link:hover,
.lang-link--active {
    color: var(--color-white);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-xs);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.top-bar-phone:hover { color: var(--color-white); }

.top-bar-link {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-accent);
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--color-accent);
    border-radius: 100px;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.top-bar-link:hover {
    background-color: #a81e1e;
    border-color: #a81e1e;
    color: var(--color-white);
}

/* ============================================================
   6. HEADER — LAYOUT
============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--top-bar-bg);
    transition: box-shadow var(--transition);
}

.main-header-wrap {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    height: var(--main-header-height);
}

/* ============================================================
   7. HEADER — LOGO
============================================================ */

.header-logo { flex-shrink: 0; }

.header-logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   8. HEADER — DESKTOP NAVIGATION
============================================================ */

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-nav .nav-menu > li { position: relative; }

.header-nav .nav-menu > li > a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--transition), background-color var(--transition);
}

.header-nav .nav-menu > li > a:hover,
.header-nav .nav-menu > li.current-menu-item > a,
.header-nav .nav-menu > li.current-page-ancestor > a {
    color: var(--color-accent);
    background-color: rgba(214, 40, 40, 0.06);
}

/* ============================================================
   9. HEADER — DROPDOWN MENUS
============================================================ */

.header-nav .nav-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}

.header-nav .nav-menu li:hover > .sub-menu,
.header-nav .nav-menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-nav .nav-menu .sub-menu li a {
    display: block;
    padding: 0.65rem var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text);
    transition: background-color var(--transition), color var(--transition);
}

.header-nav .nav-menu .sub-menu li a:hover {
    background-color: rgba(214, 40, 40, 0.06);
    color: var(--color-accent);
}

/* Chevron indicator */
.header-nav .nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    width: 5px; height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    vertical-align: middle;
    transition: transform var(--transition);
}

.header-nav .nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* ============================================================
   10. HEADER — WHERE TO BUY CTA
============================================================ */

.header-cta { flex-shrink: 0; }

.btn-where-to-buy {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.25rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-where-to-buy:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(214, 40, 40, 0.35);
    color: var(--color-white);
}

.btn-where-to-buy:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-where-to-buy--full {
    width: 100%;
    justify-content: center;
    font-size: var(--text-base);
    padding: 0.8rem;
}

/* ============================================================
   11. HEADER — HAMBURGER BUTTON
============================================================ */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background-color var(--transition);
}

.hamburger:hover { background-color: #f3f4f6; }

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   12. HEADER — MOBILE NAVIGATION DRAWER
============================================================ */

.mobile-nav {
    display: none;
    overflow: hidden;
    max-height: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open {
    max-height: calc(100dvh - var(--header-total-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav-inner {
    padding: var(--space-md) var(--container-pad) var(--space-xl);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-lg);
}

.mobile-menu li a {
    display: block;
    padding: 0.75rem var(--space-md);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
}

.mobile-menu li a:hover,
.mobile-menu li.current-menu-item > a {
    background-color: rgba(214, 40, 40, 0.06);
    color: var(--color-accent);
}

.mobile-menu .sub-menu {
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-border);
    margin-top: 4px;
}

.mobile-menu .sub-menu li a {
    font-size: var(--text-base);
    font-weight: 500;
    padding: 0.5rem var(--space-md);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--color-primary);
    transition: border-color var(--transition), color var(--transition);
}

.mobile-phone-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ============================================================
   13. HEADER — STICKY / SCROLL STATE
============================================================ */

.site-header.is-scrolled { box-shadow: var(--header-shadow); }

/* ============================================================
   14. WHATSAPP FLOATING BUTTON
============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(14, 122, 69, 0.45);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(14, 122, 69, 0.5);
    color: var(--color-white);
}

/* ============================================================
   15. BUTTON SYSTEM
============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-accent);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 40, 40, 0.35);
    color: var(--color-white);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color var(--transition), background-color var(--transition);
}

.btn-outline-white:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    transition: background-color var(--transition), color var(--transition);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 122, 69, 0.35);
    color: var(--color-white);
}

/* ============================================================
   16. SECTION HEADINGS
============================================================ */

.section-eyebrow {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-heading--white { color: var(--color-white); }

.section-subheading {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 620px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-subheading {
    margin-inline: auto;
}

/* ============================================================
   17. HERO SECTION
============================================================ */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #0a1020 100%);
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

/* Red glow emanating from product side */
.hero::after {
    content: '';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding-block: var(--space-3xl);
    width: 100%;
}

.hero-content { max-width: 580px; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(214, 40, 40, 0.12);
    color: #ff6b6b;
    border: 1px solid rgba(214, 40, 40, 0.35);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.hero-subheadline {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: var(--space-xl);
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

/* ── Hero Visual ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.hero-glow-ring {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.1) 0%, rgba(27, 44, 92, 0.2) 40%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.04); opacity: 0.7; }
}

.hero-product-img {
    position: relative;
    z-index: 2;
    max-height: 420px;
    width: auto;
    filter: drop-shadow(0 20px 50px rgba(214, 40, 40, 0.28));
}

.hero-product-placeholder {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* ============================================================
   18. HERO — TRUST BADGES
============================================================ */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

/* ============================================================
   19. USP STRIP
============================================================ */

.usp-strip {
    background: var(--color-white);
    padding: var(--space-3xl) 0;
    border-top: 3px solid var(--color-accent);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.usp-item {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
}

.usp-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--color-white);
    transition: background-color var(--transition), transform var(--transition);
}

.usp-item:hover .usp-icon {
    background-color: var(--color-accent);
    transform: translateY(-4px);
}

.usp-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.usp-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ============================================================
   20. PRODUCT CATEGORIES
============================================================ */

.products-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: var(--color-white);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Card image area — tinted by category */
.product-card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card--din   .product-card-image { background: linear-gradient(135deg, #1B2C5C, #2a4a8a); }
.product-card--jis   .product-card-image { background: linear-gradient(135deg, #1a3852, #2a6080); }
.product-card--heavy .product-card-image { background: linear-gradient(135deg, #3a1a1a, #7c3030); }
.product-card--efb   .product-card-image { background: linear-gradient(135deg, #1a3322, #2a6640); }
.product-card--agm   .product-card-image { background: linear-gradient(135deg, #2c2a1a, #5a5218); }
.product-card--marine .product-card-image { background: linear-gradient(135deg, #12304a, #1a5c7a); }

.card-battery-icon { pointer-events: none; }

.product-card-body { padding: var(--space-lg); }

.product-card-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.product-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    transition: gap var(--transition);
}

.product-card-link:hover { gap: 10px; }

/* ============================================================
   21. TECHNOLOGY SECTION
============================================================ */

.technology-section {
    background: var(--color-primary);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.technology-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(214, 40, 40, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.tech-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-intro {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.tech-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tech-benefit {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.tech-benefit-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    background: rgba(214, 40, 40, 0.15);
    border: 1px solid rgba(214, 40, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.tech-benefit-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 3px;
}

.tech-benefit-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

.tech-diagram-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* ============================================================
   22. HERITAGE / ABOUT SECTION
============================================================ */

.heritage-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

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

.heritage-copy {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

/* ============================================================
   23. STAT COUNTER ELEMENTS
============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition);
}

.stat-card:hover { transform: translateY(-3px); }

.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-weight: 600;
}

/* ============================================================
   24. DOWNLOADS SECTION
============================================================ */

.downloads-section {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.download-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: rgba(214, 40, 40, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.download-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
}

.download-meta {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.download-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    transition: gap var(--transition);
}

.download-btn:hover { gap: 10px; }

/* ============================================================
   25. DISTRIBUTORS SECTION
============================================================ */

.distributors-section {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.distributors-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.map-placeholder {
    background: #e5e7eb;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-embed-iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.map-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    height: 100%;
    min-height: 460px;
    color: var(--color-muted);
    text-align: center;
    padding: var(--space-xl);
}

.map-placeholder-inner p {
    font-size: var(--text-base);
    font-weight: 600;
}

.map-placeholder-inner small {
    font-size: var(--text-xs);
    color: var(--color-border);
}

.distributor-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    border: 1px solid var(--color-border);
}

.distributor-form-wrap h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.distributor-form-wrap > p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* ── Shared form styles ── */
.form-row { display: flex; gap: var(--space-md); }
.form-row--2col > .form-group { flex: 1; }

.form-group { margin-bottom: var(--space-md); }

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 44, 92, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ============================================================
   26. CONTACT STRIP
============================================================ */

.contact-strip {
    background: #1c1c1e;
    padding: var(--space-3xl) 0;
    position: relative;
}

.contact-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 100%, rgba(214, 40, 40, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.contact-strip .section-subheading {
    color: rgba(255, 255, 255, 0.55);
}

.contact-whatsapp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.contact-whatsapp h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.contact-whatsapp p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-form-wrap h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

/* Dark-theme form inputs — scoped to the dark strip. Unscoped, they also hit
   the Contact page's light form: white labels and white typed text on white. */
.contact-strip .contact-form .form-group label  { color: rgba(255, 255, 255, 0.8); }

.contact-strip .contact-form .form-group input,
.contact-strip .contact-form .form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.contact-strip .contact-form .form-group input::placeholder,
.contact-strip .contact-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-strip .contact-form .form-group input:focus,
.contact-strip .contact-form .form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.contact-info-col h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

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

.contact-detail-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.contact-detail-text a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.contact-detail-text a:hover { color: var(--color-white); }

/* ============================================================
   27. PAGE & BLOG TEMPLATES
============================================================ */

.page-content {
    padding-block: var(--space-3xl);
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--color-border);
}

.entry-content > * + * { margin-top: 1.25rem; }

.entry-content a { color: var(--color-accent); }

.entry-content a:hover { text-decoration: underline; }

.blog-content {
    padding-block: var(--space-3xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.blog-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.blog-card-thumb img { width: 100%; height: 200px; object-fit: cover; }

.blog-card-body { padding: var(--space-lg); }

.blog-card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.blog-card-title a { color: var(--color-primary); }

.blog-card-title a:hover { color: var(--color-accent); }

.blog-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    transition: gap var(--transition);
}

.blog-card-link:hover { gap: 10px; }

.no-posts {
    color: var(--color-muted);
    padding: var(--space-2xl) 0;
}

/* ============================================================
   28. SCROLL ANIMATIONS
============================================================ */

.fade-in { opacity: 1; transform: none; }

.js-motion .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-motion .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger siblings inside a flex/grid container */
.js-motion .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-motion .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-motion .fade-in:nth-child(4) { transition-delay: 0.3s; }
.js-motion .fade-in:nth-child(5) { transition-delay: 0.4s; }
.js-motion .fade-in:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .js-motion .fade-in { opacity: 1; transform: none; transition: none; }
    .mobile-nav, .hamburger-bar, .pg-main-img { transition: none; }
}

/* ============================================================
   29. FOOTER — LAYOUT
============================================================ */

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

/* ============================================================
   31. FOOTER — COLUMNS
============================================================ */

.footer-middle { padding: var(--space-3xl) 0; }

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.footer-col-title {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links li a {
    font-size: var(--text-sm);
    color: var(--footer-text);
    display: inline-block;
    transition: color var(--transition), transform var(--transition);
}

.footer-links li a:hover {
    color: var(--footer-link-hover);
    transform: translateX(4px);
}

/* Footer: Quick Links column — logo + tagline beneath nav list */
.footer-col-brand {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col-logo-img {
    width: 130px;
    height: auto;
    object-fit: contain;
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-col-tagline {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer: Social media row */
.footer-social-row {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-social-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer: Bottom bar brand block */
.footer-bottom-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-bottom-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-distributor-small {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    line-height: 1.5;
}

/* ============================================================
   32. FOOTER — CONTACT COLUMN
============================================================ */

.footer-address {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-address p { font-size: var(--text-sm); color: var(--footer-text); line-height: 1.6; }

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--footer-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.footer-address a {
    color: var(--footer-text);
    transition: color var(--transition);
}

.footer-address a:hover { color: var(--footer-link-hover); }

/* ============================================================
   33. FOOTER — SOCIAL ICONS
============================================================ */

.social-icons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--footer-text);
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ============================================================
   34. FOOTER — BOTTOM BAR
============================================================ */

.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--color-accent-on-dark); }

/* ============================================================
   35. RESPONSIVE — TABLET (≤ 1024px)
============================================================ */

@media (max-width: 1024px) {

    /* Header: shrink nav gaps */
    .header-nav .nav-menu > li > a { padding: 0.5rem 0.6rem; font-size: var(--text-sm); }

    /* Products: 2 columns */
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    /* Downloads: 2 columns */
    .downloads-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer columns: 2 columns */
    .footer-columns { grid-template-columns: repeat(2, 1fr); }

    /* Contact grid: equal 2 columns at tablet */
    .contact-grid { grid-template-columns: 1fr 1fr; }

    /* Heritage: stack */
    .heritage-inner { grid-template-columns: 1fr; }

}

/* ============================================================
   36. RESPONSIVE — MOBILE (≤ 768px)
============================================================ */

@media (max-width: 768px) {

    :root { --top-bar-height: 36px; }

    /* ── Header ── */
    .header-nav, .header-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    /* ── Top bar ── */
    .top-bar-right { gap: var(--space-md); }
    .top-bar-phone span:not([class]) { display: none; } /* Hide phone text, keep icon */

    /* ── Hero ── */
    .hero { min-height: auto; }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-block: var(--space-2xl);
        gap: var(--space-xl);
    }
    .hero-content { max-width: 100%; }
    .hero-subheadline { margin-inline: auto; }
    .hero-ctas { justify-content: center; }
    .trust-badges { justify-content: center; }
    .hero-visual { min-height: 260px; }
    .hero-glow-ring { width: 280px; height: 280px; }

    /* ── USP ── */
    .usp-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

    /* ── Products ── */
    .products-grid { grid-template-columns: 1fr; }

    /* ── Technology ── */
    .tech-inner { grid-template-columns: 1fr; }
    .tech-visual { display: flex; justify-content: center; margin-top: var(--space-xl); }

    /* ── Distributors ── */
    .distributors-inner { grid-template-columns: 1fr; }
    .map-embed-iframe { height: 300px; }

    /* ── Contact ── */
    .contact-grid { grid-template-columns: 1fr; }

    /* ── Downloads ── */
    .downloads-grid { grid-template-columns: 1fr; }

    /* ── Blog ── */
    .blog-grid { grid-template-columns: 1fr; }

    /* ── Footer ── */
    .footer-columns { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
    .footer-social-row { align-items: center; }
    .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-bottom-brand { flex-direction: column; align-items: center; text-align: center; }
    .footer-bottom-links { justify-content: center; }

    /* ── Form rows ── */
    .form-row--2col { flex-direction: column; }

}

/* ============================================================
   37. RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================================ */

@media (max-width: 480px) {

    :root {
        --container-pad:      1rem;
        --main-header-height: 60px;
        --space-3xl:          3rem;
    }

    .hero-headline { font-size: 2.25rem; }

    .usp-grid { grid-template-columns: 1fr; }

    .footer-columns { grid-template-columns: 1fr; }

    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }

}

/* ============================================================
   38. RTL SUPPORT
   Applied when WPML / Polylang sets dir="rtl" on <html>
============================================================ */

[dir="rtl"] {
    font-family: var(--font-arabic);
}

/* Reverse flex directions */
[dir="rtl"] .top-bar-inner,
[dir="rtl"] .header-inner,
[dir="rtl"] .hero-inner,
[dir="rtl"] .tech-inner,
[dir="rtl"] .heritage-inner,
[dir="rtl"] .distributors-inner,
[dir="rtl"] .footer-top-inner,
[dir="rtl"] .footer-bottom-inner {
    direction: rtl;
}

[dir="rtl"] .header-nav .nav-menu { flex-direction: row-reverse; }

/* Dropdown opens to the right */
[dir="rtl"] .header-nav .nav-menu .sub-menu {
    left: auto;
    right: 0;
}

/* Chevron flips */
[dir="rtl"] .header-nav .nav-menu > li.menu-item-has-children > a::after {
    margin-left: 0;
    margin-right: 5px;
}

/* Text alignment */
[dir="rtl"] .hero-content,
[dir="rtl"] .section-header:not(.section-header--centered),
[dir="rtl"] .tech-content,
[dir="rtl"] .heritage-text {
    text-align: right;
}

/* Swap WhatsApp button position */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 2rem;
}

/* Footer link hover indent flips */
[dir="rtl"] .footer-links li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

/* Mobile nav mirror */
[dir="rtl"] .mobile-menu .sub-menu {
    padding-left: 0;
    padding-right: var(--space-md);
    border-left: none;
    border-right: 2px solid var(--color-border);
}

/* Contact detail icon alignment */
[dir="rtl"] .contact-detail { flex-direction: row-reverse; }
[dir="rtl"] .tech-benefit { flex-direction: row-reverse; }
[dir="rtl"] .trust-badge { flex-direction: row-reverse; }

/* ============================================================
   39. PRODUCT DETAIL PAGES
============================================================ */

.product-detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    padding-block: var(--space-3xl);
}

/* Desktop sticky sidebar */
.product-sidebar {
    position: sticky;
    top: calc(var(--header-total-height) + 1.5rem);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.sidebar-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }

.sidebar-nav-item {
    display: block;
    padding: 0.65rem var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.sidebar-nav-item:hover {
    background-color: rgba(27, 44, 92, 0.05);
    color: var(--color-primary);
    border-left-color: var(--color-border);
}

.sidebar-nav-item--active {
    background-color: rgba(214, 40, 40, 0.06);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 700;
}

/* Tablet pill tabs (hidden desktop, shown 768–1023px) */
.sidebar-pill-tabs {
    display: none;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pill-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    transition: border-color var(--transition), background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.pill-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }

.pill-tab--active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* Mobile select (hidden desktop/tablet, shown <768px) */
.sidebar-mobile-wrap { display: none; margin-bottom: var(--space-xl); }

.sidebar-mobile-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B2C5C' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.sidebar-mobile-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 44, 92, 0.08);
}

/* Content column */
.product-detail-content { min-width: 0; }

/* Page hero */
.pd-hero {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.pd-hero-category { margin-bottom: var(--space-sm); }

.pd-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.pd-hero-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: var(--space-lg);
}

.pd-spec-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.pd-spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.03em;
}

/* Section title within product detail */
.pd-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

/* Specs table */
.pd-specs-block {
    margin-bottom: var(--space-2xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.pd-specs-table { width: 100%; border-collapse: collapse; }

.pd-specs-table th,
.pd-specs-table td {
    padding: 0.65rem var(--space-md);
    font-size: var(--text-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.pd-specs-table th {
    font-weight: 700;
    color: var(--color-primary);
    width: 40%;
    background: var(--color-surface);
}

.pd-specs-table td { color: var(--color-text-light); }

.pd-specs-table tbody tr:last-child th,
.pd-specs-table tbody tr:last-child td { border-bottom: none; }

/* Models grid */
.pd-models-section { margin-bottom: var(--space-2xl); }

.pd-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.model-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.model-card-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card-img--jis   { background: linear-gradient(135deg, #1a3852, #2a6080); }
.model-card-img--heavy { background: linear-gradient(135deg, #3a1a1a, #7c3030); }

.model-card-body { padding: var(--space-md) var(--space-lg); }

.model-card-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.model-card-specs { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }

.model-card-specs > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.model-card-specs dt { color: var(--color-muted); font-weight: 600; }
.model-card-specs dd { color: var(--color-text); font-weight: 700; }

.model-card-placeholder {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.model-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 700;
    background: rgba(37, 211, 102, 0.1);
    color: #16803c;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.model-tag--request {
    background: rgba(27, 44, 92, 0.07);
    color: var(--color-primary);
    border-color: var(--color-border);
}

/* Request Technical Info CTA */
.pd-cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.pd-cta-text h3 { color: var(--color-white); font-size: 1.15rem; margin-bottom: var(--space-sm); }
.pd-cta-text p  { color: rgba(255, 255, 255, 0.7); font-size: var(--text-sm); }

/* Bottom distributor strip */
.pd-bottom-strip {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
}

.pd-bottom-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.pd-bottom-strip h3 { font-size: 1.1rem; color: var(--color-primary); margin-bottom: var(--space-xs); }
.pd-bottom-strip p  { font-size: var(--text-sm); color: var(--color-text-light); }

/* ============================================================
   41. PRODUCT GALLERY
============================================================ */

/* Two-column wrapper: gallery left, product info right */
.pd-gallery-info-block {
    display: grid;
    /* minmax(0, …): a bare 1fr cannot shrink below the thumbnail strip's
       min-content, which pushed the gallery 34px off a 390px screen. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-2xl);
}

/* ── Gallery component ── */
.pg-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Main image slot */
.pg-main {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.pg-main-img--fading { opacity: 0; }

/* Thumbnail strip */
.pg-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pg-thumb {
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color var(--transition), transform var(--transition);
}

.pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pg-thumb:hover  { border: 2px solid var(--color-accent); }

.pg-thumb--active {
    border: 2px solid var(--color-accent);
    transform: scale(1.03);
}

/* ── Product info column ── */
.pd-info-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding-top: var(--space-sm);
}

.pd-model-code {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0;
}

.pd-model-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 0;
}

.pd-model-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.75;
}

/* Key specs definition list */
.pd-key-specs {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: 0;
}

.pd-key-spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.pd-key-spec:last-child { border-bottom: none; }

.pd-key-spec dt {
    font-weight: 600;
    color: var(--color-muted);
}

.pd-key-spec dd {
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* Feature bullet list */
.pd-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.55;
}

.pd-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-top: 5px;
}

/* Request info CTA button */
.btn-request-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    align-self: flex-start;
}

.btn-request-info:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(214, 40, 40, 0.35);
}

.btn-request-info:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pd-gallery-info-block { grid-template-columns: minmax(0, 1fr); }
    .pg-main               { max-width: 400px; }
    .pg-thumb              { width: 80px; height: 80px; }
}

@media (max-width: 767px) {
    .pg-main { max-width: 100%; }

    .pg-thumbs {
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .pg-thumbs::-webkit-scrollbar { display: none; }

    .pg-thumb { width: 72px; height: 72px; }
}

/* ============================================================
   40. DOWNLOADS PAGE
============================================================ */

.downloads-page { background: var(--color-white); }

.dl-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: var(--space-3xl) 0;
}

.dl-hero .section-eyebrow { color: rgba(255, 255, 255, 0.6); }

.dl-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.dl-hero-sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    line-height: 1.75;
}

.dl-section { padding: var(--space-3xl) 0; }
.dl-section--surface { background: var(--color-surface); }

.dl-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.dl-section-sub {
    font-size: var(--text-base);
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    line-height: 1.7;
}

/* Featured doc cards — portrait, 2-col */
.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.doc-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.doc-card-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-card-thumb--brochure  { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)); }
.doc-card-thumb--datasheet { background: linear-gradient(135deg, #3a1a1a, #7c3030); }

.doc-card-body {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doc-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.doc-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: var(--space-md);
    flex: 1;
}

.doc-card-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }

.doc-meta-pill {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-muted);
}

.doc-card-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.doc-btn { font-size: var(--text-sm); padding: 0.6rem 1.25rem; }

/* Coming-soon cards — 4-col */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.coming-soon-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: border-color var(--transition), transform var(--transition);
}

.coming-soon-card:hover { border-color: var(--color-primary); transform: translateY(-3px); }

.coming-soon-icon {
    width: 52px;
    height: 52px;
    background: rgba(27, 44, 92, 0.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.coming-soon-title { font-size: var(--text-base); font-weight: 700; color: var(--color-primary); }

.coming-soon-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
    flex: 1;
}

.coming-soon-btn { font-size: var(--text-sm); padding: 0.5rem 1rem; margin-top: auto; }

/* Custom document CTA strip */
.doc-cta-strip { background: var(--color-primary-dark); padding: var(--space-3xl) 0; }

.doc-cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.doc-cta-text h2 { font-size: 1.5rem; color: var(--color-white); margin-bottom: var(--space-sm); }
.doc-cta-text p  { font-size: var(--text-base); color: rgba(255, 255, 255, 0.7); max-width: 500px; line-height: 1.7; }

/* Language toggle banner */
.lang-toggle-banner {
    background: rgba(27, 44, 92, 0.04);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.lang-toggle-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.lang-toggle-banner p { font-size: var(--text-sm); color: var(--color-text-light); }

.lang-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    transition: gap var(--transition);
}

.lang-toggle-link:hover { gap: 10px; }

/* ============================================================
   39–40. RESPONSIVE — PRODUCT DETAIL & DOWNLOADS
============================================================ */

@media (max-width: 1024px) {
    .product-detail-layout   { grid-template-columns: 1fr; }
    .product-sidebar         { display: none; }
    .sidebar-pill-tabs       { display: flex; }
    .pd-models-grid          { grid-template-columns: repeat(2, 1fr); }
    .coming-soon-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar-pill-tabs        { display: none; }
    .sidebar-mobile-wrap      { display: block; }
    .pd-models-grid           { grid-template-columns: 1fr; }
    .pd-cta-block             { flex-direction: column; align-items: flex-start; }
    .pd-bottom-strip-inner    { flex-direction: column; align-items: flex-start; }
    .doc-cards-grid           { grid-template-columns: 1fr; }
    .doc-cta-strip-inner      { flex-direction: column; align-items: flex-start; }
    .lang-toggle-banner-inner { flex-direction: column; align-items: flex-start; }
    .coming-soon-grid         { grid-template-columns: 1fr; }
}

/* ============================================================
   40.  CONCEPT-DESIGN BADGE
   Discloses that AMPRA is spec work. Sits bottom-left so it
   never collides with the WhatsApp float (bottom-right, z 990).
============================================================ */

.concept-badge {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 989;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 22rem;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: rgba(15, 26, 61, 0.94);
    color: #dbe0ec;
    font-size: 0.75rem;
    line-height: 1.45;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.concept-badge-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.42rem;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.concept-badge strong {
    color: var(--color-white);
    font-weight: 700;
}

.concept-badge a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.footer-concept-note {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--footer-text);
    font-size: var(--text-xs);
    line-height: 1.5;
    opacity: 0.85;
}

/* Mirror in RTL: the WhatsApp float moves to the left there (section 38),
   so the badge takes the right. Keeping both on the left stacked one on the
   other. */
[dir="rtl"] .concept-badge {
    left: auto;
    right: 2rem;
}

@media (max-width: 768px) {
    .concept-badge {
        left: 1rem;
        right: 5.5rem;   /* clear the WhatsApp button */
        bottom: 1rem;
        max-width: none;
        padding: 0.6rem 0.8rem;
        font-size: 0.6875rem;
    }
    [dir="rtl"] .concept-badge { right: 1rem; left: 5.5rem; }
}

/* ============================================================
   41. BILINGUAL SUPPORT (EN / AR)
   The Arabic site sets lang="ar" dir="rtl" on <html>. Every rule that
   used var(--font-sans) — body, inputs, buttons — picks Cairo up from the
   token, so nothing Arabic falls back to a system face.
============================================================ */

[dir="rtl"] {
    --font-sans: 'Cairo', 'Inter', system-ui, sans-serif;
}

[dir="rtl"] body { line-height: 1.8; }

/* direction:rtl already reverses a flex row; these old rules reversed it a
   second time, putting the nav, the badges and the benefit rows back into
   left-to-right order. */
[dir="rtl"] .header-nav .nav-menu,
[dir="rtl"] .contact-detail,
[dir="rtl"] .tech-benefit,
[dir="rtl"] .trust-badge { flex-direction: row; }

/* Arrows point the way the page reads. */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* Latin runs inside Arabic keep their own order. */
bdi[dir="ltr"] { unicode-bidi: isolate; }

.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    inset-inline-start: var(--space-sm);
    width: auto; height: auto;
    clip: auto;
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    z-index: 10000;
}

.lang-link[lang="ar"] { font-family: var(--font-arabic); letter-spacing: 0; font-size: 0.8125rem; }

.lang-switcher--mobile {
    justify-content: center;
    margin-bottom: var(--space-md);
}
.lang-switcher--mobile .lang-link { color: var(--color-muted); font-size: var(--text-sm); }
.lang-switcher--mobile .lang-link--active { color: var(--color-primary); }
.lang-switcher--mobile .lang-divider { color: var(--color-border); }

/* ============================================================
   42. DEALER LOCATOR
============================================================ */

.dealer-locator { display: flex; flex-direction: column; gap: var(--space-md); }

.map-placeholder:has(.dealer-locator) {
    background: var(--color-white);
    padding: var(--space-lg);
}

.dl-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-md);
}

.dl-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 11rem; }
.dl-field--grow { flex: 1 1 14rem; }

.dl-field label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}
[dir="rtl"] .dl-field label { letter-spacing: 0; text-transform: none; font-size: var(--text-sm); }

.dl-field select,
.dl-field input {
    height: 2.75rem;
    padding: 0 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-white);
}
.dl-field select:focus,
.dl-field input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(27, 44, 92, 0.08); }

.dl-near-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.1rem;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-primary);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}
.dl-near-btn:hover { background: var(--color-primary); color: var(--color-white); }
.dl-near-btn:focus-visible { outline: 3px solid rgba(27, 44, 92, 0.3); outline-offset: 2px; }

.dl-status {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-muted);
}

.dl-body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 560px;
    overflow-y: auto;
    padding-inline-end: var(--space-xs);
    list-style: none;
}

.dl-card {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.dl-card.is-active {
    border-color: var(--color-accent);
    box-shadow: 0 6px 18px rgba(27, 44, 92, 0.08);
}

.dl-card-select {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
}
.dl-card-select:focus-visible { outline: 3px solid rgba(214, 40, 40, 0.35); outline-offset: -3px; border-radius: var(--radius-md); }

.dl-card-type {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}
[dir="rtl"] .dl-card-type { letter-spacing: 0; font-size: var(--text-xs); }

.dl-card-name { font-size: var(--text-base); font-weight: 700; color: var(--color-primary); line-height: 1.35; }
.dl-card-area { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.dl-card-address { font-size: var(--text-sm); color: var(--color-muted); }
.dl-card-distance { font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); margin-top: 0.2rem; }

.dl-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 0 var(--space-md) var(--space-md);
}
.dl-card-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(27, 44, 92, 0.25);
    text-underline-offset: 3px;
}
.dl-card-link:hover { color: var(--color-accent); text-decoration-color: currentColor; }

.dl-map {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #e5e7eb;
}
.dl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.dl-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
}
.dl-all-link:hover { color: var(--color-accent-hover); }

.dl-sample-note {
    font-size: var(--text-xs);
    color: var(--color-muted);
    line-height: 1.6;
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--color-border);
}

/* Compact (homepage): one column — map on top, three matches under it. */
.dealer-locator--compact .dl-body { grid-template-columns: 1fr; }
.dealer-locator--compact .dl-map { order: -1; min-height: 260px; }
.dealer-locator--compact .dl-list { max-height: none; overflow: visible; padding: 0; }
.dealer-locator--compact .dl-controls .dl-field { flex: 1 1 10rem; }

.distributors-section--page { padding-top: var(--space-2xl); }
.distributors-section--page .section-header { max-width: 46rem; margin-bottom: var(--space-xl); }

@media (max-width: 900px) {
    .dl-body { grid-template-columns: 1fr; }
    .dl-map { order: -1; min-height: 300px; }
    .dl-list { max-height: none; overflow: visible; padding: 0; }
}

@media (max-width: 560px) {
    .dl-field { min-width: 0; flex: 1 1 100%; }
    .dl-near-btn { flex: 1 1 100%; justify-content: center; }
    .map-placeholder:has(.dealer-locator) { padding: var(--space-md); }
}

/* ============================================================
   43. WHATSAPP-HANDOFF FORMS
============================================================ */

.form-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-lg);
}

.form-handoff-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-xs);
    color: var(--color-muted);
}
.form-handoff-note svg { color: var(--color-whatsapp); flex: none; }
.contact-strip .form-handoff-note { color: rgba(255, 255, 255, 0.6); }
.contact-strip .form-handoff-note svg { color: var(--color-whatsapp-bright); }

.form-status {
    margin-top: var(--space-md);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(18, 140, 126, 0.35);
    font-size: var(--text-sm);
    color: var(--color-text);
}
.form-status a { font-weight: 700; color: #0b6b5f; text-decoration: underline; text-underline-offset: 3px; }
.contact-strip .form-status { color: var(--color-white); background: rgba(37, 211, 102, 0.12); }
.contact-strip .form-status a { color: var(--color-whatsapp-bright); }

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2C5C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: right 0.9rem center;
    padding-inline-end: 2.5rem;
}
[dir="rtl"] .form-group select { background-position: left 0.9rem center; }

/* ============================================================
   44. DISTRIBUTORS PAGE — BECOME A DISTRIBUTOR
============================================================ */

.become-distributor {
    background: var(--color-surface);
    padding: var(--space-3xl) 0;
}

.become-distributor-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
}

.become-distributor-copy > p {
    color: var(--color-text-light);
    margin: var(--space-sm) 0 var(--space-lg);
}

.become-distributor-points { display: grid; gap: var(--space-sm); }
.become-distributor-points li {
    position: relative;
    padding-inline-start: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
}
.become-distributor-points li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    background: var(--color-accent);
}

@media (max-width: 900px) {
    .become-distributor-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   45. CONTACT PAGE
============================================================ */

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-2xl);
    align-items: start;
}

.contact-page-form {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
}

.contact-page-aside { display: grid; gap: var(--space-md); }

.contact-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    background: var(--color-white);
}
.contact-card-title { font-size: 1.15rem; color: var(--color-primary); margin-bottom: var(--space-xs); }
.contact-card p { font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-md); }

.contact-details { display: grid; gap: var(--space-md); }
.contact-details dt { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
[dir="rtl"] .contact-details dt { text-transform: none; letter-spacing: 0; font-size: var(--text-sm); }
.contact-details dd { font-weight: 600; color: var(--color-primary); }

.contact-card--link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
    transition: background-color var(--transition);
}
.contact-card--link strong { color: var(--color-white); font-size: var(--text-base); }
.contact-card--link:hover { background: var(--color-primary-dark); color: rgba(255, 255, 255, 0.9); }

@media (max-width: 900px) {
    .contact-page-grid { grid-template-columns: 1fr; }
    .contact-page-form { padding: var(--space-lg); }
}

/* ============================================================
   46. DOWNLOADS — REAL DOCUMENTS
============================================================ */

.doc-card-thumb { height: 240px; overflow: hidden; }
.doc-card-cover {
    height: 88%;
    width: auto;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(8%);
    transition: transform 0.3s ease;
}
.doc-card:hover .doc-card-cover { transform: translateY(4%); }

.doc-alt-lang {
    align-self: flex-start;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(27, 44, 92, 0.25);
    text-underline-offset: 3px;
}
.doc-alt-lang[lang="ar"] { font-family: var(--font-arabic); }
.doc-alt-lang[lang="en"] { font-family: 'Inter', sans-serif; }
.doc-alt-lang:hover { color: var(--color-accent); }

/* ============================================================
   47. CONTRAST (WCAG AA) — dark grounds and grey surfaces
   Measured in the browser against the composited background.
============================================================ */

.technology-section .section-eyebrow,
.contact-strip .section-eyebrow { color: var(--color-accent-on-dark); }

.pd-key-spec dt,
.doc-meta-pill { color: var(--color-muted-strong); }
