/* ==========================================================================
   Nabd Doctor's Marketing Agency — styles
   Bootstrap 5 supplies the grid, collapse, modal and accordion.
   Everything below is the Nabd look, built on the tokens in :root.
   Art direction: an editorial clinic journal. Ivory and stone grounds,
   deep green fields, muted brass for marks and the guarantee.
   ========================================================================== */

:root {
  /* Colour roles */
  --ivory: #f5f0e6;          /* page ground */
  --paper: #fbf8f1;          /* raised surfaces on ivory or stone */
  --stone: #e9e2d4;          /* tone sections */
  --stone-2: #ddd3c1;        /* hover / step above stone */
  --sand: #d9c8a2;           /* Gold package */
  --ink: #16241e;            /* text, deep green-black */
  --ink-soft: #4b5850;
  --green: #1e3b30;          /* fields */
  --green-2: #27493c;
  --green-3: #345a4a;
  --on-green: #f2ede2;
  --on-green-soft: #c3ccc0;
  --brass: #a8874e;          /* marks and rules on light grounds; never small text */
  --brass-deep: #75592b;     /* brass for small text on light grounds */
  --brass-light: #cfb685;    /* brass on green */
  --brass-field: #c2a671;    /* guarantee ground */
  --danger: #9b2c1f;
  --danger-bg: #f4e0da;
  --ok-bg: #dfe7d8;
  --warn-bg: #f1e6c9;

  /* Type: serif display (Newsreader for Latin, Noto Naskh Arabic for Arabic), sans text */
  --font-display: "Newsreader", "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --size-display: clamp(2.7rem, 6.3vw, 6.4rem);
  --size-title: clamp(2.1rem, 3.9vw, 3.7rem);
  --size-statement: clamp(1.3rem, 1.8vw, 1.6rem);
  --size-h3: 1.45rem;
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;

  /* Space */
  --gutter: clamp(16px, 2.4vw, 32px);
  --section: clamp(96px, 12vw, 184px);
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur: 720ms;

  /* Bootstrap hooks */
  --bs-body-font-family: var(--font);
  --bs-body-font-size: var(--size-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ivory);
  --bs-link-color: var(--green);
  --bs-link-color-rgb: 30, 59, 48;
  --bs-link-hover-color: var(--brass-deep);
  --bs-link-hover-color-rgb: 117, 89, 43;
  --bs-border-color: #c9bfab;
  --bs-focus-ring-color: rgba(30, 59, 48, .3);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { line-height: 1.8; }

.container-xl { padding-inline: var(--gutter); }

h1, h2, h3, h4 { color: inherit; font-weight: 600; }
p { max-width: 62ch; }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
img { max-width: 100%; }
::selection { background: var(--sand); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section-field :focus-visible, .package-platinum :focus-visible, .summary :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-light); }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type roles ---------- */
.display-title, .display-title-sm, .section-title, .section-title-sm, .guarantee-title,
.package-name, .price-amount, .brand-name, .footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
}
html[lang="ar"] :is(.display-title, .display-title-sm, .section-title, .section-title-sm, .guarantee-title, .package-name, .brand-name, .footer-wordmark) {
  font-weight: 500;
}

.display-title {
  font-size: var(--size-display);
  line-height: .98;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(28px, 3vw, 44px);
}
html[dir="rtl"] .display-title { letter-spacing: 0; line-height: 1.32; }

.display-title-sm {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 17ch;
}
html[dir="rtl"] .display-title-sm { letter-spacing: 0; line-height: 1.4; }

.section-title {
  font-size: var(--size-title);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 17ch;
}
html[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.4; max-width: 20ch; }

.section-title-sm { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 12px; }

.lead-text { font-size: clamp(1.15rem, 1.45vw, 1.35rem); line-height: 1.55; margin: 0; max-width: 40ch; }

.statement {
  font-family: var(--font-display);
  font-size: var(--size-statement);
  line-height: 1.4;
  font-weight: 400;
  max-width: 30ch;
}
html[lang="ar"] .statement { font-weight: 500; line-height: 1.7; }

h3 { font-size: var(--size-h3); line-height: 1.25; margin-bottom: 10px; }

.small-note, .month-note, .hero-note, .slots-key, .option-hint, .summary-note {
  font-size: var(--size-small);
  color: var(--ink-soft);
}

