/**
 * Shrooq Al-Anwar - Main Stylesheet
 * Compiled Tailwind CSS with custom styles
 * 
 * @package Shrooq
 * @version 1.0.0
 */

/* ========================================
   CSS Variables — Aliases for Design System
   These reference --shrooq-* from shrooq-design-system.css
   ======================================== */
:root {
    --color-primary: var(--shrooq-primary);
    --color-primary-light: var(--shrooq-primary-light);
    --color-primary-dark: var(--shrooq-primary-dark);
    --color-secondary: var(--shrooq-secondary);
    --color-secondary-light: var(--shrooq-secondary-light);
    --font-family: 'Cairo', sans-serif;
    
    /* Semantic aliases → design system */
    --bg-body: var(--shrooq-bg);
    --bg-section: var(--shrooq-bg-alt);
    --bg-card: var(--shrooq-bg-card);
    --text-body: var(--shrooq-text);
    --text-heading: var(--shrooq-text-heading);
    --text-muted: var(--shrooq-text-muted);
    --border-color: var(--shrooq-border);
}

/* Dark Mode — inherits automatically from design system's [data-theme="dark"] block.
   --color-secondary stays dark (brand navy) — do NOT flip it. */
[data-theme="dark"] {
    --border-color: #334155;
}

/* Theme Transition */
body.theme-transitioning,
body.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.rtl {
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-heading);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.875rem; }
}

