/*
Theme Name: AFIC Chemicals
Theme URI: https://afichemicals.com/
Author: Areej Famous Industrial Company
Author URI: https://afichemicals.com/
Description: Corporate WordPress Theme for AFIC Chemicals
Version: 1.0.5
Text Domain: afic-theme
*/

/* ==========================================================================
   1. CSS VARIABLES (Design System)
   ========================================================================== */
:root {
    /* Colors */
    --primary: #9B0202;
    --primary-dark: #7A0101;
    --primary-light: #C41010;
    --black: #111111;
    --dark: #222222;
    --text: #444444;
    --text-light: #777777;
    --border: #E0E0E0;
    --light-bg: #F7F7F7;
    --white: #FFFFFF;
    --accent-gold: #C8A951;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --text-h1: 42px;
    --text-h2: 34px;
    --text-h3: 26px;
    --text-h4: 20px;
    --text-body: 16px;
    --text-small: 14px;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: 80px;
    --section-padding-lg: 100px;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.05);
    
    /* Borders */
    --radius-sm: 2px;
    --radius-md: 4px;
}

@media (min-width: 768px) {
    :root {
        --text-h1: 56px;
        --text-h2: 42px;
        --text-h3: 32px;
        --text-h4: 24px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

svg {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

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

a:hover, a:focus {
    color: var(--primary-dark);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 2rem;
}

th, td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background-color: var(--light-bg);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-h1);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: var(--text-h2);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

/* Section Heading Underline Accent */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
}

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

.section-title.text-left h2::after {
    left: 0;
    transform: none;
}

h3 {
    font-size: var(--text-h3);
    font-weight: 600;
}

h4 {
    font-size: var(--text-h4);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.subtitle {
    font-size: var(--text-h4);
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 2rem;
}

.meta-text {
    font-size: var(--text-small);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 20px 20px 30px;
    margin: 30px 0;
    background-color: var(--light-bg);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark);
}

/* ==========================================================================
   4. LAYOUT & GRID
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-lg {
    padding: var(--section-padding-lg) 0;
}

.section-sm {
    padding: 40px 0;
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-black { background-color: var(--black); color: var(--white); }
.bg-primary { background-color: var(--primary); color: var(--white); }

.bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p,
.bg-black h2, .bg-black h3, .bg-black h4, .bg-black p,
.bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary p {
    color: var(--white);
}

.bg-dark .section-title h2::after,
.bg-black .section-title h2::after {
    background-color: var(--primary);
}

.bg-primary .section-title h2::after {
    background-color: var(--white);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333333%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-8 { width: 66.666667%; padding: 0 15px; }

@media (max-width: 1024px) {
    .col-4 { width: 50%; }
    .col-3 { width: 50%; }
}

@media (max-width: 768px) {
    .col-6, .col-4, .col-3, .col-8 { width: 100%; margin-bottom: 30px; }
    .col:last-child { margin-bottom: 0; }
}

/* CSS Grid alternative */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-header);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.site-logo {
    display: block;
    margin-right: 40px;
    flex-shrink: 0;
}

.site-logo img {
    width: 154px;
    height: 72px;
    object-fit: contain;
}

/* Main Navigation */
.main-navigation {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin-right: 25px;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    text-transform: capitalize;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--primary);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-switch-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

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

.lang-switch-btn svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.header-btn {
    display: none; /* Hide on desktop if not needed, or use as Quote button */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
        padding: 20px 0;
    }

    .main-navigation.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--light-bg);
        width: 100%;
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-banner {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-color: #0d0e12;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 110px 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 14, 18, 0.95) 0%, rgba(13, 14, 18, 0.85) 45%, rgba(13, 14, 18, 0.35) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.eyebrow-line {
    width: 35px;
    height: 3px;
    background-color: var(--primary);
    display: inline-block;
}

.eyebrow-text {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: #D1D5DB;
    margin-bottom: 35px;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-features-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #E5E7EB;
}

