/*
Theme Name: التواجد للتجارة والاستيراد
Theme URI: https://altwajud.com
Author: Al-Tawajud
Author URI: https://altwajud.com
Description: قالب ووردبريس مخصص لشركة التواجد للتجارة والاستيراد - مواد البناء، أنظمة العزل، ترميم المنشآت والحلول الهندسية
Version: 2.0.14
Text Domain: altwajud
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl, arabic, construction, business, custom-logo, custom-menu, engineering
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   Al-Tawajud Theme - Global Styles & Design System
   Modern Corporate Engineering Design
   ========================================================================== */

/* Fonts loaded via wp_enqueue_style in functions.php */

/* ============================================
   SCROLL REVEAL FALLBACK
   إظهار العناصر إذا لم يُفعَّل الجافاسكربت
   ============================================ */
html:not(.scroll-reveal-active) .home-page [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.home-page [data-aos].is-revealed {
  opacity: 1;
  transform: none !important;
}

/* If JavaScript is disabled, show elements */
.no-js [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* CSS Custom Properties - Al-Tawajud Design Tokens */
:root {
  /* Primary Brand - #25A9E0 */
  --primary-50: #e8f7fc;
  --primary-100: #d1eff9;
  --primary-200: #a3dff3;
  --primary-300: #75cfed;
  --primary-400: #47bfe7;
  --primary-500: #25A9E0;
  --primary-600: #1e87b3;
  --primary-700: #176586;
  --primary-800: #104359;
  --primary-900: #08212c;

  /* Secondary Brand - #B22B8F */
  --secondary-50: #fce9f5;
  --secondary-100: #f9d3ec;
  --secondary-200: #f3a7d9;
  --secondary-300: #ed7bc6;
  --secondary-400: #c94da8;
  --secondary-500: #B22B8F;
  --secondary-600: #8e2272;
  --secondary-700: #6b1a56;
  --secondary-800: #471139;
  --secondary-900: #24091d;

  /* Accent - #B22B8F */
  --accent-gold: #B22B8F;
  --accent-gold-light: #c94da8;
  --accent-gold-dark: #8e2272;
  --accent-500: #B22B8F;
  --accent-600: #8e2272;

  /* Success/Warning/Error States */
  --success-500: #10b981;
  --success-600: #059669;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --info-500: #3b82f6;
  --info-600: #2563eb;

  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Dark text aliases (used in page-specific CSS) */
  --dark-500: var(--neutral-500);
  --dark-600: var(--neutral-600);
  --dark-700: var(--neutral-700);
  --dark-800: var(--neutral-800);

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F5F7;
  --bg-tertiary: #e8eaef;
  --bg-dark: #1a2d4a;
  --bg-darker: #122033;

  /* Semantic Brand Aliases */
  --primary-color: #25A9E0;
  --secondary-color: #B22B8F;
  --color-secondary: #B22B8F;
  --color-heading: #25A9E0;
  --color-main: #25A9E0;
  --color-accent: #B22B8F;
  --color-body: #333333;

  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --text-inverse: #FFFFFF;

  /* Typography */
  --font-primary: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cairo', sans-serif;
  --font-en: 'Poppins', 'Cairo', sans-serif;

  /* Font Sizes */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3125rem;
  --text-2xl: 1.5625rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3.5rem;

  /* Line Heights */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius - soft 8-12px */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-full: 9999px;

  /* Shadows - light corporate */
  --shadow-sm: 0 1px 3px rgba(37, 169, 224, 0.06);
  --shadow-md: 0 4px 16px rgba(37, 169, 224, 0.08);
  --shadow-lg: 0 8px 28px rgba(37, 169, 224, 0.1);
  --shadow-xl: 0 16px 40px rgba(37, 169, 224, 0.12);
  --shadow-2xl: 0 24px 56px rgba(37, 169, 224, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;

  /* Geometric patterns inspired by logo */
  --pattern-grid:
    linear-gradient(rgba(37, 169, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 169, 224, 0.04) 1px, transparent 1px);
  --pattern-diamond:
    linear-gradient(135deg, rgba(37, 169, 224, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(37, 169, 224, 0.02) 25%, transparent 25%),
    linear-gradient(45deg, rgba(37, 169, 224, 0.02) 25%, transparent 25%),
    linear-gradient(315deg, rgba(37, 169, 224, 0.03) 25%, transparent 25%);
}

/* Background Pattern Classes */
.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pattern-grid);
  background-size: 50px 50px;
  pointer-events: none;
}

.bg-pattern--diamond::before {
  background-image: var(--pattern-diamond);
  background-size: 20px 20px;
}

.bg-pattern--subtle::before {
  opacity: 0.5;
}

.bg-pattern--dark::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.site,
#page {
  max-width: 100%;
  overflow-x: clip;
}

iframe,
embed,
video {
  max-width: 100%;
}

.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.title-en,
[lang="en"] {
  font-family: var(--font-en);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-heading);
}

