/* ==========================================================================
   UR SERVISE - DIGITAL SERVICES STORE & PRINTING BUREAU
   Modern, Alive, Responsive Landing Page Template
   Designed for Cloudflare Pages Deployment
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens (Light & Dark Theme)
   -------------------------------------------------------------------------- */
:root {
  /* ==========================================================================
     Brown and Black Color Palette:
     #444444 - Dark Charcoal / Soft Black
     #786b5e - Warm Mocha / Medium Brown
     #928170 - Muted Sand / Light Taupe Brown
     #645b52 - Deep Espresso / Rich Dark Brown
     #ffffff - Pure Crisp White
     ========================================================================== */
  --palette-black: #444444;
  --palette-brown-dark: #645b52;
  --palette-brown-mid: #786b5e;
  --palette-brown-light: #928170;
  --palette-white: #ffffff;

  /* Color Palette - Light Theme */
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2ede8;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: #dfd8d0;
  --border-focus: #645b52;

  --text-primary: #444444;
  --text-secondary: #645b52;
  --text-muted: #786b5e;
  --text-inverted: #ffffff;

  --accent-primary: #444444;
  --accent-primary-hover: #645b52;
  --accent-glow: rgba(68, 68, 68, 0.12);

  --brand-blue: #786b5e;
  --brand-blue-light: rgba(146, 129, 112, 0.16);
  --brand-cyan: #928170;

  /* Status Badge & Accent (#645b52 / #786b5e) */
  --brand-success: #645b52;
  --brand-success-bg: rgba(120, 107, 94, 0.14);

  --brand-warning: #928170;
  --brand-danger: #645b52;

  /* Typography */
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows (Warm Charcoal Tones) */
  --shadow-sm: 0 1px 3px 0 rgba(68, 68, 68, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(68, 68, 68, 0.07), 0 2px 4px -2px rgba(68, 68, 68, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(68, 68, 68, 0.09), 0 4px 6px -4px rgba(68, 68, 68, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(68, 68, 68, 0.12), 0 8px 10px -6px rgba(68, 68, 68, 0.04);
  --shadow-glow: 0 0 25px rgba(120, 107, 94, 0.22);

  /* Spacing & Sizing */
  --header-height: 76px;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   NIGHT MODE / DARK THEME PALETTE
   Deep Charcoal Espresso & Warm Sand Accents
   ========================================================================== */
[data-theme="dark"] {
  --bg-primary: #211e1c;
  --bg-secondary: #181615;
  --bg-tertiary: #2e2a27;

  --bg-card: rgba(68, 68, 68, 0.35);
  --bg-card-hover: rgba(100, 91, 82, 0.45);
  --border-color: rgba(146, 129, 112, 0.22);
  --border-focus: #928170;

  --text-primary: #ffffff;
  --text-secondary: #ded6cd;
  --text-muted: #928170;
  --text-inverted: #211e1c;

  --accent-primary: #ffffff;
  --accent-primary-hover: #e5ded7;
  --accent-glow: rgba(255, 255, 255, 0.12);

  --brand-blue: #928170;
  --brand-blue-light: rgba(146, 129, 112, 0.2);
  --brand-cyan: #b8aaa0;

  --brand-success: #c2b5a9;
  --brand-success-bg: rgba(146, 129, 112, 0.22);

  --brand-warning: #928170;
  --brand-danger: #b8aaa0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(146, 129, 112, 0.25);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  min-height: 100vh;
}

/* Subtle background grid pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Common */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(120, 107, 94, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Aligned & Centered)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(24, 22, 21, 0.88);
}

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

/* Brand Logo (from servise.webp) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  user-select: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover .brand-icon {
  transform: translateY(-2px) scale(1.05);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  transform: rotate(15deg);
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Language Switcher (EN / FR / AR) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  line-height: 1;
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.lang-btn.active {
  background-color: var(--accent-primary);
  color: var(--text-inverted);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: -0.01em;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverted);
  box-shadow: 0 4px 14px rgba(68, 68, 68, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 68, 68, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   4. Hero Section (Recentered & Balanced)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

/* Left Hero Column */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==========================================================================
   WARM MOCHA STATUS PILL & PULSING DOT
   Color: #645b52 / #786b5e
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--brand-success-bg);
  color: var(--brand-success);
  border: 1px solid rgba(120, 107, 94, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-success);
  box-shadow: 0 0 0 0 rgba(120, 107, 94, 0.7);
  animation: pulse-warm 2s infinite;
}

@keyframes pulse-warm {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 107, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(120, 107, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(120, 107, 94, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

/* Contact Snippet from Mockup (Polished & Centered) */
.hero-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-chip svg {
  width: 17px;
  height: 17px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.contact-chip:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Right Hero Visual (Polygon Mask matching servise.webp) */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polygon-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.15;
  filter: drop-shadow(0 20px 30px rgba(68, 68, 68, 0.16));
}

.polygon-frame {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--text-primary);
  background-color: var(--bg-tertiary);
  transition: transform var(--transition-smooth);
}

.polygon-container:hover .polygon-frame {
  transform: scale(1.02);
}

.polygon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.polygon-container:hover .polygon-image {
  transform: scale(1.06);
}

/* Floating interactive badges on Hero */
.hero-float-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: float 4s ease-in-out infinite alternate;
}

.hero-float-card.badge-top-left {
  top: 15%;
  left: -20px;
}

.hero-float-card.badge-bottom-right {
  bottom: 12%;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.float-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.float-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. About Us Section ("Opened in 2021" - Elaborated & Balanced)
   -------------------------------------------------------------------------- */
.about-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-visual {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  box-shadow: var(--shadow-xl);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.about-image-card:hover .about-image {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-experience-year {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-blue);
  font-family: var(--font-mono);
}

.about-experience-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--brand-success-bg);
  color: var(--brand-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.about-feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stats Counter Row */
.stats-counter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Services Section (Elaborated & Recentered)
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
}

/* Service Category Tabs */
.service-tabs-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--text-primary);
  color: var(--text-inverted);
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(68, 68, 68, 0.18);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #645b52, #928170);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 107, 94, 0.4);
  box-shadow: var(--shadow-xl);
}

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

/* Service Visual / Icon */
.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-image-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  margin-top: auto;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand-success);
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.service-price-block {
  display: flex;
  flex-direction: column;
}

