/* ============================================
   FORMA STUDIO KW — Global Styles
   Inspired by Babnimnim Design Studio aesthetic
   Colors: Premium minimalist with dark blue-grey accents
   Style: Clean, Elegant, High-end Architecture/Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Serif+Display:ital@0;1&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

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

:root {
  --orange: #e65d25;
  --orange-dark: #c94d1d;
  --gold: #f2ad35;
  --dark: #1a1a1a;
  --dark-light: #2a2a2a;
  --dark-blue-grey: #3d4f5f;
  --cream: #fff0e0;
  --cream-dark: #f5e6d0;
  --gray: #d0d0d0;
  --gray-light: #e8e8e8;
  --white: #ffffff;
  --text-on-light: #1a1a1a;
  --text-on-light-muted: #666666;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.75);
  --text-on-blue-grey: #ffffff;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'DM Serif Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-on-light);
  line-height: 1.7;
  overflow-x: hidden;
}

[dir="rtl"] {
  font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
}

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

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-on-light);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

h2.section-title {
  color: var(--text-on-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1rem;
  font-weight: 600;
}

h2.section-title::before {
  content: "• ";
  color: var(--orange);
  margin-right: 8px;
}

.bg-dark h2.section-title {
  color: var(--text-on-light);
}

.bg-dark h2.section-title::before {
  content: "• ";
  color: var(--orange);
}

.bg-blue-grey h2.section-title {
  color: var(--text-on-dark);
}

.bg-blue-grey h2.section-title::before {
  content: "• ";
  color: var(--orange);
}

.bg-orange h2.section-title {
  color: var(--text-on-light);
}

.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--white); }
.text-muted { color: var(--text-on-light-muted); }

/* --- Background Colors --- */
.bg-cream {
  background-color: var(--cream);
  color: var(--text-on-light);
}

.bg-dark {
  background-color: var(--cream);
  color: var(--text-on-light);
}

.bg-blue-grey {
  background-color: var(--dark-blue-grey);
  color: var(--text-on-dark);
}

.bg-orange {
  background-color: var(--orange);
  color: var(--text-on-light);
}

.bg-white {
  background-color: var(--white);
  color: var(--text-on-light);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--cream);
  color: var(--text-on-light);
  padding: 20px 0;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

body.has-hero-bg .navbar {
  background-color: transparent;
  color: #ffffff;
}

body.has-hero-bg .navbar.scrolled {
  background-color: var(--cream);
  color: var(--text-on-light);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.has-hero-bg .navbar .nav-links a {
  color: #ffffff;
  transition: var(--transition);
}

body.has-hero-bg .navbar.scrolled .nav-links a {
  color: var(--text-on-light);
}

body.has-hero-bg .navbar .logo-img {
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

body.has-hero-bg .navbar.scrolled .logo-img {
  filter: none;
}

body:not(.has-hero-bg) .navbar {
  background-color: var(--cream);
  color: var(--text-on-light);
}

.navbar.scrolled {
  border-bottom-color: var(--gray-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-on-light);
  position: relative;
  padding-left: 12px;
}

[dir="rtl"] .nav-links a {
  padding-left: 0;
  padding-right: 12px;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--orange);
  opacity: 0;
  transition: opacity 0.3s;
}

[dir="rtl"] .nav-links a::before {
  left: auto;
  right: 0;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-cta {
  background-color: var(--text-on-light);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-cta:hover {
  background-color: var(--dark-light);
}

.lang-toggle {
  margin-left: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange) !important;
  font-weight: 500;
}

/* Arabic text in English page lang toggle */
.nav-links a.lang-toggle[href*="-ar"] {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-on-light);
  transition: var(--transition);
}

body.has-hero-bg .menu-toggle span {
  background-color: #ffffff;
}

body.has-hero-bg .navbar.scrolled .menu-toggle span {
  background-color: var(--text-on-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  width: 100%;
  min-height: 100vh;
  background-color: var(--dark);
  color: #ffffff;
  padding-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  background-image: url('assets/images/projects/zahra/living-room-wide.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: #ffffff !important;
}

.hero-sub {
  font-size: 1rem;
  margin-bottom: 48px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-on-light-muted);
  z-index: 3;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--orange-dark);
  transform: translateY(-2px);
}

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

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

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

.btn-on-dark:hover {
  background-color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--text-on-dark);
}

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

