/* ==========================================================================
   JAZDRM.COM - DESIGN SYSTEM & STYLESHEET

   Brand palette - LOCKED by the owner, taken verbatim from the live site
   (Blocksy theme palette). Do not substitute these hues. Darker/lighter
   steps below are shades of the same hues, never new colors.
     1  #047E79  primary        deep teal
     2  #1FBAB3  accent         turquoise
     3  #4F8DA7  steel blue     supporting
     4  #404040  ink            body text
     5  #E2E7ED  cloud          borders / dividers
     6  #F2F2F2  mist           insets
     7  #F8F9FB  paper          page background
     8  #FFFFFF  white          base surface
   WhatsApp green #25D366 is a contact affordance only, never a brand color.
   ========================================================================== */

/* Cairo (SIL OFL) - self-hosted, one variable file per subset, covers 400-900.
   Latin glyphs carry the English pages too, so this is the site's only web font. */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

:root {
  /* ---- Primary teal: brand color 1 (#047E79) plus shades of it ---- */
  --primary: #047E79;
  --primary-hover: #036B67;   /* button/link hover */
  --primary-dark: #035B57;    /* headings, category bar, on-white teal text */
  --primary-deep: #023F3C;    /* hero + top bar grounds */
  --primary-light: #EBF5F4;   /* pale teal chip / icon backgrounds */
  --primary-tint: #F0F7F7;    /* faint teal hover wash */
  --accent-cyan: #1FBAB3;     /* brand color 2 - turquoise accent */
  --secondary: #4F8DA7;       /* brand color 3 - steel blue, supporting use */

  /* ---- Neutral ramp: brand ink (#404040) tinted toward the teal ---- */
  --text-main: #2A2A2A;       /* headings */
  --text-body: #404040;       /* brand color 4, body copy */
  --text-muted: #5E6B6A;      /* secondary text (>= 4.5:1 on paper) */
  --text-light: #808C89;      /* large decorative text only (logo wall) */
  --text-white: #ffffff;

  --bg-page: #F8F9FB;         /* brand color 7 */
  --bg-surface: #ffffff;      /* brand color 8 */
  --bg-subtle: #F2F2F2;       /* brand color 6 */
  --bg-dark: #14201E;         /* footer - teal-tinted charcoal */
  --bg-dark-surface: #1E2C29;

  --border-color: #E2E7ED;    /* brand color 5 */
  --border-focus: #047E79;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #047E79 0%, #035B57 100%);
  --gradient-hero: linear-gradient(135deg, rgba(2, 63, 60, 0.95) 0%, rgba(4, 126, 121, 0.88) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,249,251,0.9) 100%);

  /* Shadows - tinted with the deepest brand teal, not flat black */
  --shadow-xs: 0 1px 2px rgba(2, 63, 60, 0.06);
  --shadow-sm: 0 2px 8px rgba(2, 63, 60, 0.08);
  --shadow-md: 0 6px 18px rgba(2, 63, 60, 0.10);
  --shadow-lg: 0 14px 32px rgba(2, 63, 60, 0.14);
  --shadow-xl: 0 24px 48px rgba(2, 63, 60, 0.18);
  --shadow-btn: 0 4px 14px rgba(2, 63, 60, 0.2);
  --shadow-btn-hover: 0 10px 24px rgba(2, 63, 60, 0.28);
  --ring: 0 0 0 3px rgba(4, 126, 121, 0.16);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions - ease-out only */
  --transition-fast: 0.15s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-ui: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
  --transition-ui-slow: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal), opacity var(--transition-normal);
}

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

