/* Base and Reset */
/* ── Arabic Font Import (must be first) ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #ff6b00;
    --secondary-color: #1e293b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --transition: all 0.3s ease;
    --base-font: 'Inter', sans-serif;
    --title-font: 'Outfit', sans-serif;
    --header-height: 80px;
    --topbar-height: 40px;
}

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

body {
    font-family: var(--base-font);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   FULL RTL (Right-to-Left) — Arabic Layout Support
   ═══════════════════════════════════════════════════ */

html[dir="rtl"] {
    text-align: right;
}

/* Arabic body: use Noto Kufi Arabic for native Arabic rendering */
html[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    letter-spacing: 0; /* Arabic doesn't use letter-spacing */
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Noto Kufi Arabic', 'Outfit', sans-serif;
    letter-spacing: 0;
}

/* ── Topbar RTL ── */
html[dir="rtl"] .topbar-inner  { flex-direction: row-reverse; }
html[dir="rtl"] .topbar-left   { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .topbar-right  { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .topbar span   { margin-right: 0; margin-left: 20px; }
html[dir="rtl"] .topbar i      { margin-right: 0; margin-left: 5px; }

/* ── Navigation RTL ── */
html[dir="rtl"] .nav            { flex-direction: row-reverse; }
html[dir="rtl"] .nav-list       { flex-direction: row-reverse; }
html[dir="rtl"] .nav-actions    { flex-direction: row-reverse; }
html[dir="rtl"] .lang-switcher  { margin-left: 0; margin-right: 20px; }
html[dir="rtl"] .nav-toggle     { margin-left: 0; margin-right: 20px; }

/* Underline indicator: flip from left to right */
html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

/* Mobile nav in RTL: slide from right instead of left */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        transition: right 0.3s ease;
    }
    html[dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }
    html[dir="rtl"] .nav-list { flex-direction: column; }
}

/* ── Hero RTL ── */
html[dir="rtl"] .hero-content   { align-items: flex-end; text-align: right; }
html[dir="rtl"] .hero-btns      { flex-direction: row-reverse; }

@media (max-width: 768px) {
    html[dir="rtl"] .hero-content { align-items: center; text-align: center; }
    html[dir="rtl"] .hero-btns    { flex-direction: column; }
}

/* ── Feature cards RTL ── */
html[dir="rtl"] .feature-card   { text-align: right; }
html[dir="rtl"] .feature-icon   { margin: 0 0 20px auto; } /* align icon right */

/* ── Product cards RTL ── */
html[dir="rtl"] .product-info   { text-align: right; }

/* ── Order/Cart RTL ── */
html[dir="rtl"] .order-grid         { direction: rtl; }
html[dir="rtl"] .cart-item          { flex-direction: row-reverse; }
html[dir="rtl"] .cart-item-price    { margin-left: 0; margin-right: 15px; }
html[dir="rtl"] .cart-footer        { flex-direction: row-reverse; }
html[dir="rtl"] .cart-total         { flex-direction: row-reverse; }
html[dir="rtl"] .order-form-wrapper { text-align: right; }
html[dir="rtl"] .cart-wrapper       { text-align: right; }
html[dir="rtl"] .prices-table th,
html[dir="rtl"] .prices-table td    { text-align: right; }
html[dir="rtl"] .prices-table-container { text-align: right; }
html[dir="rtl"] .search-box         { text-align: right; direction: rtl; }

/* Cart footer RTL on mobile */
@media (max-width: 768px) {
    html[dir="rtl"] .cart-footer { flex-direction: column; }
}

/* ── Calculator RTL ── */
html[dir="rtl"] .calc-tabs         { flex-direction: row-reverse; }
html[dir="rtl"] .calc-form-wrapper { text-align: right; }
html[dir="rtl"] .calc-results-wrapper { text-align: right; }
html[dir="rtl"] .result-item-card  { text-align: right; }
html[dir="rtl"] .form-group label  { text-align: right; display: block; }
html[dir="rtl"] .calc-form input,
html[dir="rtl"] .calc-form select  { text-align: right; direction: rtl; }
html[dir="rtl"] .order-form-wrapper input,
html[dir="rtl"] .order-form-wrapper select { text-align: right; direction: rtl; }

/* ── Prices page RTL ── */
html[dir="rtl"] .prices-header     { text-align: right; }

/* ── Section titles RTL ── */
html[dir="rtl"] .section-title     { text-align: center; } /* keep centered */
html[dir="rtl"] .section-title p   { text-align: center; }

