/*
 * Afaq Al-Himaya — Design System
 * Taste-Skill Minimalist: White editorial aesthetic, Arabic RTL
 *

 */

/* ===== IMPORTS =====
 * Fonts are loaded from the <head> via a non-blocking <link> tag (see
 * app/views/layouts/application.html.erb) with preconnect + display=swap so
 * text renders immediately on slow networks instead of blocking CSS parse. */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Canvas */
  --color-canvas: #FFFFFF;
  --color-canvas-warm: #F7F6F3;
  --color-surface: #F9F9F8;

  /* Text */
  --color-text-primary: #2F3437;
  --color-text-heading: #111111;
  --color-text-secondary: #787774;
  --color-text-tertiary: #A3A09C;
  --color-text-inverse: #FFFFFF;

  /* Borders */
  --color-border: #EAEAEA;
  --color-border-hover: #D4D4D4;

  /* Accent pastels */
  --color-accent-blue-bg: #E1F3FE;
  --color-accent-blue-text: #1F6C9F;
  --color-accent-yellow-bg: #FBF3DB;
  --color-accent-yellow-text: #956400;
  --color-accent-green-bg: #EDF3EC;
  --color-accent-green-text: #346538;
  --color-accent-red-bg: #FDEBEC;
  --color-accent-red-text: #9F2F2D;

  /* Primary action */
  --color-primary: #111111;
  --color-primary-hover: #333333;

  /* Shadows */
  --shadow-none: 0 0 0 rgba(0,0,0,0);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-arabic: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Layout */
  --max-width: 1320px;
  --content-width: 1100px;
  --top-ticker-height: 28px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* When the user clicks an in-page anchor, leave room for the fixed navbar */
  scroll-padding-top: calc(72px + var(--top-ticker-height) + 12px);
  /* Keep scrollbar gutter stable so RTL layout doesn't shift right/left padding */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-canvas);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  max-width: 65ch;
  color: var(--color-text-primary);
  line-height: 1.7;
}

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

.text-tertiary {
  color: var(--color-text-tertiary);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: 5.75rem 0;
}

/* Slightly denser scale for content below hero */
.section:not(.hero-visual) {
  padding: 4.75rem 0;
}

.section:not(.hero-visual) .section-header__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section:not(.hero-visual) .section-header__desc {
  font-size: 0.98rem;
}

.section:not(.hero-visual) .bento__card {
  padding: 1.25rem;
}

.section:not(.hero-visual) .bento__card-title {
  font-size: 1.15rem;
}

.section:not(.hero-visual) .bento__card-desc {
  font-size: 0.9rem;
}

.section--warm {
  background-color: var(--color-canvas-warm);
}

/* ===== TOP TICKER ===== */
.top-ticker {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--top-ticker-height);
  z-index: 110;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF9 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Pinned brand label on the right (RTL start edge) */
.top-ticker__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  padding-inline: 0.9rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.top-ticker__label::after {
  /* soft fade from label into track so motion feels connected */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: -12px;
  width: 12px;
  background: linear-gradient(to left, rgba(255,255,255,0), #FFFFFF);
  pointer-events: none;
}

.top-ticker__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: top-ticker-pulse 1.8s ease-out infinite;
}

.top-ticker__viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  /* edge fade-outs so items appear/disappear smoothly */
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.top-ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: top-ticker-scroll 38s linear infinite;
}

.top-ticker:hover .top-ticker__track {
  animation-play-state: paused;
}

.top-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.top-ticker__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding-inline: 1rem;
  letter-spacing: 0.01em;
}

.top-ticker__item + .top-ticker__item {
  border-inline-start: 1px solid var(--color-border);
}

@keyframes top-ticker-scroll {
  from { transform: translateX(0); }
  /* In RTL flex, the duplicate group sits to the left of the first; moving
     the track rightward by 50% brings the duplicate into the original
     position, producing a seamless right-to-left reading flow. */
  to { transform: translateX(50%); }
}

@keyframes top-ticker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: var(--top-ticker-height);
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar--scrolled {
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
  line-height: 1;
}

.navbar__logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__logo-text {
  display: inline-block;
  line-height: 1;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-text-heading);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--color-text-heading);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.navbar__cta:hover {
  background: var(--color-primary-hover);
}

.navbar__cta:active {
  transform: scale(0.98);
}

.navbar__mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.navbar__mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-heading);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

/* Mobile menu is hidden by default; the @media block below shows it on small screens. */
.navbar__mobile-menu {
  display: none;
}

/* ===== HERO — FULL-BLEED AUTOPLAY VIDEO (placelaval-style) ===== */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--color-canvas);
}

.hero-visual__video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-visual__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor toward the bottom of the source so the top — which contains the
     watermark/logo on the original footage — is cropped out of view. */
  object-position: center 85%;
  display: block;
}

