/* ================================================
   Made at Egypt - Design System
   Premium CSS with Variables, Animations & Responsive
   ================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --color-primary: #f59e0b;
    --color-primary-hover: #d97706;
    --color-primary-light: rgba(245, 158, 11, 0.1);
    --color-primary-glow: rgba(245, 158, 11, 0.2);

    --color-secondary: #0891b2;
    --color-secondary-hover: #0e7490;

    --color-dark: #0f172a;
    --color-dark-lighter: #1e293b;
    --color-dark-card: #334155;

    --color-light: #f8fafc;
    --color-light-warm: #faf5ff;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-white: #ffffff;
    --color-text-on-dark: #cbd5e1;

    --color-emerald: #059669;
    --color-emerald-hover: #047857;
    --color-emerald-light: #ecfdf5;

    --color-blue: #3b82f6;
    --color-cyan: #06b6d4;

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 1rem;

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-primary: 0 10px 25px -5px rgba(245,158,11,0.2);
    --shadow-emerald: 0 10px 25px -5px rgba(5,150,105,0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Removes sluggish wheel scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* ---------- 60 FPS Scroll & GPU Rendering Optimizations ---------- */
img, .product-card-image, .blog-card div[style*="background-image"], .hero-bg, .card-img {
    content-visibility: auto;
    contain: paint;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.product-card, .blog-card, .advantage-item {
    min-width: 0 !important;
    max-width: 100% !important;
}

html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="ltr"] body { font-family: var(--font-en); }

body {
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

main, .hero, .section, .site-footer {
    max-width: 100%;
    overflow-x: hidden !important;
}

::selection {
    background-color: var(--color-primary);
    color: white;
}

a { text-decoration: none; color: inherit; transition: color var(--transition-base); }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- Header / Navbar ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 640px) { .header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 2rem; } }

.brand-logo {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 400px) { .brand-logo { font-size: 1.25rem; } }
@media (min-width: 640px) { .brand-logo { font-size: 1.5rem; } }

.brand-logo .accent { color: var(--color-primary); }

.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 0.938rem;
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-slow);
}

html[dir="rtl"] .main-nav a::after { right: 0; }
html[dir="ltr"] .main-nav a::after { left: 0; }

.main-nav a:hover { color: var(--color-primary); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--color-primary); font-weight: 700; }
.main-nav a.active::after { width: 100%; }

@media (min-width: 768px) { .main-nav { display: flex; } }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.813rem;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    background: transparent;
    transition: all var(--transition-base);
}

.lang-switch:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    background: var(--color-emerald);
    box-shadow: var(--shadow-emerald);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: var(--color-emerald-hover);
    color: white;
    transform: translateY(-1px);
}

/* On small screens: show WhatsApp button as icon-only to save space */
@media (max-width: 600px) {
    .site-header .btn-whatsapp .wa-label { display: none; }
    .site-header .btn-whatsapp { padding: 0.5rem 0.6rem; gap: 0; }
    /* Language switcher: show flag only, hide language name text and chevron arrow */
    .site-header .header-actions .nav-dropdown-btn .lang-name { display: none; }
    .site-header .header-actions .nav-dropdown-btn svg { display: none; }
    .site-header .header-actions .nav-dropdown-btn { padding: 0.4rem 0.5rem; gap: 0; min-width: unset; }
    .header-actions { gap: 0.35rem; }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.nav-dropdown-btn {
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 0.938rem;
    padding: 0.25rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}
.nav-dropdown-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-slow);
}
html[dir="rtl"] .nav-dropdown-btn::after { right: 0; }
html[dir="ltr"] .nav-dropdown-btn::after { left: 0; }
.nav-dropdown:hover .nav-dropdown-btn { color: var(--color-primary); }
.nav-dropdown:hover .nav-dropdown-btn::after { width: 100%; }

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    min-width: 220px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 200;
}
html[dir="rtl"] .nav-dropdown-menu { right: 0; }
html[dir="ltr"] .nav-dropdown-menu { left: 0; }

/* Ensure dropdown menus open inward towards screen center on mobile/header, never off-screen! */
@media (max-width: 768px) {
    html[dir="ltr"] .nav-dropdown-menu {
        left: auto !important;
        right: 0 !important;
    }
    html[dir="rtl"] .nav-dropdown-menu {
        right: auto !important;
        left: 0 !important;
    }
}
html[dir="rtl"] .header-actions .nav-dropdown-menu {
    right: auto !important;
    left: 0 !important;
}
html[dir="ltr"] .header-actions .nav-dropdown-menu {
    left: auto !important;
    right: 0 !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
    color: var(--color-text) !important;
    white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
}

@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 99;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.mobile-nav .mobile-sub-nav {
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid var(--color-border-light);
    margin-inline-start: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}
.mobile-nav .mobile-sub-title {
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.938rem;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    padding-top: 5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 640px) { .hero-content { padding: 3rem 1.5rem; } }

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 2fr 1fr;
        padding: 5rem 2rem;
        text-align: start;
    }
}