html {
  font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Anchor targets clear the sticky header (76px) with room to breathe,
   instead of landing flush against it. */
:where([id]) {
  scroll-margin-top: 96px;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* LTR override when document language is English (Cairo carries Latin too) */
html[dir="ltr"] body,
body.en-lang,
[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  color: inherit;
}

/* ==========================================================================
   MOTION - one hero entrance on load, quiet scroll reveals everywhere else.
   Both skipped entirely under prefers-reduced-motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-stats {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-badge { animation-delay: 0.05s; }
  .hero-title { animation-delay: 0.15s; }
  .hero-subtitle { animation-delay: 0.25s; }
  .hero-actions { animation-delay: 0.35s; }
  .hero-stats { animation-delay: 0.45s; }
  .hero-media-card { animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes scroll-cue-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }
  .scroll-cue svg {
    animation: scroll-cue-bounce 1.6s ease-in-out infinite;
  }
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 4px 0 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Keyboard focus - visible ring on every interactive element, none on mouse */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* On dark grounds (hero, top bar, category bar, footer, drawer overlay) use a light ring */
.top-bar :focus-visible,
.category-nav-bar :focus-visible,
.hero-section :focus-visible,
.site-footer :focus-visible,
.btn-secondary:focus-visible,
.modal-close:focus-visible {
  outline-color: #fff;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link - hidden until focused */
.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 4000;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Toast / live-region feedback (replaces alert()) */
.toast-region {
  position: fixed;
  inset-block-end: 24px;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  z-index: 3500;
  pointer-events: none;
}

.toast {
  max-width: 440px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  line-height: 1.6;
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--accent-cyan);
  margin-top: 1px;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-fluid {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* Top Info Bar */
.top-bar {
  background-color: var(--primary-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--accent-cyan);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-cyan);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-links a {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
  transition: var(--transition-ui);
}

.top-bar-links a:hover {
  background: var(--primary);
  color: #fff;
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-ui-slow);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.main-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

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

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition-ui);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link {
  color: var(--primary);
  background-color: var(--primary-tint);
}

.nav-link svg.arrow {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link svg.arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-ui-slow);
  z-index: 1050;
}

html[dir="ltr"] .dropdown-menu {
  right: auto;
  left: 0;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition-ui);
}

.dropdown-item:hover {
  background-color: var(--primary-tint);
  color: var(--primary);
}

/* Secondary Category Navigation Bar */
.category-nav-bar {
  background: var(--primary-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-bar .container::-webkit-scrollbar {
  display: none;
}

.category-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-menu .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  font-size: 0.9rem;
}

.category-menu .nav-link:hover,
.category-menu .nav-item:hover > .nav-link {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Language Switcher & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions > * {
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  transition: var(--transition-ui);
  cursor: pointer;
}

.lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  transition: var(--transition-ui-slow);
  cursor: pointer;
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  cursor: pointer;
}

.mobile-toggle-btn span {
  display: block;
  height: 2.5px;
  width: 22px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

html[dir="ltr"] .mobile-drawer {
  right: auto;
  left: -100%;
  transition: left var(--transition-normal);
}

.mobile-drawer.active {
  right: 0;
}

html[dir="ltr"] .mobile-drawer.active {
  left: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.drawer-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.mobile-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-body .nav-link {
  font-size: 1.05rem;
  padding: 12px 14px;
}

.drawer-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-cta .btn-primary {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.drawer-lang {
  align-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-ui-slow);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--primary-deep);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(31, 186, 179, 0.09), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(31, 186, 179, 0.4);
  margin-bottom: 20px;
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-title span {
  color: var(--accent-cyan);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  transition: var(--transition-ui-slow);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-ui-slow);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-media-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-media-card img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.hero-floating-pill {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="ltr"] .hero-floating-pill {
  right: auto;
  left: -20px;
}

.hero-floating-pill svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Services / capabilities - asymmetric editorial list, deliberately not a card grid */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.services-intro {
  align-self: center;
}

.services-intro-title {
  font-size: clamp(1.7rem, 1rem + 1.9vw, 2.15rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.32;
  margin: 12px 0 18px;
  text-wrap: balance;
}

.services-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 42ch;
  text-wrap: pretty;
}

.services-list {
  list-style: none;
  border-block-start: 1px solid var(--border-color);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-block: 26px;
  border-block-end: 1px solid var(--border-color);
}

.service-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.service-item-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.service-item-body p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 54ch;
}

.service-item:hover .service-num {
  color: var(--primary-dark);
}

.service-item:hover .service-item-body h3 {
  color: var(--primary);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-ui-slow);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 860px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-lead {
    max-width: 60ch;
  }
}

@media (max-width: 480px) {
  .service-item {
    gap: 16px;
    padding-block: 22px;
  }
}

/* ==========================================================================
   VISUAL BANNERS & SHOWCASE CARDS
   ========================================================================== */
.category-banner-card {
  margin-bottom: 35px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background: var(--primary-deep);
  position: relative;
}

.category-banner-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  margin-top: 35px;
}

.division-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.division-media {
  position: relative;
  overflow: hidden;
  background: var(--primary-deep);
}

.division-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal);
}

.division-card:hover .division-media img {
  transform: scale(1.02);
}

.division-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 860px) {
  .featured-service-card {
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 32px;
  }

  .featured-service-card .division-media {
    width: 34%;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: none;
  }

  .featured-service-card .division-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
  }

  .featured-service-card .division-body {
    width: 66%;
    padding: 0;
  }
}

.division-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.division-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.division-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.division-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.division-card:hover .division-btn {
  color: var(--primary-dark);
  gap: 12px;
}

.division-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

html[dir="rtl"] .division-btn svg {
  transform: rotate(180deg);
}

html[dir="rtl"] .division-card:hover .division-btn svg {
  transform: rotate(180deg) translateX(4px);
}

/* Clients Showcase Banner */
.clients-banner-wrapper {
  margin-bottom: 35px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background: var(--primary-deep);
}