h1, .h1 { font-size: var(--text-4xl); font-weight: 800; margin-bottom: var(--space-4); }
h2, .h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
h3, .h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4, .h4 { font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-2); }
h5, .h5 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
h6, .h6 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.section--alt {
  background-color: var(--bg-primary);
}

.section--dark {
  background: linear-gradient(160deg, var(--primary-700) 0%, var(--primary-900) 100%);
  color: var(--text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--text-inverse);
}

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

.text-primary {
  color: var(--primary-500);
}

/* Page Hero (Global) - Engineering split style */
.page-hero {
  background: var(--bg-primary);
  padding: var(--space-16) 0 var(--space-12);
  text-align: right;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(37, 169, 224, 0.1);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-50) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: var(--radius-full);
}

.page-hero h1,
.page-hero h2 {
  color: var(--color-heading);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--text-primary);
  font-size: var(--text-lg);
  max-width: 640px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumbs {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-start;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.page-hero .breadcrumbs a {
  color: var(--primary-600);
}

.page-hero .breadcrumbs a:hover {
  color: var(--accent-500);
}

/* Gradient hero variant (default pages, 404, etc.) */
.page-hero--gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  text-align: center;
  color: var(--text-inverse);
  border-bottom: none;
}

.page-hero--gradient::before,
.page-hero--gradient::after {
  display: none;
}

.page-hero--gradient h1,
.page-hero--gradient h2 {
  color: var(--text-inverse);
}

.page-hero--gradient p {
  color: rgba(255, 255, 255, 0.92);
  margin-left: auto;
  margin-right: auto;
}

.page-hero--gradient .breadcrumbs {
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero--gradient .breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero--gradient .breadcrumbs a:hover {
  color: var(--text-inverse);
}

/* Default page & entry content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-featured-image {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.page-featured-image img {
  width: 100%;
  height: auto;
}

.entry-content {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-3);
}

.entry-content p {
  margin-bottom: var(--space-4);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-4);
  padding-right: var(--space-6);
}

.entry-content img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
}

/* 404 page */
.error-404 .page-hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  margin-bottom: 0;
  line-height: 1;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
}

.error-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.error-content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.error-search {
  padding: var(--space-8);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 169, 224, 0.08);
}

.error-search form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.error-search input {
  flex: 1;
}

@media (max-width: 480px) {
  .error-actions {
    flex-direction: column;
  }
}

/* Buttons - Modern corporate */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-main);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: var(--secondary-500);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
  background: var(--secondary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn--outline:hover {
  background: var(--color-main);
  color: var(--text-inverse);
  border-color: var(--color-main);
}

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn--outline-white:hover {
  background: #fff;
  color: var(--color-main);
}

.btn--white {
  background: white;
  color: var(--color-main);
  box-shadow: var(--shadow-md);
}

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

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

.btn--accent:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
}