.hero-text { text-align: center; }
@media (min-width: 768px) { .hero-text { text-align: start; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: #fbbf24;
    border: 1px solid var(--color-primary-glow);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.hero-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

.hero-badge.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.25);
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero h1 .gradient-text {
    background: linear-gradient(to left, #fbbf24, #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .gradient-text.blue {
    background: linear-gradient(to left, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .gradient-text.cyan {
    background: linear-gradient(to left, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-on-dark);
    max-width: 42rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) { .hero-description { margin: 0 0 2.5rem; } }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-actions { justify-content: flex-start; }
}

.hero-visual {
    display: none;
}

@media (min-width: 768px) {
    .hero-visual { display: block; }
}

.hero-image-frame {
    position: relative;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
}

.hero-image-inner {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-image-badge {
    position: absolute;
    bottom: -1.5rem;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 700;
    text-align: center;
}

html[dir="rtl"] .hero-image-badge { right: -1.5rem; }
html[dir="ltr"] .hero-image-badge { left: -1.5rem; }

.hero-image-badge.blue { background: var(--color-blue); color: var(--color-dark); }
.hero-image-badge.cyan { background: var(--color-cyan); color: var(--color-dark); }

.hero-image-badge .big { font-size: 1.5rem; display: block; }
.hero-image-badge .small { font-size: 0.75rem; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.938rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: var(--shadow-primary);
}

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

.btn-primary.blue { background: var(--color-blue); box-shadow: 0 10px 25px -5px rgba(59,130,246,0.2); }
.btn-primary.blue:hover { background: #2563eb; }

.btn-primary.cyan { background: var(--color-cyan); box-shadow: 0 10px 25px -5px rgba(6,182,212,0.2); }
.btn-primary.cyan:hover { background: #0891b2; }

.btn-outline {
    background: rgba(30, 41, 59, 0.8);
    color: white;
    border: 1px solid #475569;
    backdrop-filter: blur(8px);
}

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

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-submit.amber {
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 4px 12px rgba(245,158,11,0.1);
}
.btn-submit.amber:hover { background: var(--color-primary-hover); }

.btn-submit.blue {
    background: var(--color-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}
.btn-submit.blue:hover { background: #2563eb; }

.btn-submit.cyan {
    background: var(--color-cyan);
    color: white;
    box-shadow: 0 4px 12px rgba(6,182,212,0.2);
}
.btn-submit.cyan:hover { background: #0891b2; }

/* ---------- Sections ---------- */
.section {
    padding: 6rem 0;
}

.section-light { background: var(--color-light); }
.section-white { background: var(--color-surface); border-bottom: 1px solid var(--color-border-light); }
.section-muted { background: #f1f5f9; }

.section-dark {
    background: var(--color-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-dark .section-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(245,158,11,0.08), transparent 45%);
    pointer-events: none;
}

.section-dark .section-glow.blue {
    background: radial-gradient(circle at top right, rgba(59,130,246,0.1), transparent 50%);
}

.section-dark .section-glow.cyan {
    background: radial-gradient(circle at top right, rgba(6,182,212,0.1), transparent 50%);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

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

.section-eyebrow.blue { color: var(--color-blue); }
.section-eyebrow.cyan { color: var(--color-cyan); }

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.section-dark .section-title { color: white; }

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.section-dark .section-subtitle { color: var(--color-text-on-dark); }

/* ---------- Partner / Intro Section ---------- */
.intro-section {
    padding: 5rem 0;
    background: white;
    border-bottom: 1px solid var(--color-border-light);
}

.intro-content {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

/* ---------- Sector Card (Home) ---------- */
.sector-card {
    display: block;
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.sector-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.sector-card-image {
    height: 16rem;
    overflow: hidden;
    position: relative;
}

.sector-card-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.2);
    transition: background var(--transition-slow);
    z-index: 1;
}

.sector-card:hover .overlay { background: transparent; }

.sector-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.sector-card:hover .sector-card-image img {
    transform: scale(1.05);
}

.sector-card-body {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.sector-card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.sector-card:hover .sector-card-body h3 { color: var(--color-primary); }

.sector-card-body p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.sector-card-arrow {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.sector-card:hover .sector-card-arrow {
    background: var(--color-primary-light);
    border-color: var(--color-primary-glow);
}

.sector-card-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

html[dir="rtl"] .sector-card-arrow svg { transform: rotate(180deg); }

.sector-card:hover .sector-card-arrow svg { color: var(--color-primary); }

/* ---------- Product Card ---------- */
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-card-image {
    height: 12rem;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    transition: transform var(--transition-smooth);
}

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

.product-card-image.contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #f1f5f9;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.product-card:hover .product-card-body h3 { color: var(--color-primary); }
.product-card.blue:hover .product-card-body h3 { color: var(--color-blue); }
.product-card.cyan:hover .product-card-body h3 { color: var(--color-cyan); }

.product-card-body p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- Advantages Grid ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) { .advantages-grid { grid-template-columns: repeat(3, 1fr); } }

.advantage-item {
    padding-right: 1.5rem;
}

html[dir="rtl"] .advantage-item {
    border-right: 2px solid rgba(245,158,11,0.3);
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="ltr"] .advantage-item {
    border-left: 2px solid rgba(245,158,11,0.3);
    padding-left: 1.5rem;
    padding-right: 0;
}

.advantage-item.blue { }
html[dir="rtl"] .advantage-item.blue { border-right-color: rgba(59,130,246,0.3); }
html[dir="ltr"] .advantage-item.blue { border-left-color: rgba(59,130,246,0.3); }

html[dir="rtl"] .advantage-item.cyan { border-right-color: rgba(6,182,212,0.3); }
html[dir="ltr"] .advantage-item.cyan { border-left-color: rgba(6,182,212,0.3); }

.advantage-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary-glow);
    margin-bottom: 1rem;
}

.advantage-icon.blue {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
}

.advantage-icon.cyan {
    background: rgba(6,182,212,0.1);
    border-color: rgba(6,182,212,0.2);
}

.advantage-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
}

.advantage-icon.blue svg { color: #60a5fa; }
.advantage-icon.cyan svg { color: #22d3ee; }

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.advantage-item.blue h3 { color: #60a5fa; }
.advantage-item.cyan h3 { color: #22d3ee; }

.advantage-item p {
    font-size: 0.875rem;
    color: var(--color-text-on-dark);
    line-height: 1.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 700;
    color: var(--color-text-secondary);
}

/* ---------- Contact Section ---------- */
.contact-section {
    padding: 6rem 0;
    background: #f1f5f9;
}

.contact-card {
    max-width: 56rem;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226,232,240,0.6);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-card {
        grid-template-columns: 5fr 7fr;
        padding: 3rem;
    }
}

.contact-info h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-emerald-light);
    color: #047857;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(5,150,105,0.2);
    transition: all var(--transition-base);
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .whatsapp-link { width: auto; justify-content: flex-start; }
}

.whatsapp-link:hover { background: #d1fae5; color: #047857; }

.whatsapp-link .pulse-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--color-emerald);
    animation: pulse 2s infinite;
}

/* ---------- Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--color-light);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-control.blue:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-control.cyan:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

textarea.form-control { resize: vertical; min-height: 4.5rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-dark);
    color: var(--color-text-muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand-logo { margin-bottom: 1rem; }
.footer-brand .brand-logo .accent { color: var(--color-primary); }

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 20rem;
}

.footer-col h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    font-size: 0.938rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.75rem;
    color: #475569;
}

/* ---------- Sidebar ---------- */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .page-with-sidebar { grid-template-columns: 1fr 280px; }
}

.sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar { display: block; }
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.sidebar-links a .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-border);
    transition: background var(--transition-base);
}

.sidebar-links a:hover .dot,
.sidebar-links a.active .dot { background: var(--color-primary); }

.sidebar-cta {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-lighter) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
}

.sidebar-cta h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.sidebar-cta p {
    font-size: 0.813rem;
    color: var(--color-text-on-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sidebar-cta .btn-whatsapp {
    width: 100%;
    justify-content: center;
    font-size: 0.813rem;
    padding: 0.75rem;
}

/* ---------- Animations ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-start { text-align: start; }
.font-bold { font-weight: 700; }
.phone-number { color: var(--color-primary); }
.phone-number.blue { color: #60a5fa; }
.phone-number.cyan { color: #22d3ee; }

/* Blog Article Typography */
.blog-article-content h2 {
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}
.blog-article-content h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}
.blog-article-content h4 {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
}
.blog-article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}
.blog-article-content ul, .blog-article-content ol {
    margin-bottom: 2rem;
    padding-inline-start: 1.25rem;
    line-height: 1.8;
}
.blog-article-content li {
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}
.blog-article-content a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile blog article overrides & Universal Galaxy A15 / Mobile Truncation Fix */
.page-with-sidebar, .cards-grid, .advantages-grid, .stats-grid, .footer-grid, .hero-content, .main-content, .container, .section, article, .product-card, .blog-card {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.page-with-sidebar > *, .cards-grid > *, .advantages-grid > *, .stats-grid > *, .footer-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

h1, h2, h3, h4, h5, h6, p, li, a, span, div, article, strong, b, em {
    max-width: 100%;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .blog-article-content {
        padding: 1.25rem !important;
        font-size: 0.96rem !important;
        line-height: 1.75 !important;
        border-radius: var(--radius-lg) !important;
        overflow-x: hidden !important;
    }
    .blog-article-content h2[style] {
        font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    }
    .blog-article-content h2[style],
    .blog-article-content p[style] {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .product-card-body {
        padding: 1rem !important;
    }
    .product-card-image {
        height: 10rem !important;
    }
    .cards-grid {
        gap: 1.25rem !important;
    }
}

/* Print styles */
@media print {
    .site-header, .site-footer, .sidebar, .contact-section { display: none; }
    body { background: white; }
}
