/* ==========================================================================
   شركة خطاب للطاقة الشمسية والخدمات الزراعية
   style.css — Mobile first (360px) → 768px → 1024px
   ========================================================================== */

/* ---------- 1. Tokens (palette taken from the logo) ---------- */
:root {
  /* Brand — logo blue (solar panel) */
  --blue-50:  #e8f7fe;
  --blue-100: #c4ecfc;
  --blue-300: #5cc4ec;
  --blue:     #29abe2;
  --blue-600: #1490c6;
  --blue-700: #0e719c;
  --blue-900: #0a4c6b;

  /* Brand — logo green (leaf) */
  --green-50:  #f0fae6;
  --green-100: #dcf3c5;
  --green:     #7ac943;
  --green-600: #63ad31;
  --green-700: #4c8724;

  /* Neutrals — logo bracket charcoal */
  --ink:     #1c2529;
  --ink-soft:#38474f;
  --muted:   #64757e;
  --line:    #e3e9ec;
  --surface: #ffffff;
  --bg:      #f5f8fa;
  --bg-alt:  #eef4f7;

  --white: #ffffff;
  --whatsapp: #25d366;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --grad-blue:  linear-gradient(135deg, var(--blue-700) 0%, var(--blue) 100%);
  --grad-dark:  linear-gradient(150deg, #0d2731 0%, #123c4c 55%, #0a4c6b 100%);

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(28, 37, 41, .06), 0 2px 6px rgba(28, 37, 41, .05);
  --sh-md: 0 4px 12px rgba(28, 37, 41, .08), 0 10px 26px rgba(28, 37, 41, .06);
  --sh-lg: 0 10px 24px rgba(28, 37, 41, .10), 0 24px 56px rgba(28, 37, 41, .10);

  /* Radii */
  --r-sm: .5rem;
  --r:    .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 999px;

  /* Layout */
  --wrap: 75rem;          /* 1200px */
  --gutter: 1.125rem;
  --header-h: 4.25rem;

  --tap: 2.75rem;         /* 44px minimum touch target */

  --ease: cubic-bezier(.4, .14, .3, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* The closed off-canvas menu sits outside the viewport — clip it so it can
     never create horizontal scroll. `clip` is used over `hidden` because
     `hidden` would turn <html> into a scroll container and break the sticky
     header; `hidden` stays as the fallback for older engines. */
  overflow-x: hidden;
  overflow-x: clip;
  /* Reserve the scrollbar gutter permanently. Without this, locking the page
     removes the scrollbar, the content reflows wider and scroll anchoring
     nudges the position by ~30px as the drawer opens. Side-agnostic, so it is
     correct for RTL where the scrollbar sits on the left. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", "Cairo", "Dubai", Arial, sans-serif;
  font-size: clamp(.95rem, .9rem + .25vw, 1.0625rem);
  line-height: 1.85;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;         /* hard stop against any horizontal scroll */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 800;
}
h1 { font-size: clamp(1.7rem, 1.25rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); }
h4 { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }

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

a { color: var(--blue-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-600); }

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

ul, ol { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
li { margin-bottom: .4rem; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green-100); color: var(--ink); }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }

.section--dark {
  background: var(--grad-dark);
  color: #cfe2ea;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue-700);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r) var(--r);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* Section heading block */
.s-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.s-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: .4rem .9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.section--dark .eyebrow {
  color: var(--blue-100);
  background: rgba(41, 171, 226, .16);
  border-color: rgba(41, 171, 226, .32);
}

.lead {
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: var(--muted);
}
.section--dark .lead { color: #a9c6d3; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tap);
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.btn--primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 113, 156, .3);
}
.btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(14, 113, 156, .38); transform: translateY(-2px); }

.btn--green {
  background: linear-gradient(135deg, var(--green-600), var(--green));
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 173, 49, .3);
}
.btn--green:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(99, 173, 49, .38); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); background: var(--blue-50); }

.btn--light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--blue-700); }

.btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .32); }
.btn--wa:hover { color: #fff; transform: translateY(-2px); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- 5. Header + navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-md); }

.topbar {
  display: none;
  background: var(--grad-blue);
  color: #dff2fb;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--green-100); }
.topbar__group { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: var(--tap);
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: .55rem;
  background: #fff;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--blue-700);
  letter-spacing: -.01em;
}
.brand__tag {
  font-size: .68rem;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: .02em;
}

/* Hamburger button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
  cursor: pointer;
  flex: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--blue-300); background: var(--blue-50); }

.nav-toggle__box {
  position: relative;
  width: 1.375rem;
  height: 1rem;
  display: block;
}
.nav-toggle__box span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: .4375rem; }
.nav-toggle__box span:nth-child(3) { top: .875rem; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { top: .4375rem; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { top: .4375rem; transform: rotate(-45deg); }

/* Desktop nav list — hidden on mobile, where the drawer takes over.
   Two-class selector so it outranks the later `.nav-list { display: flex }`. */
.nav-list.nav-list--desktop { display: none; }

/* Mobile off-canvas drawer.
   IMPORTANT: this element is a direct child of <body>, never of <header>.
   The header is `position: sticky` + `z-index` + `backdrop-filter`, and
   `backdrop-filter` makes an element the containing block for fixed-position
   descendants — nesting the drawer inside it anchored the drawer to the header
   instead of the viewport, so it slid away with the page. */
.nav-panel {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  z-index: 130;
  width: min(20rem, 86vw);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;              /* panel scrolls if taller than the screen */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--surface);
  box-shadow: -18px 0 44px rgba(12, 32, 41, .18);
  padding: 1.1rem 1.1rem 2.5rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s var(--ease);
}
html[dir="rtl"] .nav-panel { transform: translateX(-100%); }

.nav-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}
html[dir="rtl"] .nav-panel.is-open { transform: translateX(0); }

.nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.nav-panel__title { font-weight: 900; color: var(--blue-700); font-size: 1rem; }

.nav-close {
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-close:hover { background: var(--bg-alt); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: var(--tap);
  padding: .65rem .85rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-list a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: inset 3px 0 0 var(--green);
}
html[dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--green); }

.nav-panel__cta {
  margin-top: 1.25rem;
  display: grid;
  gap: .6rem;
}
.nav-panel__meta {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.nav-panel__meta a { display: block; min-height: var(--tap); line-height: var(--tap); font-weight: 700; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  /* Backdrop and drawer are now siblings at the root, so plain z-index ordering
     applies: header (100) < backdrop (120) < drawer (130). */
  z-index: 120;
  background: rgba(10, 30, 40, .5);
  backdrop-filter: blur(2px);
  touch-action: none;             /* no scroll chaining to the page behind */
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* Desktop CTA hidden on mobile */
.nav__cta { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(30rem, 24rem + 26vw, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(8, 28, 38, .90) 0%, rgba(8, 28, 38, .72) 45%, rgba(8, 28, 38, .40) 100%),
    linear-gradient(to top, rgba(8, 28, 38, .78) 0%, rgba(8, 28, 38, 0) 55%);
}

.hero__inner { padding-block: clamp(3.5rem, 3rem + 6vw, 6rem); width: 100%; }
.hero__content { max-width: 42rem; }

.hero h1 { color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero__tagline {
  display: block;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback for browsers without background-clip:text */
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-size: clamp(1rem, .95rem + .5vw, 1.25rem);
  color: #d3e6ef;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}
.hero .btn-row { margin-bottom: 2rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__facts li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.hero__facts li::before { content: "✓"; color: var(--green); font-weight: 900; }

.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
html[dir="rtl"] .hero__dots { transform: translateX(50%); }
.hero__dot {
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero__dot::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .45);
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.hero__dot[aria-selected="true"]::after { width: 1.6rem; background: var(--green); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 2rem + 6vw, 5.5rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to left, rgba(8, 28, 38, .92) 0%, rgba(8, 28, 38, .74) 50%, rgba(8, 28, 38, .5) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #cfe2ea; max-width: 40rem; }

.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .82rem;
  color: #a9c6d3;
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: #cfe2ea; }
.crumbs a:hover { color: var(--green); }

/* ---------- 7. Generic grids & cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-100); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--blue-50);
  color: var(--blue-700);
}
.card__icon svg { width: 1.65rem; height: 1.65rem; fill: currentColor; }
.card--green .card__icon { background: var(--green-50); color: var(--green-700); }

.card__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: .92rem;
}
.card__list li {
  position: relative;
  padding-inline-start: 1.35rem;
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--green);
}

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--sh-sm); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.stat__num .plus { color: var(--green); }
.stat__label { font-size: .8rem; color: #a9c6d3; font-weight: 600; }

/* Split (image + text) */
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}
.split__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
  order: -1;
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__badge {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  padding: .7rem 1rem;
  box-shadow: var(--sh-md);
  font-weight: 800;
  color: var(--blue-700);
  font-size: .85rem;
  line-height: 1.4;
}
.split__badge small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }

/* Feature list with check icons */
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .65rem; }
.checks li {
  position: relative;
  padding-inline-start: 2rem;
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}
.checks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: .18em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 900;
}
.section--dark .checks li { color: #cfe2ea; }
.section--dark .checks li::before { background: rgba(122, 201, 67, .18); color: var(--green); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 22rem; font-size: .92rem; }
th, td { padding: .8rem 1rem; text-align: start; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-alt); color: var(--ink); font-weight: 800; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--blue-50); }

/* ---------- 8. Services ---------- */
.svc {
  display: grid;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s var(--ease);
}
.svc:hover { box-shadow: var(--sh-md); }
.svc__media { position: relative; }
.svc__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc__num {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--grad-blue);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--sh-md);
}
.svc__body { padding: 0 1.35rem 1.75rem; }
.svc__body h3 { color: var(--blue-700); }

