/* ==========================================================================
   CSS STYLESHEET: Electrical Services Website (Jeddah)
   Authentic Architectural Identity per Design.md
   Custom Scrollbar | Blurred Image Backgrounds with Graded Blue Filter
   Mobile-Optimized: 2-Column Services Grid | Fluid Typography | Compact Buttons
   Floating Contact Dock on Right (WhatsApp & Phone ONLY)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Local Font Face
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./Cairo-600.woff2') format('woff2');
}

:root {
  /* Palette - Architectural Specification */
  --color-navy-950: #04101E;        /* Deep shadow & footer base */
  --color-navy-900: #06172A;        /* Primary brand dark, headers, contact */
  --color-slate-800: #1E222D;        /* Secondary dark cards & surfaces */
  --color-orange-red-600: #CF271E;   /* Owner-approved primary CTA button */
  --color-orange-red-hover: #b31f17;
  --color-copper-600: #B47D51;       /* Architectural copper details */
  --color-amber-400: #E5A56C;        /* Warm lighting highlights & focus states */
  --color-stone-300: #BFB1A9;        /* Subtle metallic & dark-surface text */
  --color-cream-50: #F6F3F0;         /* Primary light surface base (55%) */
  --color-white: #FFFFFF;            /* White surfaces & cards */
  --color-text-main: #06172A;        /* Dark headings & text */
  --color-text-muted: #526275;       /* Body text on light backgrounds */
  --color-border-light: #DDD7D2;     /* Stone borders on light cards */
  --color-border-dark: rgba(180, 125, 81, 0.3); /* Copper borders on dark cards */

  /* Typography */
  --font-family-ar: 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --content-gutter: clamp(12px, 3.5vw, 44px);
  --section-padding-y: clamp(44px, 6vw, 90px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(6, 23, 42, 0.04);
  --shadow-card: 0 4px 18px rgba(6, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(6, 23, 42, 0.1);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-ui: 180ms ease;
  --transition-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Custom Scrollbar Styling (Aligned with Navy & Copper Identity)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}
::-webkit-scrollbar-thumb {
  background: #1E222D;
  border: 1.5px solid var(--color-navy-950);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-copper-600);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-copper-600) var(--color-navy-950);
}

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

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

body {
  font-family: var(--font-family-ar);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.72;
  color: var(--color-text-main);
  background-color: var(--color-cream-50);
  direction: rtl;
  text-align: start;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-ar);
  color: var(--color-navy-900);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 0.65rem;
}
p:last-child {
  margin-bottom: 0;
}

/* Focus outline for accessibility (WCAG AA) */
:focus-visible {
  outline: 3px solid var(--color-amber-400);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -120px;
  right: 20px;
  background: var(--color-orange-red-600);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 100000;
  font-weight: 700;
  transition: top var(--transition-ui);
}
.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: min(100% - 2 * var(--content-gutter), var(--container-max));
  margin-inline: auto;
}
.max-w-4xl {
  max-width: 860px;
}

/* Utility Helpers */
.section-padding { padding-block: var(--section-padding-y); }
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-amber { color: var(--color-amber-400) !important; }
.text-stone { color: var(--color-stone-300) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.bg-cream { background-color: var(--color-cream-50); }
.bg-navy-dark { background-color: var(--color-navy-900); color: var(--color-white); }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 1.75rem; }
.hidden { display: none !important; }
.relative-z1 { position: relative; z-index: 1; }
.relative-overflow { position: relative; overflow: hidden; isolation: isolate; }

/* --------------------------------------------------------------------------
   4. Backgrounds with Blurred IMG & Graded Navy Filter
   -------------------------------------------------------------------------- */
.bg-textured-navy {
  position: relative;
  isolation: isolate;
  background-color: var(--color-navy-900);
  overflow: hidden;
}

.section-bg-image-layer,
.card-bg-image-layer,
.footer-bg-image-layer {
  position: absolute;
  inset: -10px; /* Bleed to prevent blur fringe */
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  transform: scale(1.02);
  opacity: 0.34;
}

