/* =====================================================================
   CITY TIME GROUP — Editorial light theme
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --bg:           #FAFAF8;   /* warm off-white */
  --bg-alt:       #FFFFFF;
  --bg-warm:      #F2EFE8;   /* slightly warmer panel */
  --text:         #1A1A1A;   /* charcoal */
  --text-muted:   #5A5A57;
  --text-soft:    #8A8A85;
  --red:          #BE1E2D;
  --red-deep:     #A0192A;
  --red-soft:     #F5E1E3;
  --border:       #E8E5DE;
  --line:         rgba(26,26,26,0.08);
  --shadow-sm:    0 1px 2px rgba(26,26,26,0.04);
  --shadow-md:    0 8px 24px rgba(26,26,26,0.06), 0 2px 6px rgba(26,26,26,0.04);
  --shadow-lg:    0 22px 50px -20px rgba(26,26,26,0.18), 0 6px 14px rgba(26,26,26,0.06);

  /* Type */
  --ff-serif:   "Fraunces", "Source Serif 4", "Times New Roman", Georgia, serif;
  --ff-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* RTL — Arabic typography swap */
html[dir="rtl"] {
  --ff-serif:   "Amiri", "Aref Ruqaa", "Times New Roman", serif;
  --ff-display: "Amiri", "Aref Ruqaa", "Times New Roman", serif;
  --ff-sans:    "Tajawal", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The [hidden] attribute must win over component display values. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---------- 3. Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 9vw, 128px);
}

/* ---------- 4. Typography ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
  color: var(--text);
}
.display-line { display: block; }
.display .accent { color: var(--red); font-style: italic; font-weight: 600; }

html[dir="rtl"] .display { letter-spacing: 0; line-height: 1.25; }
html[dir="rtl"] .display .accent { font-style: normal; }

.section-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 10px 0 18px;
  color: var(--text);
}
html[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.3; }

.section-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

.label, .eyebrow {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
html[dir="rtl"] .label, html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  font-size: 13px;
}

.lede {
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-head--light .label { color: rgba(255,255,255,0.85); }
.section-head--light .section-title,
.section-head--light .section-lede { color: #fff; }
.section-head--light .section-lede { color: rgba(255,255,255,0.86); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(190,30,45,0.25);
}
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 8px 18px -6px rgba(190,30,45,0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: #fff; }

.section-red .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.section-red .btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

.btn-whatsapp {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp .wa-icon svg { width: 18px; height: 18px; display: block; }

.btn-block { width: 100%; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,248,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(26,26,26,0.04), 0 6px 24px -10px rgba(26,26,26,0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  transition: opacity .25s var(--ease);
}
.brand:hover { opacity: 0.82; }

/* Nav lockup — live red wordmark on transparent (no badge, no background) */
.brand--nav {
  /* Baseline-align the mark with the wordmark so the visible glyph spans the cap region of "CITY TIME". */
  align-items: baseline;
  gap: 10px;
}
.nav-mark { display: inline-flex; }
/* Sized by height to match the cap-height of CITY TIME (Fraunces 24px → ~17px caps).
   The supplied SVG has ~18% top padding inside its viewBox; sizing accounts for that
   so the visible glyph lands at ~17px, matching the wordmark caps. */
.nav-mark-img {
  display: block;
  height: 21px;
  width: auto;
}
.nav-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 6px;
}
.nav-wordmark {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--red);
}
.nav-subline {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--red);
  text-transform: uppercase;
}
html[dir="rtl"] .nav-wordmark,
html[dir="rtl"] .nav-subline {
  /* Brand wordmarks stay LTR even when the page mirrors */
  direction: ltr;
  unicode-bidi: isolate;
}

/* Footer lockup — keeps the original red image badge */
.brand-lockup {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 6px;
  overflow: hidden;
}
.brand-lockup--footer { height: 56px; }