/* ---------- 9. Shop / products ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.filter {
  min-height: var(--tap);
  padding: .55rem 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--blue-300); color: var(--blue-700); }
.filter.is-active {
  background: var(--grad-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px rgba(14, 113, 156, .28);
}

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

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.product.is-hidden { display: none; }

.product__media { position: relative; overflow: hidden; background: var(--bg-alt); }
.product__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product:hover .product__media img { transform: scale(1.06); }

.product__tag {
  position: absolute;
  top: .7rem;
  inset-inline-start: .7rem;
  background: rgba(255, 255, 255, .93);
  color: var(--blue-700);
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}

.product__body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.product__desc { font-size: .88rem; color: var(--muted); margin-bottom: .85rem; }

.specs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.specs li {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
}

.product .btn { margin-top: auto; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
}

/* ---------- 10. Gallery (Facebook reels) ---------- */
.reels {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.reel {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.reel:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.reel__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d2731;
  cursor: pointer;
  overflow: hidden;
}
.reel__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.reel__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 38, .45), rgba(8, 28, 38, .05));
  pointer-events: none;
}
.reel:hover .reel__thumb img { transform: scale(1.07); }

.reel__play {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #e8402a;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  z-index: 2;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
  pointer-events: none;
}
html[dir="rtl"] .reel__play { transform: translate(50%, -50%); }
.reel:hover .reel__play { transform: translate(50%, -50%) scale(1.1); background: #f0523c; }
.reel__play svg { width: 1.5rem; height: 1.5rem; fill: #fff; margin-inline-start: .15rem; }

.reel__body { padding: 1rem 1.1rem 1.2rem; text-align: center; }
.reel__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-700);
  margin-bottom: .5rem;
}
.reel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: var(--tap);
  font-size: .88rem;
  font-weight: 800;
  color: #e8402a;
}
.reel__link:hover { color: #b82d1c; }
.reel__link svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

/* Reel lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 20, 27, .88);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }

.lightbox__dialog {
  position: relative;
  width: min(30rem, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1rem;
}
.lightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 68dvh;
  background: #0d2731;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: .85rem;
}
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: .75rem;
}
.lightbox__close {
  position: absolute;
  top: .5rem;
  inset-inline-end: .5rem;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: #e8402a; }

/* ---------- 11. Projects ---------- */
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--sh-sm);
  height: 100%;
}
.project__head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.project__kw {
  flex: none;
  min-width: 3.5rem;
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
  text-align: center;
  line-height: 1.2;
}
.project__kw small { display: block; font-size: .62rem; font-weight: 700; opacity: .9; }
.project__title { font-size: 1.02rem; margin: 0 0 .15rem; }
.project__place { font-size: .82rem; color: var(--muted); }