.why-us-bg-img {
  background-image: url('./IMG/04-distribution-boards-and-breakers.webp');
}
.contact-bg-img {
  background-image: url('./IMG/02-fault-diagnosis-and-repair.webp');
}
.area-bg-img {
  background-image: url('./IMG/01-building-electrical-installation.webp');
}
.footer-bg-image-layer {
  background-image: url('./IMG/03-cable-inspection-and-insulation-testing.webp');
  opacity: 0.20;
}

.section-bg-gradient-overlay,
.card-bg-gradient-overlay,
.footer-bg-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(4, 16, 30, 0.94) 0%,
    rgba(6, 23, 42, 0.88) 50%,
    rgba(4, 16, 30, 0.96) 100%
  );
}

/* --------------------------------------------------------------------------
   4.1 Reusable SVG Section Dividers (Architectural Geometric Transitions)
   -------------------------------------------------------------------------- */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

.section-divider--top {
  top: 0;
}

.section-divider--bottom {
  bottom: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: clamp(26px, 4vw, 54px);
}

/* Divider Fills matching adjacent section backgrounds */
.divider-fill-cream {
  fill: var(--color-cream-50);
}

.divider-fill-white {
  fill: var(--color-white);
}

/* Technical Accent Lines & Reference Vertex Markers */
.divider-line-copper {
  stroke: var(--color-copper-600);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.divider-line-amber {
  stroke: var(--color-amber-400);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.divider-dot-red {
  fill: var(--color-orange-red-600);
}

.divider-dot-amber {
  fill: var(--color-amber-400);
}

/* --------------------------------------------------------------------------
   5. Buttons & UI Primitives
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: clamp(0.9rem, 1.1vw, 0.98rem);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-ui), transform var(--transition-ui), border-color var(--transition-ui), color var(--transition-ui);
  text-decoration: none;
  white-space: nowrap;
}

/* Primary Button: #CF271E with White text (5.3:1 contrast) */
.btn-primary {
  background-color: var(--color-orange-red-600);
  color: var(--color-white);
  border-color: var(--color-orange-red-600);
}
.btn-primary:hover {
  background-color: var(--color-orange-red-hover);
  border-color: var(--color-orange-red-hover);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--color-amber-400);
  color: var(--color-amber-400);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--color-amber-400);
  color: var(--color-amber-400);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.88rem;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-ui);
}
.btn:hover .btn-arrow {
  transform: translateX(-4px); /* RTL forward movement */
}

/* Hero CTA buttons (compact on small screens) */
.btn-hero-cta {
  min-height: 48px;
  padding: 10px 24px;
  font-size: 1rem;
}
@media (max-width: 640px) {
  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-hero-cta {
    min-height: 40px;
    padding: 7px 14px;
    font-size: 0.86rem;
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
  }
  .btn-hero-cta .btn-arrow {
    width: 13px;
    height: 13px;
  }
}

/* Section Headings */
.section-header {
  margin-bottom: clamp(28px, 4.5vw, 48px);
}
.section-eyebrow {
  display: inline-block;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 700;
  color: var(--color-copper-600);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.section-title {
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  color: var(--color-navy-900);
  margin-bottom: 10px;
  font-weight: 800;
}
.section-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  color: var(--color-text-muted);
  max-width: 660px;
  margin-inline: auto;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  background-color: rgba(6, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-ui), height var(--transition-ui), box-shadow var(--transition-ui);
}
.site-header.scrolled {
  background-color: #06172A;
  height: 66px;
  box-shadow: 0 4px 18px rgba(4, 16, 30, 0.35);
  border-bottom-color: rgba(180, 125, 81, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Brand */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #04101E;
  border: 1.5px solid var(--color-amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-svg {
  width: 22px;
  height: 22px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-amber-400);
  line-height: 1.2;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
.nav-link {
  color: var(--color-stone-300);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 3px;
  position: relative;
  transition: color var(--transition-ui);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-white);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-amber-400);
  transition: width var(--transition-ui);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-header {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .btn-header {
    display: none;
  }
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 165, 108, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1002;
  touch-action: manipulation;
}
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}
.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-ui), opacity var(--transition-ui);
  pointer-events: none;
}
/* Animated state when menu is open */
.mobile-menu-btn.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active .menu-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Mobile Navigation Drawer (Completely hidden with display:none when closed)
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none !important;
  opacity: 0;
  transition: opacity 180ms ease;
}
.mobile-nav-drawer.open {
  display: block !important;
  opacity: 1;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 16, 30, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(300px, 80vw);
  background-color: #06172A;
  border-left: 1px solid rgba(180, 125, 81, 0.3);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  animation: slidePanelIn 220ms ease-out;
}
@keyframes slidePanelIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}
.mobile-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.mobile-nav-link {
  color: var(--color-stone-300);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  transition: color var(--transition-ui);
}
.mobile-nav-link:hover, .mobile-nav-link:focus {
  color: var(--color-amber-400);
}
.mobile-nav-footer {
  margin-top: auto;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   8. Hero Section (Design.md Strict Responsive Composition)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 86svh);
  display: flex;
  align-items: center;
  background-color: var(--color-navy-900);
  color: var(--color-white);
  padding-top: clamp(80px, 11vw, 106px);
  padding-bottom: clamp(54px, 7vw, 84px);
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* Electrician on the left */
}

