/* ════════════════════════════════════════════════
   SHIELD ENGINEER — Landing Page Styles
   Brand: #014421 (dark forest) on white
   ════════════════════════════════════════════════ */

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

:root {
  --green: #014421;
  --green-mid: #02551a;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --text: #1a1a18;
  --muted: #6b7068;
  --border: #e0e0db;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(1, 68, 33, 0.07);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 52px;
  width: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

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

.btn--nav {
  padding: 10px 20px;
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  font-size: 0.85rem;
  border-radius: 40px;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}
.btn--nav:hover {
  background: #1db954;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
}

.btn--primary {
  padding: 16px 32px;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(1, 68, 33, 0.25);
}
.btn--primary:hover {
  background: var(--green-mid);
  box-shadow: 0 6px 28px rgba(1, 68, 33, 0.35);
}

.btn--ghost {
  padding: 16px 32px;
  background: transparent;
  color: var(--green);
  font-size: 1rem;
  border: 1.5px solid var(--green);
}
.btn--ghost:hover {
  background: rgba(1, 68, 33, 0.05);
}

.btn--whatsapp {
  padding: 20px 40px;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  background: #1db954;
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn__icon--lg {
  width: 26px;
  height: 26px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(1, 68, 33, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Ruled lines — engineering graph feel */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.hero__watermark {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(55vw, 660px);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.hero__mark {
  width: 100%;
  height: auto;
  filter: invert(20%) sepia(50%) saturate(800%) hue-rotate(100deg);
}

.hero__content {
  position: relative;
  max-width: 720px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--green);
  margin-right: 16px;
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 9vw, 6.5rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__headline em {
  font-style: italic;
  color: var(--green);
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.15); }
}

/* ─── Services ─── */
.services {
  background: var(--white);
  padding: 100px 32px;
}

.services__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.service {
  padding: 48px 40px;
  border-top: 2px solid var(--green);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.service:last-child {
  border-right: none;
}

.service:hover {
  background: rgba(1, 68, 33, 0.02);
}

.service__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--green);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.service__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service__body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.service__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.service__link:hover {
  opacity: 0.7;
}

/* ─── Projects Gallery ─── */
.projects {
  background: var(--off-white);
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects__header {
  max-width: var(--max-w);
  margin: 0 auto 56px;
}

.projects__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 0;
}

.projects__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--green);
  margin-right: 16px;
  flex-shrink: 0;
}

.projects__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.projects__sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Before / After Slider ─── */
.ba-section {
  max-width: var(--max-w);
  margin: 0 auto 56px;
}

.ba-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ba-section__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ba-section__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ba-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  background: var(--text);
}

.ba-img {
  position: absolute;
  inset: 0;
}