/* Soft overlay to ensure dark text is readable against the video */
.hero-visual__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.45) 30%,
    rgba(255, 255, 255, 0) 75%
  );
}

/* Soft bottom fade so the video blends seamlessly into the next section */
.hero-visual__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 1)   100%
  );
}

.hero-visual__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(72px + var(--top-ticker-height));
  pointer-events: none;
}

.hero-visual__content .hero__content {
  max-width: 560px;
  margin-left: auto;  /* RTL: pushes block to the right */
  margin-right: 0;
  pointer-events: auto;
}

.hero-visual__content .hero__title,
.hero-visual__content .hero__description {
  color: var(--color-text-heading);
}

.hero-visual__content .hero__badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
}

/* Legacy .hero rules retained for any non-home pages still using the old grid */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--space-4xl);
  padding-top: 72px;
}

.hero__content {
  padding: var(--space-4xl) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 1rem;
  background: var(--color-canvas-warm);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 50ch;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* ===== HERO — SCROLL-SCRUBBED VIDEO ===== */
.hero__media--video {
  /* Sticky-pin the visual while the user scrolls past the hero so the
     playhead has room to scrub through the clip. */
  position: sticky;
  top: calc(72px + var(--space-2xl));
  align-self: start;
  margin-top: var(--space-4xl); /* match .hero__content top padding so they align */
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--color-canvas-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero__media--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Hint the browser this is a continuously updating layer */
  will-change: transform;
  transform: translateZ(0);
}

@media (max-width: 1024px) {
  .hero__media--video {
    position: relative;
    top: auto;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

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

.btn--secondary:hover {
  border-color: var(--color-border-hover);
  background: var(--color-canvas-warm);
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.stat:hover {
  transform: scale(1.04);
}

.stat__number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

/* ===== BENTO GRID ===== */
.bento {
  display: grid;
  gap: var(--space-lg);
}

.bento--services {
  grid-template-columns: 5fr 3fr;
  grid-template-rows: auto auto;
}

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

.bento__card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition:
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento__card:hover {
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

.bento__card--featured {
  grid-row: span 2;
  min-height: 620px;
}

.bento__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.bento__card-icon--blue { background: var(--color-accent-blue-bg); color: var(--color-accent-blue-text); }
.bento__card-icon--yellow { background: var(--color-accent-yellow-bg); color: var(--color-accent-yellow-text); }
.bento__card-icon--green { background: var(--color-accent-green-bg); color: var(--color-accent-green-text); }
.bento__card-icon--red { background: var(--color-accent-red-bg); color: var(--color-accent-red-text); }

.bento__card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.bento__card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Photo-backed bento variant — used on service cards with a background image.
   The image is set inline via `style="--bento-photo: url(/...)"`. A dark gradient
   overlay keeps the text readable, and the content is forced to white. */
.bento__card--photo {
  background-image:
    linear-gradient(135deg, rgba(18, 22, 26, 0.82) 0%, rgba(18, 22, 26, 0.55) 55%, rgba(18, 22, 26, 0.78) 100%),
    var(--bento-photo);
  background-size: cover;
  background-position: center;
  border-color: transparent;
  color: #fff;
  transition:
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    background-size var(--duration-slow) var(--ease-out-expo);
}

.bento__card--photo:hover {
  background-size: 108%;
  box-shadow: var(--shadow-md);
}

.bento__card--photo .bento__card-title,
.bento__card--photo .bento__card-desc {
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bento__card--photo .bento__card-desc {
  color: rgba(255, 255, 255, 0.88);
}

/* Icon stays on its colored chip but gets a subtle ring so it reads on darker bg */
.bento__card--photo .bento__card-icon {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Inline secondary button on the featured photo card needs a translucent look */
.bento__card--photo .btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bento__card--photo .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Video-backed card variant used in services overview */
.bento__card--video {
  background: #1a1a1a;
  border-color: transparent;
  color: #fff;
}

.bento__card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Frame slightly above true centre so subjects (fire extinguishers, people)
     don't get clipped at the top by the card's aspect ratio */
  object-position: center 38%;
  z-index: 0;
}

/* Single smooth bottom scrim — no banding, keeps ~60% of the video clean */
.bento__card-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8, 10, 12, 0.88) 0%,
    rgba(8, 10, 12, 0.78) 18%,
    rgba(8, 10, 12, 0.55) 34%,
    rgba(8, 10, 12, 0.2) 50%,
    rgba(8, 10, 12, 0) 70%
  );
  pointer-events: none;
}

.bento__card--video .bento__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  /* Push the entire text block to the bottom so the top half of the video
     stays unobstructed. The gradient scrim sits directly behind it. */
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Neutralise the inline `margin-top: auto` on the CTA wrapper div so it stays
   adjacent to the description instead of floating to the very top of the flex
   container (which would leave the title/desc outside the gradient scrim). */
.bento__card--video .bento__card-content > div:last-child {
  margin-top: 0.9rem !important;
  padding-top: 0 !important;
}

.bento__card--video .bento__card-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.bento__card--video .bento__card-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 46ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* On video-backed cards we hide the decorative icon so the footage is the
   hero of the card — text block alone handles identification. */
.bento__card--video .bento__card-icon {
  display: none;
}

.bento__card--video .btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bento__card--video .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Slightly shorter variant to match smaller service cards */
.bento__card--compact {
  min-height: 390px;
  padding: var(--space-xl);
}

/* Keep more useful area visible in cleaning video card */
#service-environmental .bento__card-video-bg {
  display: none;
}

#service-environmental .bento__card-video-focus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}

#service-environmental .bento__card-video-overlay {
  z-index: 1;
}

#service-environmental .bento__card-content {
  z-index: 2;
}