.clients-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* WhatsApp CTA Section */
.cta-whatsapp-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.cta-whatsapp-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 0;
  background: var(--primary-deep);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  color: #fff;
  position: relative;
}

.cta-whatsapp-content {
  padding: 50px 45px;
}

.cta-whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.cta-whatsapp-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.cta-whatsapp-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.cta-whatsapp-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp-cta:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-whatsapp-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-whatsapp-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-ui);
}

.btn-whatsapp-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
}

.cta-whatsapp-media {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.cta-whatsapp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* frame the hand and phone; keeps the baked-in corner wordmark out of the crop */
  object-position: 28% 42%;
  display: block;
}

@media (max-width: 960px) {
  .cta-whatsapp-card {
    grid-template-columns: 1fr;
  }
  .cta-whatsapp-content {
    padding: 35px 25px;
  }
  .cta-whatsapp-media {
    min-height: 220px;
    max-height: 300px;
  }
}

/* ==========================================================================
   PRODUCTS SHOWCASE & CATALOG
   ========================================================================== */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 2px;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-ui);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-btn);
}

.search-box {
  position: relative;
  min-width: 230px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

html[dir="ltr"] .search-box input {
  padding: 10px 16px 10px 40px;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.search-box svg {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}

html[dir="ltr"] .search-box svg {
  right: auto;
  left: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-ui-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

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

.product-thumb {
  position: relative;
  background: var(--bg-page);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  overflow: hidden;
  color: inherit;
}

.product-thumb img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

html[dir="ltr"] .product-badge {
  right: auto;
  left: 14px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  min-height: calc(0.8rem * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
  flex-grow: 1;
}

.product-name a {
  color: var(--text-main);
}

.product-card:hover .product-name a {
  color: var(--primary);
}

/* Product detail page: technical spec sheet */
.product-specs {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-specs-model {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  background: var(--primary);
  padding: 14px 16px;
}

.product-specs-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  background: var(--primary-dark);
  padding: 10px 16px;
  margin: 0;
}

.spec-list {
  margin: 0;
}

.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: 40% 1fr 44px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  background: var(--primary-tint);
}

.spec-row:nth-child(even) {
  background: #fff;
}

.spec-row + .spec-row {
  border-top: 1px solid var(--border-color);
}

.spec-row dt {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-row dd {
  margin: 0;
  color: var(--text-body);
  unicode-bidi: plaintext;
}

.spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.spec-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .spec-row {
    grid-template-columns: 1fr 32px;
    grid-template-areas: "label icon" "value icon";
    gap: 2px 12px;
  }
  .spec-row dt { grid-area: label; }
  .spec-row dd { grid-area: value; }
  .spec-icon { grid-area: icon; align-self: center; }
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-card-primary {
  flex: 1;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.btn-card-primary:hover {
  background: var(--primary-dark);
}

.btn-card-outline {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-ui);
}

.btn-card-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

/* ==========================================================================
   TRUSTED BY / CLIENTS
   ========================================================================== */
.clients {
  background: var(--bg-surface);
  padding: 72px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.clients-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.clients-head .section-title {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.clients-count {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.clients-count strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-inline-end: 4px;
  direction: ltr;
  display: inline-block;
}

/* Client logo wall: hairline inset grid, greyscale at rest */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 26px 22px;
  background: var(--bg-surface);
  flex: 0 0 calc(20% - 1px);
  box-sizing: border-box;
}

.client-logo img {
  max-height: 66px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .client-logo { flex-basis: calc(33.333% - 1px); }
}

@media (max-width: 560px) {
  .clients { padding: 56px 0; }
  .clients-head .section-title { font-size: 1.55rem; }
  .client-logo { flex-basis: calc(50% - 1px); min-height: 108px; padding: 20px 16px; }
  .client-logo img { max-height: 52px; }
}

/* ==========================================================================
   PARTNERS & BRANDS
   ========================================================================== */
.brands-section {
  background: var(--bg-surface);
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Authorized-brand wall: uniform monochrome wordmarks in a hairline grid */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.brand-wall-item {
  background: var(--bg-surface);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 118px;
  padding: 22px 16px;
  color: var(--text-light);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: var(--primary);
  background: var(--primary-tint);
  outline: none;
}

/* Real logo image (drop files into assets/img/brands/). Greyscale, colours on hover.
   Hidden until it actually loads; the wordmark below is the default. */
.brand-mark-logo {
  display: none;
  max-height: 42px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.brand-mark--haslogo .brand-mark-logo {
  display: block;
}

.brand-mark--haslogo .brand-mark-fallback {
  display: none;
}

.brand-mark:hover .brand-mark-logo,
.brand-mark:focus-visible .brand-mark-logo {
  filter: grayscale(0);
  opacity: 1;
}

/* Wordmark: the default presentation, replaced when a logo file is present */
.brand-mark-fallback {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark-glyph {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand-mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark-sub {
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  opacity: 0.75;
}

/* per-brand typographic character */
.brand-mark--hik .brand-mark-name { letter-spacing: 0.14em; }
.brand-mark--falcon .brand-mark-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-mark--diplomat .brand-mark-name { font-style: italic; font-weight: 700; }
.brand-mark--sunpower .brand-mark-name { letter-spacing: 0.06em; }

@media (max-width: 960px) {
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .brand-mark,
  .brand-mark-fallback {
    flex-direction: column;
    gap: 9px;
  }
  .brand-mark { min-height: 104px; }
}

/* ==========================================================================
   NATIONWIDE COVERAGE
   ========================================================================== */
.coverage {
  position: relative;
  padding: 84px 0;
  background-color: var(--primary-deep);
  color: #fff;
  overflow: hidden;
}

.coverage .section-title {
  color: #fff;
}

.coverage .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-cyan);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.coverage-hq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
}

.coverage-hq-tag {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-cyan);
  color: var(--primary-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.coverage-hq-city {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}

.coverage-hq-addr {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 0.95rem;
}

.coverage-hq-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coverage-hq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.coverage-hq-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.coverage-hq-phone {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.coverage-hq-phone span {
  direction: ltr;
}

.coverage-hq-map:hover,
.coverage-hq-phone:hover {
  color: #fff;
}

.coverage-hq-map:hover svg,
.coverage-hq-phone:hover svg {
  color: #fff;
}

.coverage-regions {
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.coverage-regions-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.coverage-list {
  display: grid;
}

.coverage-branch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-branch:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.coverage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.coverage-city {
  font-weight: 700;
  font-size: 1.05rem;
}

.coverage-region {
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .coverage-hq,
  .coverage-regions {
    padding: 26px;
  }
}

/* Support / info cards (careers + tech-support pages) */
.branch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.branch-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.branch-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.branch-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal .section-title {
  margin: 12px 0 6px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 28px 0 8px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-body);
  line-height: 1.9;
  max-width: 68ch;
}

/* ==========================================================================
   FORMS & MODALS
   ========================================================================== */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-ui);
}

.form-control:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-ui-slow);
}

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

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.modal-close {
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-inline-end: -8px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.modal-body {
  padding: 25px;
}

.img-enlarge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.img-enlarge-btn:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}

.image-lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.image-lightbox.active .image-lightbox-content {
  transform: scale(1);
}

.image-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: #fff;
}

.image-lightbox-close {
  position: absolute;
  inset-block-start: -44px;
  inset-inline-end: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.4);
}

.image-lightbox-close:hover {
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 25px;
}

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

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  max-width: 340px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

html[dir="ltr"] .footer-title::after {
  right: auto;
  left: 0;
}

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

.footer-links a {
  display: inline-block;
  align-self: flex-start;
  padding-block: 11px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom a {
  display: inline-block;
  padding: 11px 0;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1500;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 32, 30, 0.22), 0 1px 3px rgba(15, 32, 30, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: auto;
  flex-shrink: 0;
}

.floating-btn:hover,
.floating-btn:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 8px 22px rgba(15, 32, 30, 0.3), 0 2px 5px rgba(15, 32, 30, 0.2);
  outline: none;
}

.floating-whatsapp {
  background: #25d366;
}

.floating-whatsapp svg {
  fill: #fff;
}

.floating-phone {
  background: var(--primary);
}

.floating-phone svg {
  fill: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .floating-btn:hover,
  .floating-btn:focus-visible {
    transform: none;
  }
}

@media (max-width: 560px) {
  .floating-actions {
    inset-block-end: 16px;
    inset-inline-start: 16px;
    gap: 12px;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
    border-width: 2.5px;
  }
  .floating-btn svg {
    width: 25px;
    height: 25px;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .top-bar {
    display: none;
  }
  .nav-menu, .category-nav-bar {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .hero-section {
    padding: 60px 0 80px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-media-card {
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* header: quote action moves into the drawer, keeps the row uncramped */
  .header-actions .btn-quote {
    display: none;
  }
  .hero-badge {
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  /* the certification pill drops below the image, never overhanging the card edge */
  .hero-floating-pill {
    position: static;
    inset: auto;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
  }
  html[dir="ltr"] .hero-floating-pill {
    inset: auto;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat-number {
    font-size: 1.55rem;
  }
}

/* ---- Hide the secondary categories menu bar (bottom header row) ---- */
header [data-row="bottom"],
.category-nav-bar {
  display: none !important;
}

/* ---- Phone numbers: force LTR in RTL pages ---- */
a[href^="tel:"]:not(.floating-btn),
a[href^="tel:"]:not(.floating-btn) span {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  letter-spacing: 0.02em;
}

