/* ==========================================================================
   Canal Solar — قنال سولار
   Pure CSS. Mobile-first (360px base) → 768px → 1024px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (palette taken from the logo)
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from logo.jpg */
  --green: #0b634b;
  --green-dark: #074536;
  --green-deep: #042c22;
  --green-light: #0e7d5f;
  --green-soft: #e6f2ee;
  --orange: #f96f00;
  --orange-dark: #d55f00;
  --orange-soft: #fff1e4;

  /* Neutrals */
  --ink: #14231e;
  --body: #43544e;
  --muted: #6b7d77;
  --line: #e2eae7;
  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --white: #ffffff;

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

  /* Elevation */
  --sh-1: 0 1px 2px rgba(4, 44, 34, .06), 0 2px 8px rgba(4, 44, 34, .06);
  --sh-2: 0 4px 16px rgba(4, 44, 34, .10);
  --sh-3: 0 12px 36px rgba(4, 44, 34, .16);

  /* Layout */
  --header-h: 4rem;
  --gap: 1rem;
  --maxw: 75rem;

  /* Motion */
  --t: .28s cubic-bezier(.4, 0, .2, 1);
}

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

* { margin: 0; padding: 0; }

/* The UA rule for [hidden] is display:none, but ANY author `display` rule
   outranks it (e.g. .product{display:flex}). Enforce it so the JS filters,
   which toggle the hidden attribute, actually hide things. */
[hidden] { display: none !important; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", "Noto Kufi Arabic", "Cairo", Tahoma, "Traditional Arabic", Arial, sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.85;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: var(--header-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

button { cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 1.15rem + 2.7vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem); }

p { overflow-wrap: break-word; }

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

::selection { background: var(--orange); color: #fff; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -6rem;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  transition: top var(--t);
}
.skip-link:focus { top: .75rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.section { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2rem, 1rem + 3.5vw, 3.5rem); }

.stack > * + * { margin-top: 1rem; }

.grid {
  display: grid;
  gap: clamp(1rem, .6rem + 1.4vw, 1.75rem);
  grid-template-columns: 1fr;
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--orange);
  background: var(--orange-soft);
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: .85rem;
}

.section-head p {
  margin-top: .75rem;
  color: var(--muted);
  font-size: clamp(.95rem, .9rem + .2vw, 1.0625rem);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--body);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.875rem;      /* 46px touch target */
  padding: .7rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .9875rem;
  text-align: center;
  line-height: 1.3;
  transition: transform var(--t), background-color var(--t), box-shadow var(--t), color var(--t);
  will-change: transform;
}
.btn svg { flex: none; width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(249, 111, 0, .32); }
.btn--primary:hover { background: var(--orange-dark); }

.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(11, 99, 75, .28); }
.btn--green:hover { background: var(--green-dark); }

.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }

.btn--outline { color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

.btn--wa { background: #25d366; color: #063; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1fbe5b; color: #042; }

.btn--block { width: 100%; }
.btn--sm { min-height: 2.75rem; padding: .55rem 1rem; font-size: .9rem; }

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

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 90;
  height: var(--header-h);
  /* NOTE: no backdrop-filter / transform / filter here on purpose — any of them
     would make the header a containing block for the fixed nav drawer inside it
     and clip the drawer to the header's height. */
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: var(--sh-2); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  flex: 1;
  min-height: 2.875rem;   /* keeps the logo link a valid touch target */
}
.brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex: none;
}
.brand-text { min-width: 0; line-height: 1.15; }
.brand-name {
  display: block;
  font-weight: 800;
  color: var(--green);
  font-size: clamp(.95rem, .9rem + .3vw, 1.15rem);
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: .6875rem;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger button */
.nav-toggle {
  flex: none;
  width: 2.875rem;
  height: 2.875rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  color: var(--green);
  transition: background var(--t);
}
.nav-toggle:hover { background: #d5e9e2; }

.nav-toggle .bars {
  position: relative;
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background var(--t);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), top var(--t), bottom var(--t);
}
.nav-toggle .bars::before { top: -.4375rem; }
.nav-toggle .bars::after { bottom: -.4375rem; }

.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { bottom: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.nav {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  right: 0;
  width: min(86vw, 20rem);
  max-width: 100%;
  background: #fff;
  border-inline-start: 1px solid var(--line);
  box-shadow: var(--sh-3);
  padding: 1.25rem 1.25rem 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--t), visibility var(--t);
  z-index: 95;
}
.nav.is-open { transform: translateX(0); visibility: visible; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 2.875rem;
  padding: .6rem .9rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--ink);
  transition: background var(--t), color var(--t);
}
.nav-list a:hover { background: var(--green-soft); color: var(--green); }
.nav-list a.is-active {
  background: var(--green);
  color: #fff;
}