@media (max-width: 768px) {
  .bento__card--compact {
    min-height: 320px;
  }
}

/* ===== SERVICES PAGE ===== */
.service-category {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.service-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.service-category__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.service-category--open .service-category__toggle {
  transform: rotate(45deg);
}

.service-category__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out-expo), opacity var(--duration-slow) var(--ease-out-expo);
  opacity: 0;
}

.service-category--open .service-category__list {
  padding-top: var(--space-md);
  max-height: 2000px;
  opacity: 1;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: 0.75rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-fast) ease;
}

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

.service-item:hover {
  background: var(--color-surface);
}

.service-item__number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
  min-width: 28px;
  padding-top: 2px;
}

.service-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== ABOUT VISUAL CARD (replaces a hero photo on the about block) ===== */
.about-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--color-canvas-warm) 0%, var(--color-canvas) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  /* Subtle decorative angled accent in the corner */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at top left, var(--color-accent-blue-bg) 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.about-visual__year {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.about-visual__year-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

.about-visual__year-number {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.about-visual__divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
}

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

.about-visual__stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.about-visual__stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.about-visual__caption {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-right: 3px solid var(--color-text-heading);
  padding-right: var(--space-md);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ===== ABOUT IMAGE ===== */
.about-image-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  height: 100%;
  min-height: 360px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

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


.about__label {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-blue-bg);
  color: var(--color-accent-blue-text);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.values-row {
  display: grid;
  gap: var(--space-lg);
}

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

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

.value-card {
  padding: var(--space-2xl);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 3px;
  background: var(--color-text-heading);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card h3 {
  letter-spacing: -0.015em;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4xl);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-arabic);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  direction: rtl;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-text-heading);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

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

.form-input.error {
  border-color: var(--color-accent-red-text);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-accent-red-text);
  margin-top: var(--space-xs);
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info-item h4 {
  color: var(--color-text-heading);
  letter-spacing: 0.01em;
  font-weight: 600;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-canvas);
  color: var(--color-text-heading);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-canvas-warm);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  max-width: 35ch;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-heading);
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast) ease;
}

.footer__link:hover {
  color: var(--color-text-heading);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee__track {
  display: flex;
  gap: var(--space-4xl);
  animation: marquee-scroll 30s linear infinite;
}

.marquee__item {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .top-ticker__track {
    animation: none;
  }
  .top-ticker__label-dot {
    animation: none;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 760px;
}

.section-header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__label {
  display: inline-flex;
  padding: 0.3125rem 0.875rem;
  background: var(--color-canvas-warm);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.section-header__title {
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
  padding-right: var(--space-lg);
  border-right: 3px solid var(--color-text-heading);
}

.section-header__desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 58ch;
}

/* ===== FORM ROW ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ============================================================================
   COVERAGE & CLIENTS — editorial section
   ============================================================================
   A single vertical flow: header → stats strip → map → logo wall.
   Logos are normalized to grayscale at a calm baseline opacity so the
   collective roster is the message, not each brand's color identity. */

/* Keep the section header aligned the same way as every other section
   (RTL: anchored to the right with the small accent bar) — no centering. */

/* --- Stats strip ------------------------------------------------------- */
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-2xl) 0 var(--space-2xl);
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.coverage-stat {
  background: var(--color-canvas);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.coverage-stat__value {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1;
  margin: 0;
}

.coverage-stat__label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  order: 2;
}

.coverage-stat__value {
  order: 1;
}

/* --- Map wrap with overlaid chips ------------------------------------- */
.coverage-map-wrap {
  position: relative;
  margin-top: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.coverage-map {
  width: 100%;
  height: clamp(360px, 50vw, 520px);
  background: var(--color-canvas-warm);
}

.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-canvas);
  border-top: 1px solid var(--color-border);
}

.coverage-chip {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-canvas-warm);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-expo),
    color var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.coverage-chip:hover {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: #fff;
}

