/* ==========================================================================
   Professional Cleaning Services — Premium Diplomatic Landing Page
   Palette stricte : Noir #000000 / Vert #1e9114 / Blanc #FFFFFF (+ opacités)
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --black: #000000;
  --black-2: #060606;
  --black-3: #0d0d0d;
  --green: #1e9114;
  --green-bright: #26b019;
  --white: #ffffff;

  --w-95: rgba(255, 255, 255, 0.95);
  --w-70: rgba(255, 255, 255, 0.68);
  --w-45: rgba(255, 255, 255, 0.45);
  --w-18: rgba(255, 255, 255, 0.14);
  --w-08: rgba(255, 255, 255, 0.07);

  --b-70: rgba(0, 0, 0, 0.72);
  --b-45: rgba(0, 0, 0, 0.45);
  --b-18: rgba(0, 0, 0, 0.12);
  --b-08: rgba(0, 0, 0, 0.06);

  --g-30: rgba(30, 145, 20, 0.3);
  --g-16: rgba(30, 145, 20, 0.16);
  --g-08: rgba(30, 145, 20, 0.08);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 400ms;
  --dur-slow: 3.5s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--b-70);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Typography ---------------------------------------------------------*/
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--green-bright);
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 760px;
}
.on-white .section-title,
.on-white h1, .on-white h2, .on-white h3 { color: var(--black); }

.lede {
  font-size: 17px;
  color: var(--w-70);
  max-width: 640px;
  line-height: 1.75;
}
.on-white .lede { color: var(--b-70); }

section { position: relative; padding: clamp(72px, 10vw, 132px) 0; }
.on-white { background: var(--white); color: var(--b-70); }
.on-black { background: var(--black); color: var(--w-70); }
.on-black-2 { background: var(--black-2); color: var(--w-70); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---- Reusable image frames (used to drop in photos throughout the page) --*/
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.on-white .image-frame { background-color: #eef1ec; }
.on-black .image-frame { background-color: var(--w-08); }
.image-frame--portrait { aspect-ratio: 4 / 5; }
.image-frame--landscape { aspect-ratio: 5 / 4; }
.image-frame--wide { aspect-ratio: 16 / 9; }

/* Generic two-column media + text layout (intro banner, about section, etc.) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-layout.media-right { grid-template-columns: 1.1fr 0.9fr; }
.split-layout.media-left { grid-template-columns: 0.9fr 1.1fr; }
.split-layout.media-left .image-frame { order: -1; }

/* ---- Scroll progress ----------------------------------------------------*/
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--green-bright);
  width: 0%;
  z-index: 999;
  transition: width 80ms linear;
}

/* ---- Custom cursor (desktop only, discreet) ------------------------------*/
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--g-30);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 220ms var(--ease), height 220ms var(--ease), opacity 220ms;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover { width: 46px; height: 46px; border-color: var(--green-bright); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ---- Header / Nav ---------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 10px 0;
  border-bottom: 1px solid var(--w-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 68px;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  transition: opacity var(--dur-fast);
}
.brand-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a:not(.btn) {
  font-size: 14px;
  color: var(--w-70);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--dur-fast);
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--green-bright);
  transition: width var(--dur-fast) var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.lang-switch {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--w-70);
  border: 1px solid var(--w-18);
  padding: 6px 12px;
  border-radius: 20px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--white); border-color: var(--green-bright); }

/* nav-right holds exactly one CTA + the burger + the language switch group, in
   that DOM order, so the language switch(es) always render as the right-most item. */
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-cta {
  padding: 10px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 24px; height: 16px;
  position: relative;
  background: none; border: none;
  flex-shrink: 0;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--white);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Buttons -------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(30,145,20, 0.5);
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 26px 0 rgba(38, 176, 25, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--w-18);
  color: var(--w-95);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--white); }
.on-white .btn-ghost { border-color: var(--b-18); color: var(--black); }
.on-white .btn-ghost:hover { border-color: var(--black); }
.btn-block { width: 100%; }