/* ── SEO split articles RTL ── */
html[dir="rtl"] .seo-split         { direction: rtl; }
html[dir="rtl"] .seo-split > *     { direction: ltr; } /* keep inner text LTR except where needed */
html[dir="rtl"] .seo-split-text    { direction: rtl; text-align: right; }
html[dir="rtl"] .seo-split-text h2 { text-align: right; }
html[dir="rtl"] .seo-split-text p  { text-align: right; }

/* ── Footer RTL ── */
html[dir="rtl"] .footer            { text-align: right; }
html[dir="rtl"] .footer-grid       { direction: rtl; }
html[dir="rtl"] .footer-col        { text-align: right; }
html[dir="rtl"] .footer-detail     { flex-direction: row-reverse; }
html[dir="rtl"] .footer-detail i   { margin-top: 3px; }
html[dir="rtl"] .footer-menu a:hover { transform: translateX(5px); } /* arrow points left in RTL */
html[dir="rtl"] .footer-title::after { left: auto; right: 0; }
html[dir="rtl"] .footer-bottom     { direction: ltr; text-align: center; } /* copyright stays LTR */
html[dir="rtl"] .footer-wa-btn     { flex-direction: row-reverse; }

/* ── Promo banner RTL ── */
html[dir="rtl"] .promo-banner      { direction: rtl; }

/* ── FAQ RTL ── */
html[dir="rtl"] .faq-question      { text-align: right; flex-direction: row-reverse; }
html[dir="rtl"] .faq-answer        { text-align: right; }

/* ── Floating WhatsApp — flip to left side in RTL ── */
html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 25px;
}
@media (max-width: 768px) {
    html[dir="rtl"] .floating-whatsapp {
        left: 18px;
        right: auto;
    }
}

/* ── General form inputs in RTL ── */
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

/* ── Icon spacing fix in RTL (flip margin sides) ── */
html[dir="rtl"] .btn i,
html[dir="rtl"] .btn .fa-brands {
    margin-right: 0;
    margin-left: 8px;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

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

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

/* Topbar */
.topbar {
    background: var(--secondary-color);
    color: #cbd5e1;
    font-size: 0.85rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1001;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.topbar span { margin-right: 20px; }
.topbar i { color: var(--primary-color); margin-right: 5px; }
.topbar-right a { color: var(--white); font-weight: 600; transition: color 0.3s; }
.topbar-right a:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    .topbar { display: none; }
}

/* Header */
.header {
    background-color: transparent;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .header { top: 0; }
}

.header.inner-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    top: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--title-font);
    color: var(--white);
    transition: var(--transition);
}

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

.header.scrolled .logo, .header.inner-header .logo {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link, .header.inner-header .nav-link {
    color: var(--text-dark);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.header.scrolled .lang-btn, .header.inner-header .lang-btn {
    color: var(--text-light);
}

.lang-btn.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    margin-left: 20px;
}

.header.scrolled .nav-toggle, .header.inner-header .nav-toggle {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.9)), url('assets/images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Promo Banner */
.promo-banner {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Features / Why Us */
.features-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

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

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products 8-Grid */
.products {
    background-color: var(--bg-light);
}

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

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-img {
    transition: var(--transition);
}

.product-card:hover .product-img {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Ordering System */
.order-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f172a 100%);
    color: var(--white);
}

.order-section .section-title h2 { color: var(--white); }
.order-section .section-title p { color: rgba(255,255,255,0.7); }

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.order-form .form-group {
    margin-bottom: 25px;
}

.order-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.order-form select, .order-form input {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--base-font);
    font-size: 1rem;
}

.order-form select option { background: var(--secondary-color); }

.order-cart {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    color: var(--text-dark);
}