/* Gradient Overlay: Deepest on the right behind Arabic text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(4, 16, 30, 0.96) 0%,
    rgba(4, 16, 30, 0.90) 42%,
    rgba(4, 16, 30, 0.45) 75%,
    rgba(4, 16, 30, 0.12) 100%
  );
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
  }
  .hero-bg-img {
    object-position: 25% center;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(4, 16, 30, 0.88) 0%,
      rgba(4, 16, 30, 0.94) 55%,
      rgba(4, 16, 30, 0.98) 100%
    );
  }
}

.hero-container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 560px;
  margin-inline-end: auto;
  text-align: start;
}

.hero-tagline {
  display: inline-block;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 600;
  color: var(--color-amber-400);
  background: rgba(6, 23, 42, 0.8);
  border: 1px solid rgba(229, 165, 108, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.5rem, 4.8vw, 3.1rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-description {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--color-stone-300);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  font-weight: 600;
  color: var(--color-stone-300);
}
.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-amber-400);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Services Section (2 Columns on mobile & tablet, 3 on desktop)
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--color-cream-50);
}

/* 2 Columns on small screens! */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 22px);
  margin-bottom: 34px;
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-ui), border-color var(--transition-ui);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-amber-400);
}

.service-image-container {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: #06172A;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.service-card:hover .service-img {
  transform: scale(1.03);
}

/* Dark gradient over bottom of image for the badge and text */
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 16, 30, 0.94) 0%,
    rgba(4, 16, 30, 0.58) 45%,
    rgba(4, 16, 30, 0.05) 100%
  );
}