/* ---- Hero -----------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  background: #060606;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.24) 30%, rgba(0,0,0,0.68) 78%, #000 100%),
    radial-gradient(120% 90% at 15% 0%, rgba(0,0,0,0.14), transparent 55%);
}
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(30,145,20,0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(30,145,20,0.10), transparent 55%),
    linear-gradient(160deg, #050505 0%, #000 55%, #030503 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  color: var(--white);
  max-width: 15ch;
}
.hero h1 .line { display: block; opacity: 0; transform: translateY(22px); animation: lineUp 900ms var(--ease) forwards; }
.hero h1 .line:nth-child(1) { animation-delay: 150ms; }
.hero h1 .line:nth-child(2) { animation-delay: 320ms; color: var(--w-95); }
.hero h1 .line:nth-child(3) { animation-delay: 490ms; }
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }

.hero .eyebrow { margin-bottom: 22px; opacity: 0; animation: fadeUp 800ms var(--ease) forwards; animation-delay: 60ms; }
.hero-subtitle {
  margin-top: 26px;
  font-size: 17px;
  color: var(--w-70);
  max-width: 46ch;
  opacity: 0; animation: fadeUp 800ms var(--ease) forwards; animation-delay: 700ms;
}
.hero-actions {
  margin-top: 38px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  opacity: 0; animation: fadeUp 800ms var(--ease) forwards; animation-delay: 860ms;
}
.hero-tags {
  margin-top: 30px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--w-45);
  opacity: 0; animation: fadeUp 800ms var(--ease) forwards; animation-delay: 1000ms;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line, .hero .eyebrow, .hero-subtitle, .hero-actions, .hero-tags { animation: none; opacity: 1; transform: none; }
  .hero-media img { animation: none; }
}

/* ---- Reveal on scroll ------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---- Not-ordinary / Principles ----------------------------------------------*/
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b-08);
  margin-top: 48px;
  border: 1px solid var(--b-08);
}
.principle-card {
  background: var(--white);
  padding: 40px 34px;
  transition: background var(--dur-fast);
}
.principle-card:hover { background: #fafaf9; }
.principle-num { font-family: var(--font-display); font-size: 13px; color: var(--green); letter-spacing: 0.08em; }
.principle-card h3 { font-size: 21px; margin: 18px 0 10px; color: var(--black); }
.principle-card p { color: var(--b-70); font-size: 15px; margin: 0; }

/* ---- Targets grid ----------------------------------------------------------*/
.targets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.target-card {
  position: relative;
  border: 1px solid var(--w-18);
  padding: 30px 26px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.target-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--g-08), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.target-card:hover { border-color: var(--g-30); transform: translateY(-4px); }
.target-card:hover::before { opacity: 1; }
.target-card .mark { font-family: var(--font-display); font-size: 30px; color: var(--w-18); position: absolute; top: 22px; right: 26px; }
.target-card h3 { position: relative; font-size: 21px; color: var(--white); margin-bottom: 8px; }
.target-card p { position: relative; font-size: 14px; color: var(--w-45); margin: 0; line-height: 1.6; }

.on-white .target-card { border-color: var(--b-18); background: #fafaf9; }
.on-white .target-card:hover { border-color: var(--g-30); }
.on-white .target-card .mark { color: var(--b-18); }
.on-white .target-card h3 { color: var(--black); }
.on-white .target-card p { color: var(--b-70); }

/* Optional photo background on a target card: adds a bottom gradient so the
   title/text stay readable regardless of the photo, on any section theme. */
.target-card.has-photo { overflow: hidden; }
.target-card.has-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.target-card.has-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 0;
}
.target-card.has-photo .mark,
.target-card.has-photo h3,
.target-card.has-photo p { position: relative; z-index: 1; }
.target-card.has-photo .mark { color: rgba(255,255,255,0.55); }
.target-card.has-photo h3 { color: var(--white); }
.target-card.has-photo p { color: var(--w-70); }

/* ---- Services ----------------------------------------------------------------*/
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 48px; align-items: start; }
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--b-08); }
.services-list li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--b-08);
  font-size: 14.5px;
  color: var(--b-70);
  display: flex; align-items: center; gap: 12px;
}
.services-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.services-aside { padding-left: 8px; border-left: 1px solid var(--b-08); }
.services-aside p { color: var(--b-70); font-size: 16px; line-height: 1.8; }