.nav-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .6rem;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--green);
  direction: ltr;
  justify-content: center;
  min-height: 2.75rem;
}

/* Overlay.
   MUST stay below .site-header's z-index (90). The drawer is a CHILD of the
   header, and the header's z-index makes it a stacking context — so the
   drawer's own z-index only ranks it inside the header. An overlay above 90
   would paint over the drawer and eat every tap on the nav links. */
.nav-overlay {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  bottom: 0;
  background: rgba(4, 44, 34, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 88;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* Scroll lock */
body.nav-lock {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 78vh, 44rem);
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  color: #fff;
}

.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--green-deep); }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(4, 44, 34, .92) 0%, rgba(4, 44, 34, .78) 45%, rgba(4, 44, 34, .45) 100%),
    linear-gradient(to top, rgba(4, 44, 34, .8), transparent 55%);
}

.hero-inner { max-width: 44rem; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero h1 span { color: var(--orange); }
.hero p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, .95rem + .4vw, 1.25rem);
}
.hero .btn-row { margin-top: 1.75rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.75rem;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.hero-badges svg { width: 1rem; height: 1rem; fill: var(--orange); flex: none; }

.hero-dots {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex;
  gap: .25rem;
  z-index: 3;
}
.hero-dots button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
}
.hero-dots button::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: background var(--t), width var(--t);
}
.hero-dots button[aria-current="true"]::before {
  background: var(--orange);
  width: 1.5rem;
  border-radius: var(--r-pill);
}