/* Reference badge group matching 07 image */
.service-reference-badge-group {
  position: absolute;
  bottom: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.service-icon-box {
  width: clamp(32px, 4vw, 42px);
  height: clamp(32px, 4vw, 42px);
  background: rgba(6, 23, 42, 0.85);
  border: 1.5px solid var(--color-amber-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber-400);
  flex-shrink: 0;
  transition: border-color var(--transition-ui), color var(--transition-ui);
}
.service-card:hover .service-icon-box {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.service-icon-box svg {
  width: clamp(16px, 2.2vw, 22px);
  height: clamp(16px, 2.2vw, 22px);
}

.service-title-overlay {
  font-size: clamp(0.78rem, 2vw, 1.05rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* Card Body */
.service-card-body {
  padding: clamp(10px, 1.8vw, 18px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-desc {
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .service-desc {
    -webkit-line-clamp: unset;
  }
}

.service-footer {
  border-top: 1px solid #ECE7E2;
  padding-top: 10px;
}
.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 700;
  color: var(--color-navy-900);
  transition: color var(--transition-ui);
}
.service-cta-link svg {
  width: 13px;
  height: 13px;
  color: var(--color-orange-red-600);
  transition: transform var(--transition-ui);
}
.service-card:hover .service-cta-link {
  color: var(--color-orange-red-600);
}
.service-card:hover .service-cta-link svg {
  transform: translateX(-3px);
}

/* Micro-CTA */
.services-micro-cta {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
}
.micro-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.micro-cta-content {
  max-width: 680px;
}
.micro-cta-title {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-navy-900);
  margin-bottom: 4px;
}
.micro-cta-desc {
  font-size: clamp(0.85rem, 1.1vw, 0.94rem);
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Why Choose Us (Dark Navy with Background IMG & Graded Filter)
   -------------------------------------------------------------------------- */
.why-us-section {
  padding-top: clamp(64px, 8.5vw, 110px);
  padding-bottom: clamp(64px, 8.5vw, 110px);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
}
@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  background-color: rgba(30, 34, 45, 0.85);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 26px);
  transition: transform var(--transition-ui), border-color var(--transition-ui);
}
.principle-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-amber-400);
}

.principle-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.principle-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-copper-600);
  font-family: monospace;
}
.principle-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-navy-900);
  border: 1px solid var(--color-amber-400);
  color: var(--color-amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
}
.principle-icon-wrapper svg {
  width: 20px;
  height: 20px;
}
.principle-title {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--color-white);
  margin-bottom: 8px;
}
.principle-desc {
  font-size: clamp(0.88rem, 1.1vw, 0.94rem);
  color: var(--color-stone-300);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-section {
  background-color: var(--color-white);
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
  max-width: 1040px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .steps-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--color-cream-50);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 26px);
  position: relative;
  transition: border-color var(--transition-ui);
}
.step-card:hover {
  border-color: var(--color-copper-600);
}
.step-number {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-copper-600);
  font-family: monospace;
  margin-bottom: 10px;
  line-height: 1;
}
.step-title {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--color-navy-900);
  margin-bottom: 6px;
}
.step-desc {
  font-size: clamp(0.88rem, 1.1vw, 0.94rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. About Section
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  background-color: var(--color-cream-50);
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 42px);
  align-items: center;
}
/* About wrapper grid — content left, image right on desktop (RTL: image appears on left visually) */
@media (min-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr 460px;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }
}

.about-lead {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 600;
  color: var(--color-navy-900);
  line-height: 1.68;
  margin-bottom: 12px;
}
.about-body {
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  color: var(--color-text-muted);
  line-height: 1.72;
  margin-bottom: 18px;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.point-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 600;
  color: var(--color-navy-900);
}
.point-badge svg {
  width: 17px;
  height: 17px;
  color: var(--color-copper-600);
  flex-shrink: 0;
}