/* ---- Discretion (black, strong) -----------------------------------------------*/
.discretion-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.discretion-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.88) 100%);
}
.discretion-content { position: relative; z-index: 1; }
.discretion-title { color: var(--white); font-size: clamp(30px, 4.4vw, 50px); max-width: 14ch; }
.discretion-list {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  max-width: 720px;
}
.discretion-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--w-70);
  padding: 14px 0;
  border-bottom: 1px solid var(--w-08);
}
.discretion-list li .bullet { width: 6px; height: 6px; background: var(--green-bright); flex-shrink: 0; }

/* ---- Method timeline ------------------------------------------------------------*/
.timeline { margin-top: 56px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--w-18), var(--w-08));
}
.timeline-item {
  position: relative; padding-left: 66px; padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--w-18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; color: var(--green-bright);
  background: var(--black);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.timeline-item.is-visible .timeline-num { border-color: var(--green-bright); box-shadow: 0 0 18px rgba(38,176,25,0.35); }
.timeline-item h3 { font-size: 19px; color: var(--white); font-weight: 500; font-family: var(--font-body); letter-spacing: 0.01em; }

.on-white .timeline::before { background: linear-gradient(var(--b-18), var(--b-08)); }
.on-white .timeline-num { border-color: var(--b-18); background: var(--white); color: var(--green); }
.on-white .timeline-item.is-visible .timeline-num { border-color: var(--green); box-shadow: 0 0 14px rgba(30,145,20,0.2); }
.on-white .timeline-item h3 { color: var(--black); }

/* ---- Commitments -------------------------------------------------------------*/
.commitments-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 48px; background: var(--b-08); border: 1px solid var(--b-08); }
.commitment-card { background: var(--white); padding: 34px 20px; text-align: left; }
.commitment-card .dot { width: 8px; height: 8px; background: var(--green); margin-bottom: 20px; }
.commitment-card h3 { font-size: 16px; color: var(--black); font-weight: 500; font-family: var(--font-body); }

/* Highlighted "equipment & products" section: soft green-tinted band with
   elevated icon cards, distinct from the flat bordered grids used elsewhere. */
.material-section {
  background: linear-gradient(180deg, #f6faf4 0%, #edf6e9 55%, #f6faf4 100%);
  position: relative;
}
.material-intro-wrap { max-width: 700px; margin: 0 auto; text-align: center; }
.material-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.material-feature {
  background: var(--white);
  border-radius: 6px;
  padding: 42px 30px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px rgba(20,60,10,0.05);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.material-feature:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(30,145,20,0.14); }
.material-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--g-08);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.material-icon svg { width: 27px; height: 27px; }
.material-feature h3 { font-size: 17px; color: var(--black); margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; }
.material-feature p { font-size: 14.5px; color: var(--b-70); margin: 0; line-height: 1.65; }
@media (max-width: 980px) { .material-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .material-features { grid-template-columns: 1fr; } }

/* ---- Premium quote section -----------------------------------------------------*/
.premium-section { text-align: center; background: linear-gradient(180deg, #fbfdfa, #f3f8f1); }
.premium-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
}
.premium-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  color: var(--black);
  max-width: 18ch;
  margin: 0 auto;
  line-height: 1.3;
}
.premium-text { max-width: 50ch; margin: 26px auto 0; color: var(--b-70); }
.premium-rule { width: 46px; height: 1px; background: var(--green); margin: 0 auto 28px; }

