/* ==========================================================================
   Sohbah Retreats — refinement layer (loaded last on every page)
   Direction: reverent, warm, unhurried. A devotional travel book: paper,
   forest ink, sandstone, with the photographs carrying the colour.
   Signature: the eight-point tile star that marks every section label.
   Polish pass informed by "unslop" by Damir Sokolovsky (@heydamir), CC BY 4.0.
   ========================================================================== */

:root {
  --r-paper: #f6f3ea;
  --r-card: #fcfaf5;
  --r-raised: #eee9dc;
  --r-ink: #233023;
  --r-ink-2: #535d4b;
  --r-ink-3: #6b7262;
  --r-line: rgba(35, 48, 35, .1);
  --r-line-strong: rgba(35, 48, 35, .18);
  --r-accent: #9c4a31;          /* sandstone / rust, from the existing brand */
  --r-forest: #1f2a1f;
  --r-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --r-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --r-ease: cubic-bezier(.22, 1, .36, 1);
  --r-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3.2 4.3 5.3-.8-.8 5.3L24 12l-4.3 3.2.8 5.3-5.3-.8L12 24l-3.2-4.3-5.3.8.8-5.3L0 12l4.3-3.2-.8-5.3 5.3.8z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html body { font-family: var(--r-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'kern', 'liga'; }
html body ::selection { background: rgba(156, 74, 49, .18); color: var(--r-ink); }
html body h1, html body h2, html body h3, html body summary { text-wrap: balance; }
html body p, html body li, html body blockquote { text-wrap: pretty; }

/* Visible, on-palette keyboard focus everywhere */
html body :where(a, button, summary, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--r-accent);
  outline-offset: 3px;
  border-radius: 10px;
}
html body .hero :where(a, button):focus-visible { outline-color: #fff; }

/* Display serif for headlines only */
html body h1,
html body h2,
html body .departure-title h3,
html body #atlas-name,
html body .about-chapter-heading h3 {
  font-family: var(--r-serif);
  font-weight: 350;
  font-optical-sizing: auto;
  font-synthesis: none;
}
html body h2 { letter-spacing: -.02em; line-height: 1.06; }

/* Section labels: quieter tracking, with the tile-star signature */
html body .eyebrow,
html body .atlas-kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-family: var(--r-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 16px;
  color: var(--r-ink-3);
}
html body .eyebrow::before,
html body .atlas-kicker::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--r-accent);
  -webkit-mask: var(--r-star) center / contain no-repeat;
          mask: var(--r-star) center / contain no-repeat;
}

/* Sentence-case labels: no forced capitals or wide tracking anywhere */
html body .about-story .our-story-header > p,
html body .pending-profile > span,
html body .package-detail-hero p,
html body .package-itinerary article > span,
html body .package-hosts article p,
html body .journal-heading > p:first-child,
html body .hosts-intro > p:first-child,
html body .confidence-heading > p:first-child,
html body .journal-feature > div > p:first-child,
html body .journal-side > div > p:first-child,
html body .journey-preferences summary span {
  text-transform: none;
  letter-spacing: .01em;
}
html body .about-story .our-story-header > p { font-size: 13px; }
html body.journey-page .eyebrow,
html body.journey-page .iraq-booking-top .eyebrow,
html body .iraq-page .eyebrow { font-size: 13px; letter-spacing: .01em; }

/* Buttons: one height family, colour-only feedback, a small press */
html body .pill,
html body .departure-cta,
html body .atlas-interest,
html body .header-whatsapp {
  font-family: var(--r-sans);
  font-weight: 500;
  transition: background-color 160ms var(--r-ease), color 160ms var(--r-ease), border-color 160ms var(--r-ease), transform 120ms var(--r-ease);
}
html body :where(.pill, .departure-cta, .atlas-interest, .header-whatsapp, .text-link):active { transform: scale(.98); }