.optional { font-weight: 400; color: var(--ink-soft); }

/* ---------- Buttons: flat, square-cornered ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-border-width: 0;
  border-radius: var(--radius);
  font-family: var(--font);
  letter-spacing: .005em;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-nabd {
  --bs-btn-color: var(--ivory);
  --bs-btn-bg: var(--green);
  --bs-btn-hover-color: var(--ivory);
  --bs-btn-hover-bg: var(--green-3);
  --bs-btn-active-color: var(--ivory);
  --bs-btn-active-bg: var(--green-3);
  --bs-btn-disabled-bg: #6f8379;
  --bs-btn-disabled-color: var(--ivory);
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-nabd:hover { transform: translateY(-2px); }
.btn-nabd-sm { padding: 9px 18px; font-size: .95rem; }
.btn-nabd-lg { padding: 17px 32px; font-size: 1.06rem; }

/* On green grounds the primary action turns brass. */
.section-field .btn-nabd, .package-platinum .btn-nabd, .summary .btn-nabd {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--brass-light);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #dcc79c;
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: #dcc79c;
  --bs-btn-disabled-bg: #9f9479;
  --bs-btn-disabled-color: var(--ink);
}

.btn-quiet {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--stone);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--stone-2);
  --bs-btn-active-bg: var(--stone-2);
  padding: 13px 26px;
}
.btn-quiet.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-quiet.btn-nabd-lg { padding: 17px 32px; }
.section-tone .btn-quiet, .modal .btn-quiet { --bs-btn-bg: var(--stone-2); --bs-btn-hover-bg: #d0c5b0; }
.summary .btn-quiet { --bs-btn-color: var(--on-green); --bs-btn-bg: var(--green-2); --bs-btn-hover-color: var(--on-green); --bs-btn-hover-bg: var(--green-3); --bs-btn-active-bg: var(--green-3); }

.btn-on-brass {
  --bs-btn-color: var(--ivory);
  --bs-btn-bg: var(--ink);
  --bs-btn-hover-color: var(--ivory);
  --bs-btn-hover-bg: var(--green);
  --bs-btn-active-color: var(--ivory);
  --bs-btn-active-bg: var(--green);
}
.btn-on-brass:hover { transform: translateY(-2px); }

.btn-lang {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--stone);
  --bs-btn-active-bg: var(--stone-2);
  padding: 7px 14px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ivory);
  transition: background-color .25s ease;
}
.site-header.is-scrolled { background: var(--paper); }
.site-header .navbar { padding-block: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  margin-inline-end: 24px;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 24px; color: var(--brass); flex: none; }
html[dir="rtl"] .brand-mark, html[dir="rtl"] .guarantee-mark { transform: scaleX(-1); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.75rem; letter-spacing: -0.01em; line-height: .95; }
.brand-tagline { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; letter-spacing: .01em; }
html[dir="rtl"] .brand-name { line-height: 1.2; }

.nav-link {
  color: var(--ink);
  font-weight: 500;
  padding-inline: 14px !important;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .5em;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); text-decoration-color: var(--brass); }

.navbar-toggler { border: 0; padding: 10px; border-radius: var(--radius); }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bars { display: grid; gap: 5px; width: 22px; }
.toggler-bars span { display: block; height: 2px; background: var(--ink); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-block: 12px 8px; }
  .navbar-nav .nav-link { padding-block: 12px; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .brand-tagline { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.section-tone { background: var(--stone); }
.section-field { background: var(--green); color: var(--on-green); }
.section-field p { color: var(--on-green-soft); }
.section-field .section-title, .section-field h3, .section-field .statement { color: var(--on-green); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.hero-copy { grid-column: 1; grid-row: 1; padding-top: clamp(8px, 3vw, 48px); }
.hero-media { grid-column: 2; grid-row: 1 / span 2; }
.hero-facts { grid-column: 1; grid-row: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; }

.hero-facts {
  margin: clamp(40px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 600px;
}
.hero-facts dt { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.hero-facts dd { margin: 6px 0 0; color: var(--ink-soft); }
.hero-facts > div::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--brass);
  margin-bottom: 14px;
}

.hero-media { margin: 0; overflow: hidden; background: var(--stone); }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
}

/* ---------- Month of content (live thing) ---------- */
.month-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.month-copy > p { margin-bottom: 28px; }

.segmented {
  display: inline-flex;
  background: var(--green-2);
  padding: 4px;
  margin-bottom: 32px;
}
.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--on-green);
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  padding: 9px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.seg-btn:hover { background: var(--green-3); }
.seg-btn[aria-pressed="true"] { background: var(--brass-light); color: var(--ink); }

.legend-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.legend-list li { display: flex; align-items: center; gap: 14px; color: var(--on-green); transition: opacity .3s ease; }
.legend-list li.is-zero { opacity: .4; }
.legend-list strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--brass-light);
  display: inline-block;
  min-width: 1.2em;
}
.month-section .month-note { margin: 0; color: var(--on-green-soft); }