/* "Why proper installation" — inline, no box, same style as surrounding text */
.about-why {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 2px solid var(--color-amber-400);
}
.about-why-title {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Image column — clean, prominent, no shadow/bg */
.about-image-column {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent !important;
  padding: 0;
  /* Fixed height container so image stays consistent */
  height: clamp(380px, 50vw, 580px);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.about-image-column .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: transparent;
  border-radius: var(--radius-md);
}

/* Mobile: image becomes blurred decorative background on the left */
@media (max-width: 991px) {
  .about-wrapper {
    position: relative;
    overflow: hidden;
  }
  /* Move image column to be behind content using absolute positioning */
  .about-image-column {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 45%;
    left: 0;
    right: auto;
    border-radius: 0;
    opacity: 0.18;
    pointer-events: none;
  }
  .about-image-column .about-img {
    filter: blur(3px);
    border-radius: 0;
    object-position: center center;
  }
  /* Ensure text content is above the blurred image */
  .about-content {
    position: relative;
    z-index: 1;
  }
}

/* --------------------------------------------------------------------------
   13. Service Area in Jeddah (Dark Navy Textured Architectural Section)
   -------------------------------------------------------------------------- */
.service-area-section {
  padding-top: clamp(68px, 9vw, 115px);
  padding-bottom: clamp(68px, 9vw, 115px);
}
.service-area-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.area-desc {
  font-size: clamp(0.94rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 24px;
}
.area-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 26px;
}
.area-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 600;
  color: var(--color-white);
}
.area-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.area-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 480px) {
  .area-cta-group .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion (Clean White Crisp Section)
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--color-white);
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--color-cream-50);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-ui);
}
.accordion-item:hover {
  border-color: var(--color-copper-600);
}
.accordion-header {
  width: 100%;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 22px);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: start;
}
.accordion-title {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 700;
  color: var(--color-navy-900);
}
.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  color: var(--color-navy-900);
  flex-shrink: 0;
  transition: transform 220ms ease;
}
.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
  background-color: var(--color-amber-400);
  border-color: var(--color-amber-400);
}
.accordion-panel {
  padding: 0 clamp(16px, 2.5vw, 22px) clamp(14px, 2vw, 18px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.accordion-content p {
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: 8px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. Contact Section & Request Form
   -------------------------------------------------------------------------- */
.contact-section {
  padding-top: clamp(64px, 8.5vw, 110px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 40px);
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.68;
  margin-bottom: 20px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(30, 34, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color var(--transition-ui), transform var(--transition-ui);
}
.contact-channel-card:hover {
  border-color: var(--color-amber-400);
  transform: translateY(-2px);
}
.channel-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-bg { background-color: #25D366; color: #FFFFFF; }
.phone-bg { background-color: var(--color-orange-red-600); color: #FFFFFF; }

.channel-info {
  display: flex;
  flex-direction: column;
}
.channel-tag {
  font-size: 0.75rem;
  color: var(--color-amber-400);
  font-weight: 600;
}
.channel-title {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 700;
  color: var(--color-white);
}
.channel-sub {
  font-size: 0.82rem;
  color: var(--color-stone-300);
}

.inquiry-tips {
  background: rgba(255, 255, 255, 0.04);
  border-right: 3px solid var(--color-amber-400);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tips-title {
  font-size: 0.88rem;
  color: var(--color-amber-400);
  margin-bottom: 4px;
}
.tips-list {
  font-size: 0.85rem;
  color: var(--color-stone-300);
  line-height: 1.65;
}
.tips-list li::before {
  content: '• ';
  color: var(--color-amber-400);
}

/* Solid White Form Container Box */
.form-container-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  color: var(--color-text-main);
}
.form-title {
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  color: var(--color-navy-900);
  margin-bottom: 4px;
}
.form-subtitle {
  font-size: clamp(0.85rem, 1vw, 0.92rem);
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 5px;
}
.required-star {
  color: var(--color-orange-red-600);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: var(--color-cream-50);
  color: var(--color-navy-900);
  font-size: 0.92rem;
  transition: border-color var(--transition-ui), background-color var(--transition-ui);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  background-color: var(--color-white);
  border-color: var(--color-navy-900);
  outline: none;
}
.form-input.error, .form-select.error {
  border-color: var(--color-orange-red-600);
  background-color: #fff8f7;
}
.input-error-msg {
  display: none;
  font-size: 0.78rem;
  color: var(--color-orange-red-600);
  margin-top: 3px;
  font-weight: 600;
}
.input-error-msg.visible {
  display: block;
}

.form-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-block: 14px 10px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.form-or-divider::before, .form-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2DCD5;
}
.form-or-divider span {
  padding-inline: 8px;
}

.form-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.form-alert.success {
  background-color: #e8f7ee;
  color: #126332;
  border: 1px solid #b6e5c5;
}
.form-alert.error {
  background-color: #fdeeee;
  color: #ad1811;
  border: 1px solid #f9c6c4;
}

/* --------------------------------------------------------------------------
   16. Site Footer (Navy-950)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy-950);
  color: var(--color-stone-300);
  border-top: 1px solid rgba(180, 125, 81, 0.2);
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: 30px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand .brand-title {
  font-size: 1.15rem;
  color: var(--color-white);
}
.footer-about-text {
  font-size: 0.88rem;
  line-height: 1.68;
}
.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 5px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-amber-400);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--color-stone-300);
  transition: color var(--transition-ui);
}
.footer-links a:hover {
  color: var(--color-amber-400);
}
.footer-coverage-text {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.footer-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-note {
  color: var(--color-amber-400);
}

/* --------------------------------------------------------------------------
   17. Floating Contact Dock (Right Side - WhatsApp & Direct Phone Call ONLY)
   -------------------------------------------------------------------------- */
.floating-contact-dock {
  position: fixed;
  bottom: clamp(16px, 3vw, 28px);
  right: clamp(12px, 2.5vw, 22px);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform var(--transition-ui);
  touch-action: manipulation;
}
@media (max-width: 480px) {
  .dock-btn {
    width: 44px;
    height: 44px;
  }
}

.dock-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}
.dock-phone {
  background-color: var(--color-orange-red-600);
  color: #FFFFFF;
}

.dock-btn:hover {
  transform: scale(1.08) translateY(-2px);
}
.dock-btn:active {
  transform: scale(0.96);
}

.dock-icon {
  width: 23px;
  height: 23px;
}
@media (max-width: 480px) {
  .dock-icon {
    width: 20px;
    height: 20px;
  }
}

.dock-tooltip {
  position: absolute;
  right: calc(100% + 8px);
  background: var(--color-navy-900);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  border: 1px solid rgba(229, 165, 108, 0.3);
}
.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 768px) {
  .dock-tooltip {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   18. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: clamp(16px, 3vw, 28px);
  left: clamp(12px, 2.5vw, 22px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy-900);
  border: 1.5px solid var(--color-amber-400);
  color: var(--color-amber-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 980;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-ui), visibility var(--transition-ui), transform var(--transition-ui);
  box-shadow: var(--shadow-float);
  touch-action: manipulation;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--color-orange-red-600);
  border-color: var(--color-orange-red-600);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   18.1 Inspection Request Modal (نافذة طلب معاينة فنية منبثقة)
   -------------------------------------------------------------------------- */
.inspection-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(4, 16, 30, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.inspection-modal-wrapper {
  width: min(94vw, 640px);
  max-width: 640px;
  margin: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.inspection-modal-backdrop.open .inspection-modal-wrapper {
  transform: translateY(0) scale(1);
}

.inspection-modal-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 16px 40px rgba(4, 16, 30, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.inspection-modal-header {
  position: relative;
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3.2vw, 22px);
  background: var(--color-navy-900);
  color: var(--color-white);
  border-bottom: 2px solid var(--color-copper-600);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 165, 108, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: clamp(0.72rem, 1.8vw, 0.78rem);
  color: var(--color-amber-400);
  font-weight: 700;
  white-space: nowrap;
}

.modal-badge-icon {
  width: 13px;
  height: 13px;
  color: var(--color-amber-400);
  flex-shrink: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.75);
  display: inline-block;
  flex-shrink: 0;
}

.modal-header-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.modal-header-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-md);
  background: rgba(229, 165, 108, 0.12);
  border: 1px solid rgba(229, 165, 108, 0.35);
  color: var(--color-amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-header-icon-box svg {
  width: 20px;
  height: 20px;
}

.modal-header-text {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.35;
  word-break: break-word;
}

.modal-subtitle {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--color-stone-300);
  line-height: 1.45;
  margin: 0;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-white);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  touch-action: manipulation;
  transition: background-color var(--transition-ui), border-color var(--transition-ui), transform var(--transition-ui);
}
.modal-close-btn:hover {
  background: var(--color-orange-red-600);
  border-color: var(--color-orange-red-600);
  transform: rotate(90deg);
}
.modal-close-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.inspection-modal-form {
  padding: clamp(14px, 2.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 15px);
  flex: 1 1 auto;
  max-height: calc(90vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-whatsapp-modal {
  background-color: #25D366;
  color: #FFFFFF;
  border: 1px solid #1EBE5D;
  font-size: 1rem;
  font-weight: 700;
  min-height: 46px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color var(--transition-ui), transform var(--transition-ui);
  text-decoration: none;
}
.btn-whatsapp-modal:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

.modal-form-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(207, 39, 30, 0.1);
  border: 1px solid rgba(207, 39, 30, 0.3);
  color: var(--color-orange-red-600);
}
.modal-form-alert.success {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #15803d;
}

/* Modal Form Controls & Icon Styling */
.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-copper-600);
  pointer-events: none;
  flex-shrink: 0;
}
.form-input.with-icon {
  padding-right: 42px !important;
}
.select-wrapper {
  position: relative;
  width: 100%;
}

/* Location Group & GPS Detection Elements */
.location-group {
  display: flex;
  flex-direction: column;
}
.location-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.location-label-row .form-label {
  margin-bottom: 0;
}
.btn-detect-gps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--color-navy-900);
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
  line-height: 1.2;
}
.btn-detect-gps svg {
  color: var(--color-copper-600);
  flex-shrink: 0;
  transition: color 180ms ease;
}
.btn-detect-gps:hover {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-color: var(--color-navy-900);
}
.btn-detect-gps:hover svg {
  color: var(--color-white);
}
.btn-detect-gps.detecting {
  background: #FFF8E1;
  color: #B78103;
  border-color: #FFE082;
  cursor: wait;
}
.btn-detect-gps.detected {
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #A5D6A7;
}
.btn-detect-gps.detected svg {
  color: #1B5E20;
}
.location-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.link-open-maps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1565C0;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}
.link-open-maps:hover {
  color: #0D47A1;
  text-decoration: underline;
}
.link-open-maps svg {
  flex-shrink: 0;
}
.location-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}
.location-status-badge.success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}
.location-status-badge.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