/* ---------- Header ---------- */
.sohba-editorial .header { transition: background-color 240ms var(--r-ease), border-color 240ms var(--r-ease), color 240ms var(--r-ease); }
.sohba-editorial .header.scrolled {
  background: rgba(246, 243, 234, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
          backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--r-line);
}
html body .header nav a { font-size: 13px; letter-spacing: .01em; transition: color 160ms var(--r-ease), opacity 160ms var(--r-ease); }
html body .header nav a { position: relative; }
@media (min-width: 761px) {
  html body .header nav a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
    background: currentColor; opacity: 0;
    transform: scaleX(.4); transform-origin: center;
    transition: opacity 180ms var(--r-ease), transform 220ms var(--r-ease);
  }
  html body .header nav a:hover::after,
  html body .header nav a:focus-visible::after { opacity: .6; transform: none; }
}
/* WhatsApp keeps its recognisable green (set deliberately in dialogs.css); only size and type are tuned */
html body .header .header-whatsapp {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 16px;
  box-shadow: none;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.sohba-editorial .hero::after {
  /* neutral scrim so the headline reads over any frame of the film */
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 16, 11, .55) 0%, rgba(12, 16, 11, .22) 42%, rgba(12, 16, 11, 0) 70%),
    linear-gradient(0deg, rgba(12, 16, 11, .45) 0%, rgba(12, 16, 11, 0) 38%);
  z-index: 1;
}
.sohba-editorial .hero .hero-heading,
.sohba-editorial .hero .hero-cycle-toggle { z-index: 2; }
.sohba-editorial .hero h1 {
  font-family: var(--r-serif);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 112px);
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: initial;
}
.sohba-editorial .hero .eyebrow { color: rgba(255, 255, 255, .86); font-size: 14px; letter-spacing: .01em; }
.sohba-editorial .hero .eyebrow::before { background: #e9c9a0; }
.sohba-editorial .hero .hero-sub { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 34rem; color: rgba(255, 255, 255, .9); }
.sohba-editorial .hero .hero-actions .pill {
  min-height: 48px; padding: 0 22px 0 24px; gap: 14px;
  font-size: 14px;
  background: #f6f3ea; color: var(--r-ink);
  border: 1px solid transparent;
}
.sohba-editorial .hero .hero-actions .pill:hover { background: #fff; }
.sohba-editorial .hero .hero-actions .pill span { transition: transform 180ms var(--r-ease); }
.sohba-editorial .hero .hero-actions .pill:hover span { transform: translate(2px, -2px); }
.sohba-editorial .hero .hero-cycle-toggle {
  width: 44px; height: 44px;
  background: rgba(246, 243, 234, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 160ms var(--r-ease);
}
.sohba-editorial .hero .hero-cycle-toggle:hover { background: rgba(246, 243, 234, .3); }

/* The brand wordmark stands in for the word "sohbah" in the headline */
html body .hero h1 .hero-wordmark {
  display: inline-block;
  height: .8em;
  width: auto;
  max-width: none;
  vertical-align: baseline;
  margin: 0 .02em 0 -.01em;
  filter: brightness(0) invert(1);   /* white, like the headline text */
}

/* ---------- Upcoming journeys ---------- */
.sohba-editorial .departures-heading h2 { font-size: clamp(38px, 4.4vw, 64px); letter-spacing: -.025em; }
.sohba-editorial .departures-heading > p:not(.eyebrow) { color: var(--r-ink-2); font-size: 16px; line-height: 1.6; }
.sohba-editorial .departure-card {
  border-radius: 20px;
  background: var(--r-card);
  border: 1px solid var(--r-line);
  box-shadow: 0 1px 2px rgba(35, 48, 35, .04);
  transition: box-shadow 260ms var(--r-ease), border-color 260ms var(--r-ease);
}
.sohba-editorial .departure-card:hover {
  border-color: var(--r-line-strong);
  box-shadow: 0 18px 40px -18px rgba(35, 48, 35, .22);
}
.sohba-editorial .departure-photo { border-radius: 14px; }
.sohba-editorial .departure-photo img { transition: transform 900ms var(--r-ease); }
.sohba-editorial .departure-category {
  font-family: var(--r-sans);
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  background: rgba(252, 250, 245, .92); color: var(--r-ink);
  border: 0; box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sohba-editorial .departure-title h3 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.sohba-editorial .departure-price {
  font-family: var(--r-serif);
  font-size: 26px; font-weight: 350;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--r-ink);
}
.sohba-editorial .departure-price.departure-price-pending { font-family: var(--r-sans); font-size: 13px; color: var(--r-ink-3); }
.sohba-editorial .departure-date { color: var(--r-ink-2); font-variant-numeric: tabular-nums; }
.sohba-editorial .departure-date svg { color: var(--r-ink-3); }
.sohba-editorial .departure-description { color: var(--r-ink-2); font-size: 15px; line-height: 1.65; }
.sohba-editorial .departure-note { color: var(--r-ink-3); }
.sohba-editorial .departure-cta {
  min-height: 52px; border-radius: 12px;
  background: var(--r-forest); color: #f6f3ea;
  font-size: 14px;
}
.sohba-editorial .departure-cta:hover { background: #33432f; }
.sohba-editorial .departure-cta .ui-arrow { transition: transform 180ms var(--r-ease); }
.sohba-editorial .departure-cta:hover .ui-arrow { transform: translate(2px, -2px); }

/* ---------- Register interest (atlas) ---------- */
.sohba-editorial #interest-title { font-size: clamp(36px, 3.8vw, 56px); }
.sohba-editorial .interest-description { color: var(--r-ink-2); line-height: 1.65; }
.sohba-editorial .atlas-nav button {
  min-height: 48px;
  font-family: var(--r-sans);
  font-size: 15px;
  color: var(--r-ink-2);
  transition: background-color 160ms var(--r-ease), color 160ms var(--r-ease), padding 0s;
}
.sohba-editorial .atlas-nav button:hover { color: var(--r-ink); background: rgba(35, 48, 35, .04); }
.sohba-editorial .atlas-nav button[aria-pressed="true"] { color: var(--r-ink); background: var(--r-raised); font-weight: 500; }
.sohba-editorial .atlas-nav button b { transition: transform 180ms var(--r-ease), color 160ms var(--r-ease); }
.sohba-editorial .atlas-nav button:hover b,
.sohba-editorial .atlas-nav button[aria-pressed="true"] b { color: var(--r-accent); transform: translate(2px, -2px); }
.sohba-editorial .atlas-scene { border-radius: 20px; border: 1px solid var(--r-line); }
.sohba-editorial .interest-photo { border-radius: 14px; }
.sohba-editorial #atlas-name { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.sohba-editorial .atlas-interest { min-height: 44px; border-radius: 10px; background: var(--r-forest); color: #f6f3ea; }
.sohba-editorial .atlas-interest:hover { background: #33432f; }

/* ---------- About ---------- */
.sohba-editorial #our-story-title { font-size: clamp(34px, 3.3vw, 48px); }
.sohba-editorial .our-story-lead { font-size: 18px; line-height: 1.7; color: var(--r-ink); }
.sohba-editorial .our-story-detail,
.sohba-editorial .our-story-copy > p:not(.our-story-lead) { color: var(--r-ink-2); line-height: 1.75; }
.sohba-editorial .our-story-images img { border-radius: 16px; }
.sohba-editorial .about-teaching { border-radius: 20px; }
.sohba-editorial .about-arabic { line-height: 1.7; letter-spacing: 0; }
.sohba-editorial .about-translation { font-family: var(--r-serif); font-weight: 350; letter-spacing: -.01em; }
html body.sohba-editorial .about-chapter-heading h3 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.1; letter-spacing: -.02em; color: var(--r-ink); }
.sohba-editorial .about-chapter-copy p { color: var(--r-ink-2); line-height: 1.8; }

/* ---------- Gallery ---------- */
.sohba-editorial #gallery-title { font-size: clamp(36px, 3.8vw, 56px); }
.sohba-editorial .archive-photo { border-radius: 16px; }
.sohba-editorial .flow-arrows button,
.sohba-editorial .review-controls button {
  min-width: 44px; min-height: 44px;
  transition: background-color 160ms var(--r-ease), color 160ms var(--r-ease), border-color 160ms var(--r-ease);
}

/* ---------- Reviews ---------- */
.sohba-editorial #reviews-title { font-size: clamp(36px, 3.8vw, 56px); }
html body .traveller-reviews .review-slides .review-card blockquote,
html body .review-slides .review-card blockquote {
  font-style: normal;
  font-family: var(--r-serif);
  font-size: 19px;
  font-weight: 350;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--r-ink);
}
.sohba-editorial .review-card {
  border-radius: 20px;
  border: 1px solid var(--r-line);
  background: var(--r-card);
  box-shadow: 0 1px 2px rgba(35, 48, 35, .04);
}
.sohba-editorial .review-attribution { font-variant-numeric: tabular-nums; }
.sohba-editorial .review-expand { color: var(--r-accent); font-weight: 500; }

/* ---------- FAQ ---------- */
.sohba-editorial .faq-section h2 { font-size: clamp(34px, 2.8vw, 42px); }
.sohba-editorial .faq-introduction { color: var(--r-ink-2); line-height: 1.65; }
.sohba-editorial .faq-list details { border-color: var(--r-line-strong); }
.sohba-editorial .faq-list summary {
  min-height: 60px;
  font-size: 16px;
  color: var(--r-ink);
  cursor: pointer;
  transition: color 160ms var(--r-ease);
}
.sohba-editorial .faq-list summary:hover { color: var(--r-accent); }
.sohba-editorial .faq-list details[open] summary { color: var(--r-ink); font-weight: 500; }
.sohba-editorial .faq-list details > p { color: var(--r-ink-2); line-height: 1.75; max-width: 62ch; }

/* ---------- Footer ---------- */
.sohba-editorial .premium-footer { background: #e6e8db; border-top: 1px solid var(--r-line); }
.sohba-editorial .premium-footer a { transition: color 160ms var(--r-ease); }
.sohba-editorial .premium-footer a:hover { color: var(--r-accent); }
.sohba-editorial .premium-footer h3 { font-family: var(--r-sans); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--r-ink-3); }

/* ---------- Dialogs ---------- */
html body dialog { font-family: var(--r-sans); }
html body dialog h2 { font-family: var(--r-serif); font-weight: 350; }
html body dialog::backdrop { background: rgba(20, 26, 19, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .sohba-editorial .hero h1 { font-size: clamp(36px, 10.4vw, 50px) !important; line-height: 1.02; } /* beats an old 51px !important in style.css */
  .sohba-editorial .hero::after {
    background: linear-gradient(0deg, rgba(12, 16, 11, .66) 0%, rgba(12, 16, 11, .25) 55%, rgba(12, 16, 11, .1) 100%);
  }
  .sohba-editorial .departures-heading h2,
  .sohba-editorial #interest-title,
  .sohba-editorial #our-story-title,
  .sohba-editorial #gallery-title,
  .sohba-editorial #reviews-title,
  .sohba-editorial .faq-section h2 { font-size: clamp(32px, 8.8vw, 40px); }
  .sohba-editorial .departure-title h3 { font-size: 26px; }
  html body .review-slides .review-card blockquote,
  html body .traveller-reviews .review-slides .review-card blockquote { font-size: 18px; }
  html body .header .header-whatsapp { min-height: 36px; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { transition-duration: 1ms !important; }
}

/* Label size and spacing must win over older, more specific per-section rules */
html body .eyebrow,
html body .atlas-kicker {
  font-size: 13px !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}
html body .departure-category { letter-spacing: .01em !important; text-transform: none !important; }
html body.sohba-editorial .hero .eyebrow { font-size: 14px !important; }