.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-img--after {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ba-handle:focus { outline: none; }

.ba-handle__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.ba-handle__knob {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.ba-slider:hover .ba-handle__knob,
.ba-handle:focus .ba-handle__knob {
  transform: scale(1.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ba-label--after {
  left: 20px;
  background: rgba(1, 68, 33, 0.88);
  color: var(--white);
}

.ba-label--before {
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

/* ─── Gallery Filter Tabs ─── */
.gallery-tabs {
  max-width: var(--max-w);
  margin: 0 auto 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.gallery-tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.gallery-tab--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ─── Masonry-ish gallery using CSS Grid ─── */
.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(1, 20, 10, 0.8) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 10, 7, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.lightbox[hidden] { display: none; }

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 80px 16px;
  width: 100%;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 2px;
  display: block;
  transition: opacity 0.25s;
}

.lightbox__img.lb-fade {
  opacity: 0;
}

.lightbox__caption {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 80px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lightbox__thumbs::-webkit-scrollbar { display: none; }

.lightbox__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  list-style: none;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.lightbox__thumb:hover {
  opacity: 0.8;
}

.lightbox__thumb--active {
  border-color: var(--white);
  opacity: 1;
}

/* ─── WhatsApp CTA ─── */
.cta {
  background: var(--green);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}

.cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 80px;
}

.cta__mark {
  opacity: 0.08;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
}

.cta__mark img {
  width: 100%;
}

.cta__content {
  max-width: 640px;
}

.cta__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.cta__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  margin-right: 16px;
  flex-shrink: 0;
}

.cta__headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  font-style: normal;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
  max-width: 520px;
}

.cta__response {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Footer ─── */
.footer {
  background: #011a0e;
  color: rgba(255, 255, 255, 0.55);
  padding: 64px 32px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer__tagline {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

.footer__info p,
.footer__legal p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.footer__info strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer__legal {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
}

.footer__copy {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
}

/* ─── Language Toggle ─── */
.nav__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--green);
  color: var(--white);
}

/* Arabic font — applied when RTL is active */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Jost', system-ui, sans-serif;
}

html[dir="rtl"] .hero__headline,
html[dir="rtl"] .service__title,
html[dir="rtl"] .projects__title,
html[dir="rtl"] .ba-section__title,
html[dir="rtl"] .cta__headline,
html[dir="rtl"] .footer__tagline {
  font-family: 'Cairo', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

/* RTL prestige headlines — override Playfair Display with Cairo for Arabic script */
html[dir="rtl"] .hero__headline,
html[dir="rtl"] .svc-hero__title,
html[dir="rtl"] .cta__headline {
  font-family: 'Cairo', system-ui, sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
}

/* ─── RTL Layout Adjustments ─── */

/* Flip the decorative lines from before pseudo-elements */
html[dir="rtl"] .hero__eyebrow::before {
  margin-right: 0;
  margin-left: 16px;
}

html[dir="rtl"] .projects__label::before {
  margin-right: 0;
  margin-left: 16px;
}

html[dir="rtl"] .cta__label::before {
  margin-right: 0;
  margin-left: 16px;
}

/* Watermark — flip to left side */
html[dir="rtl"] .hero__watermark {
  right: auto;
  left: -6vw;
}

/* Services — flip border side */
html[dir="rtl"] .service {
  border-right: none;
  border-left: 1px solid var(--border);
}

html[dir="rtl"] .service:last-child {
  border-left: none;
}

/* Before/After labels — swap left/right */
html[dir="rtl"] .ba-label--after {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .ba-label--before {
  right: auto;
  left: 20px;
}

/* Lightbox close button */
html[dir="rtl"] .lightbox__close {
  right: auto;
  left: 24px;
}

/* CTA mark stays right but adapts */
html[dir="rtl"] .cta__mark {
  right: auto;
  left: 0;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .ba-slider { height: 380px; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }

  .services__inner {
    grid-template-columns: 1fr;
  }
  .service {
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-top: 2px solid var(--green);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta__mark {
    display: none;
  }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__stage { padding: 60px 60px 12px; }
  .lightbox__thumbs { padding: 12px 60px 20px; }
}

@media (max-width: 640px) {
  .nav__inner { padding: 0 20px; }
  .nav__logo-img { height: 36px; }

  .hero {
    padding: calc(var(--nav-h) + 40px) 20px 60px;
    align-items: flex-start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn--primary,
  .btn--ghost {
    justify-content: center;
    padding: 14px 24px;
  }

  .services { padding: 64px 20px; }
  .service { padding: 36px 24px; }

  .projects { padding: 64px 20px; }

  .ba-section { margin-bottom: 40px; }
  .ba-section__heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ba-slider { height: 280px; }

  .gallery-tabs { gap: 6px; }
  .gallery-tab { padding: 7px 14px; font-size: 0.78rem; }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__item--wide {
    grid-column: span 1;
  }

  .lightbox__stage { padding: 56px 16px 10px; }
  .lightbox__thumbs { padding: 10px 16px 16px; }
  .lightbox__thumb { width: 52px; height: 40px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }

  .cta { padding: 80px 20px; }
  .btn--whatsapp {
    width: 100%;
    justify-content: center;
    padding: 18px 28px;
  }

  .footer { padding: 48px 20px; }
}

/* ════════════════════════════════════════════════════════
   SERVICES PAGE
   ════════════════════════════════════════════════════════ */

/* ── Nav link group ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ── Nav link (Services / الخدمات) ── */
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link:hover {
  background: rgba(1,68,33,0.07);
}
.nav__link--active {
  background: rgba(1,68,33,0.1);
  font-weight: 600;
}

/* ── Page hero ── */
.svc-hero {
  position: relative;
  background: var(--green);
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 40px 80px;
  text-align: center;
  color: #fff;
}
.svc-hero__watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.05;
  width: 420px;
  pointer-events: none;
  user-select: none;
}
.svc-hero__watermark img { width: 100%; }
.svc-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.svc-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 16px;
}
.svc-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 20px;
}
.svc-hero__sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin: 0;
}

/* ── Philosophy strip ── */
.svc-strip {
  background: #f6f4f0;
  border-bottom: 1px solid var(--border);
}
.svc-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.svc-strip__item {
  flex: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-strip__divider {
  width: 1px;
  background: var(--border);
  margin: 24px 0;
  flex-shrink: 0;
}
.svc-strip__val {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}
.svc-strip__desc {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Sticky tab bar ── */
.svc-tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.svc-tabs__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-tabs__inner::-webkit-scrollbar { display: none; }

.svc-tab {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 16px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.015em;
}
.svc-tab:hover { color: var(--green); }
.svc-tab--active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}

/* ── Main panel area ── */
.svc-main {
  min-height: 60vh;
  background: #fff;
}

/* ── Panels ── */
.svc-panel { display: none; }
.svc-panel--active { display: block; }

.svc-panel__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

/* Panel header (number + titles) */
.svc-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
}
.svc-panel__num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.18;
  flex-shrink: 0;
  margin-top: -4px;
  user-select: none;
}
.svc-panel__titles { flex: 1; }
.svc-panel__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}
.svc-panel__tag {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Fee badge */
.svc-fee {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.svc-fee__badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 4px;
  white-space: nowrap;
}
.svc-fee__note {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Body paragraphs */
.svc-panel__body {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Model badge */
.svc-model-badge {
  background: #f0f5f1;
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-model-badge__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.svc-model-badge__desc {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ── Accordion ── */
.accordion {
  margin: 32px 0;
  border-top: 1px solid var(--border);
}
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: color 0.18s;
}
html[dir="rtl"] .accordion__trigger { text-align: right; }
.accordion__trigger:hover { color: var(--green); }
.accordion__trigger--open { color: var(--green); }
.accordion__chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}
.accordion__trigger--open .accordion__chevron {
  transform: rotate(180deg);
  color: var(--green);
}
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.accordion__body p,
.accordion__body ul {
  padding-bottom: 20px;
}
.accordion__body p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* Service bullet list */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}
html[dir="rtl"] .svc-list li { padding-left: 0; padding-right: 20px; }
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
}
html[dir="rtl"] .svc-list li::before { left: auto; right: 0; }

/* CTA button inside panel */
.svc-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ── About panel ── */
.svc-about {
  position: relative;
  overflow: hidden;
}
.svc-about__watermark {
  position: absolute;
  right: 40px;
  bottom: -60px;
  opacity: 0.04;
  width: 340px;
  pointer-events: none;
  user-select: none;
}
.svc-about__watermark img { width: 100%; }

.svc-about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.svc-about__portrait-frame {
  background: #f6f4f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}
.svc-about__portrait-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  opacity: 0.4;
}
.svc-about__portrait-placeholder svg { width: 100%; height: 100%; }
.svc-about__portrait-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
}
.svc-about__portrait-name strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.svc-about__portrait-name span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.svc-about__creds {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-about__cred {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
}
.svc-about__cred-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 2px;
}
.svc-about__cred-val {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.svc-about__cred-val em {
  font-style: normal;
  color: #999;
  font-size: 0.75rem;
}

.svc-about__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}
.svc-about__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  line-height: 1.25;
}
.svc-about__body {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.svc-about__quote {
  border-left: 3px solid var(--green);
  margin: 32px 0 36px;
  padding: 20px 24px;
  background: #f6f4f0;
  border-radius: 0 6px 6px 0;
}
html[dir="rtl"] .svc-about__quote {
  border-left: none;
  border-right: 3px solid var(--green);
  border-radius: 6px 0 0 6px;
}
.svc-about__quote p {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
}
.svc-about__quote cite {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ── RTL overrides ── */
html[dir="rtl"] .svc-hero__watermark {
  right: auto;
  left: -80px;
}
html[dir="rtl"] .svc-model-badge {
  border-left: none;
  border-right: 3px solid var(--green);
  border-radius: 6px 0 0 6px;
}
html[dir="rtl"] .svc-about__watermark {
  right: auto;
  left: 40px;
}
html[dir="rtl"] .svc-about__cred {
  direction: rtl;
}
html[dir="rtl"] .svc-panel__header {
  direction: rtl;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .svc-strip__inner { flex-direction: column; padding: 0 24px; }
  .svc-strip__divider { width: 100%; height: 1px; margin: 0; }
  .svc-strip__item { padding: 24px 0; }

  .svc-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .svc-about__portrait { max-width: 320px; }

  .svc-panel__inner { padding: 48px 28px 64px; }
  .svc-tabs__inner { padding: 0 20px; }
}

@media (max-width: 640px) {
  .svc-hero { padding: calc(var(--nav-h) + 48px) 24px 60px; }
  .svc-panel__inner { padding: 36px 20px 56px; }
  .svc-panel__header { gap: 16px; }
  .svc-panel__num { font-size: 2.5rem; }
  .svc-fee { flex-direction: column; align-items: flex-start; gap: 8px; }
  .svc-tab { padding: 14px 14px; font-size: 0.8rem; }
}

/* ════════════════════════════════════════════════════════
   QUALITY PASS — MOBILE & TOUCH FIXES
   ════════════════════════════════════════════════════════ */

/* ── Gallery image loading placeholder ── */
/* Warm neutral shows while lazy images are loading — prevents blank-gap flash */
.gallery__item {
  background: #e8e3d8;
}

/* ── Gallery captions: always visible on touch devices ── */
/* Hover doesn't exist on mobile — make the gradient label always-on */
@media (hover: none) {
  .gallery__caption {
    opacity: 1;
    transform: none;
    padding: 20px 14px 12px;
    font-size: 0.7rem;
  }
}

/* ── Service card "Learn more" — bigger tap target ── */
.service__link {
  padding: 8px 0 4px;
  margin-top: 12px;
  display: inline-block;
}

/* ── Mobile nav: collapse to fit 375px–640px ── */
/* At ≤768px: hide button labels, show icons only */
@media (max-width: 768px) {
  /* Hide Download Deck text label */
  .btn--nav-download span { display: none; }
  /* Tighter padding on icon-only nav buttons */
  .btn--nav-download { padding: 10px 12px; }
}

@media (max-width: 640px) {
  /* Remove Download Deck button entirely — not a mobile-first action */
  .btn--nav-download { display: none; }

  /* WhatsApp button: icon only, square-ish pill */
  .btn--nav span { display: none; }
  .btn--nav { padding: 10px 13px; }

  /* Nav links: tighter to save space for three links */
  .nav__link { padding: 4px 7px; font-size: 0.68rem; letter-spacing: 0.09em; }

  /* Hide Contact on phones — WhatsApp button is the direct contact CTA */
  .nav__link--contact { display: none; }

  /* nav__controls: tighter gap */
  .nav__controls { gap: 8px; }
}

/* ── Ensure no unintended horizontal scroll on mobile ── */
@media (max-width: 640px) {
  .svc-hero { word-break: break-word; }
  .svc-panel__inner { overflow-wrap: break-word; }
}