/* --------------------------------------------------------------------------
   Inspection Modal: Fluid Scaling Across Screen Sizes
   -------------------------------------------------------------------------- */
/* Large Screens / Desktops (>= 1024px) */
@media (min-width: 1024px) {
  .inspection-modal-wrapper {
    max-width: 620px;
  }
  .inspection-modal-form {
    padding: 22px 26px;
    gap: 15px;
  }
}

/* Tablets (641px - 1023px) */
@media (max-width: 1023px) and (min-width: 641px) {
  .inspection-modal-wrapper {
    max-width: 540px;
    width: 92%;
  }
  .inspection-modal-form {
    padding: 18px 20px;
    gap: 13px;
  }
}

/* Phablets & Mobile Landscape (<= 640px) */
@media (max-width: 640px) {
  .inspection-modal-backdrop {
    padding: 10px;
  }
  .inspection-modal-wrapper {
    width: 100%;
    max-width: 100%;
    margin: auto;
  }
  .inspection-modal-card {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .inspection-modal-form {
    padding: 14px 16px;
    gap: 12px;
  }
  .form-input, .form-select {
    min-height: 42px;
    font-size: 0.9rem;
  }
}

/* Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .inspection-modal-backdrop {
    padding: 6px;
    align-items: center;
  }
  .inspection-modal-wrapper {
    margin: auto;
    width: 100%;
    max-width: 100%;
  }
  .inspection-modal-card {
    max-height: 95vh;
    border-radius: 12px;
  }
  .inspection-modal-header {
    padding: 12px 14px 10px;
    gap: 7px;
  }
  .modal-header-top-row {
    gap: 8px;
  }
  .modal-badge {
    padding: 2px 7px;
    font-size: 0.7rem;
  }
  .modal-header-main {
    gap: 10px;
  }
  .modal-header-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .modal-header-icon-box svg {
    width: 16px;
    height: 16px;
  }
  .modal-title {
    font-size: 1.02rem;
  }
  .modal-subtitle {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .modal-close-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .inspection-modal-form {
    padding: 12px 14px;
    gap: 10px;
  }
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }
  .form-input, .form-select {
    padding: 8px 11px;
    font-size: 0.86rem;
    min-height: 39px;
  }
  .form-input.with-icon {
    padding-right: 36px !important;
  }
  .input-icon {
    width: 16px;
    height: 16px;
    right: 10px;
  }
  .form-textarea {
    padding: 8px 11px;
    font-size: 0.86rem;
    min-height: 60px;
  }
  .btn-detect-gps {
    padding: 2px 7px;
    font-size: 0.72rem;
  }
  .link-open-maps {
    font-size: 0.72rem;
  }
  .btn-whatsapp-modal {
    min-height: 44px;
    font-size: 0.92rem;
    padding: 9px 14px;
  }
}

/* Small Screens / Compact Mobiles (<= 360px) */
@media (max-width: 360px) {
  .inspection-modal-backdrop {
    padding: 4px;
  }
  .inspection-modal-card {
    max-height: 96vh;
    border-radius: 9px;
  }
  .inspection-modal-header {
    padding: 9px 11px 7px;
    gap: 5px;
  }
  .modal-header-icon-box {
    display: none;
  }
  .modal-title {
    font-size: 0.94rem;
  }
  .modal-subtitle {
    font-size: 0.7rem;
  }
  .modal-close-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }
  .inspection-modal-form {
    padding: 10px 11px;
    gap: 8px;
  }
  .form-input, .form-select {
    padding: 7px 9px;
    font-size: 0.82rem;
    min-height: 36px;
  }
  .btn-whatsapp-modal {
    min-height: 40px;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