/* ============================================
   SECTIONS & SPACING
   ============================================ */
section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-on-light-muted);
  max-width: 700px;
  margin: 0 auto;
}

.bg-dark .subtitle {
  color: var(--text-on-dark-muted);
}

.bg-blue-grey .subtitle {
  color: var(--text-on-dark-muted);
}

/* ============================================
   SPLIT SECTIONS
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-text {
  padding-right: 40px;
}

.split-image {
  position: relative;
  overflow: hidden;
}

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

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  padding: 40px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  min-height: 300px;
}

.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

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

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--orange);
  color: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 10;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

.gallery-item-label {
  padding: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-on-light);
}

.bg-dark .gallery-item-label {
  color: var(--text-on-light);
}

/* ============================================
   PROJECT CARDS (Projects Page)
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-card-info {
  padding: 20px;
}

.project-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 6px;
}

.project-card-cat {
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 4px;
  font-weight: 500;
}

.project-card-location {
  font-size: 0.8rem;
  color: #999;
}

.project-card-detail {
  font-size: 0.85rem;
  color: var(--text-on-light);
  margin-top: 4px;
}

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

  .project-card-img {
    height: 200px;
  }

  .project-card-info {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .project-card-img {
    height: 180px;
  }
}

/* Home projects on dark/orange bg */
/* bg-dark inherits same card style */

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--orange);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.step-desc {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-days {
  font-size: 0.8rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 60px;
  text-align: center;
}

.stat-card {
  border-top: 2px solid var(--orange);
  padding-top: 24px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--text-on-light);
}

.stat-card p {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-section {
  background-color: var(--white);
  padding: 120px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-on-light);
  line-height: 1.6;
}

.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}

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

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   NEW BABNIMNIM-STYLE CLASSES
   ============================================ */

/* Section Label (uppercase dot label like "• OUR WORK") */
.section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-on-light);
  margin-bottom: 48px;
}

.section-label::before {
  content: '•';
  margin-right: 10px;
  color: var(--orange);
}

[dir="rtl"] .section-label::before {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .section-label {
  letter-spacing: 1px;
  text-transform: none;
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] h2.section-title {
  letter-spacing: 1px;
  text-transform: none;
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] h2.section-title::before {
  margin-right: 0;
  margin-left: 8px;
}

/* About Statement */
.about-statement {
  max-width: 1000px;
}

.large-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.5;
  color: var(--text-on-light);
  font-weight: 400;
}

/* About Content Sections */
.about-content {
  max-width: 900px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-on-light-muted);
}

/* Services List (numbered rows) */
.services-list {
  margin-top: 48px;
}

.service-row {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
  align-items: flex-start;
}

.service-row:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.service-row-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--orange);
  flex-shrink: 0;
  width: 40px;
}

.service-row-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-on-light);
  font-weight: 400;
}

.service-row-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-on-light-muted);
  max-width: 600px;
}

/* Hero Project Label */
.hero-project-label {
  position: absolute;
  bottom: 40px;
  right: 40px;
  text-align: right;
  color: #fff;
  z-index: 2;
}

[dir="rtl"] .hero-project-label {
  right: auto;
  left: 40px;
  text-align: left;
}

.hero-project-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.hero-project-cat {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Project Name/Cat in Gallery */
.project-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.project-cat {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}

.bg-dark .project-cat {
  color: rgba(255,255,255,0.5);
}

.bg-dark .project-name {
  color: #fff;
}

/* Testimonial Center */
.testimonial-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.large-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.6;
  font-style: italic;
  color: var(--text-on-light);
  margin-bottom: 32px;
  font-weight: 400;
}

.testimonial-center .testimonial-author {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-on-light-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CTA Heading */
.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--text-on-light);
}

/* Step Content (process steps) */
.step-content {
  flex: 1;
}