.month-plan { margin: 0; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.day {
  background: var(--green-2);
  min-height: 82px;
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.day-num { font-size: .78rem; color: var(--on-green-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.day-marks { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; }

.mark { display: inline-block; flex: none; }
.mark-reel { width: 10px; height: 20px; background: var(--brass-light); }
.mark-real { width: 10px; height: 20px; background: transparent; box-shadow: inset 0 0 0 2px var(--brass-light); }
.mark-carousel { width: 16px; height: 16px; background: var(--on-green); }

.mark.pop { animation: pop .42s var(--ease-out) both; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.6); }
  to { opacity: 1; transform: none; }
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px);
}
.problem h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
html[lang="ar"] .problem h3 { font-weight: 600; }
.problem p { margin: 0; }
.opportunity {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--stone);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  max-width: none;
}
html[lang="ar"] .opportunity { line-height: 1.8; }

/* ---------- Approach ---------- */
.wide-photo { margin: 0; overflow: hidden; background: var(--stone-2); }
.wide-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
}
.pulse-line {
  display: block;
  width: 100%;
  height: clamp(56px, 8vw, 104px);
  color: var(--brass);
  margin-block: 28px 12px;
  overflow: visible;
}
html[dir="rtl"] .pulse-line { transform: scaleX(-1); }
.pulse-line path { stroke-dasharray: 2400; stroke-dashoffset: 0; }
.js .pulse-line.reveal path { stroke-dashoffset: 2400; transition: stroke-dashoffset 2.4s var(--ease-out) .2s; }
.js .pulse-line.reveal.is-in path { stroke-dashoffset: 0; }

.beats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.beat h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
html[lang="ar"] .beat h3 { font-weight: 600; }
.beat p { margin: 0; }

/* ---------- Services ---------- */
.sticky-col { position: sticky; top: 112px; }
.side-photo { margin: 40px 0 0; overflow: hidden; }
.side-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.service {
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.6vw, 36px);
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 36px;
  transition: background-color .2s ease;
}
.service h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
html[lang="ar"] .service h3 { font-weight: 600; line-height: 1.5; }
.service p { margin: 0; }
.service:hover { background: var(--stone); }

/* ---------- Packages ---------- */
.packages { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
.package {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px);
  background: var(--paper);
  color: var(--ink);
  transition: transform .3s var(--ease-out);
}
.package:hover { transform: translateY(-4px); }
.package-gold { background: var(--sand); }
.package-platinum { background: var(--green); color: var(--on-green); }

.package-head { margin-bottom: 8px; }
.package-name { font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.05; margin: 0 0 14px; }
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; max-width: none; }
.price-amount {
  font-size: clamp(2.3rem, 3.3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.price-per { color: var(--ink-soft); font-size: var(--size-small); }
.package-platinum .price-per { color: var(--on-green-soft); }

.package-sub {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 32px 0 12px;
}
.package-gold .package-sub { color: #3f4a40; }
.package-platinum .package-sub { color: var(--on-green-soft); }

.qty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qty-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.qty-list strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: .9;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--green);
}
.package-gold .qty-list strong { color: var(--ink); }
.package-platinum .qty-list strong { color: var(--brass-light); }
.qty-list li.is-none { color: var(--ink-soft); }
.qty-list li.is-none strong { color: var(--brass); }

.check-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 10px; flex: 1; align-content: start; }
.check-list li { position: relative; padding-inline-start: 28px; line-height: 1.45; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .38em;
  width: 13px;
  height: 7px;
  /* Physical sides on purpose: a tick reads the same way in Arabic and English. */
  border-left: 2px solid var(--brass-deep);
  border-bottom: 2px solid var(--brass-deep);
  transform: rotate(-45deg);
}
.package-platinum .check-list li::before { border-color: var(--brass-light); }