/* ---- FAQ -----------------------------------------------------------------------*/
.faq-list { margin-top: 40px; border-top: 1px solid var(--b-08); }
.faq-item { border-bottom: 1px solid var(--b-08); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: 16.5px; color: var(--black); font-family: var(--font-body); font-weight: 500;
}
.faq-q .icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q .icon::before, .faq-q .icon::after { content: ''; position: absolute; background: var(--green); transition: transform var(--dur-fast) var(--ease); }
.faq-q .icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-q .icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item.is-open .icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 420ms var(--ease); }
.faq-a p { margin: 0 0 24px; color: var(--b-70); font-size: 15px; max-width: 68ch; line-height: 1.75; }

/* ---- About (GEO block) ----------------------------------------------------------*/
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 44px; }
.about-item dt { font-family: var(--font-display); font-size: 16px; color: var(--green-bright); margin-bottom: 8px; }
.about-item dd { margin: 0; color: var(--w-70); font-size: 14.5px; line-height: 1.7; }
.on-white .about-item dt { color: var(--green); }
.on-white .about-item dd { color: var(--b-70); }

/* ---- Contact ---------------------------------------------------------------------*/
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 64px; margin-top: 48px; }
.contact-intro p { color: var(--w-70); font-size: 15.5px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--w-45); letter-spacing: 0.02em; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--w-08);
  border: 1px solid var(--w-18);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.form-field select option { background: #111; color: var(--white); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-bright); background: rgba(255,255,255,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #d9534f; }
.field-error { font-size: 12.5px; color: #ff8a80; min-height: 16px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; }
.checkbox-field input { margin-top: 3px; accent-color: var(--green); }
.checkbox-field label { font-size: 13.5px; color: var(--w-70); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 18px; font-size: 14.5px; padding: 14px 16px; border-radius: 3px; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: var(--g-08); border: 1px solid var(--g-30); color: #7ee06f; }
.form-status.error { background: rgba(217,83,79,0.08); border: 1px solid rgba(217,83,79,0.35); color: #ff8a80; }
.submit-row { grid-column: 1 / -1; margin-top: 6px; }

/* ---- Footer ---------------------------------------------------------------------*/
.site-footer { background: var(--black); border-top: 1px solid var(--w-08); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--w-45); font-size: 14px; max-width: 32ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-45); font-weight: 500; margin: 0 0 18px; font-family: var(--font-body); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a, .footer-col p { font-size: 14.5px; color: var(--w-70); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--w-08); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 13px; color: var(--w-45); }
.footer-bottom a { color: var(--w-45); }
.footer-bottom a:hover { color: var(--white); }

.footer-compliance {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--w-08);
}
.cct-logo { height: 40px; width: auto; max-width: none; flex-shrink: 0; }
.footer-compliance-text strong { display: block; font-size: 13px; color: var(--white); margin-bottom: 4px; font-weight: 500; }
.footer-compliance-text p { margin: 0; font-size: 13px; color: var(--w-45); line-height: 1.6; max-width: 560px; }
@media (max-width: 600px) {
  .footer-compliance { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- Responsive -------------------------------------------------------------------*/
@media (max-width: 980px) {
  .principles-grid { grid-template-columns: 1fr; }
  .targets-grid { grid-template-columns: repeat(2, 1fr); }
  .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .commitments-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-layout,
  .split-layout.media-right,
  .split-layout.media-left { grid-template-columns: 1fr; gap: 28px; }
  .split-layout.media-left .image-frame { order: 0; }
  .image-frame--portrait { aspect-ratio: 16 / 10; }
}

/* Nav collapses to a hamburger drawer earlier than the content grids below,
   so the 5 anchor links never get squeezed onto (or wrap off) one line. The
   CTA button and language switch stay visible in the top bar at every width. */
@media (max-width: 880px) {
  /* Anchored flush to the right edge (fixed, never changes) and slid on/off
     screen purely with transform — this sidesteps every edge case around
     left/right percentage offsets interacting with RTL and fixed width. */
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw);
    background: rgba(0,0,0,0.97); backdrop-filter: blur(10px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 40px; gap: 26px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
    border-left: 1px solid var(--w-08);
    z-index: 90;
  }
  .nav-links.is-open { transform: translateX(0); visibility: visible; transition: transform var(--dur-fast) var(--ease); }
  .nav-links a { font-size: 18px; }
  .burger { display: block; }
  /* CTA button is desktop-only: on mobile it was crowding out the language
     switcher, pushing it (and the AR link) off-screen with nowrap + the
     page's overflow-x:hidden — effectively making it untappable. */
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  .brand-logo { height: 48px; }
  .nav-right { gap: 10px; }
  .lang-switch-group { gap: 6px; }
  .lang-switch { padding: 5px 9px; font-size: 12px; }
}

@media (max-width: 720px) {
  .hero { align-items: flex-end; padding-top: 120px; }
  .targets-grid { grid-template-columns: 1fr; }
  .discretion-list { grid-template-columns: 1fr; }
  .commitments-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .btn-block-mobile { width: 100%; }
}

.scroll-x-safe { max-width: 100%; overflow-x: hidden; }

/* ---- Reviews ----------------------------------------------------------------*/
.reviews-rating {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 22px; font-size: 14px; color: var(--b-70);
}
.reviews-rating .stars { color: var(--green); letter-spacing: 2px; font-size: 15px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.review-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.review-stars { color: var(--green); letter-spacing: 2px; font-size: 14px; display: block; margin-bottom: 14px; }
.review-text { font-size: 14.5px; color: var(--b-70); line-height: 1.7; margin: 0 0 16px; }
.review-name { font-size: 13px; color: var(--black); font-weight: 500; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---- Partners -----------------------------------------------------------------*/
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 52px;
}
.partner-logo { display: inline-flex; align-items: center; justify-content: center; }
.partner-logo img {
  height: 44px;
  width: auto;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--dur-fast), opacity var(--dur-fast);
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }
@media (max-width: 600px) {
  .partners-strip { gap: 28px; }
  .partner-logo img { height: 36px; max-height: 36px; }
}

/* ==========================================================================
   Arabic / RTL support
   Flexbox and Grid already mirror left↔right automatically under dir="rtl"
   for row-flow layouts (nav, split-layout, grids). What follows only fixes
   the handful of rules that use *physical* left/right/border-side values,
   which the browser does not flip on its own.
   ========================================================================== */
html[lang="ar"] body { font-family: 'Tajawal', var(--font-body); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .premium-quote { font-family: 'Tajawal', var(--font-display); font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .nav-links a,
html[lang="ar"] .btn,
html[lang="ar"] .lang-switch { letter-spacing: 0; }

html[dir="rtl"] .eyebrow::before { margin-inline-end: 0; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .services-aside { border-left: none; border-right: 1px solid var(--b-08); padding-left: 0; padding-right: 8px; }
html[dir="rtl"] .services-list li::before { order: 2; }
html[dir="rtl"] .timeline::before { left: auto; right: 22px; }
html[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 66px; }
html[dir="rtl"] .timeline-num { left: auto; right: 0; }
html[dir="rtl"] .target-card .mark { right: auto; left: 26px; }
html[dir="rtl"] .faq-q { text-align: right; }
html[dir="rtl"] .checkbox-field { flex-direction: row-reverse; }
html[dir="rtl"] .discretion-list li { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .services-list li,
html[dir="rtl"] .about-item { text-align: right; }
html[dir="rtl"] .split-layout.media-left .image-frame { order: 1; }
html[dir="rtl"] .split-layout.media-right .image-frame { order: 0; }
html[dir="rtl"] .nav-links { border-left: none; border-right: 1px solid var(--w-08); }
html[dir="rtl"] .commitment-card { text-align: right; }
@media (max-width: 880px) {
  /* RTL anchors the drawer to the left edge instead (constant), and slides
     it with transform in the opposite direction — same robust pattern as
     the LTR version above, just mirrored. */
  html[dir="rtl"] .nav-links {
    right: auto; left: 0;
    border-left: 1px solid var(--w-08); border-right: none;
    align-items: flex-end; text-align: right;
    transform: translateX(-100%);
  }
  html[dir="rtl"] .nav-links.is-open { transform: translateX(0); }
}