p {
    margin-bottom: 1rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Global Small Screen Overrides ── */
@media (max-width: 360px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    section { padding-left: 0.75rem; padding-right: 0.75rem; }
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
}

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Spacing */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-0 { padding-bottom: 0; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }

@media (min-width: 1024px) {
    .lg\:pt-40 { padding-top: 10rem; }
    .lg\:pb-28 { padding-bottom: 7rem; }
    .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
}

@media (min-width: 768px) {
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:p-8 { padding: 2rem; }
}

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.max-w-none { max-width: none; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-screen { height: 100vh; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-24 { top: 6rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
}

/* Colors - Background */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.bg-transparent { background-color: transparent; }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-dark { background-color: var(--color-primary-dark); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-secondary-light { background-color: var(--color-secondary-light); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-primary\/5 { background-color: rgba(249, 115, 22, 0.05); }
.bg-primary\/10 { background-color: rgba(249, 115, 22, 0.1); }
.bg-primary\/20 { background-color: rgba(249, 115, 22, 0.2); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-secondary\/80 { background-color: rgba(12, 25, 41, 0.8); }
.bg-secondary\/90 { background-color: rgba(12, 25, 41, 0.9); }

/* Gradient backgrounds */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-primary { --tw-gradient-from: var(--color-primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 115, 22, 0)); }
.to-primary-dark { --tw-gradient-to: var(--color-primary-dark); }
.from-secondary { --tw-gradient-from: var(--color-secondary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(12, 25, 41, 0)); }
.to-secondary-light { --tw-gradient-to: var(--color-secondary-light); }

/* Colors - Text */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #64748b; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-amber-600 { color: #ea580c; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

@media (min-width: 768px) {
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.line-clamp-1 { 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.line-clamp-3 { 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-transparent { border-color: transparent; }
.border-white { border-color: #fff; }
.border-primary { border-color: var(--color-primary); }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-none { box-shadow: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.-translate-y-1 { --tw-translate-y: -0.25rem; }
.-translate-y-2 { --tw-translate-y: -0.5rem; }
.translate-y-0 { --tw-translate-y: 0; }
.translate-x-0 { --tw-translate-x: 0; }
.rotate-180 { --tw-rotate: 180deg; }

.rtl\:rotate-180:where([dir="rtl"], [dir="rtl"] *) {
    --tw-rotate: 180deg;
    transform: rotate(180deg);
}

/* Hover states */
.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-primary-dark:hover { background-color: var(--color-primary-dark); }
.hover\:bg-secondary:hover { background-color: var(--color-secondary); }
.hover\:bg-secondary-light:hover { background-color: var(--color-secondary-light); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-white:hover { color: #fff; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { --tw-translate-y: -0.5rem; transform: translateY(-0.5rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:border-primary:hover { border-color: var(--color-primary); }
.hover\:gap-3:hover { gap: 0.75rem; }

/* Group hover */
.group:hover .group-hover\:text-primary { color: var(--color-primary); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:bg-primary { background-color: var(--color-primary); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Focus states */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-primary); }
.focus\:border-primary:focus { border-color: var(--color-primary); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }

/* Background position/size */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

/* Aspect ratio */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* Prose (for content) */
.prose { color: #374151; max-width: 65ch; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.625em; margin-top: 1.25em; margin-bottom: 1.25em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose-lg { font-size: 1.125rem; line-height: 1.7777778; }

/* SVG */
.fill-current { fill: currentColor; }
.stroke-current { stroke: currentColor; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Select */
.select-none { user-select: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ========================================
   Header Component
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-bar {
    background-color: var(--color-secondary);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.top-bar-link:hover {
    color: var(--color-primary);
}

.top-bar-link .icon {
    width: 1rem;
    height: 1rem;
}

.main-nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

@media (min-width: 768px) {
    .logo-img {
        height: 60px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-menu {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
}

/* .nav-link styles removed — owned by header.css */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-btn {
    display: none;
}

@media (min-width: 768px) {
    .cta-btn {
        display: inline-flex;
    }
}

.main-header {
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.3s ease;
    border-radius: 0.5rem;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--color-primary);
    background-color: rgba(249, 115, 22, 0.05);
}

/* Mobile Menu styles removed — owned by header.css */

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: #fff;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-secondary);
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 25, 41, 0.95) 0%, rgba(30, 58, 95, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--color-secondary);
}

.btn-white:hover {
    background-color: #f3f4f6;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: #64748b;
    margin-bottom: 1rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Partners Section */
.partner-logo {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--color-secondary);
    color: #fff;
    padding-top: 4rem;
}

.footer-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

body.rtl .back-to-top {
    right: auto;
    left: 2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   Page Hero
   ======================================== */
.page-hero {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* @keyframes pulse — removed, use shrooq-pulse from design system */
/* @keyframes spin — removed, use shrooq-spin from design system */

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.5s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease forwards; }
.animate-pulse { animation: shrooq-pulse 2s infinite; }
.animate-spin { animation: shrooq-spin 1s linear infinite; }

/* ========================================
   Utilities
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[x-cloak] { display: none !important; }

/* ========================================
   Comprehensive Mobile & Responsive Fixes
   ======================================== */

/* ── Global: Prevent text overflow on all screens ── */
h1, h2, h3, h4, h5, h6,
.card-title, .pc-title, .tl-title,
.sector-card-title, .fp-title,
.trust-badge-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Safe 100vh alternative ── */
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.h-screen { height: 100vh; height: 100dvh; }

/* ── Tablet (max-width: 768px) ── */
@media (max-width: 768px) {
    /* Sections: reduce vertical padding */
    .section { padding: 3rem 0; }
    .page-hero { padding: 6rem 0 2.5rem; }
    
    /* Stat numbers */
    .stat-number { font-size: 2.25rem; }
    .stat-item { padding: 1.25rem; }
    
    /* Buttons */
    .btn { padding: 0.75rem 1.5rem; }
    .btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
    
    /* Partner logos */
    .partner-logo { padding: 1.25rem; height: 100px; }
    
    /* Back to top: avoid overlap with WhatsApp float */
    .back-to-top { bottom: 5.5rem; right: 1rem; width: 40px; height: 40px; }
    body.rtl .back-to-top { right: auto; left: 1rem; }
    
    /* Cards */
    .card-body { padding: 1.25rem; }
    
    /* Section titles */
    .section-title { font-size: 2rem; }
}

/* ── Mobile (max-width: 480px) ── */
@media (max-width: 480px) {
    /* Sections */
    .section { padding: 2rem 0; }
    .page-hero { padding: 5rem 0 2rem; }
    
    /* Stat numbers */
    .stat-number { font-size: 2rem; }
    .stat-item { padding: 1rem 0.75rem; }

    /* Buttons */
    .btn { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
    .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
    
    /* Partner logos */
    .partner-logo { padding: 0.875rem; height: 80px; }
    
    /* Back to top */
    .back-to-top { bottom: 5rem; right: 0.75rem; width: 38px; height: 38px; font-size: 0.875rem; }
    body.rtl .back-to-top { right: auto; left: 0.75rem; }
    
    /* Cards */
    .card-body { padding: 1rem; }
    .card-title { font-size: 1.1rem; }
    
    /* Section titles */
    .section-title { font-size: 1.625rem; }
    
    /* Footer */
    .site-footer { padding-top: 2.5rem; }
    .footer-widget-title { font-size: 1.1rem; margin-bottom: 1rem; }
    .footer-bottom { padding: 1rem 0; margin-top: 2rem; }
    .social-links a { width: 36px; height: 36px; }
}

/* ── Ultra-small screens (max-width: 360px) ── */
@media (max-width: 360px) {
    .section { padding: 1.5rem 0; }
    .stat-number { font-size: 1.75rem; }
    .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }
    .btn-lg { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
    .partner-logo { padding: 0.75rem; height: 70px; }
    .back-to-top { bottom: 4.5rem; right: 0.5rem; width: 36px; height: 36px; }
    body.rtl .back-to-top { right: auto; left: 0.5rem; }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .back-to-top,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ========================================
   WordPress Specific
   ======================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Disable states */
.disabled,
[disabled] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* .screen-reader-text defined in style.css (with :focus state) — single source */

/* ========================================
   Hero Section (Front Page)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-secondary);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(12, 25, 41, 0.8) 0%,
        rgba(12, 25, 41, 0.6) 50%,
        rgba(12, 25, 41, 0.9) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

/* Backdrop blur for supported browsers */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* @keyframes float — removed, use shrooq-float from design system */

.animate-float {
    animation: shrooq-float 6s ease-in-out infinite;
}

/* Filter blur */
.filter {
    filter: blur(0);
}

.blur-3xl {
    filter: blur(64px);
}

/* Primary color variants */
.text-primary-400 { color: #fb923c; }
.text-primary-500 { color: var(--color-primary); }
.text-primary-600 { color: #ea580c; }

.bg-primary-50 { background-color: rgba(249, 115, 22, 0.05); }
.bg-primary-100 { background-color: rgba(249, 115, 22, 0.1); }
.bg-primary-500 { background-color: var(--color-primary); }
.bg-primary-600 { background-color: #ea580c; }

/* Secondary color variants */
.text-secondary-900 { color: var(--color-secondary); }
.bg-secondary-900 { background-color: var(--color-secondary); }
.bg-secondary-800 { background-color: #0f2438; }

/* White with opacity */
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }

/* Shadow primary */
.shadow-primary-500\/30 { box-shadow: 0 10px 15px rgba(249, 115, 22, 0.3); }
.shadow-primary-500\/50 { box-shadow: 0 10px 15px rgba(249, 115, 22, 0.5); }
.hover\:shadow-primary-500\/50:hover { box-shadow: 0 10px 15px rgba(249, 115, 22, 0.5); }

/* Hover primary states */
.hover\:bg-primary-600:hover { background-color: #ea580c; }

/* RTL specific utilities */
body.rtl .group-hover\:translate-x-1 { --tw-translate-x: -0.25rem; }
body.rtl .rtl\:group-hover\:-translate-x-1:hover { transform: translateX(-0.25rem); }

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Slow zoom animation for hero background */
@keyframes slow-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-out forwards;
}

/* Slow pulse animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Extra large breakpoint */
@media (min-width: 1280px) {
    .xl\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* SM breakpoint */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Section backgrounds */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

/* Loading spinner */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Icon wrapper */
.icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* Main content wrapper */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ========================================
   Dark Mode Overrides
   ======================================== */

/* Sections */
[data-theme="dark"] .section,
[data-theme="dark"] section {
    background-color: var(--bg-body);
}

[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100 {
    background-color: var(--bg-section);
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-card);
}

/* Cards */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .partner-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

/* Text Colors */
[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-700 {
    color: var(--text-body);
}

[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-900 {
    color: var(--text-heading);
}

[data-theme="dark"] .text-gray-400,
[data-theme="dark"] .text-gray-500 {
    color: var(--text-muted);
}

/* Borders */
[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
    border-color: var(--border-color);
}

/* Inputs & Forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-body);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--color-primary);
}

/* Shadows in Dark Mode */
[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-md,
[data-theme="dark"] .shadow-lg,
[data-theme="dark"] .shadow-xl {
    --tw-shadow-color: rgba(0, 0, 0, 0.3);
}

/* Hover States */
[data-theme="dark"] .hover\:bg-gray-50:hover,
[data-theme="dark"] .hover\:bg-gray-100:hover {
    background-color: var(--bg-section);
}

/* Stats Section */
[data-theme="dark"] .stats-section {
    background-color: var(--bg-section);
}

/* Hero Section */
[data-theme="dark"] .hero-section .hero-bg {
    opacity: 0.3;
}

/* Footer remains dark in both modes */
[data-theme="dark"] .site-footer {
    background-color: #020617;
}

/* Specific Component Adjustments */
[data-theme="dark"] .swiper-pagination-bullet {
    background-color: var(--text-muted);
}

[data-theme="dark"] .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

/* Prose (WordPress content) */
[data-theme="dark"] .prose {
    color: var(--text-body);
}
[data-theme="dark"] .prose h1,
[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3,
[data-theme="dark"] .prose h4,
[data-theme="dark"] .prose h5,
[data-theme="dark"] .prose h6 {
    color: var(--text-heading);
}
[data-theme="dark"] .prose strong {
    color: var(--text-heading);
}
[data-theme="dark"] .prose blockquote {
    border-color: var(--color-primary);
    color: var(--text-muted);
}

/* Component text overrides */
[data-theme="dark"] .text-black {
    color: var(--text-heading);
}
[data-theme="dark"] .mobile-contact-link {
    color: var(--text-muted);
}
[data-theme="dark"] .card-text {
    color: var(--text-muted);
}
[data-theme="dark"] .wp-caption-text {
    color: var(--text-muted);
}

/* Logo adjustment for dark mode if needed */
[data-theme="dark"] .logo img {
    filter: brightness(1.1);
}