.package-footnote {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 48px;
  align-items: baseline;
  margin-top: 36px;
}
.package-footnote p { margin: 0; }
.after-note { font-weight: 500; }

/* ---------- Custom package form ---------- */
.form-heading { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; margin-bottom: 18px; float: none; }
html[lang="ar"] .form-heading { font-weight: 600; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.option {
  background: var(--stone);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
  transition: background-color .2s ease;
}
.option:hover { background: var(--stone-2); }
.option.is-on { background: var(--sand); }
.option > label { font-weight: 500; cursor: pointer; line-height: 1.45; }
.option .form-check-input { margin: .2em 0 0; width: 1.25em; height: 1.25em; cursor: pointer; border-radius: var(--radius); }
.form-check-input { border-color: #a99e88; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); border-color: var(--green); }
.option-hint { grid-column: 2; margin: 4px 0 0; }
.qty {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.qty label { font-size: var(--size-small); color: var(--ink-soft); }
.qty .form-control { width: 96px; }
.option:not(.is-on) .qty { opacity: .55; }

.form-control, .form-select {
  border-radius: var(--radius);
  padding: 12px 14px;
  background-color: var(--paper);
  font-size: 1rem;
}
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 500; margin-bottom: 6px; }
.invalid-feedback, .field-error { color: var(--danger); font-size: var(--size-small); }
.field-error { font-weight: 500; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: var(--danger); }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }

.summary {
  position: sticky;
  top: 104px;
  background: var(--green);
  color: var(--on-green);
  padding: clamp(28px, 3vw, 40px);
}
.summary-title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--on-green); margin-bottom: 16px; }
html[lang="ar"] .summary-title { font-weight: 600; }
.summary-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 2px; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: var(--green-2);
}
.summary-list .sum-qty { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--brass-light); }
.summary-empty { color: var(--on-green-soft); }
#sched-empty { color: var(--ink-soft); }
.summary .summary-note { color: var(--on-green-soft); }
.summary-delivery { font-size: var(--size-small); color: var(--on-green); background: var(--green-2); padding: 12px 14px; }
.summary-delivery:empty { display: none; }

.status-box:empty { display: none; }
.status-box { margin-top: 16px; padding: 14px 16px; font-size: var(--size-small); }
.status-box p { margin: 0 0 8px; max-width: none; }
.status-box p:last-child { margin-bottom: 0; }
.status-box.is-ok { background: var(--ok-bg); color: var(--ink); }
.status-box.is-warn { background: var(--warn-bg); color: var(--ink); }
.status-box.is-error { background: var(--danger-bg); color: var(--danger); }
.status-box .btn { margin-top: 8px; }
.status-box .btn-nabd { --bs-btn-color: var(--ivory); --bs-btn-bg: var(--green); --bs-btn-hover-color: var(--ivory); --bs-btn-hover-bg: var(--green-3); }

/* ----------  ---------- */
.-photo { margin: 40px 0 0; overflow: hidden; }
.-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.-list { margin: 0; display: grid; gap: 0; }
.-item { padding: 0 0 clamp(28px, 3vw, 40px); }
.-item dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--on-green);
}
html[lang="ar"] .-item dt { font-weight: 500; line-height: 1.5; }
.-item dt::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--brass-light);
  margin-bottom: 16px;
}
.-item dd { margin: 10px 0 0; max-width: 54ch; color: var(--on-green-soft); }
.-benefit { margin: 8px 0 0; font-family: var(--font-display); font-size: var(--size-statement); line-height: 1.4; color: var(--on-green) !important; max-width: 36ch; }
html[lang="ar"] .-benefit { line-height: 1.8; }
.-aside { margin-top: 40px; background: var(--green-2); padding: 26px 28px; }
.-aside h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--brass-light) !important; }
.-aside p { margin: 0 0 10px; }
.-aside p:last-child { margin: 0; }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.step { position: relative; padding-top: 52px; }
/* A beat on the pulse marks each stage; the line runs through all five. */
.step::before {
  content: "";
  position: absolute;
  top: 9px;
  inset-inline: 0 calc(-1 * clamp(20px, 2.4vw, 36px));
  height: 2px;
  background: var(--brass);
  opacity: .45;
}
.step:last-child::before { inset-inline-end: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--ivory);
}
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
html[lang="ar"] .step h3 { font-weight: 600; }
.step p { margin: 0; }