/* Compact page banner (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  background: var(--green-deep) center/cover no-repeat;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(4, 44, 34, .82), rgba(4, 44, 34, .9));
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .85); margin-top: .6rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { opacity: .5; }

/* --------------------------------------------------------------------------
   7. Cards & content blocks
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #cfe0da; }

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 1rem;
  flex: none;
}
.card-icon svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.card--accent .card-icon { background: var(--orange-soft); color: var(--orange); }

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card-list {
  margin-top: 1rem;
  display: grid;
  gap: .5rem;
  font-size: .925rem;
}
.card-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--body);
}
.card-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .7em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--orange);
}

.card-foot { margin-top: auto; padding-top: 1.25rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--green);
  min-height: 2.75rem;
}
.link-arrow svg { width: 1rem; height: 1rem; fill: currentColor; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(-.25rem); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
  color: var(--muted);
  font-weight: 600;
}

/* Split (image + text) */
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  position: relative;
}
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.feature-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}
.feature-mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.feature-mark svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.feature h4 { font-size: 1.0625rem; margin-bottom: .15rem; }
.feature p { font-size: .925rem; color: var(--muted); }

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: .9375rem;
}
caption {
  text-align: start;
  padding: 1rem 1.25rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
th, td {
  text-align: start;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.chip {
  min-height: 2.75rem;
  padding: .5rem 1.15rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .9rem;
  background: #fff;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--green);
}

/* --------------------------------------------------------------------------
   8. Shop
   -------------------------------------------------------------------------- */
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

.product-media {
  position: relative;
  background: var(--bg-soft);
  padding: 1rem;
}
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-tag {
  position: absolute;
  top: .75rem;
  inset-inline-start: .75rem;
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.product-body h3 { font-size: 1.125rem; }
.product-brand {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--orange);
  direction: ltr;
  text-align: start;
}
.product-body p { font-size: .9rem; color: var(--muted); }

.spec-list {
  display: grid;
  gap: .35rem;
  font-size: .875rem;
  margin-top: .25rem;
}
.spec-list li {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  color: var(--body);
}
.spec-list svg { width: .95rem; height: .95rem; fill: var(--green); flex: none; margin-top: .45em; }

.product-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: .5rem;
}

/* --------------------------------------------------------------------------
   9. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .75rem;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover { box-shadow: var(--sh-2); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption,
.gallery-item .gallery-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.75rem .75rem .6rem;
  background: linear-gradient(transparent, rgba(4, 44, 34, .88));
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  text-align: start;
}
.gallery-item[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 20, 15, .95);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-figure {
  max-width: min(100%, 60rem);
  max-height: 100%;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--r);
  object-fit: contain;
}
.lightbox figcaption {
  color: #fff;
  margin-top: .85rem;
  font-size: .9375rem;
}
.lightbox-count { color: rgba(255, 255, 255, .55); font-size: .8125rem; direction: ltr; }

.lb-btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transition: background var(--t);
}
.lb-btn:hover { background: var(--orange); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
/* RTL: "previous" sits on the right, "next" on the left */
.lb-close { top: 1rem; left: 1rem; }
.lb-prev { top: 50%; right: .5rem; transform: translateY(-50%); }
.lb-next { top: 50%; left: .5rem; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-1);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .5rem;
}
.phone-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.875rem;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--green-dark);
  font-weight: 700;
  direction: ltr;
  font-size: .9375rem;
  transition: background var(--t), color var(--t);
}
.phone-grid a:hover { background: var(--green); color: #fff; }
.phone-grid svg { width: .9rem; height: .9rem; fill: currentColor; flex: none; }

.info-row {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding-block: .875rem;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-row .feature-mark { background: var(--orange-soft); color: var(--orange); }
.info-row h4 { font-size: 1rem; margin-bottom: .1rem; }
.info-row p, .info-row a { font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
.info-row a:hover { color: var(--green); }
.ltr { direction: ltr; display: inline-block; }

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

.branch-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

/* Form */
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input,
.field textarea,
.field select {
  min-height: 2.875rem;
  padding: .65rem .9rem;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow var(--t), background var(--t);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--green);
}
.field-hint { font-size: .8125rem; color: var(--muted); }
.form-note {
  font-size: .875rem;
  color: var(--muted);
  background: var(--green-soft);
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1rem + 3.5vw, 3.25rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(249, 111, 0, .18);
  top: -8rem;
  inset-inline-start: -6rem;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: .6rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r);
  padding: .25rem;
}
.footer-brand p { margin-top: .875rem; max-width: 26rem; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .875rem;
}
.footer-col ul { display: grid; gap: .1rem; }
.footer-col a,
.footer-col li > span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--orange); }

.social-row { display: flex; gap: .5rem; margin-top: 1rem; }
.social-row a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background var(--t), transform var(--t);
}
.social-row a:hover { background: var(--orange); transform: translateY(-2px); }
.social-row svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  font-size: .875rem;
}
.footer-bottom-main { display: grid; gap: .35rem; }
.footer-bottom .powered {
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  direction: ltr;
}
.footer-bottom .powered span { color: var(--orange); }

/* --------------------------------------------------------------------------
   13. Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1rem;             /* physical right, opposite the dev dock */
  bottom: 1rem;
  z-index: 80;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

/* --------------------------------------------------------------------------
   14. Developer credit — lives in the footer, NOT fixed/floating
   -------------------------------------------------------------------------- */
.devdock {
  position: relative;      /* positioning context for the card — the card floats
                              inside the footer only, never over the whole site */
  direction: ltr;          /* content is English; also makes flex-start = left */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
  width: 100%;
}