/* ============================================
   TWO CARDS / WHO WE ARE
   ============================================ */
.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.who-card {
  background-color: var(--cream);
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.who-card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

.who-card-body {
  padding: 40px;
}

.who-card-body h3 {
  margin-bottom: 16px;
}

.who-card-body p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================
   FEATURES LIST
   ============================================ */
.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h3 {
  font-size: 1.1rem;
  min-width: 120px;
}

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

/* ============================================
   VALUES GRID
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
}

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

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-color: var(--cream);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.value-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

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

.team-avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 4px;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.team-card p {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
}

/* ============================================
   PROJECTS FILTER
   ============================================ */
.projects-filter {
  text-align: center;
  margin-bottom: 80px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-on-light-muted);
  cursor: pointer;
  padding: 8px 16px;
  transition: var(--transition);
  position: relative;
}

.filter-btn.active {
  color: var(--orange);
  background-color: transparent;
  border: 1px solid var(--orange);
  padding: 7px 15px;
}

.filter-btn:hover {
  color: var(--orange);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-detail {
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 32px;
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background-color: var(--cream);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-detail h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-detail p {
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-light);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-on-light-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto 60px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HEADER (for subpages)
   ============================================ */
.page-header {
  background-color: var(--cream);
  padding: 140px 0;
  text-align: center;
  margin-top: 60px;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-on-light-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--cream);
  color: var(--text-on-light);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer a {
  color: var(--text-on-light-muted);
}

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

.footer h4 {
  color: var(--text-on-light);
}

.footer ul {
  list-style: none;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer li a {
  font-size: 0.9rem;
  color: var(--text-on-light-muted);
  transition: var(--transition);
}

.footer li a:hover {
  color: var(--text-on-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[dir="rtl"] .footer-brand {
  align-items: flex-end;
}

.footer-brand .logo-img {
  height: 20px;
  width: auto;
}

.footer-brand .footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

.footer-fs-icon {
  width: 70px;
  height: auto;
}

.footer-brand p {
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom p {
  color: var(--text-on-light-muted);
}

.footer ul li {
  color: var(--text-on-light-muted);
}

.footer-social h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-social a {
  font-size: 0.9rem;
  color: var(--text-on-light-muted);
  margin-bottom: 12px;
  display: block;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-on-light-muted);
}

.footer-bottom p {
  margin: 0;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #22c55e;
}

.wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: var(--text-on-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.02em;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #ffffff;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  right: 72px;
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 99;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  background-color: var(--orange);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(230, 93, 37, 0.2);
  padding: 0;
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chatbot-header {
  background-color: var(--orange);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.chatbot-status {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  max-height: 340px;
}

.chat-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
  animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background-color: #f0f0f0;
  color: var(--text-on-light);
  border-bottom-left-radius: 4px;
  margin-right: auto;
  white-space: pre-line;
}

.chat-msg.user {
  background-color: var(--orange);
  color: var(--white);
  border-bottom-right-radius: 4px;
  margin-left: auto;
  text-align: right;
}

/* Typing indicator */
.chat-msg.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  width: fit-content;
}

.chat-msg.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #999;
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.chat-msg.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-msg.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Quick suggestion chips */
.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chatbot-chip {
  padding: 6px 14px;
  background-color: transparent;
  border: 1px solid var(--orange);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--orange);
  transition: var(--transition);
  white-space: nowrap;
}

.chatbot-chip:hover {
  background-color: var(--orange);
  color: var(--white);
}

/* Input area */
.chatbot-input-area {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  gap: 8px;
  background: var(--white);
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.chatbot-input-area input:focus {
  border-color: var(--orange);
}

#chatSendBtn {
  width: 38px;
  height: 38px;
  background-color: var(--orange);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: var(--transition);
  flex-shrink: 0;
}

#chatSendBtn:hover {
  background-color: #d4511f;
  transform: scale(1.05);
}

/* RTL chat adjustments */
[dir="rtl"] .chat-msg.bot {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .chat-msg.user {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 4px;
  margin-left: 0;
  margin-right: auto;
  text-align: right;
}

[dir="rtl"] .chatbot-input-area {
  direction: rtl;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.8s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInLeftAnim 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRightAnim 0.8s ease-out forwards;
}

@keyframes fadeInAnim {
  to {
    opacity: 1;
  }
}

@keyframes fadeInLeftAnim {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRightAnim {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.center {
  text-align: center;
}

.img-placeholder {
  background-color: var(--cream);
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
}

.visible {
  display: block;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.tagline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-on-light-muted);
  margin-bottom: 32px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .split-text {
    padding-right: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .two-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .nav-links {
    gap: 24px;
  }

  section {
    padding: 80px 0;
  }

  .page-header {
    padding: 100px 0;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex !important;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--text-on-light) !important;
  }

  .nav-links.open a::before {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    height: 20px;
    border-radius: 1px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero-sub {
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .cta-buttons .btn {
    width: 100%;
  }

  .page-title {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .footer-grid,
  .footer-bottom {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }

  .testimonial-text {
    font-size: 1.1rem;
  }

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

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

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

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

  .nav-links {
    gap: 12px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }

  .chatbot-widget {
    bottom: 76px;
    right: 16px;
  }

  .chatbot-toggle {
    width: 48px;
    height: 48px;
  }

  .chatbot-toggle svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .chatbot-window {
    position: fixed;
    width: calc(100% - 32px);
    right: 16px;
    left: 16px;
    bottom: 130px;
    max-height: 60vh;
    border-radius: 16px;
  }

  .chatbot-messages {
    max-height: calc(60vh - 140px);
  }

  .chatbot-chip {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

/* Global RTL fix: remove letter-spacing and uppercase that break Arabic script */
[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] li, [dir="rtl"] span,
[dir="rtl"] button, [dir="rtl"] label, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select,
[dir="rtl"] blockquote, [dir="rtl"] em, [dir="rtl"] strong, [dir="rtl"] div {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: 'Noto Sans Arabic', sans-serif !important;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-weight: 700 !important;
}

[dir="rtl"] .lang-toggle {
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-family: 'DM Sans', sans-serif !important;
}

[dir="rtl"] .nav-inner {
  direction: rtl;
}

[dir="rtl"] .nav-links {
  direction: rtl;
}

[dir="rtl"] .nav-links a {
  padding-left: 0;
  padding-right: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] .nav-links a.lang-toggle {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

[dir="rtl"] .split-text {
  padding-right: 0;
  padding-left: 40px;
}

[dir="rtl"] .split-section {
  direction: rtl;
}

[dir="rtl"] .process-timeline {
  direction: rtl;
}

[dir="rtl"] .feature-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .footer h4 {
  letter-spacing: 0;
  text-transform: none;
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] .footer li,
[dir="rtl"] .footer li a,
[dir="rtl"] .footer-brand p {
  font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

[dir="rtl"] .filter-buttons {
  direction: rtl;
}

[dir="rtl"] .footer-bottom {
  direction: rtl;
}

[dir="rtl"] .whatsapp-float {
  left: 32px;
  right: auto;
}

[dir="rtl"] .chatbot-widget {
  left: 32px;
  right: auto;
}

[dir="rtl"] .chatbot-window {
  left: 0;
  right: auto;
}

@media (max-width: 768px) {
  [dir="rtl"] .whatsapp-float {
    left: 16px;
    right: auto;
  }

  [dir="rtl"] .chatbot-widget {
    left: 16px;
    right: auto;
  }

  [dir="rtl"] .chatbot-window {
    left: 16px;
    right: 16px;
  }
}

[dir="rtl"] .wa-tooltip {
  left: 68px;
  right: auto;
}

[dir="rtl"] .wa-tooltip::after {
  right: auto;
  left: -6px;
  border-left: none;
  border-right: 6px solid #ffffff;
}

[dir="rtl"] .whatsapp-float:hover .wa-tooltip {
  right: auto;
  left: 72px;
}

[dir="rtl"] .nav-links a.active::before {
  left: auto;
  right: 0;
}