/* ---------- Guarantee ---------- */
.guarantee { background: var(--brass-field); color: var(--ink); }
.guarantee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  grid-template-areas: "mark mark" "title side";
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: end;
}
.guarantee-mark { grid-area: mark; width: 80px; height: 48px; color: var(--ink); }
.guarantee-title {
  grid-area: title;
  font-size: clamp(2.4rem, 5.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin: 0;
  color: var(--ink);
}
html[dir="rtl"] .guarantee-title { letter-spacing: 0; line-height: 1.4; }
.guarantee-side { grid-area: side; }
.guarantee-sub { margin: 0 0 24px; color: var(--ink); }
.guarantee-sub a { color: var(--ink); }

/* ---------- Proof placeholder ---------- */
.placeholder-block {
  background: var(--stone);
  padding: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px 48px;
}
.placeholder-flag { grid-column: 1 / -1; font-weight: 600; margin-bottom: 8px; color: var(--brass-deep); }
.placeholder-block p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: var(--radius);
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--ink);
  --bs-accordion-btn-color: var(--ink);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--ink);
  --bs-accordion-btn-focus-box-shadow: inset 0 0 0 2px var(--brass-deep);
  --bs-accordion-btn-padding-x: 26px;
  --bs-accordion-btn-padding-y: 22px;
  --bs-accordion-body-padding-x: 26px;
  --bs-accordion-body-padding-y: 0;
  display: grid;
  gap: 4px;
}
.faq .accordion-item { background: var(--paper); border-radius: var(--radius) !important; overflow: hidden; }
.faq .accordion-header { margin: 0; }
.faq .accordion-button { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.3; border-radius: var(--radius) !important; box-shadow: none; gap: 16px; }
html[lang="ar"] .faq .accordion-button { font-weight: 600; line-height: 1.6; }
.faq .accordion-button:focus-visible { box-shadow: var(--bs-accordion-btn-focus-box-shadow); }
.faq .accordion-body { padding-bottom: 26px; max-width: 70ch; }

/* ---------- Final CTA + footer ---------- */
.final-cta { padding-block: var(--section) calc(var(--section) * .75); }

.site-footer {
  background: var(--ink);
  color: #d9ddd3;
  padding-block: clamp(72px, 9vw, 120px) 32px;
  overflow: hidden;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--brass-light); }