.spec-rows { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.spec-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin: 0;
  font-size: .88rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.spec-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-rows dt, .spec-rows .k { color: var(--muted); font-weight: 600; }
.spec-rows .v { color: var(--ink); font-weight: 800; text-align: end; }

/* ---------- 12. Brands strip ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.brand-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem .75rem;
  text-align: center;
  font-weight: 900;
  color: var(--blue-700);
  font-size: .95rem;
  box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.brand-chip:hover { transform: translateY(-3px); border-color: var(--blue-300); }
.brand-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }

/* ---------- 13. Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--sh-sm);
  height: 100%;
}
.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: .9rem;
}
.contact-card__icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }

.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.phone-list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 800;
  color: var(--ink);
  direction: ltr;
  justify-content: flex-end;
  letter-spacing: .02em;
}
html[dir="rtl"] .phone-list a { justify-content: flex-start; }
.phone-list a:hover { color: var(--blue-700); }

.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  background: var(--bg-alt);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Form */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 171, 226, .18);
}
.field .err { font-size: .8rem; color: #d23b2a; font-weight: 700; min-height: 1.1rem; }
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: #d23b2a; }

.form-note {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  font-weight: 700;
  font-size: .9rem;
}
.form-note[hidden] { display: none; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: var(--grad-blue);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1.25rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  text-align: center;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: rgba(122, 201, 67, .25);
  filter: blur(60px);
  top: -8rem;
  inset-inline-start: -6rem;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeff9; max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- 15. Footer ---------- */
.footer {
  background: var(--grad-dark);
  color: #a9c6d3;
  padding-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  font-size: .92rem;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: #cfe2ea; }
.footer a:hover { color: var(--green); }

.footer__grid { display: grid; gap: 2rem; }

.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer__brand img {
  width: 3.25rem; height: 3.25rem;
  border-radius: .6rem;
  background: #fff;
  object-fit: contain;
  flex: none;
}
.footer__brand strong { color: #fff; font-size: 1.05rem; display: block; line-height: 1.3; }
.footer__brand span { color: var(--green); font-size: .78rem; font-weight: 700; }

.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer__list a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer__list li { margin: 0; }

.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__contact li { margin: 0; display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 1.05rem; height: 1.05rem; fill: var(--green); flex: none; margin-top: .45em; }
.footer__contact a.tel {
  direction: ltr;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);      /* 44px touch target */
  min-width: 6.5rem;
}

.footer__bottom {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.25rem 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: #8bb0c0;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.footer__powered { font-weight: 700; color: #cfe2ea; }
.footer__powered strong { color: var(--green); }
.footer__copy { margin-top: .35rem; font-size: .8rem; }

/* ---------- 16. Developer widget (bottom-left) ---------- */
/* Lives inside the footer bar — it does NOT float over the rest of the site.
   Only the contact card floats, and only once the button is clicked. */
.devbar {
  position: relative;                   /* anchor for the pop-up card */
  direction: ltr;                       /* contents are English */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.dev-card {
  /* Floats above the button, out of flow, so opening it never shifts the footer */
  position: absolute;
  bottom: calc(100% + .6rem);
  left: 50%;
  z-index: 20;
  width: 17.5rem;
  max-width: calc(100vw - 2.5rem);
  background: #17181c;
  border: 1px solid #2c2e35;
  border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color: #f2f3f5;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(.75rem) scale(.96);
  transform-origin: bottom center;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.dev-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dev-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.dev-card__name { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.3; }
.dev-card__role {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #e08a2e;
  text-transform: uppercase;
  margin-top: .1rem;
}
.dev-card__avatar {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: .55rem;
  background: #e08a2e;
  color: #17181c;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .95rem;
  flex: none;
  letter-spacing: .02em;
}
.dev-card__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: var(--tap);
  border: 1px solid #34363e;
  border-radius: .75rem;
  background: #1f2026;
  color: #f2f3f5;
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.dev-card__wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.dev-card__wa svg { width: 1.15rem; height: 1.15rem; fill: var(--whatsapp); flex: none; transition: fill .2s var(--ease); }
.dev-card__wa:hover svg { fill: #fff; }
.dev-card__num { display: block; text-align: center; margin-top: .6rem; font-size: .82rem; color: #9a9da6; direction: ltr; }

.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: var(--tap);
  padding: .55rem .9rem;
  border: 1px solid #2c2e35;
  border-radius: .75rem;
  background: #17181c;
  color: #9a9da6;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.dev-btn:hover { border-color: #e08a2e; transform: translateY(-2px); }
.dev-btn strong {
  color: #fff;
  font-weight: 800;
  font-style: italic;
  font-size: .88rem;
}
.dev-btn .code { color: #e08a2e; font-weight: 900; letter-spacing: -.05em; }

/* ---------- 17. Floating WhatsApp (company) ---------- */
.wa-float {
  position: fixed;
  right: .85rem;          /* physical, so it always sits opposite the dev widget */
  bottom: .85rem;
  z-index: 90;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: #fff; }

/* ---------- 18. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   19. Scroll lock (set by script.js while the mobile drawer is open)
   Plain `overflow: hidden` — deliberately NOT `position: fixed` on <body>.
   The fixed-body trick shifts the whole document up by the scroll offset,
   which drags the sticky header (and anything anchored to it) off-screen.
   Locking overflow freezes the page in place with no jump and no reflow.
   Scoped to mobile so it can never strand the desktop layout.
   ========================================================================== */
@media (max-width: 47.999em) {
  /* On <html> ONLY. Overflow set here propagates to the viewport and <html>
     itself stays `visible`, so the sticky header keeps sticking. Adding it to
     <body> too would turn <body> into the scroll container and the header
     would stick to the document top instead of the viewport. */
  html.is-locked {
    overflow: hidden;
    touch-action: none;
  }
}

/* ==========================================================================
   20. Breakpoint: 768px and up (tablet)
   ========================================================================== */
@media (min-width: 48em) {
  :root { --gutter: 1.75rem; --header-h: 4.75rem; }

  .topbar { display: block; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 1.25rem; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }

  .split { grid-template-columns: 1fr 1fr; }
  .split__media { order: 0; }
  .split--flip .split__media { order: 1; }

  .svc { grid-template-columns: 18rem 1fr; align-items: center; gap: 0; }
  .svc__media { height: 100%; }
  .svc__media img { height: 100%; aspect-ratio: auto; min-height: 15rem; }
  .svc__body { padding: 1.75rem; }
  .svc:nth-child(even) .svc__media { order: 2; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; }

  .wa-float { right: 1.25rem; bottom: 1.25rem; width: 3.5rem; height: 3.5rem; }

  /* --- Desktop navigation takes over: hamburger and drawer disappear --- */
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }
  .nav-panel { display: none !important; }

  .nav-list.nav-list--desktop {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .nav-list { flex-direction: row; align-items: center; gap: .15rem; }
  .nav-list a {
    min-height: 2.5rem;
    padding: .5rem .7rem;
    font-size: .92rem;
    border-radius: var(--r-sm);
    position: relative;
  }
  .nav-list a[aria-current="page"] { background: transparent; box-shadow: none !important; color: var(--blue-700); }
  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: .7rem;
    bottom: .1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
  }

  .nav__cta { display: inline-flex; flex: none; }

  .lightbox__dialog { width: min(26rem, 100%); padding: 1.25rem; }
}

/* ==========================================================================
   21. Breakpoint: 1024px and up (desktop)
   ========================================================================== */
@media (min-width: 64em) {
  :root { --gutter: 2.25rem; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 1.5rem; }

  .svc { grid-template-columns: 24rem 1fr; }
  .svc__body { padding: 2.25rem; }

  .products { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; }
  .reels { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; }

  .nav-list a { padding: .5rem 1rem; font-size: .95rem; }

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

  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
  .map-wrap { aspect-ratio: 16 / 11; }

  /* Footer bar: dev button pinned left, "Powered by" centred.
     Only from 1024px up — at 768 the dev button is wider than its 1fr track,
     which forces the columns out of balance and shifts the centre off-axis.
     Below this the bar stays stacked and centred. */
  .footer__bottom {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  /* Column 3 + `justify-self: left`: on an RTL grid, column 1 is the RIGHT-hand
     one and `start` resolves to the right edge — both would flip the button to
     the wrong side. Column 3 is visually leftmost here, and `left` is physical. */
  .footer__bottom .devbar { grid-column: 3; grid-row: 1; justify-self: left; }
  .footer__center { grid-column: 2; grid-row: 1; }

  /* Card opens left-aligned to the button instead of centred on it */
  .dev-card {
    left: 0;
    transform: translateX(0) translateY(.75rem) scale(.96);
    transform-origin: bottom left;
  }
  .dev-card.is-open { transform: translateX(0) translateY(0) scale(1); }
}