.primary-nav { margin-inline: auto; }
.primary-nav ul {
  display: flex;
  gap: 8px;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  position: relative;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
html[dir="rtl"] .primary-nav a::after { transform-origin: right center; }
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--text); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--text); }
.lang-toggle [data-lang-label] { transition: color .2s var(--ease), opacity .2s var(--ease); opacity: 0.45; }
.lang-toggle [data-lang-label].is-active { color: var(--red); opacity: 1; }
.lang-divider { color: var(--text-soft); }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
}
.hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px var(--gutter) 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-menu a {
  display: block;
  padding: 14px 8px;
  font-size: 1.04rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* ---------- 7. Hero ---------- */
.hero {
  padding-block: clamp(80px, 12vw, 144px) clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(190,30,45,0.05), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.hero-copy { max-width: 720px; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-side {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(20px, 3vw, 40px);
  padding-block: 6px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-stats li:last-of-type { border-bottom: none; padding-bottom: 0; }
.hero-stat-num {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-stat-lbl {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-quote {
  margin-top: 28px;
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
html[dir="rtl"] .hero-quote { font-style: normal; }

/* ---------- 8. Companies ---------- */
.companies { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Full-width brand banner across the top of the card */
.card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--red);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.card:hover .card-banner img { transform: scale(1.03); }

.card-body {
  padding: 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.card-title {
  font-family: var(--ff-serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
html[dir="rtl"] .card-title { letter-spacing: 0; line-height: 1.4; }

.card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  background: var(--bg-warm);
  color: var(--text-muted);
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--red);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  transition: gap .25s var(--ease);
}
.card-link .arrow { transition: transform .25s var(--ease); display: inline-block; }
html[dir="rtl"] .card-link .arrow { transform: scaleX(-1); }
.card:hover .card-link .arrow { transform: translateX(4px); }
html[dir="rtl"] .card:hover .card-link .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- 9. Why Us (full-bleed red) ---------- */
.section-red {
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-red .container { position: relative; }
.section-red .why-mark {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 360px;
  height: 360px;
  opacity: 0.05;
  pointer-events: none;
}
html[dir="rtl"] .section-red .why-mark { right: auto; left: -40px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}
.why-num {
  font-family: var(--ff-serif);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
}
.why-h {
  font-family: var(--ff-serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: #fff;
}
html[dir="rtl"] .why-h { letter-spacing: 0; line-height: 1.45; }
.why-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

/* ---------- 10. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about-copy p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat {
  background: var(--bg-alt);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.stat-lbl {
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- 11. Contact ---------- */
.contact { background: var(--bg-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-copy .section-lede { margin-bottom: 32px; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-details li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-details li:last-child { border-bottom: none; }
.ci-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 3px;
}
html[dir="rtl"] .ci-label { letter-spacing: 0; text-transform: none; font-size: 0.86rem; }
.ci-val {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}
.ci-val a { color: var(--text); border-bottom: 1px solid var(--line); transition: color .2s var(--ease), border-color .2s var(--ease); }
.ci-val a:hover { color: var(--red); border-bottom-color: var(--red); }
.ci-note { color: var(--text-muted); font-size: 0.92rem; }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
html[dir="rtl"] .field label { letter-spacing: 0; font-size: 0.94rem; }

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; font-family: var(--ff-sans); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(190,30,45,0.12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
  background: #fff;
}
.field-error {
  color: var(--red);
  font-size: 0.82rem;
  min-height: 1em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.form-success {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #EEF8F0;
  border: 1px solid #C7E6CC;
  color: #1F5A2C;
  padding: 16px 18px;
  border-radius: 10px;
}
.form-success strong { font-size: 1rem; }
.form-success span { color: #2A6E3B; font-size: 0.94rem; }

/* ---------- 12. Closing CTA ---------- */
.closing-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}
.closing-inner .section-lede { margin: 0 auto 28px; }
.closing-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 24px;
}
.site-footer .brand { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tag {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.55;
  margin-top: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 36ch;
}
html[dir="rtl"] .footer-tag { font-style: normal; }

.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 6px 0 18px;
}
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: 0.96rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}
.footer-placeholder { font-style: italic; color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ---------- 14. Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side {
    border-inline-start: none;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-top: 32px;
    margin-top: 12px;
  }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 14px 32px; }
  .hero-stats li { border-bottom: none; padding-bottom: 0; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-row { height: 64px; gap: 14px; }
  .primary-nav,
  .nav-cta { display: none; }
  .hamburger { display: inline-flex; }

  .brand-lockup { height: 40px; }
  .nav-mark-img { height: 17px; }
  .nav-wordmark { font-size: 19px; letter-spacing: 0.16em; }
  .nav-subline { font-size: 8.5px; letter-spacing: 0.22em; }
  .brand--nav { gap: 10px; }

  .display { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .hero-quote { margin-top: 22px; }

  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
  .ci-label { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .footer-bottom { justify-content: flex-start; }

  .hero-stats { flex-direction: column; gap: 18px; }
  .hero-stats li { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
}

/* ---------- 16. RTL fine adjustments ---------- */
html[dir="rtl"] {
  /* Numbers stay LTR even in RTL pages */
}
html[dir="rtl"] .stat-num,
html[dir="rtl"] .hero-stat-num,
html[dir="rtl"] [data-countup] {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .card-link .arrow { /* visually reverse arrow */ }
html[dir="rtl"] .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(-45deg); }
html[dir="rtl"] .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(45deg); }

/* Keep phone/email LTR formatting when inline in RTL */
html[dir="rtl"] [dir="ltr"] { display: inline-block; }

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .closing-cta, .site-footer, .nav-actions, .hero-actions, .form-actions, .closing-actions { display: none !important; }
  .hero, .section { padding-block: 24px; }
}