.btn--whatsapp:hover {
  background: #1da851;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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

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

@media (max-width: 640px) {

  .grid--4cols,
  .grid--3cols,
  .grid--2cols {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(37, 169, 224, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

/* Section Header - Left aligned with accent bar */
.section-header {
  text-align: right;
  margin-bottom: var(--space-10);
  max-width: 720px;
  position: relative;
  padding-right: var(--space-5);
}

.section-header::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
  border-radius: var(--radius-full);
}

.section-header__subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-500);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  background: none;
  padding: 0;
  height: auto;
  line-height: 1.4;
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--color-heading);
  background: none;
  -webkit-text-fill-color: unset;
}

.section-header__description {
  font-size: var(--text-lg);
  color: var(--text-primary);
  max-width: 100%;
  margin: 0;
  line-height: 1.8;
}

.section-header__title-link {
  color: var(--color-heading);
  background: none;
  -webkit-text-fill-color: unset;
  transition: color 0.25s ease;
}

.section-header__title-link::after {
  background: var(--primary-500);
  height: 3px;
  bottom: -4px;
}

.section-header__title-link:hover {
  color: var(--primary-500);
}

/* Animations (Replaced by AOS) */
/* Old reveal classes removed */

/* Stagger Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Existing Keyframes (Kept for specific uses if needed, but primary system is transitions) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility wrappers */
.overflow-hidden {
  overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-400);
}

/* Selection */
::selection {
  background-color: var(--primary-500);
  color: white;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(37, 169, 224, 0.15);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all 0.25s ease;
  direction: rtl;
  background: var(--bg-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 169, 224, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

/* WordPress Specific Styles */
.alignleft {
  float: right;
  /* RTL */
  margin-left: var(--space-4);
  margin-bottom: var(--space-4);
}

.alignright {
  float: left;
  /* RTL */
  margin-right: var(--space-4);
  margin-bottom: var(--space-4);
}

.aligncenter {
  display: block;
  margin: var(--space-4) auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-2);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--neutral-200);
}

.post-navigation a {
  color: var(--primary-500);
  font-weight: 600;
}

.post-navigation a:hover {
  color: var(--primary-600);
}

/* Comments */
.comments-area {
  margin-top: var(--space-12);
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.comment-author {
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.comment-content {
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition-base);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary-500);
  color: var(--text-inverse);
}

/* Service cards — full styles in assets/css/services.css */

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  align-items: flex-start;
}

.contact-card__icon {
  font-size: 24px;
  background: var(--primary-50);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
}

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

/* Quote Page Styles */
.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-form-wrapper {
  background: var(--bg-secondary);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .quote-form-wrapper {
    padding: var(--space-6);
  }
}

/* Single Project Styles */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-8);
}

.project-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.project-image img {
  width: 100%;
  height: auto;
}

.project-content {
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-gallery {
  margin-top: var(--space-8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.project-sidebar {
  position: sticky;
  top: 100px;
}

.project-details,
.project-cta {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.project-details h3 {
  margin-bottom: var(--space-4);
  color: var(--primary-600);
}

.project-details ul {
  list-style: none;
  padding: 0;
}

.project-details li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--neutral-200);
}

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

.project-cta h4 {
  margin-bottom: var(--space-4);
}

.project-cta .btn {
  width: 100%;
  margin-bottom: var(--space-2);
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: white;
}

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


/* About Page Styles */
.page-hero--about {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  padding: var(--space-20) 0;
  position: relative;
  text-align: center;
}

.page-hero--about .page-hero__content h1 {
  color: white;
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.page-hero--about .page-hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.about-main__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-main__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-main__lead {
  font-size: var(--text-xl);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.about-main__text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-main__image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.vision-mission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.vision-mission__item {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-base);
}

.vision-mission__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.vision-mission__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
}

.vision-mission__item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--primary-600);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.value-card {
  background: var(--bg-secondary);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-base);
}

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