.price-prefix {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   7. Interactive Cost Calculator / Instant Estimator
   -------------------------------------------------------------------------- */
.calculator-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calculator-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-select,
.calc-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-select:focus,
.calc-input:focus {
  border-color: var(--brand-blue);
}

/* Pill radio selector */
.calc-pill-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.calc-pill {
  position: relative;
}

.calc-pill input[type="radio"],
.calc-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.calc-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.calc-pill input:checked+.calc-pill-label {
  border-color: var(--brand-blue);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  font-weight: 700;
}

/* Calculator Summary / Live Receipt */
.calculator-summary-box {
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-primary));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.receipt-header {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.receipt-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.receipt-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.receipt-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--border-color);
  padding-top: 18px;
  margin-top: auto;
  margin-bottom: 24px;
}

.receipt-total-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.receipt-total-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   8. Location & Contact Section (Recentered & Google Maps Integration)
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

/* Left Contact Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-cards-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.info-card:hover {
  border-color: var(--brand-blue);
  transform: translateX(4px);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card-content {
  display: flex;
  flex-direction: column;
}

.info-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Interactive Google Maps Frame Card */
.map-embed-wrapper {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  background-color: var(--bg-tertiary);
}

.map-embed-iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

.map-embed-overlay-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-blue);
  transition: all var(--transition-fast);
}

.map-embed-overlay-link:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
}

/* Right Form Column */
.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

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

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

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-blue);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(120, 107, 94, 0.2);
}

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