.cart-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-items {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item h4 { font-size: 1rem; margin-bottom: 5px; }
.cart-item p { color: var(--text-light); font-size: 0.9rem; }
.cart-item-price { font-weight: 700; color: var(--primary-color); }

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.whatsapp-btn {
    width: 100%;
    background-color: #25D366;
    color: var(--white);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover { background-color: #128C7E; }
.whatsapp-btn:disabled { background-color: #95a5a6; cursor: not-allowed; }

/* Testimonials Carousel */
.testimonials-carousel-section {
    background-color: var(--bg-light);
    overflow: hidden;
    padding: 80px 0;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    direction: ltr; /* Force layout direction consistency for smooth infinite scrolling track */
}

/* Edge fade shadows for a clean look */
.carousel-container::before, .carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 45s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.testi-card {
    flex: 0 0 380px;
    width: 380px;
    margin: 0 15px;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 107, 0, 0.2);
}

html[dir="rtl"] .testi-card {
    direction: rtl;
}

.testi-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.testi-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.testi-avatar {
    font-size: 2.2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.testi-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testi-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.testi-role {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 480px) {
    .testi-card {
        flex: 0 0 290px;
        width: 290px;
        padding: 20px;
    }
    .carousel-container::before, .carousel-container::after {
        width: 50px;
    }
}

/* Google Maps */
.map-section { padding: 0; line-height: 0; }
.map-container iframe { width: 100%; height: 300px; border: 0; }

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}
.faq-question h3 { font-size: 1.1rem; margin: 0; }
.faq-question i { transition: var(--transition); color: var(--primary-color); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active .faq-answer { padding: 20px; max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}
html[dir="rtl"] .floating-whatsapp { right: auto; left: 30px; }

/* Premium SEO Split Layout */
.seo-articles { background-color: var(--white); border-top: 1px solid var(--border-color); }
.seo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 30px; }
.seo-split.reverse { direction: rtl; }
.seo-split.reverse > * { direction: ltr; } /* Reset inner content direction */
.seo-split-text h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.3; }
.seo-split-text p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 25px; line-height: 1.8; }
.seo-split-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); object-fit: cover; aspect-ratio: 4/3; transition: var(--transition); }
.seo-split-image img:hover { transform: scale(1.02); }
.seo-list { margin-bottom: 30px; }
.seo-list li { margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--secondary-color); }
.seo-list i { color: var(--primary-color); background: rgba(255,107,0,0.1); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.7rem; }
.seo-contact-box { background: var(--bg-light); border-left: 4px solid var(--primary-color); padding: 20px; display: flex; align-items: center; gap: 20px; border-radius: 4px; margin-bottom: 30px; }
.seo-contact-box i { font-size: 2.5rem; color: #25D366; }
.seo-contact-box h4 { margin-bottom: 5px; font-size: 1.1rem; }
.seo-contact-box p { margin-bottom: 0; font-size: 0.9rem; }

/* Prices Page Header */
.prices-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

/* Calculator Styles */
.calc-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
.calc-form-wrapper { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.calc-tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; }
.calc-tab-btn { flex: 1; background: none; border: none; padding: 15px; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; transition: var(--transition); }
.calc-tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.calc-form .form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--secondary-color); }
.calc-form input, .calc-form select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; }
.calc-results-wrapper { background: var(--secondary-color); color: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.calc-results-wrapper .cart-title { color: var(--white); border-bottom-color: rgba(255,255,255,0.1); }
.result-item-card { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.result-item-card h4 { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; text-transform: uppercase; }
.result-item-card .res-val { font-size: 2rem; font-weight: 700; color: var(--primary-color); font-family: var(--title-font); }
.result-item-card .res-unit { font-size: 0.9rem; }

/* Prices Table */
.prices-table-container { background: var(--white); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); padding: 30px; margin-top: -40px; position: relative; z-index: 10; }
.search-box { width: 100%; max-width: 400px; padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 30px; font-size: 1rem; margin-bottom: 30px; outline: none; }
.table-responsive { overflow-x: auto; }
.prices-table { width: 100%; border-collapse: collapse; }
.prices-table th, .prices-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
html[dir="rtl"] .prices-table th, html[dir="rtl"] .prices-table td { text-align: right; }
.prices-table th { background-color: var(--bg-light); font-weight: 600; color: var(--secondary-color); }
.price-val { font-weight: 700; color: var(--primary-color); }

/* Footer */
.footer { background-color: #0f172a; color: rgba(255, 255, 255, 0.6); padding: 70px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { font-size: 1.8rem; font-weight: 800; font-family: var(--title-font); color: var(--white); margin-bottom: 10px; letter-spacing: -0.5px; }
.footer-logo .accent { color: var(--primary-color); font-weight: 600; font-size: 1rem; vertical-align: middle; margin-left: 5px; }
.footer-tagline { font-size: 1rem; color: var(--primary-color); font-weight: 600; margin-bottom: 15px; font-family: var(--title-font); }
.footer-seo-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }
.footer-title { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 25px; position: relative; font-family: var(--title-font); }
.footer-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background-color: var(--primary-color); }
html[dir="rtl"] .footer-title::after { left: auto; right: 0; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 12px; }
.footer-menu a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: all 0.3s; display: inline-block; }
.footer-menu a:hover { color: var(--primary-color); transform: translateX(5px); }
html[dir="rtl"] .footer-menu a:hover { transform: translateX(-5px); }
.footer-detail { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; line-height: 1.5; }
.footer-detail i { color: var(--primary-color); margin-top: 3px; font-size: 0.9rem; }
.footer-detail a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.3s; }
.footer-detail a:hover { color: var(--primary-color); }
.footer-cta { margin-top: 15px; }
.footer-wa-btn { padding: 10px 18px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(250, 100, 0, 0.2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 30px; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-logo { font-size: 1.6rem; }
}



/* Utilities */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

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

/* ===================================================
   COMPREHENSIVE RESPONSIVE DESIGN — ALL BREAKPOINTS
   =================================================== */

/* ── Tablet (≤ 992px) ─────────────────────────────── */
@media (max-width: 992px) {
    /* Layout grids collapse to single column */
    .features-grid       { grid-template-columns: repeat(2, 1fr); }
    .product-grid        { grid-template-columns: repeat(2, 1fr); }
    .order-container     { grid-template-columns: 1fr; gap: 30px; }
    .calc-grid           { grid-template-columns: 1fr; gap: 30px; }
    .order-grid          { grid-template-columns: 1fr; gap: 30px; }
    .seo-split           { grid-template-columns: 1fr; }

    /* Typography scale-down */
    .hero h1             { font-size: 2.8rem; }
    .section-title h2    { font-size: 2.2rem; }

    /* Section padding */
    .section             { padding: 60px 0; }

    /* Footer grid: 2 columns on tablet */
    .footer-grid         { grid-template-columns: 1fr 1fr; gap: 35px; }
}

/* ── Mobile Menu Slide-in (≤ 768px) ──────────────── */
@media (max-width: 768px) {
    /* Hide topbar, adjust header top */
    .topbar              { display: none; }
    .header              { top: 0; }

    /* Slide-in mobile nav */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.active     { left: 0; }
    .nav-list            { flex-direction: column; gap: 25px; text-align: center; }
    .nav-link            { color: var(--secondary-color); font-size: 1.2rem; }
    .nav-toggle          { display: block; }

    /* Grids */
    .features-grid       { grid-template-columns: 1fr; }
    .product-grid        { grid-template-columns: repeat(2, 1fr); }

    /* Hero mobile */
    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
        align-items: center;
    }
    .hero-content        { align-items: center; text-align: center; }
    .hero h1             { font-size: 2rem; line-height: 1.25; margin-bottom: 16px; }
    .hero p              { font-size: 1rem; margin-bottom: 28px; }
    .hero-btns           { flex-direction: column; gap: 14px; width: 100%; }
    .hero-btns .btn      { width: 100%; justify-content: center; padding: 14px 20px; }

    /* RTL hero alignment */
    html[dir="rtl"] .hero-content { align-items: center; }

    /* Promo banner */
    .promo-banner        { font-size: 0.9rem; padding: 12px 15px; }

    /* Section titles */
    .section-title h2    { font-size: 1.8rem; }
    .section-title p     { font-size: 0.95rem; }

    /* Feature cards */
    .feature-card        { padding: 30px 20px; }
    .feature-icon        { width: 60px; height: 60px; font-size: 1.6rem; }

    /* Inner pages: main padding-top when topbar is hidden */
    main[style*="padding-top: 150px"]  { padding-top: 100px !important; }
    .prices-header        { padding: 40px 0 !important; }
    .prices-header h1     { font-size: 1.8rem; }
    .prices-header p      { font-size: 0.95rem; }

    /* Order page overhaul */
    .order-grid           { grid-template-columns: 1fr; gap: 24px; }
    .order-form-wrapper   { padding: 22px 18px; border-radius: 10px; }
    .cart-wrapper         { padding: 22px 18px; border-radius: 10px; }
    .order-form-wrapper .btn { width: 100%; justify-content: center; margin-top: 8px; }
    .cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cart-total-box h2    { font-size: 1.4rem; }
    .whatsapp-btn         { width: 100%; justify-content: center; font-size: 0.95rem; }

    /* Cart table horizontal scroll */
    .table-responsive     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .prices-table         { min-width: 380px; }
    .prices-table th,
    .prices-table td      { padding: 10px 8px; font-size: 0.88rem; }

    /* Calc page */
    .calc-form-wrapper    { padding: 22px 18px; }
    .calc-results-wrapper { padding: 22px 18px; }
    .calc-tabs            { flex-wrap: wrap; gap: 8px; }
    .calc-tab-btn         { flex: 1 1 auto; min-width: 0; font-size: 0.9rem; }
    .result-items.grid    { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

    /* SEO articles split layout */
    .seo-split            { gap: 30px; }
    .seo-img              { max-width: 100%; border-radius: 8px; }

    /* Testimonials */
    .testimonials-carousel-section { padding: 50px 0; }

    /* Map */
    .map-container iframe { height: 220px; }

    /* Footer */
    .footer               { padding: 50px 0 24px; }
    .footer-grid          { grid-template-columns: 1fr; gap: 32px; }
    .footer-logo          { font-size: 1.5rem; }
    .footer-seo-desc      { font-size: 0.85rem; }
    .footer-bottom        { padding-top: 22px; font-size: 0.82rem; }
    .footer-wa-btn        { width: 100%; justify-content: center; }

    /* Floating WhatsApp button */
    .floating-whatsapp    { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* ── Small Phones (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
    .container            { padding: 0 15px; }

    /* Products: single column */
    .product-grid         { grid-template-columns: 1fr; gap: 16px; }

    /* Hero */
    .hero h1              { font-size: 1.7rem; }
    .hero p               { font-size: 0.95rem; }

    /* Section */
    .section              { padding: 45px 0; }
    .section-title        { margin-bottom: 30px; }
    .section-title h2     { font-size: 1.55rem; }

    /* Feature cards: 2 per row on small phones */
    .features-grid        { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .feature-card         { padding: 22px 12px; }
    .feature-card h3      { font-size: 0.95rem; }
    .feature-card p       { font-size: 0.82rem; }
    .feature-icon         { width: 50px; height: 50px; font-size: 1.3rem; margin-bottom: 12px; }

    /* Inner pages */
    main[style*="padding-top: 150px"] { padding-top: 90px !important; }
    .prices-header h1     { font-size: 1.5rem; }

    /* Order page */
    .cart-title           { font-size: 1.2rem; }
    .prices-table         { min-width: 320px; font-size: 0.82rem; }

    /* Calc results */
    .result-items.grid    { grid-template-columns: 1fr !important; gap: 10px !important; }

    /* Testimonials */
    .testi-card           { flex: 0 0 280px; width: 280px; padding: 18px; }
    .carousel-container::before,
    .carousel-container::after { width: 40px; }

    /* Map */
    .map-container iframe { height: 180px; }

    /* Promo banner */
    .promo-banner         { font-size: 0.82rem; padding: 10px 12px; }

    /* Buttons */
    .btn                  { font-size: 0.92rem; padding: 12px 20px; }
}

/* ── Very Small Phones (≤ 360px) ─────────────────── */
@media (max-width: 360px) {
    .hero h1              { font-size: 1.5rem; }
    .section-title h2     { font-size: 1.4rem; }
    .features-grid        { grid-template-columns: 1fr; }
    .footer-logo          { font-size: 1.3rem; }
    .logo                 { font-size: 1.4rem; }
}

/* ── Touch Device Improvements ───────────────────── */
@media (hover: none) {
    /* Remove hover animations on touch to prevent stuck states */
    .feature-card:hover,
    .product-card:hover,
    .testi-card:hover     { transform: none; box-shadow: none; }
    .btn-primary:hover    { transform: none; }
}


/* Dedicated Order Page Styles */
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.order-form-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.order-form-wrapper .form-group {
    margin-bottom: 20px;
}

.order-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.order-form-wrapper select, .order-form-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--base-font);
    font-size: 1rem;
    transition: var(--transition);
}

.order-form-wrapper select:focus, .order-form-wrapper input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--white);
}

.cart-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.cart-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-total-box span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cart-total-box h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* ── Order Page Mobile Overrides (after base styles for correct cascade) ── */
@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .order-form-wrapper {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .cart-wrapper {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .order-form-wrapper .btn {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }
    .cart-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cart-total-box {
        text-align: center;
    }
    .cart-total-box h2 {
        font-size: 1.4rem;
    }
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 14px;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    .prices-table-container {
        padding: 18px 14px;
        margin-top: -20px;
    }
    .seo-split.reverse {
        direction: ltr;
    }
    .seo-split-text h2 {
        font-size: 1.5rem;
    }
    .seo-split-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .order-form-wrapper {
        padding: 16px 14px;
    }
    .cart-wrapper {
        padding: 16px 14px;
    }
    .cart-total-box h2 {
        font-size: 1.25rem;
    }
    .prices-table-container {
        padding: 14px 10px;
    }
    .seo-split-text h2 {
        font-size: 1.3rem;
    }
}