.footer-title { font-size: 1rem; font-weight: 600; color: var(--brass-light); margin-bottom: 18px; }
.footer-links, .contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list .c-label { display: block; font-size: var(--size-small); color: #a3ab9f; }
.contact-list .c-value { font-size: 1.15rem; }
.config-missing { background: #24342c; color: var(--warn-bg); padding: 12px 14px; font-size: var(--size-small); }
.footer-wordmark {
  font-size: clamp(6rem, 24vw, 22rem);
  line-height: .85;
  letter-spacing: -0.04em;
  color: #23372e;
  margin: clamp(56px, 8vw, 112px) 0 20px;
  max-width: none;
  white-space: nowrap;
}
html[dir="rtl"] .footer-wordmark { letter-spacing: 0; line-height: 1.15; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-legal, .footer-credits { font-size: var(--size-small); color: #a3ab9f; margin: 0; }

/* ---------- Modals ---------- */
.modal-content { background: var(--ivory); border: 0; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(22, 36, 30, .3); }
.modal-fullscreen .modal-content { border-radius: 0; }
.modal-header { border-bottom: 0; padding: 26px var(--gutter) 8px; }
.modal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
html[lang="ar"] .modal-title { font-weight: 600; }
.modal-body { padding: 8px var(--gutter) 32px; }
html[dir="rtl"] .modal-header .btn-close { margin: 0 auto 0 0; }

.mode-notice { background: var(--warn-bg); padding: 12px 16px; font-size: var(--size-small); max-width: none; }
.mode-notice.is-live { background: var(--ok-bg); }
.mode-notice:empty { display: none; }

.tz-line { margin-bottom: 16px; }
.date-input { max-width: 260px; }
.slots-wrap { margin-top: 24px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.slot {
  appearance: none;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: .95rem;
  padding: 10px 6px;
  min-height: 46px;
  border-radius: var(--radius);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, color .15s ease, transform .15s var(--ease-out);
}
.slot:hover:not(:disabled) { background: var(--sand); }
.slot:active:not(:disabled) { transform: scale(.97); }
.slot[aria-pressed="true"] { background: var(--green); color: var(--ivory); }
.slot:disabled { background: var(--stone); color: #8d8676; text-decoration: line-through; cursor: not-allowed; }
.slots-key { margin: 12px 0 0; }
.slots-empty { grid-column: 1 / -1; color: var(--ink-soft); margin: 0; }
.chosen { margin-top: 20px; font-weight: 600; }
.chosen:empty { display: none; }
.chosen .local-time { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--size-small); }

.booking-result { padding: 8px 0; }
.booking-result h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin-bottom: 12px; }
.booking-result .result-panel { background: var(--paper); padding: 24px; margin: 20px 0; max-width: 640px; }
.booking-result dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.booking-result dt { font-weight: 500; color: var(--ink-soft); }
.booking-result dd { margin: 0; }

/* Schedule */
.sched-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px)) 1fr;
  gap: 16px;
  align-items: end;
  margin: 8px 0 24px;
}
.sched-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-table { --bs-table-bg: transparent; --bs-table-border-color: #d3c9b6; font-size: .975rem; }
.sched-table th { font-weight: 600; white-space: nowrap; color: var(--ink-soft); }
.sched-table td { vertical-align: top; }
.sched-table .when { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched-table .sub { display: block; color: var(--ink-soft); font-size: .9rem; }
.sched-table .tag { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; background: var(--warn-bg); padding: 1px 8px; }
.sched-table select { min-width: 140px; padding: 6px 10px; }
.sched-demo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .pulse-line.reveal { opacity: 1; transform: none; }
html[dir="rtl"].js .pulse-line.reveal { transform: scaleX(-1); }

/* Photographs settle from a slight zoom as they enter. */
.js :is(.hero-media, .wide-photo, .side-photo, .-photo).reveal img { transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
.js :is(.hero-media, .wide-photo, .side-photo, .-photo).reveal.is-in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .pulse-line.reveal path { stroke-dashoffset: 0; transition: none; }
  .js :is(.hero-media, .wide-photo, .side-photo, .-photo).reveal img { transform: none; transition: none; }
  .mark.pop { animation: none; }
  .btn, .package, .slot { transition: none; }
  .btn:active, .btn-nabd:hover, .btn-on-brass:hover, .package:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(3n)::before { inset-inline-end: 0; }
}
@media (max-width: 991.98px) {
  /* Bootstrap's 3rem gutter is wider than the phone margin; keep rows inside the frame. */
  .g-5 { --bs-gutter-x: 32px; }
  .hero-grid, .month-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-rows: none; row-gap: 40px; }
  .hero-copy, .hero-media, .hero-facts { grid-column: 1; grid-row: auto; }
  .hero-copy { padding-top: 0; }
  .hero-facts { margin-top: 0; }
  .hero-media img { aspect-ratio: 4 / 4.4; }
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .sticky-col, .summary { position: static; }
  .service { grid-template-columns: 1fr; }
  .-photo img { aspect-ratio: 4 / 3; }
  .package-footnote { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; grid-template-areas: "mark" "title" "side"; }
  .placeholder-block { grid-template-columns: 1fr; }
  .sched-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sched-quick { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .problem-grid, .option-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 24px; }
  .wide-photo img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px; padding-inline-start: 44px; }
  .step::before { top: 10px; bottom: 0; height: auto; width: 2px; inset-inline-start: 9px; inset-inline-end: auto; }
  .step:last-child::before { display: none; }
  .step:nth-child(3n)::before { inset-inline-end: auto; }
  .step::after { top: 2px; }
  .month-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .day { min-height: 62px; padding: 6px; }
  .mark-reel, .mark-real { width: 8px; height: 15px; }
  .mark-carousel { width: 12px; height: 12px; }
  .booking-result dl { grid-template-columns: 1fr; gap: 2px; }
  .booking-result dd { margin-bottom: 8px; }
  .sched-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .beats { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .segmented { display: flex; width: 100%; }
  .seg-btn { flex: 1; padding-inline: 8px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .display-title { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
}