/* --------------------------------------------------------------------------
   9. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--brand-blue);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 28px 24px 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. Footer (Clean, Centered & Cloudflare Ready)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 64px;
  padding-bottom: 36px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--brand-blue);
  transform: translateX(3px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.cloudflare-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Modal & Floating UI
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(33, 30, 28, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 36px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success-icon {
  color: var(--brand-success);
}

/* Floating WhatsApp / Quick Contact */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background-color: #444444;
  color: #ffffff;
  border: 1px solid #786b5e;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(68, 68, 68, 0.35);
  transition: all var(--transition-smooth);
}

.floating-whatsapp:hover {
  background-color: #645b52;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(68, 68, 68, 0.45);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-contact-strip {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .calculator-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .site-header {
    height: 68px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-link {
    padding: 10px 0;
    font-size: 1.05rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .stats-counter-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 16px;
  }

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

  .hero-float-card.badge-top-left,
  .hero-float-card.badge-bottom-right {
    position: static;
    margin: 10px auto;
  }

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

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 14px;
    border-radius: 50%;
  }

  @media (max-width: 640px) {
    .nav-actions .btn {
      display: none;
    }
    .lang-btn {
      padding: 4px 8px;
      font-size: 0.75rem;
    }
  }
}

/* --------------------------------------------------------------------------
   13. Right-to-Left (RTL) Layout & Typography (Arabic)
   -------------------------------------------------------------------------- */
[dir="rtl"] {
  font-family: 'Cairo', 'Outfit', sans-serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .about-title,
[dir="rtl"] .section-title,
[dir="rtl"] .section-badge,
[dir="rtl"] .btn,
[dir="rtl"] .tab-btn {
  font-family: 'Cairo', 'Outfit', sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .hero-content {
  text-align: right;
  align-items: flex-start;
}

[dir="rtl"] .hero-cta-group {
  justify-content: flex-start;
}

[dir="rtl"] .hero-contact-strip {
  justify-content: flex-start;
}

[dir="rtl"] .hero-float-card.badge-top-left {
  left: auto;
  right: -20px;
}

[dir="rtl"] .hero-float-card.badge-bottom-right {
  right: auto;
  left: -20px;
}

[dir="rtl"] .about-experience-badge {
  left: auto;
  right: 24px;
}

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

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 20px;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-item.active .faq-icon {
  transform: rotate(-180deg);
}

[dir="rtl"] .info-card:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .footer-link:hover {
  transform: translateX(-3px);
}

@media (max-width: 1024px) {
  [dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
  }

  [dir="rtl"] .hero-cta-group,
  [dir="rtl"] .hero-contact-strip {
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   13. Right-to-Left (RTL) Layout & Typography (Arabic)
   -------------------------------------------------------------------------- */
[dir="rtl"] {
  font-family: 'Cairo', 'Outfit', sans-serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .about-title,
[dir="rtl"] .section-title,
[dir="rtl"] .section-badge,
[dir="rtl"] .btn,
[dir="rtl"] .tab-btn {
  font-family: 'Cairo', 'Outfit', sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .hero-content {
  text-align: right;
  align-items: flex-start;
}

[dir="rtl"] .hero-cta-group {
  justify-content: flex-start;
}

[dir="rtl"] .hero-contact-strip {
  justify-content: flex-start;
}

[dir="rtl"] .hero-float-card.badge-top-left {
  left: auto;
  right: -20px;
}

[dir="rtl"] .hero-float-card.badge-bottom-right {
  right: auto;
  left: -20px;
}

[dir="rtl"] .about-experience-badge {
  left: auto;
  right: 24px;
}

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

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 20px;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-item.active .faq-icon {
  transform: rotate(-180deg);
}

[dir="rtl"] .info-card:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .footer-link:hover {
  transform: translateX(-3px);
}

@media (max-width: 1024px) {
  [dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
  }

  [dir="rtl"] .hero-cta-group,
  [dir="rtl"] .hero-contact-strip {
    justify-content: center;
  }
}