.value-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
}

.value-card h4 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.value-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

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

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

@media (max-width: 768px) {

  .about-main__grid,
  .vision-mission__grid {
    grid-template-columns: 1fr;
  }

  .about-main__image {
    order: -1;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .page-hero--about .page-hero__content h1 {
    font-size: var(--text-3xl);
  }
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   PROBLEMS PAGE STYLES
   ============================================ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
  padding: 2rem 0;
}

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

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

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.problem-card:hover {
  transform: translateY(-5px);
}

.problem-icon {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-500);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card:hover .problem-icon {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-color: var(--secondary-500);
  transform: scale(1.02);
}

.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}

.problem-card:hover .problem-title {
  color: var(--primary-500);
}

.placeholder-icon {
  font-size: 4rem;
  color: var(--neutral-400);
  font-weight: 700;
}

/* Testimonials Page */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-heading);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--color-heading);
}

.testimonial-entity {
  font-size: 0.9rem;
  color: var(--color-main);
  margin-bottom: 20px;
  font-weight: 500;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-body);
  line-height: 1.6;
}

/* Header Logo Size — synced with header.css brand logo */
.header__logo img {
  max-height: 56px;
  max-width: min(220px, 42vw);
  width: auto;
  object-fit: contain;
  object-position: inline-start center;
}

/* Problem Page Styles */
.problem-hero {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.problem-badge {
  background: var(--secondary-500);
  color: var(--primary-900);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

.problem-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.problem-section {
  padding: 60px 0;
}

.problem-layout {
  max-width: 900px;
  margin: 0 auto;
}

.problem-main {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.problem-featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.problem-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.problem-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Galleries */
.problem-gallery-section,
.solutions-section,
.related-products-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--neutral-100);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 1.5rem;
}

.gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 150px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Solutions */
.solutions-header {
  text-align: center;
  margin-bottom: 2rem;
}

.solutions-header h3 {
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

/* CTA */
.problem-cta {
  background: var(--primary-50);
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  border: 1px solid var(--primary-100);
  flex-wrap: wrap;
  gap: 1rem;
}

.problem-cta__content h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-700);
}

.problem-cta__content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Related Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.product-card {
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.product-card__image {
  height: 200px;
  display: block;
  background: var(--neutral-50);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__content {
  padding: var(--space-4);
  text-align: center;
}

.product-card__content h4 {
  font-size: var(--text-base);
  margin: 0 0 var(--space-2);
}

.product-card__content h4 a {
  color: var(--text-primary);
  text-decoration: none;
}

.btn-link {
  font-size: 0.9rem;
  color: var(--primary-500);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 768px) {
  .problem-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   GLOBAL CTA SECTION - Consistent across all pages
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-content .btn--white {
  background: white;
  color: var(--primary-600);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.cta-content .btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: var(--neutral-50);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-content .btn--white {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
  }
}

/* ============================================
   GENERAL SERVICES GRID LAYOUT
   صفحة الخدمات العامة - 3 خدمات في كل صف
   ============================================ */

.service-categories-grid,
.service-categories-grid--3cols {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  width: 100% !important;
}

/* Tablet - 2 Columns */
@media (max-width: 992px) {

  .service-categories-grid,
  .service-categories-grid--3cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile - 1 Column */
@media (max-width: 600px) {

  .service-categories-grid,
  .service-categories-grid--3cols {
    grid-template-columns: 1fr !important;
  }
}

.category-card {
  background: #fff !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid rgba(37, 169, 224, 0.08) !important;
  transition: all 0.35s ease !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary-200) !important;
}

.category-card__image {
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.category-card__body {
  padding: var(--space-5) !important;
  text-align: right !important;
  background: var(--bg-primary) !important;
  flex-grow: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-top: 3px solid var(--color-accent);
}

.category-card__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-heading) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}