.hero-feature-item svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 15px;
    }
    
    .hero-features-strip {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   Inner Page Header Banner (Unified AFIC Company Design)
   ========================================================================== */
.page-header {
    background-color: #0F1216;
    background-image: url('assets/images/page-header-banner.jpg');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    padding: 60px 20px 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    border-bottom: 3px solid var(--primary);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.72) 0%, rgba(12, 14, 18, 0.85) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1,
.page-header .page-title {
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.page-header .breadcrumb,
.page-header .breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: #CBD5E1 !important;
    margin: 0;
    padding: 0;
    list-style: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb a,
.page-header .breadcrumbs a {
    color: #E2E8F0 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-header .breadcrumb a:hover,
.page-header .breadcrumbs a:hover {
    color: var(--accent-gold) !important;
}

.page-header .breadcrumb span,
.page-header .breadcrumbs span:last-child,
.page-header .breadcrumbs .current {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header {
        padding: 45px 15px 40px;
    }
    .page-header h1,
    .page-header .page-title {
        font-size: 28px !important;
    }
}

/* ==========================================================================
   7. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
}

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

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

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

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

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

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

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn svg {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(5px);
}

/* Image Placeholder */
.img-placeholder {
    background-color: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    width: 100%;
    min-height: 250px;
}

/* ==========================================================================
   8. CARDS & DIVISIONS
   ========================================================================== */
/* Division/Service Cards */
.division-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.division-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.division-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.division-img img, .division-img .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.division-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.division-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.division-desc {
    color: var(--text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.division-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.division-link svg {
    margin-left: 8px;
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

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

.division-link:hover svg {
    transform: translateX(5px);
}

/* Product Categories Overview Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 35px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    text-align: center;
    transition: all var(--transition-normal);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
}

/* Product Catalog Grid (4 columns on desktop, 3 on laptop, 2 on tablet, 1 on mobile) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 860px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Cards */
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.product-card-img-wrap {
    height: 190px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #F3F4F6;
}

.product-card-img-wrap img {
    max-height: 165px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.product-info p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-light);
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Feature List (Values) */
.feature-box {
    display: flex;
    margin-bottom: 30px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(155, 2, 2, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-right: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.feature-content h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-content p {
    color: var(--text);
    margin-bottom: 0;
}

/* Counter Section */
.counter-wrapper {
    background-color: var(--dark);
    padding: 60px 0;
    color: var(--white);
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.counter-number.gold {
    color: var(--accent-gold);
}

.counter-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--border);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary);
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: var(--text-h2);
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background-color: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(155, 2, 2, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23444444%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
}

.file-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border: 1px dashed var(--border);
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.file-upload-wrapper:hover .file-upload-button {
    background-color: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

/* Contact Form Grid */
.form-row {
    display: flex;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   10. FOOTER (Industrial demo8 style)
   ========================================================================== */
.site-footer {
    background-color: var(--black);
    color: #999999;
    padding-top: 80px;
}

.footer-top {
    padding-bottom: 60px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 25px;
    display: block;
}

.footer-logo img {
    max-height: 60px;
}

.footer-about {
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Footer Headings */
.widget-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #999999;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    font-size: 18px;
    color: var(--primary);
    margin-right: 8px;
    transition: transform var(--transition-fast);
}

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

.footer-links a:hover::before {
    transform: translateX(3px);
}

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

.footer-contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-icon {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact-text {
    font-size: 15px;
    line-height: 1.6;
}

.footer-contact-text strong {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #0A0A0A;
    border-top: 1px solid #222222;
    padding: 25px 0;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #777777;
    margin: 0;
}

/* Footer Grid (matches footer.php markup) */
.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.footer-heading {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col-1 .company-desc {
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0 25px;
    color: #999999;
}

.footer-col-1 .footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact-list li .icon {
    color: var(--primary);
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-list li .icon svg {
    display: inline-block;
}

/* Scroll to top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Error state for form validation */
.form-control.error,
input.error,
textarea.error,
select.error {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(155, 2, 2, 0.1);
}

/* ==========================================================================
   11. ANIMATIONS & UTILITIES
   ========================================================================== */
/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mt-4 { margin-top: 40px !important; }
.mt-5 { margin-top: 50px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mb-4 { margin-bottom: 40px !important; }
.mb-5 { margin-bottom: 50px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-5 { padding-top: 50px !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-5 { padding-bottom: 50px !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.w-100 { width: 100% !important; }

/* WP Core Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: var(--white);
    border: 1px solid var(--border);
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--dark);
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   12. PRODUCT DETAILS & AMAZON INTEGRATION
   ========================================================================== */
.product-badge-wrap {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-amazon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #111111;
    color: #FF9900;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,153,0,0.4);
}

.badge-saudi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #006C35;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #131921;
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #FF9900;
    transition: all var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
}

.btn-amazon:hover {
    background-color: #FF9900;
    color: #111111 !important;
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
    border-color: #FF9900;
}

.btn-amazon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Product Detail Page */
.product-detail-section {
    padding: 60px 0 90px;
    background-color: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-detail-gallery {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-subtle);
}

.product-detail-gallery img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-detail-info .product-category-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-detail-info .product-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.product-detail-info .product-arabic-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    direction: rtl;
    margin-bottom: 20px;
}

.product-status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background-color: var(--light-bg);
    border-left: 3px solid #006C35;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.product-detail-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
}

.product-key-points {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.product-key-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-key-points li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.product-detail-cta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
    background: #FAF8F5;
    border: 1px solid #EFE8DE;
    border-radius: var(--radius-sm);
    margin-bottom: 35px;
}

.spec-table-wrap {
    margin-top: 50px;
}

.spec-table-wrap h3 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.spec-table-wrap table td:first-child {
    font-weight: 600;
    width: 30%;
    background-color: var(--light-bg);
    color: var(--dark);
}

/* ==========================================================================
   BRANDS WE STOCK SECTION
   ========================================================================== */
.brands-stock-section {
    padding: 85px 20px;
    background-color: #FAFAFA;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}

.brands-stock-section .container {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.brands-stock-header {
    margin-bottom: 45px;
}

.brands-stock-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 34px;
    color: var(--dark);
    margin-bottom: 12px;
}

.brands-stock-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 20px;
}

.brands-stock-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-light);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

.brands-logo-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.brand-logo-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    aspect-ratio: 520 / 370;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    border-color: #D1D5DB;
}

.brand-logo-card img {
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 370px;
    aspect-ratio: 520 / 370;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.brand-logo-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .brands-logo-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .brands-logo-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   Why Join Us Page - Reason Blocks
   ========================================================================== */
.reason-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-block:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 768px) {
    .reason-block {
        flex-direction: column !important;
        margin-bottom: 35px !important;
    }
    
    .reason-content {
        padding: 30px 20px !important;
    }
    
    .reason-img {
        min-height: 240px !important;
        width: 100% !important;
    }
}

