@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Montserrat:wght@400;600;800&family=Tajawal:wght@500;700;900&display=swap');

:root {
    /* Color Palette */
    --primary: hsl(204, 76%, 40%);
    --primary-light: hsl(204, 76%, 95%);
    --primary-hover: hsl(204, 86%, 30%);
    --secondary: hsl(162, 70%, 40%);
    --secondary-light: hsl(162, 70%, 95%);
    --accent: hsl(38, 92%, 50%); /* Saudi gold accent */
    --accent-light: hsl(38, 92%, 96%);
    
    --bg-base: hsl(204, 20%, 98%);
    --bg-surface: hsl(0, 0%, 100%);
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: hsl(204, 60%, 15%);
    --text-muted: hsl(204, 20%, 45%);
    --text-on-primary: hsl(0, 0%, 100%);
    
    --border: hsl(204, 25%, 90%);
    --border-hover: hsl(204, 50%, 80%);
    
    --shadow-sm: 0 2px 8px rgba(38, 74, 102, 0.04);
    --shadow-md: 0 8px 20px rgba(38, 74, 102, 0.08);
    --shadow-lg: 0 16px 36px rgba(38, 74, 102, 0.12);
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Contrast-safe secondary for text/badges on light backgrounds (~10:1 on white) */
    --secondary-text: hsl(162, 55%, 26%);

    /* Footer color tokens */
    --footer-bg: hsl(204, 60%, 12%);
    --footer-text: hsl(214, 32%, 91%);
    --footer-text-muted: hsl(215, 25%, 78%);
    --footer-text-faint: hsl(215, 20%, 62%);
    --footer-heading: hsl(204, 10%, 97%);
    --footer-border: hsl(204, 30%, 22%);
    --footer-social-bg: hsl(204, 30%, 18%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Directional Text Alignment */
html[dir="rtl"] {
    text-align: right;
}
html[dir="ltr"] {
    text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

html[dir="ltr"] h1, 
html[dir="ltr"] h2, 
html[dir="ltr"] h3, 
html[dir="ltr"] h4, 
html[dir="ltr"] h5, 
html[dir="ltr"] h6 {
    font-family: 'Montserrat', sans-serif;
}

p {
    color: var(--text-muted);
}

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

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

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

/* Text overflow resilience */
.card-desc, .hero-desc, .footer-brand-desc, .explore-desc {
    overflow-wrap: break-word;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: hsl(204, 30%, 80%);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--bg-surface);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
}

.desktop-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.desktop-menu a {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0.2rem;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

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

.desktop-menu a:hover, .desktop-menu .active-link {
    color: var(--primary);
}

.desktop-menu a:hover::after, .desktop-menu .active-link::after {
    width: 100%;
}

/* Lang Switcher */
.lang-switch {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-switch:hover {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.btn-header {
    background-color: var(--primary);
    color: var(--text-on-primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(29, 116, 179, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-header:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 116, 179, 0.3);
}

/* Mobile Navigation Trigger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
}

.menu-toggle svg {
    width: 30px;
    height: 30px;
}

/* Mobile Dropdown Menu */
.mobile-menu {
    position: fixed;
    top: 77px;
    width: 100%;
    height: calc(100vh - 77px);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    list-style: none;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

html[dir="rtl"] .mobile-menu {
    right: -100%;
}
html[dir="rtl"] .mobile-menu.open {
    right: 0;
}

html[dir="ltr"] .mobile-menu {
    left: -100%;
}
html[dir="ltr"] .mobile-menu.open {
    left: 0;
}

.mobile-menu a {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    display: block;
}

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

.mobile-menu .btn-header {
    text-align: center;
    justify-content: center;
    margin-top: 1rem;
}

/* Page Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 1.5rem 6rem;
    background: linear-gradient(135deg, hsl(204, 76%, 98%) 0%, hsl(162, 70%, 98%) 100%);
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    border-radius: 50%;
    top: -100px;
    filter: blur(80px);
    opacity: 0.6;
}

html[dir="rtl"] .hero-section::before {
    left: -100px;
}
html[dir="ltr"] .hero-section::before {
    right: -100px;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--secondary-light);
    border-radius: 50%;
    bottom: -150px;
    filter: blur(100px);
    opacity: 0.6;
}

html[dir="rtl"] .hero-section::after {
    right: -100px;
}
html[dir="ltr"] .hero-section::after {
    left: -100px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background-color: var(--secondary-light);
    color: var(--secondary-text);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid hsl(162, 70%, 90%);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Sections General */
.section {
    padding: 6rem 1.5rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    color: var(--secondary-text);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 > *,
.grid-3 > *,
.products-grid > *,
.explore-grid > * {
    min-width: 0;
}

/* Cards Design */
.card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

html[dir="rtl"] .card::before {
    right: 0;
    transform-origin: right;
}
html[dir="ltr"] .card::before {
    left: 0;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Image Wrappers */
.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.product-image-container {
    height: 240px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    background-color: var(--secondary-text);
    color: var(--text-on-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .product-badge {
    right: 1rem;
}
html[dir="ltr"] .product-badge {
    left: 1rem;
}

.product-badge.unsterile {
    background-color: var(--accent);
    color: var(--text-main);
}

.product-info {
    padding: 1.8rem;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-name span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    margin-top: 0.2rem;
}

/* Explore / Gallery Card Design */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2.5rem;
}

.explore-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.explore-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.explore-img-wrap {
    height: 250px;
    overflow: hidden;
}

.explore-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.explore-card:hover .explore-img-wrap img {
    transform: scale(1.06);
}

.explore-info {
    padding: 1.8rem;
}

.explore-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

/* Partners Logos */
.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.partner-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 320px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.partner-logo-container {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.partner-logo-container img {
    max-height: 100%;
    max-width: 85%;
    object-fit: contain;
}

.partner-logo-initials {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Tajawal', sans-serif;
}

html[dir="ltr"] .partner-logo-initials {
    font-family: 'Montserrat', sans-serif;
}

.partner-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-big-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2.8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--text-main);
}

.contact-big-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.contact-big-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.contact-big-card:hover .contact-big-icon {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.contact-big-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-big-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
}

/* Footer Styling */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 1.5rem 2.5rem;
    border-top: 5px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-widget-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--footer-text-muted);
    line-height: 1.7;
}

.footer-widget h3 {
    color: var(--footer-heading);
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

html[dir="rtl"] .footer-widget h3::after {
    right: 0;
}
html[dir="ltr"] .footer-widget h3::after {
    left: 0;
}

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

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

html[dir="rtl"] .footer-links a:hover {
    transform: translateX(-4px);
}
html[dir="ltr"] .footer-links a:hover {
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact-icon {
    color: var(--secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--footer-social-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-heading);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-social-icon:hover {
    background-color: var(--primary);
    color: var(--footer-heading);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--footer-text-faint);
}

/* Scroll Animation Classes */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .desktop-menu {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav-container > .btn-header {
        display: none;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-section {
        padding: 6rem 1.2rem 3.5rem;
    }
    .section {
        padding: 3.5rem 1.2rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    .partner-card {
        width: 100%;
    }
    .hero-section {
        padding: 5.5rem 1rem 3rem;
    }
    .section {
        padding: 2.5rem 1rem;
    }
    .card {
        padding: 1.8rem 1.5rem;
    }
    .product-image-container {
        height: 200px;
    }
    .explore-img-wrap {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ===== PRODUCT CARD ENRICHMENT ===== */
.product-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.3rem;
}

.product-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
}

.product-cta {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    background-color: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.product-cta:hover {
    background-color: var(--primary-hover);
}

/* ===== CERTIFICATIONS GRID ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 1.5rem;
}

.cert-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.cert-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.cert-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.cert-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== HOMEPAGE SPLIT HERO ===== */
.hero-home {
    text-align: initial;
    padding: 7rem 1.5rem 4rem;
}

html[dir="rtl"] .hero-home { text-align: right; }
html[dir="ltr"] .hero-home { text-align: left; }

.hero-home-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-home .hero-badge {
    display: inline-flex;
}

.hero-home .hero-desc {
    margin-inline: 0;
    max-width: 560px;
}

.hero-visual-stack {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4;
}

.hero-visual-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background-color: var(--primary);
    padding: 2.8rem 1.5rem;
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--text-on-primary);
}

.stat-value {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 900;
    display: block;
    line-height: 1.2;
    font-family: 'Tajawal', sans-serif;
}

html[dir="ltr"] .stat-value {
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.88;
    margin-top: 0.4rem;
    display: block;
}

/* ===== WHY SHEFANA FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 1.2rem;
    display: block;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== CONTACT MAP ===== */
.map-wrapper {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
    cursor: pointer;
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 30, 50, 0.75));
    color: hsl(0, 0%, 97%);
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.map-wrapper:hover img {
    transform: scale(1.03);
}

.map-wrapper:hover .map-overlay {
    background: linear-gradient(transparent, rgba(10, 30, 50, 0.9));
}

/* ===== RESPONSIVE: NEW SECTIONS ===== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-home {
        text-align: center;
        padding: 6rem 1.2rem 3rem;
    }
    html[dir="rtl"] .hero-home,
    html[dir="ltr"] .hero-home { text-align: center; }
    .hero-home-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-home .hero-desc {
        margin-inline: auto;
        max-width: 100%;
    }
    .hero-home-visual { order: -1; }
    .hero-visual-stack {
        aspect-ratio: 16 / 9;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .feature-item {
        padding: 1.5rem 0.9rem;
    }
    .stats-bar-inner {
        gap: 1rem;
    }
    .stat-value {
        font-size: 1.6rem;
    }
}