.coverage-chip:active {
  transform: translateY(1px);
}

.coverage-chip.is-active {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: #fff;
}

/* --- Custom Leaflet pin + popup --------------------------------------- */
.coverage-pin {
  width: 28px;
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
  transform-origin: 50% 100%;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.coverage-pin svg {
  width: 100%;
  height: 100%;
}

.coverage-pin.is-active {
  transform: scale(1.18);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  padding: 0.15rem 0.25rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid var(--color-border);
}

.leaflet-popup-content {
  margin: 0.6rem 0.85rem !important;
  font: 600 0.9rem/1.35 inherit !important;
  color: var(--color-text-primary) !important;
}

.leaflet-popup-content small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
}

.leaflet-container {
  font-family: inherit !important;
  background: var(--color-canvas-warm) !important;
}

/* Dim the attribution slightly so it doesn't fight with the editorial look */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.78) !important;
  font-size: 10px !important;
  color: var(--color-text-secondary) !important;
}

/* Permanent Arabic city labels next to each pin */
.leaflet-tooltip.coverage-label {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 8px;
  font: 600 0.78rem/1.3 inherit;
  color: var(--color-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
/* Hide the little arrow Leaflet adds — cleaner editorial look */
.leaflet-tooltip.coverage-label::before { display: none; }

/* --- Logo wall — flat, grayscale, color on hover ----------------------- */
.client-wall {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.client-wall__header {
  margin-bottom: var(--space-xl);
  /* Anchor to the start (right in RTL) so it matches every other section
     header on the page — including the small accent bar that the
     `.section-header__label` brings with it. */
}

.client-wall__title {
  margin: var(--space-sm) 0 0.65rem;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  max-width: 38ch;
}

.client-wall__desc {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 60ch;
}

.client-wall__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* Hair-line separators between cells without explicit borders on items */
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.client-wall__item {
  background: var(--color-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  min-height: 110px;
  transition: background var(--duration-normal) var(--ease-out-expo);
}

.client-wall__item:hover {
  background: var(--color-canvas-warm);
}

.client-wall__item img {
  max-width: 78%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Full color — each brand reads in its native identity. */
  opacity: 0.92;
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.client-wall__item:hover img,
.client-wall__item:focus-within img {
  opacity: 1;
  transform: scale(1.04);
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .coverage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-wall__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .coverage-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coverage-stat {
    padding: var(--space-lg) var(--space-md);
  }
  .client-wall__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .client-wall__item {
    padding: 1.1rem 0.85rem;
    min-height: 92px;
  }
  .coverage-chips {
    padding: 0.85rem 0.85rem;
  }
}

/* ===== BUTTON LOADING STATE ===== */
.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: var(--space-5xl) var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.cta-section::before,
.cta-section::after {
  /* Hairline decorative marks framing the CTA, editorial print feel */
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--color-border);
}

.cta-section::before { right: 0; }
.cta-section::after  { left: 0; }

.cta-section h2 {
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

.cta-section p {
  margin: 0 auto var(--space-2xl);
  max-width: 52ch;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .cta-section::before,
  .cta-section::after { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }

  .hero__media {
    order: -1;
    max-height: 400px;
  }

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

  .about-image {
    aspect-ratio: 16/9;
    height: auto;
  }

  .about-image-wrapper {
    height: auto;
  }

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

  .bento__card--featured {
    grid-row: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 1024px) {
  .hero-visual__content .hero__content {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 4rem;
    --space-4xl: 3rem;
    --top-ticker-height: 24px;
  }

  body {
    font-size: 1rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero-visual {
    min-height: 100dvh;
  }

  .navbar__links {
    display: none;
  }

  .navbar__mobile-toggle {
    display: flex;
  }

  .navbar__mobile-menu {
    position: fixed;
    top: calc(72px + var(--top-ticker-height));
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--color-canvas);
    padding: var(--space-xl);
    display: none;
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 99;
  }

  .top-ticker__track {
    animation-duration: 28s;
  }

  .top-ticker__label {
    padding-inline: 0.65rem;
    font-size: 0.64rem;
  }

  .top-ticker__viewport {
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }

  .top-ticker__item {
    font-size: 0.66rem;
    padding-inline: 0.7rem;
  }

  .navbar__mobile-menu--open {
    display: flex;
  }

  .navbar__mobile-menu .navbar__link {
    font-size: 1.25rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .stat,
  .stat:first-child,
  .stat:last-child {
    padding: 0;
    border-left: none;
  }

  .values-row--normal,
  .values-row--reverse {
    grid-template-columns: 1fr;
  }

  .service-category {
    padding: var(--space-md) 0;
  }

  .service-category__list {
    padding-top: 0;
  }

  .service-category--open .service-category__list {
    padding-top: var(--space-sm);
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .client-wall__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