/* The trigger pill: "developer  Hassan Mohamed  </>" */
.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border-radius: .75rem;
  background: #101915;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
  font-size: .8125rem;
  line-height: 1;
  transition: box-shadow var(--t), background var(--t);
}
.dev-btn:hover {
  background: #16221d;
  box-shadow: inset 0 0 0 1px rgba(249, 111, 0, .55);
}
.dev-btn-pre { color: rgba(255, 255, 255, .45); font-weight: 600; }
.dev-btn-name { color: #fff; font-weight: 800; font-style: italic; }
.dev-btn-icon { display: grid; place-items: center; color: var(--orange); flex: none; }
.dev-btn-icon svg { width: 1rem; height: 1rem; fill: currentColor; display: block; }

/* The revealed card — floats above the pill, inside the footer.
   Absolutely positioned so opening it overlays the footer instead of
   pushing the layout taller, and never leaves the footer. */
.dev-card {
  position: absolute;
  bottom: calc(100% + .625rem);   /* directly above the pill */
  left: 50%;
  transform: translateX(-50%);    /* centred on mobile */
  z-index: 10;
  width: min(17.5rem, 100%);
  background: #101915;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 12px 32px rgba(0, 0, 0, .45);
  padding: 1rem;
  display: grid;
  gap: .75rem;
  text-align: start;
  animation: devIn .22s ease;
}
/* opacity-only so it cannot fight the translateX used for centring */
@keyframes devIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dev-card-head { display: flex; align-items: center; gap: .75rem; }
.dev-card-id { flex: 1; min-width: 0; line-height: 1.3; }
.dev-card-id strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.dev-card-id span {
  display: block;
  margin-top: .15rem;
  color: var(--orange);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dev-avatar {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .5rem;
  background: var(--orange);
  color: #101915;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9375rem;
  letter-spacing: .02em;
}

.dev-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border-radius: .625rem;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  transition: background var(--t), box-shadow var(--t);
}
.dev-wa:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.dev-wa-icon {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.dev-wa-icon svg { width: .95rem; height: .95rem; fill: #101915; display: block; }

.dev-num {
  text-align: center;
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  letter-spacing: .06em;
}

/* Only the customer WhatsApp button floats; hide it while the drawer is open */
body.nav-lock .wa-float { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   15. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

  .brand img { width: 3rem; height: 3rem; }

  /* Full nav, no hamburger */
  .nav-toggle { display: none; }
  .nav-overlay { display: none; }

  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;   /* never animate the desktop nav in/out */
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-list { flex-direction: row; gap: 0; }
  .nav-list a {
    min-height: 2.5rem;
    padding: .45rem .5rem;
    font-size: .875rem;
    white-space: nowrap;
    border-radius: var(--r-sm);
  }
  .nav-list a.is-active { background: transparent; color: var(--green); position: relative; }
  .nav-list a.is-active::after {
    content: "";
    position: absolute;
    inset-inline: .5rem;
    bottom: .1rem;
    height: 2.5px;
    border-radius: 2px;
    background: var(--orange);
  }
  .nav-cta {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
  }
  .nav-cta .btn { white-space: nowrap; padding: .5rem .85rem; font-size: .85rem; }
  .nav-phone { display: none; }
  .brand { flex: none; min-height: 0; }
  .brand-tag { display: none; }   /* header row is tight at tablet width */

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

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

  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split-media { order: 2; }

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

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

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

  .hero-inner { max-width: 40rem; }

  .contact-card { padding: 2rem; }

  .map-wrap { aspect-ratio: 16 / 9; }

  .lb-close { top: 1.5rem; left: 1.5rem; }
  .lb-prev { right: 1.5rem; }
  .lb-next { left: 1.5rem; }

  /* Footer bottom row: developer credit on the left, "Powered by" truly centred */
  .footer-bottom { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-bottom .devdock {
    grid-column: 1; grid-row: 1;
    justify-self: start; align-self: end;
    align-items: flex-start;
    width: auto;
  }
  /* left-aligned with the pill on desktop rather than centred */
  .footer-bottom .dev-card { left: 0; transform: none; width: 17.5rem; }
  .footer-bottom-main { grid-column: 2; grid-row: 1; }

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

/* ==========================================================================
   17. Breakpoint: 1024px and up (desktop)
   ========================================================================== */
@media (min-width: 64em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .nav-list { gap: .15rem; }
  .nav-list a { padding: .45rem .9rem; font-size: .9375rem; }
  .nav-list a.is-active::after { inset-inline: .9rem; }
  .nav-cta .btn { padding: .6rem 1.15rem; font-size: .9rem; }
  .brand-tag { display: block; }

  .split { grid-template-columns: 1.05fr 1fr; gap: 4rem; }

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

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

  .hero-inner { max-width: 46rem; }

  .contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
}

/* ==========================================================================
   18. Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .nav-overlay, .devdock, .wa-float, .hero-dots, .filters { display: none !important; }
  body { padding-top: 0; }
}
