/* ==========================================================================
   Host Tours — WordPress theme styles (converted from the static site)
   Palette drawn from the logo: brand blue + brand red, with a gold hairline.
   ========================================================================== */

:root {
  --blue:       #05509A;
  --blue-deep:  #0C2340;
  --blue-mist:  #EAF1F9;
  --blue-wash:  #F4F8FC;
  --offwhite:   #F5F3EE;
  --red:        #E8292D;
  --red-deep:   #C81F24;
  --gold:       #96742F;
  --gold-soft:  #E9DDC3;
  --paper:      #FFFFFF;
  --ink:        #0C2340;
  --ink-soft:   #4A5B72;
  --line:       rgb(var(--blue-rgb) / .14);
  --blue-rgb: 5 80 154;
  --blue-deep-rgb: 12 35 64;
  --gold-rgb: 150 116 47;
  --ht-step: "الخطوة ";

  --f-display: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-arabic:  "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Frame — full-width page (side pattern strips removed; video runs edge to edge)
   ========================================================================== */
.frame {
  display: block;
  min-height: 100vh;
}

.page { background: var(--paper); min-width: 0; }

#main { padding-top: 90px; }

/* ==========================================================================
   Navbar — the logo floats centred at the top, the pages sit in a dock at the
   bottom of the screen (one thumb-tap away on phones). Each piece takes the tone
   of the section behind it (data-nav-theme, read in main.js): smoked glass with
   white type over photos and the footer, warm paper with navy type over light
   sections.
   ========================================================================== */
.nav { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__logo, .nav__cta, .nav__dock {
  --n-ink: rgba(255, 255, 255, .84); --n-ink-strong: #FFFFFF; --n-cta-ink: var(--blue-deep); --n-hover: rgba(255, 255, 255, .1);
  --n-glass: rgba(12, 28, 50, .28); --n-edge: rgba(255, 255, 255, .16); --n-accent: #D9B56E;
  --n-solid: rgba(40, 58, 84, .9); --n-plus: #6FB1F2; /* brand blue, lifted to read on the dark glass */
  --n-shadow: 0 10px 30px -20px rgba(0, 0, 0, .45);
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--n-glass); border: 1px solid var(--n-edge); box-shadow: var(--n-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease);
}
.nav [data-tone="light"] {
  --n-ink: rgb(var(--blue-deep-rgb) / .7); --n-ink-strong: var(--blue-deep); --n-cta-ink: #FFFFFF; --n-hover: rgb(var(--blue-deep-rgb) / .05);
  --n-glass: rgba(251, 250, 247, .86); --n-edge: rgb(var(--blue-deep-rgb) / .08); --n-accent: var(--gold);
  --n-solid: #FBFAF7; --n-plus: var(--blue);
  --n-shadow: 0 12px 32px -22px rgb(var(--blue-deep-rgb) / .45);
}
.nav a:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

/* logo: white over photos, full colour over light sections */
.nav__logo {
  top: calc(14px + env(safe-area-inset-top, 0px)); height: 58px; padding-inline: 20px; border-radius: 999px;
  display: grid; place-items: center;
}
.nav__logo .nav__logo-full { grid-area: 1 / 1; height: 40px; width: auto; transition: opacity .35s var(--ease); }
.nav__logo .nav__logo-full--color { opacity: 0; }
.nav__logo[data-tone="light"] .nav__logo-full--white { opacity: 0; }
.nav__logo[data-tone="light"] .nav__logo-full--color { opacity: 1; }

.nav__cta {
  top: calc(22px + env(safe-area-inset-top, 0px)); left: auto; right: auto; inset-inline-end: clamp(16px, 3vw, 40px); transform: none;
  padding: 10px 20px; border-radius: 999px; font-size: .92rem; font-weight: 800; white-space: nowrap;
  background: var(--n-ink-strong); color: var(--n-cta-ink); border-color: transparent;
}
.nav__cta:hover { filter: brightness(1.1); }

.nav__dock {
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 4px; padding: 7px; border-radius: 26px;
  box-shadow: 0 18px 40px -20px rgb(var(--blue-deep-rgb) / .55);
}
.nav__dock a, .nav__dock button {
  display: grid; justify-items: center; gap: 4px; padding: 9px clamp(14px, 1.9vw, 26px); border-radius: 19px;
  font: 600 .84rem var(--f-body); color: var(--n-ink); white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  transition: color .25s, background .25s;
}
.nav__dock svg { width: 22px; height: 22px; }
.nav__dock a:hover, .nav__dock button:hover { color: var(--n-ink-strong); background: var(--n-hover); }
/* current page (or, on phones, “المزيد” when the page lives in its sheet): filled tile, icon in gold */
.nav__dock a[aria-current="page"], .nav__dock-more.is-current, .nav__dock-more[aria-expanded="true"] {
  color: var(--n-ink-strong); background: var(--n-hover); box-shadow: inset 0 0 0 1px var(--n-edge);
}
.nav__dock a[aria-current="page"] svg, .nav__dock-more.is-current svg { color: var(--n-accent); }
.nav button:focus-visible { outline: 2px solid var(--n-accent, var(--gold)); outline-offset: 3px; }

/* phone-only pieces of the dock: the raised booking button and “المزيد” */
.nav__dock-book, .nav__dock-more { display: none !important; }
.nav__dock .nav__dock-book { position: relative; }
.nav__dock-book i {
  display: grid; place-items: center; width: 52px; height: 52px; margin-top: -30px; border-radius: 50%;
  /* same surface as the bar it sits on, a touch more opaque since the raised half
     is outside the bar's blur; the blue + carries the emphasis */
  background: var(--n-solid); color: var(--n-plus);
  border: 1px solid var(--n-edge);
  box-shadow: 0 12px 24px -12px rgb(var(--blue-deep-rgb) / .55);
}
.nav__dock-book i svg { width: 26px; height: 26px; stroke-width: 2.6; }
.nav__dock .nav__dock-book span { color: var(--n-ink-strong); font-weight: 800; }
.nav__dock .nav__dock-book:hover { background: none; }

/* the “المزيد” sheet (phones) */
.nav__sheet { position: fixed; inset: 0; z-index: 60; }
.nav__sheet[hidden] { display: none; }
.nav__sheet-backdrop {
  position: absolute; inset: 0; background: rgba(8, 20, 38, .45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: navFade .35s var(--ease);
}
@keyframes navFade { from { opacity: 0; } }
.nav__sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 16px;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #FBFAF7; color: var(--blue-deep); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
  animation: navSheetUp .45s cubic-bezier(.32, .72, 0, 1);
}
@keyframes navSheetUp { from { transform: translateY(100%); } }
.nav__sheet-grip { justify-self: center; width: 44px; height: 5px; padding: 0; border: 0; border-radius: 99px; background: rgb(var(--blue-deep-rgb) / .18); cursor: pointer; }
.nav__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.nav__tile {
  display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; text-align: center;
  background: #fff; border: 1px solid rgb(var(--blue-deep-rgb) / .08); font-size: .88rem; font-weight: 700; color: var(--blue-deep);
}
.nav__tile svg { width: 24px; height: 24px; color: var(--gold); }
.nav__tile[aria-current="page"] { border-color: rgb(var(--gold-rgb) / .45); background: #FFF9EC; }
.nav__sheet-contact { margin: 0; display: flex; justify-content: center; gap: 18px; font-size: .85rem; color: var(--ink-soft); }
.nav__sheet-contact bdi { direction: ltr; color: var(--blue-deep); }
.nav__sheet-cta { display: block; text-align: center; padding: 13px; border-radius: 999px; background: var(--blue-deep); color: #fff; font-weight: 800; }
html.sheet-open { overflow: hidden; }

/* ==========================================================================
   Shared type + buttons
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.h2 { text-wrap: balance; }
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em;
  color: var(--blue-deep);
}
.h2 em { font-style: normal; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 54px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: none; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); transform: translateY(-2px); }
/* on dark sections the primary button keeps its white edge and turns see-through on hover */
[data-nav-theme="dark"] .btn--primary { border-color: #fff; }
[data-nav-theme="dark"] .btn--primary:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { border-color: var(--gold-soft); color: var(--blue-deep); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.section { padding: clamp(48px, 6vw, 80px) var(--gutter); }
.section--tint { background: var(--blue-wash); }
/* "why" section: geometric pattern, faded out behind the heading and cards */
#why { position: relative; isolation: isolate; }
#why::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/pattern-blue.jpg") center / 808px auto repeat;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at center, transparent 25%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 65% at center, transparent 25%, #000 100%);
}
.section__head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head .h2 { margin-top: 18px; }
.section > *:not(.section__head) { max-width: var(--maxw); margin-inline: auto; }

.ticks li {
  position: relative; padding-inline-start: 26px; margin-bottom: 10px;
  color: var(--ink-soft); font-size: .98rem; line-height: 1.5;
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em;
  width: 9px; height: 9px; background: var(--red); transform: rotate(45deg);
}

/* ==========================================================================
   Hero — destination carousel. Layers, back to front:
   slide photo → giant city name → the traveller (fixed, never slides) → CTA.
   The traveller sitting above the title is what makes the name read as
   "behind" him.
   ========================================================================== */
.hero { margin-top: -90px; }
.page-header { margin-top: -90px; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh;
  min-height: 560px;
  background: var(--blue-deep);
}

.hc { position: absolute; inset: 0; --slide-w: 84vw; --px: 0; --py: 0; }
.hc__viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.hc__viewport.is-dragging { cursor: grabbing; }
.hc__track {
  display: flex; height: 100%; direction: ltr;
  transition: transform .9s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.hc__track.no-anim { transition: none; }

.hc__slide { position: relative; flex: 0 0 var(--slide-w); height: 100%; overflow: hidden; direction: rtl; user-select: none; }
.hc__bg {
  position: absolute; inset: -16px; /* bleed past the slide so the cursor parallax never shows its edge */
  background-size: cover; background-position: center;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.hc__slide.is-active .hc__bg { transform: scale(1); }
/* parallax (--px/--py set from the cursor in main.js): photo drifts least, against the cursor */
.hc__slide.is-active .hc__bg { translate: calc(var(--px) * -6px) calc(var(--py) * -4px); }
/* legibility: darker top (title) and bottom (CTA) */
.hc__slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgb(var(--blue-deep-rgb) / .55) 0%, rgb(var(--blue-deep-rgb) / .12) 45%, rgb(var(--blue-deep-rgb) / .7) 100%);
}
/* neighbouring slides sit in shadow */
.hc__slide::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: rgba(8, 20, 38, .55);
  transition: opacity .9s var(--ease);
}
.hc__slide.is-active::after { opacity: 0; }

.hc__text {
  position: absolute; z-index: 2; inset-inline: 0; top: max(150px, 25%);
  text-align: center; color: #fff;
  translate: calc(var(--px) * -10px) calc(var(--py) * -5px);
}
.hc__kicker { font-size: clamp(.95rem, 1.5vw, 1.2rem); font-weight: 500; word-spacing: .35em; opacity: .9; }
.hc__title {
  font-family: var(--f-display);
  font-weight: 800; font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.05; white-space: nowrap;
  text-shadow: 0 6px 40px rgb(var(--blue-deep-rgb) / .35);
}
.hc__slide.is-active .hc__kicker { animation: hcRise .9s var(--ease) both .15s; }
.hc__slide.is-active .hc__title { animation: hcRise 1s var(--ease) both .25s; }
@keyframes hcRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hc__badge {
  position: absolute; z-index: 2; bottom: 27%; inset-inline-end: 8%;
  display: grid; place-content: center; text-align: center; gap: 2px;
  width: clamp(104px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: #fff;
  border: 2px dashed rgba(255, 255, 255, .7); outline: 6px solid var(--blue); outline-offset: -1px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  transform: rotate(-8deg);
}
.hc__badge strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.1; }
.hc__badge span { font-size: .82rem; font-weight: 700; opacity: .9; }

/* larger than the frame and cropped by it, like the reference */
.hc__person {
  position: absolute; z-index: 4; top: 50%; left: 50%;
  height: 66%; width: auto; max-width: none;
  transform: translateX(-50%);
  translate: calc(var(--px) * 13px) calc(var(--py) * 6px);
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4));
}

.hc__arrow {
  position: absolute; z-index: 5; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s, transform .2s var(--ease);
}
.hc__arrow:hover { background: rgba(255, 255, 255, .3); }
.hc__arrow:active { transform: scale(.94); }
.hc__arrow--prev { left: clamp(16px, 3vw, 40px); }
.hc__arrow--next { right: clamp(16px, 3vw, 40px); }

/* ==========================================================================
   Program switch — Hajj / Umrah toggle
   ========================================================================== */
.switcher { padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(72px, 9vw, 120px); background: var(--blue-wash); }

.switcher__tabs {
  display: flex; justify-content: center; gap: 6px;
  width: max-content; max-width: 100%; margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -24px rgb(var(--blue-deep-rgb) / .35);
}

.switcher__tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; color: var(--ink-soft);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.switcher__tab svg { flex: none; opacity: .85; transition: opacity .25s var(--ease); }
.switcher__tab.is-active {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 6px rgb(var(--blue-rgb) / .18), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.switcher__tab.is-active svg { opacity: 1; }
.switcher__tab:not(.is-active):hover { color: var(--blue); }

.switcher__panels { max-width: var(--maxw); margin-inline: auto; }
.switcher__panel[hidden] { display: none; }

.switcher__packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
/* Centred card: the photo sits in a rounded frame, the package name rides on
   a label straddling the frame's foot, and the body
   reads top-down as tags → dashed rule → inclusions → button. */
.pkg {
  display: flex; flex-direction: column; text-align: center;
  padding: 10px 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 18px 40px -32px rgb(var(--blue-deep-rgb) / .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -30px rgb(var(--blue-deep-rgb) / .4); }
/* placeholder until real package photos exist: the white logo on a brand-blue panel */
.pkg__img {
  position: relative; height: 230px;
  background:
    var(--ht-logo-light, url("../img/logo-horizontal-white.png")) center 40% / 60% auto no-repeat,
    radial-gradient(120% 90% at 50% 0%, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 22px;
}
.pkg__img--photo { background-size: cover; background-position: center 30%; }
.pkg__img--photo::after { display: none; }
/* tall panel: shows a whole portrait flyer, so the name label moves just
   below it instead of covering the flyer's own bottom line */
.pkg__img--tall { height: auto; aspect-ratio: 720 / 720; background-position: center; }
.pkg__img--tall .pkg__cap { transform: translate(-50%, calc(100% + 12px)); }
.pkg__img--tall + .pkg__body { padding-top: 104px; }
.pkg__img::after {
  content: ""; position: absolute; inset: 8px; border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, .22);
}
.pkg__cap {
  position: absolute; z-index: 1; left: 50%; bottom: 0;
  transform: translate(-50%, 50%);
  min-width: 62%; width: max-content; max-width: calc(100% - 24px); padding: 10px 26px 12px;
  white-space: nowrap;
  background: #fff; color: var(--ink); border-radius: 18px;
  box-shadow: 0 12px 26px -14px rgb(var(--blue-deep-rgb) / .45);
}
.pkg__cap small { display: block; font-size: .74rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.pkg__cap strong { display: block; font-family: var(--f-display); font-size: 1.55rem; font-weight: 800; line-height: 1.15; color: var(--blue); }
.pkg__body { display: flex; flex-direction: column; flex: 1; padding: 56px 14px 24px; }
/* trip length, frosted badge in the photo's top-right corner */
.pkg__dur {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  font-size: .78rem; font-weight: 700; color: #fff; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  background: rgb(var(--blue-deep-rgb) / .32); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* one centred grid column as wide as the longest line: the block sits centred,
   but every line starts at the same edge so the diamonds form one column */
.pkg .ticks { display: grid; justify-content: center; margin: 0px 0 24px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pkg .ticks li { text-align: start; margin-bottom: 8px; font-size: .96rem; color: var(--ink-soft); }
.pkg .ticks li::before { width: 7px; height: 7px; top: .6em; }
.pkg .ticks b { font-weight: 700; color: var(--ink); }

/* price panel: pushed to the card foot so prices line up across a row */
.pkg__price { margin: auto 0 18px; padding: 14px 10px 12px; background: var(--blue-wash); border-radius: 18px; }
.pkg__price + .btn { margin-top: 0; }
.pkg__price-label { font-size: .78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.pkg__rooms { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; }
.pkg__rooms > div + div { border-inline-start: 1px solid var(--line); }
.pkg__rooms dt { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.pkg__rooms dd { margin: 0; font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; color: var(--red-deep); line-height: 1.3; }
.pkg__deposit { margin-top: 8px; font-size: .74rem; color: var(--ink-soft); }
.pkg__ask { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.pkg--top .pkg__price { background: #F6EFDF; }

.switcher__note { max-width: 760px; margin: clamp(24px, 3vw, 36px) auto 0; text-align: center; font-size: .86rem; color: var(--ink-soft); }
.pkg .btn { margin-top: auto; width: 100%; min-height: 50px; padding: 0 24px; }

/* featured: gold frame, and the name label turns gold so it stands off the blue panel */
.pkg--top {
  border: 2px solid var(--gold);
  background: linear-gradient(to bottom, #fff 60%, #FBF8F1);
  box-shadow: 0 30px 56px -30px rgb(var(--gold-rgb) / .65);
}
.pkg--top .pkg__cap { background: var(--gold); }
.pkg--top .pkg__cap small { color: rgba(255, 255, 255, .85); }
.pkg--top .pkg__cap strong { color: #fff; }

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pillar {
  background: #fff; border-radius: 16px;
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
  padding: clamp(28px, 3.4vw, 36px) clamp(18px, 2.4vw, 26px); text-align: center;
  box-shadow: 0 20px 40px -28px rgb(var(--blue-deep-rgb) / .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgb(var(--blue-deep-rgb) / .4); }
.pillar__icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--blue);
  background: var(--blue-wash); border: 1.5px solid var(--gold-soft);
  transition: background .3s, color .3s;
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar:hover .pillar__icon { background: var(--blue); color: #fff; }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; color: var(--blue-deep); margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
}
.step { position: relative; text-align: center; padding-inline: 8px; }
.step__n {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--blue);
  background: #fff; border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 8px var(--blue-wash);
}
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--blue-deep); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; max-width: 24ch; margin-inline: auto; }

/* ==========================================================================
   Trip request form (home page)
   ========================================================================== */
.trip__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.trip__intro .h2 { margin-top: 16px; }
.trip__intro > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); max-width: 42ch; }
.trip__points { margin-top: 26px; display: grid; gap: 12px; }
.trip__points li { position: relative; padding-inline-start: 30px; font-weight: 600; color: var(--blue-deep); }
.trip__points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.trip__card {
  margin-top: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 60px -40px rgb(var(--blue-deep-rgb) / .45);
}
.trip__card select, .contact-form select {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 12px;
  padding: 12px 16px; transition: border-color .2s, background .2s;
}
.trip__card select:focus-visible, .contact-form select:focus-visible { outline: none; border-color: var(--gold); background: #fff; }
.trip__card select:disabled, .contact-form select:disabled { color: var(--ink-soft); cursor: not-allowed; opacity: .75; }
.trip__card input[type="date"] { cursor: pointer; }
.trip__card input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
.trip__card .btn { width: 100%; justify-self: stretch; }
.trip__opt { font-weight: 400; color: var(--ink-soft); }
.trip__choice { border: 0; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.trip__choice legend { padding: 0; margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.trip__choice label { position: relative; flex: 1 1 120px; margin: 0; cursor: pointer; }
.trip__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.trip__choice label > span {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px;
  border: 1px solid var(--gold-soft); background: var(--blue-wash);
  font-weight: 700; color: var(--blue-deep); transition: background .2s, color .2s, border-color .2s;
}
.trip__choice input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.trip__choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.trip__card [aria-invalid="true"] { border-color: var(--red); background: #fff; }

/* ==========================================================================
   Footer — link grid, giant wordmark, legal bar (after the Scrolltide footer)
   ========================================================================== */
.footer {
  --f-ink: #F7F2E8; --f-mist: #B3BFCD; --f-dim: #7D8BA0; --f-gold: #D9B56E;
  --f-line: rgba(233, 221, 195, .12); --f-line-strong: rgba(233, 221, 195, .24);
  container-type: inline-size;
  position: relative; isolation: isolate; overflow: hidden; background: var(--blue-deep); color: var(--f-ink);
  border-top: 1px solid var(--f-line);
}
.footer a { color: inherit; }
.footer__in { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

/* gold light and the star lattice sit behind the whole footer, fading out downward */
.footer__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer__glow { position: absolute; inset: 0; background: radial-gradient(55% 70% at 50% 0%, rgba(217, 181, 110, .2) 0%, rgb(var(--gold-rgb) / .06) 45%, transparent 75%); }
/* eight-point star lattice */
.footer__lattice {
  position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23E9DDC3' stroke-width='1'%3E%3Cpath d='M32 12l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(80% 90% at 50% 0%, #000 25%, transparent 80%);
}
.footer__grain::before {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-block: clamp(56px, 7vw, 88px) 56px; }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 16px; max-width: 34ch; font-size: .92rem; line-height: 1.8; color: var(--f-mist); }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--f-line-strong); color: var(--f-mist); transition: border-color .25s, color .25s;
}
.footer__social a:hover { border-color: var(--f-gold); color: var(--f-gold); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col h4 { font-size: .82rem; font-weight: 700; color: var(--f-dim); }
.footer__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; color: var(--f-mist); transition: color .25s; }
.footer__col a:hover, .footer__col a[aria-current="page"] { color: var(--f-ink); }
.footer__col a i { display: block; height: 1px; width: 0; background: var(--f-gold); transition: width .3s var(--ease); }
.footer__col a:hover i, .footer__col a[aria-current="page"] i { width: 12px; }
.footer__col .ltr { direction: ltr; unicode-bidi: isolate; }

/* the giant faded wordmark, its lower edge cut off by the legal bar */
.footer__word {
  text-align: center; white-space: nowrap; overflow: hidden; user-select: none; pointer-events: none;
  font-size: 16cqw; font-weight: 800; line-height: 1; margin-bottom: -.2em; padding-inline: var(--gutter);
  color: transparent; background: linear-gradient(to bottom, rgba(217, 181, 110, .16), rgba(217, 181, 110, 0) 90%);
  -webkit-background-clip: text; background-clip: text;
}

.footer__bar { position: relative; border-top: 1px solid var(--f-line); background: var(--blue-deep); padding-bottom: 88px; } /* the dock floats here */
.footer__bar .footer__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
  padding-block: 22px; font-size: .82rem; color: var(--f-dim);
}
.footer__mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .72rem; letter-spacing: .14em; direction: ltr; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__brand img { height: 54px; }
  .footer__bar .footer__in { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Page header — banner for interior pages (e.g. contact)
   ========================================================================== */
.page-header {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(320px, 42vw, 440px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(clamp(96px, 14vw, 140px) + 90px) var(--gutter) clamp(32px, 5vw, 56px);
  color: #fff;
  background: url("../img/umrah.jpg") center / cover;
}
.page-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(var(--blue-deep-rgb) / .82), rgb(var(--blue-deep-rgb) / .68));
}
.page-header__inner { max-width: 640px; }
.page-header .eyebrow { justify-content: center; color: var(--gold-soft); }
.page-header h1 { color: #fff; margin-top: 14px; }
.page-header h1 em { color: var(--gold-soft); }
.page-header__inner > p:last-child { margin-top: 16px; color: rgba(255,255,255,.8); }

/* ==========================================================================
   Packages page
   ========================================================================== */
.page-header--packages { background-image: url("../img/slide-madinah.webp"); }
.pk { padding-top: clamp(48px, 6vw, 72px); }
.pk__tabs {
  display: flex; justify-content: center; gap: 6px;
  width: max-content; max-width: 100%; margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -24px rgb(var(--blue-deep-rgb) / .35);
}
.pk__tab {
  padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
@media (max-width: 400px) { .pk__tab { padding: 12px 16px; font-size: .9rem; } }
.pk__tab:not(.is-active):hover { color: var(--blue); }
.pk__tab.is-active { background: var(--blue); color: #fff; box-shadow: 0 10px 20px -10px rgb(var(--blue-rgb) / .6); }

.pk-incl__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pk-incl__list li {
  display: grid; gap: 6px; padding: 22px 20px; border-radius: 18px; text-align: center;
  background: var(--blue-wash); border: 1px solid var(--line);
}
.pk-incl__list strong { color: var(--blue-deep); font-size: 1.05rem; }
.pk-incl__list span { color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }

/* full-width band: photo (assets/img/pk-cta.webp) under a blue wash; if the photo is
   missing, the gradient alone still reads fine */
.pk-cta { padding: 0; }
.pk-cta__inner {
  text-align: center; color: #fff;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background:
    linear-gradient(160deg, rgb(var(--blue-rgb) / .62), rgb(var(--blue-deep-rgb) / .78)),
    url("../img/pk-cta.webp") center 55% / cover,
    linear-gradient(160deg, var(--blue), var(--blue-deep));
  border-top: 3px double var(--gold);
}
.pk-cta__inner .h2 { color: #fff; }
.pk-cta__inner p { margin: 12px auto 26px; max-width: 44ch; color: rgba(255, 255, 255, .82); }
.pk-cta .btn--primary { background: #fff; color: var(--blue-deep); border-color: #fff; }
.pk-cta .btn--primary:hover { background: transparent; color: #fff; border-color: #fff; }

/* ==========================================================================
   Rites page — centred timeline; photo and text swap sides each step.
   The line fills (--fill, set in main.js) as the visitor scrolls.
   ========================================================================== */
.page-header--rites { background-image: url("../img/slide-makkah.webp"); }
.page-header--rawdah { background-image: url("../img/slide-madinah.webp"); background-position: center 30%; }
.rawdah__lead { margin: 18px auto 0; max-width: 58ch; color: var(--ink-soft); }
.rw__notice {
  max-width: 760px !important; margin: 0 auto clamp(32px, 4vw, 48px); padding: 18px 22px; border-radius: 16px;
  background: #fff; border: 1px solid var(--gold-soft); border-inline-start: 5px solid var(--gold);
}
.rw__notice strong { display: block; color: var(--gold); font-size: .85rem; margin-bottom: 4px; }
.rw__notice p { color: var(--ink); }
.rw__notice b { color: var(--red); }
.rw__steps { max-width: 760px !important; display: grid; gap: 14px; }
.rw__group {
  max-width: 760px !important; margin: clamp(28px, 4vw, 44px) auto 16px !important;
  display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; color: var(--blue-deep);
}
.rw__group span { font-size: .8rem; font-weight: 800; color: #fff; background: var(--gold); padding: 4px 12px; border-radius: 999px; }
.rw-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
}
.rw-step__n {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
}
.rw-step h3 { font-size: 1.1rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 4px; }
.rw-step p { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.rw__actions { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.rw__actions p { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); }
/* ==========================================================================
   Rites (manasik page) — the Haram's marble floor as ground, the current step's
   name set huge behind the cards, square photos in a thin gold frame.
   ========================================================================== */
.rites {
  --m-ink: var(--blue-deep); --m-soft: var(--ink-soft); --m-gold: var(--gold); --m-gold-lit: #C9A87C;
  --m-line: rgb(var(--gold-rgb) / .22); --m-marble: #F4F5F3;
  position: relative; isolation: isolate; background: var(--m-marble);
}
/* polished marble: cool white, lit from above and fading toward the footer */
.rites::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 40% at 85% 60%, rgba(201, 168, 124, .10), transparent 70%),
    radial-gradient(60% 40% at 10% 85%, rgb(var(--blue-rgb) / .06), transparent 70%);
}
/* the rail below is pulled up under the tabs (negative margin), so keep the tabs on top or it swallows their clicks */
.rites .pk__tabs { position: relative; z-index: 2; margin-bottom: clamp(20px, 3vw, 32px); }
/* the rail runs edge to edge, past the section's content width and side padding */
.rites > .rites__panels { max-width: none; margin-inline: calc(var(--gutter) * -1); }

/* pinned horizontal rail: the tall .rh gives scroll distance, the sticky stage holds
   still while main.js turns vertical progress into a sideways move + station fill */
/* content sits at the top of the stage (not centred) so there's no empty gap under the
   tabs; the negative margin cancels most of the padding that clears the fixed navbar */
.rh {
  --card-w: min(86vw, 820px);
  position: relative; margin-top: -70px;
  height: calc(100vh + (var(--n) - 1) * 55vh); height: calc(100svh + (var(--n) - 1) * 55svh);
}
.rh__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(20px, 3.4vh, 38px);
  padding-top: 96px; /* clears the floating logo; the dock covers the bottom edge */
  pointer-events: none; /* its top padding overlaps the tabs above */
}
.rh__stage > * { pointer-events: auto; }

/* the current step's name, set huge behind everything and cut by the stage's lower edge */
.rh__stage > .rh__ghost {
  position: absolute; inset-inline: 0; bottom: 0; z-index: -1; pointer-events: none;
  height: 1.15em; margin-bottom: -.3em;
  font: 800 clamp(90px, 15vw, 240px) / 1.15 var(--f-display);
}
.rh__ghost span {
  position: absolute; inset: 0; text-align: center; white-space: nowrap;
  color: transparent;
  background: linear-gradient(to bottom, rgb(var(--gold-rgb) / .3), rgb(var(--gold-rgb) / .04) 78%);
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transform: translateY(.14em);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.rh__ghost span.is-on { opacity: 1; transform: none; }

/* stations: eight-point stars on a gold track; navy fills in behind you */
.rh__path {
  --p: 0;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: start;
  width: min(100%, 1100px); margin-inline: auto; padding-inline: var(--gutter);
}
.rh__path::before, .rh__path::after {
  content: ""; position: absolute; top: 27px; height: 2px;
  right: calc(var(--gutter) + (100% - 2 * var(--gutter)) / var(--n) / 2);
}
.rh__path::before { left: calc(var(--gutter) + (100% - 2 * var(--gutter)) / var(--n) / 2); background: var(--m-line); }
.rh__path::after {
  width: calc((100% - 2 * var(--gutter)) * (1 - 1 / var(--n)) * var(--p));
  background: var(--m-ink); height: 3px; top: 26.5px; transition: width .5s var(--ease);
}
.rh__stop { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
/* ::before is the gold outline, ::after the fill; only they rotate, so the number stays upright */
.rh__stop i {
  --star: polygon(50% 0%, 64.6% 14.7%, 85.4% 14.6%, 85.3% 35.4%, 100% 50%, 85.3% 64.6%, 85.4% 85.4%, 64.6% 85.3%, 50% 100%, 35.4% 85.3%, 14.6% 85.4%, 14.7% 64.6%, 0% 50%, 14.7% 35.4%, 14.6% 14.6%, 35.4% 14.7%);
  position: relative; isolation: isolate; display: grid; place-items: center; width: 56px; height: 56px;
  font-style: normal; font-weight: 800; color: var(--m-gold);
  transition: color .35s, transform .45s var(--ease), filter .45s;
}
.rh__stop i::before, .rh__stop i::after {
  content: ""; position: absolute; z-index: -1; clip-path: var(--star);
  transition: background .35s, transform .6s var(--ease);
}
.rh__stop i::before { inset: 0; background: var(--m-gold-lit); }
.rh__stop i::after { inset: 2px; background: var(--m-marble); }
.rh__stop small { font-size: .85rem; font-weight: 700; color: var(--m-soft); white-space: nowrap; transition: color .35s; }
.rh__stop.is-done i { color: #fff; }
.rh__stop.is-done i::before { background: var(--m-gold); }
.rh__stop.is-done i::after { background: var(--m-ink); }
.rh__stop.is-on i { color: var(--m-ink); transform: scale(1.22); filter: drop-shadow(0 8px 14px rgb(var(--gold-rgb) / .35)); }
.rh__stop.is-on i::before { background: var(--m-gold); }
.rh__stop.is-on i::after { background: #F3E6C8; }
.rh__stop.is-on i::before, .rh__stop.is-on i::after { transform: rotate(22.5deg); }
.rh__stop.is-on small { color: var(--m-ink); }
.rh__stop:focus-visible { outline: none; }
.rh__stop:focus-visible i { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 50%; }

/* cards: text on the reading side, the photo cut as an arcade arch */
.rh__rail {
  counter-reset: rite; display: flex; gap: 32px; will-change: transform;
  padding-inline: max(var(--gutter), calc((100% - var(--card-w)) / 2));
}
.rh__card {
  counter-increment: rite;
  flex: 0 0 var(--card-w); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 14px; background: #fff; border-radius: 30px; border: 1px solid var(--m-line);
  box-shadow: 0 44px 70px -52px rgb(var(--blue-deep-rgb) / .6), 0 1px 0 rgba(255, 255, 255, .9) inset;
  opacity: .35; transform: scale(.9);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.rh__card.is-on { opacity: 1; transform: none; }
.rh__media {
  order: 2; margin: 6px; justify-self: center;
  width: clamp(240px, 40vh, 360px); max-width: calc(100% - 12px); aspect-ratio: 1;
  background-size: cover; background-position: center;
  border-radius: 14px;
  outline: 1px solid rgb(var(--gold-rgb) / .5); outline-offset: 5px;
}
.rh__media--ph {
  display: grid; place-items: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9A87C' stroke-opacity='.3' stroke-width='1'%3E%3Cpath d='M32 12l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3C/g%3E%3C/svg%3E") center / 56px auto, radial-gradient(circle at 50% 28%, #1B416E, var(--blue-deep) 72%);
}
.rh__media--ph span { font: 800 clamp(1.8rem, 3.2vw, 2.6rem) / 1.3 var(--f-display); color: #EADBB8; padding: 12px; text-align: center; }
.rh__body { order: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3vw, 36px); }
.rh__body::before {
  content: var(--ht-step) counter(rite); margin-bottom: 14px;
  font-size: .82rem; font-weight: 800; color: var(--m-gold);
}
.rh__body h3 { font: 800 clamp(1.55rem, 2.5vw, 2.15rem) / 1.3 var(--f-display); color: var(--m-ink); margin-bottom: 12px; text-wrap: balance; }
.rh__body p:not(.rite__tag) { color: var(--m-soft); font-size: 1rem; line-height: 1.9; }
.rite__tag {
  order: -1; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgb(var(--gold-rgb) / .1); color: var(--m-gold); font-size: .8rem; font-weight: 800;
}
.rh__body:has(.rite__tag)::before { display: none; } /* Hajj steps: the date chip replaces the step label */
.rh__hint { display: none; } /* its spot under the rail is where the navbar dock floats */
.rites__note {
  max-width: 640px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 18px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--gold-soft); text-align: center; color: var(--ink-soft); font-size: .95rem;
}

/* ==========================================================================
   Contact page — form card + info list
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 48px);
  max-width: var(--maxw); margin-inline: auto; align-items: start;
}
.contact-card {
  position: relative; background: #fff; border-radius: 20px;
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 24px 50px -34px rgb(var(--blue-deep-rgb) / .4);
}
.contact-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; color: var(--blue-deep); }
.contact-card__sub { margin: 6px 0 0; color: var(--ink-soft); }

.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.contact-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.contact-form input[type="date"] { min-width: 0; max-width: 100%; }
.contact-form label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 12px;
  padding: 12px 16px; transition: border-color .2s, background .2s;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--gold); background: #fff;
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form__note { margin: 0; font-size: .9rem; color: var(--blue); font-weight: 600; }

.contact-info { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(8px, 2vw, 20px); }
.contact-info__item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--blue);
  background: var(--blue-wash); border: 1.5px solid var(--gold-soft);
}
.contact-info__item h4 { margin: 0 0 4px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact-info__item p, .contact-info__item a { margin: 0; color: var(--ink-soft); font-size: .98rem; transition: color .2s; }
.contact-info__item a:hover { color: var(--blue); }
.contact-info__social { display: flex; gap: 10px; margin-top: 4px; }
.contact-info__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--blue); background: var(--blue-wash); border: 1px solid var(--gold-soft); transition: background .2s, color .2s;
}
.contact-info__social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  #main { padding-top: 76px; }
  .hero { margin-top: -76px; }
  .page-header { margin-top: -76px; padding-top: calc(clamp(96px, 14vw, 140px) + 76px); }

  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; max-width: 560px !important; }
  .pk-incl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  .nav__logo { top: calc(10px + env(safe-area-inset-top, 0px)); height: 52px; padding-inline: 16px; }
  .nav__logo .nav__logo-full { height: 36px; }
  .nav__cta { display: none; }
  .nav__dock { left: 8px; right: 8px; transform: none; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .nav__dock a, .nav__dock button { flex: 1 1 0; min-width: 0; padding: 8px 2px; font-size: .72rem; }
  .nav__dock .nav__dock-extra { display: none; }
  .nav__dock .nav__dock-book, .nav__dock .nav__dock-more { display: grid !important; }
  .rh { --card-w: 86vw; }
  .rh__path small { display: none; }
  .rh__stop i { width: 44px; height: 44px; font-size: .9rem; }
  .rh__path::before { top: 21px; }
  .rh__path::after { top: 20.5px; }
  .rh__card { grid-template-columns: 1fr; padding: 10px; border-radius: 26px; }
  .rh__media { order: 0; justify-self: stretch; width: auto; max-width: none; aspect-ratio: auto; height: clamp(150px, 24vh, 200px); border-radius: 12px; }
  .rh__body { padding: 18px 12px 12px; }
  .rh__body p:not(.rite__tag) { font-size: .95rem; line-height: 1.8; }
  .hc__text { top: 30%; }
  .hc__title { font-size: 10vw; }
  .hc__badge { top: 15%; bottom: auto; inset-inline-end: auto; inset-inline-start: 6%; width: 84px; outline-width: 4px; }
  .hc__badge strong { font-size: 1.15rem; }
  .hc__badge span { font-size: .7rem; }
  .hc__person { top: 62%; height: 46%; }
  .hc__arrow { width: 40px; height: 40px; top: 44%; }
  .hc__arrow--prev { left: 8px; }
  .hc__arrow--next { right: 8px; }
  .switcher__tab { padding: 11px 14px; font-size: .85rem; gap: 6px; }
  .switcher__tab svg { width: 15px; height: 15px; }
  .switcher__packages { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; gap: 18px; }
}

@media (max-width: 480px) {
  .pillars, .steps { grid-template-columns: 1fr; }
}

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

/* ==========================================================================
   Intro screen (js/intro.js) — first page view of a visit only
   ========================================================================== */
html.ht-intro-on::before { content: ""; position: fixed; inset: 0; z-index: 10000; background: var(--ht-cover, #F6F8FB); }
html.ht-intro-run { overflow: hidden; scrollbar-gutter: stable; }
html.ht-intro-run .nav__logo { visibility: hidden; }
html.ht-intro-hold .hc__slide.is-active .hc__kicker,
html.ht-intro-hold .hc__slide.is-active .hc__title { animation-play-state: paused; }

.ht-intro { position: fixed; inset: 0; z-index: 10000; cursor: pointer; }
.ht-intro__door {
  position: absolute; top: 0; bottom: 0; width: 50%; will-change: transform;
  background:
    linear-gradient(rgba(246, 248, 251, .7), rgba(246, 248, 251, .7)),
    url("../img/pattern-blue.jpg") 0 0 / 520px auto repeat,
    #F6F8FB;
}
.ht-intro__door--l { left: 0; box-shadow: inset -1px 0 0 rgb(var(--gold-rgb) / .45), 22px 0 40px -26px rgb(var(--blue-deep-rgb) / .2); }
.ht-intro__door--r { right: 0; background-position: 0 0, -50vw 0, 0 0; box-shadow: inset 1px 0 0 rgb(var(--gold-rgb) / .45), -22px 0 40px -26px rgb(var(--blue-deep-rgb) / .2); }

.ht-intro__stage {
  position: absolute; inset: 0; isolation: isolate; pointer-events: none;
  display: grid; place-content: center; justify-items: center; gap: clamp(18px, 3vh, 28px);
}
.ht-intro__glow {
  position: absolute; inset: 0; margin: auto; z-index: -1;
  width: min(760px, 130vw); aspect-ratio: 1; height: auto; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}
.ht-intro__logo { width: min(360px, 64vw); aspect-ratio: 331.05 / 173.98; }
.ht-intro__logo.is-flying { z-index: 10001; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.ht-intro__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ht-intro__logo path { transform-box: fill-box; }
.ht-intro__mark { transform-box: fill-box; transform-origin: 50% 50%; }
.ht-intro__logo .m { fill-opacity: 0; stroke-width: 1.1; stroke-linejoin: round; }
.ht-intro__logo .l, .ht-intro__logo .a { opacity: 0; }
.ht-intro__logo svg.to-white :is(.m, .l, .a) { fill: #fff; stroke: #fff; transition: fill .45s ease, stroke .45s ease; }

.ht-intro__bar { width: min(220px, 50vw); height: 2px; border-radius: 2px; overflow: hidden; background: rgb(var(--gold-rgb) / .18); }
.ht-intro__bar i { display: block; height: 100%; background: linear-gradient(90deg, #96742F, #C9A64B); transform-origin: right center; transform: scaleX(0); }
.ht-intro__tag { margin: 0; opacity: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--blue-deep); }

/* ---- Intro V2: carved Moroccan doorway (preview: ?intro=v2) ----
   js/intro.js cuts the facade and both door leaves out of one photo
   (assets/img/intro-doorway.webp) and swings the leaves open in 3D */
.hd-scene { position: absolute; inset: 0; overflow: hidden; perspective: 1400px; will-change: transform; }
.hd-back { position: absolute; inset: 0; overflow: hidden; }
.hd-fill { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5) saturate(1.1); }
.hd-glow {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 58%, #FFF9EA, #FFE6B0 40%, rgba(255, 210, 140, .35) 80%, rgba(255, 210, 140, .15));
}
.hd-facade, .hd-leaf { position: absolute; inset: 0; background-repeat: no-repeat; }
.hd-leaf { backface-visibility: hidden; will-change: transform, filter; }
.hd-light {
  position: absolute; width: 4px; margin-left: -2px; opacity: 0; pointer-events: none;
  background: linear-gradient(rgba(255, 240, 200, 0), #FFF4D6 12%, #FFFBEF 50%, #FFF4D6 88%, rgba(255, 240, 200, 0));
  box-shadow: 0 0 22px 7px rgba(255, 214, 140, .9), 0 0 90px 26px rgba(255, 200, 120, .45);
  mix-blend-mode: screen;
}
.hd-dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
/* the white logo sits on the carved door, with a soft dark halo so it reads on the carving */
.ht-intro--v2 .ht-intro__stage { gap: 12px; }
.ht-intro--v2 .ht-intro__glow {
  width: 175%; height: auto; aspect-ratio: 1.3; inset: -40% -40%; margin: auto;
  background: radial-gradient(closest-side, rgba(20, 8, 2, .62), rgba(20, 8, 2, .3) 60%, rgba(20, 8, 2, 0));
}
.ht-intro--v2 .ht-intro__logo { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.ht-intro--v2 .ht-intro__tag { display: none; }
.ht-intro--v2 .ht-intro__bar { width: 110px; background: rgba(255, 255, 255, .25); }

/* ==========================================================================
   About page
   ========================================================================== */
.page-header--about { background-image: url("../img/slide-arafat.webp"); background-position: center 40%; }
.about__story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: var(--maxw); margin-inline: auto;
}
.about__text { display: grid; gap: 16px; justify-items: start; }
.about__text .h2 { margin-bottom: 4px; }
.about__text p:not(.eyebrow) { color: var(--ink-soft); max-width: 58ch; line-height: 1.9; }
.about__text .btn { margin-top: 8px; }
.about__photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; background-size: cover; background-position: center;
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
  box-shadow: 0 30px 60px -40px rgb(var(--blue-deep-rgb) / .55);
}
@media (max-width: 860px) {
  .about__story { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 16 / 11; order: -1; }
}

/* ---- About: numbers band ---- */
.stats {
  padding: clamp(40px, 6vw, 72px) var(--gutter); color: #fff;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  border-top: 3px double var(--gold); border-bottom: 3px double var(--gold);
}
.stats__list { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.stat { display: grid; gap: 6px; padding: 6px 12px; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .16); }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; direction: ltr; unicode-bidi: isolate; }
.stat__label { font-size: .95rem; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(3) { border-inline-start: 0; }
}

/* ---- About: history timeline (gold star markers, like the rites page) ---- */
.history__list { position: relative; max-width: 760px; margin-inline: auto; padding-inline-start: 60px; display: grid; gap: 34px; }
.history__list::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 21px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 8px, transparent 8px 14px);
}
.history__item { position: relative; display: grid; gap: 4px; }
.history__mark {
  position: absolute; top: 0; inset-inline-start: -53px; width: 30px; height: 30px; background: var(--gold);
  clip-path: polygon(50% 0%, 64.6% 14.7%, 85.4% 14.6%, 85.3% 35.4%, 100% 50%, 85.3% 64.6%, 85.4% 85.4%, 64.6% 85.3%, 50% 100%, 35.4% 85.3%, 14.6% 85.4%, 14.7% 64.6%, 0% 50%, 14.7% 35.4%, 14.6% 14.6%, 35.4% 14.7%);
}
.history__mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.history__item--now .history__mark { background: var(--blue); }
.history__year { font-size: .85rem; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.history__item h3 { font-size: 1.2rem; font-weight: 800; color: var(--blue-deep); }
.history__item p:not(.history__year) { color: var(--ink-soft); line-height: 1.85; max-width: 60ch; }
.history__licence { max-width: 760px; margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }

/* ---- sample content the client still has to replace (search about.html for "todo").
   Uncomment the rule below to see every sample value highlighted on the page. ---- */
/* .todo { padding: 0 .3em; border-radius: 4px; outline: 1.5px dashed var(--gold); outline-offset: 1px; background: rgba(201, 164, 75, .18); } */

/* ==========================================================================
   Extra services — homepage cards + services page
   ========================================================================== */
.svc-grid { --g: clamp(16px, 2.4vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); max-width: var(--maxw); margin-inline: auto; }
.svc {
  flex: 0 1 calc((100% - 2 * var(--g)) / 3);
  display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgb(var(--blue-deep-rgb) / .4); }
.svc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 20px 12px 12px; }
.svc__body h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--blue-deep); }
.svc__body p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
.svc__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--blue); }
.svc__more::after { content: " ←"; }
.svc__more:hover { color: var(--blue-deep); }

.svc-detail__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: var(--maxw); margin-inline: auto;
}
.svc-detail { scroll-margin-top: 20px; }
.svc-detail__text .h2 { margin-top: 14px; }
.svc-detail__intro { margin-top: 14px; color: var(--ink-soft); }
.svc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.svc-facts div { display: grid; gap: 2px; padding: 14px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.svc-facts strong { font-size: 1.1rem; color: var(--blue); }
.svc-facts span { font-size: .78rem; line-height: 1.4; color: var(--ink-soft); }
.svc-list { margin-top: 22px; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-inline-start: 28px; font-weight: 500; color: var(--blue-deep); line-height: 1.6; }
.svc-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.svc-note { margin: 22px 0; padding: 14px 16px; font-size: .88rem; line-height: 1.7; color: var(--ink-soft); background: #fff; border-inline-start: 3px solid var(--gold); border-radius: 8px; }
@media (max-width: 860px) {
  .svc-grid { max-width: 520px; }
  .svc { flex-basis: 100%; }
  .svc-detail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .svc-facts { grid-template-columns: 1fr; } }

/* Services page: banner + five tiles always in view, one detail panel at a time */
.page-header--compact { min-height: 0; padding-bottom: 92px; }
.svc-tabs { position: relative; z-index: 2; margin-top: -56px; padding-inline: var(--gutter); }
.svc-tabs__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: var(--maxw); margin-inline: auto; }
.svc-tab {
  display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 10px; text-align: center;
  font: inherit; color: var(--blue-deep); cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 28px -20px rgb(var(--blue-deep-rgb) / .5);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.svc-tab:hover { transform: translateY(-3px); }
.svc-tab svg { width: 28px; height: 28px; color: var(--blue); transition: color .25s var(--ease); }
.svc-tab span { font-weight: 700; font-size: .92rem; line-height: 1.35; text-wrap: balance; }
.svc-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc-tab[aria-selected="true"] svg { color: #fff; }
.svc-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.svc-detail:not([hidden]) .svc-detail__text { animation: svc-in .35s var(--ease) both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-detail:not([hidden]) .svc-detail__text { animation: none; } .svc-tab { transition: none; } }
@media (max-width: 860px) {
  .svc-tabs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-tabs__row .svc-tab:last-child { grid-column: 1 / -1; }
}

.svc-img { overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 16px; background: var(--blue-mist); }
.svc-img--tall { aspect-ratio: 4 / 3; }
.svc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc .svc-img { border-radius: 14px; }

/* ==========================================================================
   Booking popup (js/booking.js)
   ========================================================================== */
html.bk-open { overflow: hidden; }
.bk-scrim { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(8, 20, 36, .62); }
.bk-scrim[hidden] { display: none; }
.bk-modal {
  display: flex; flex-direction: column; width: min(1040px, 100%); max-height: calc(100% - 8px); overflow: hidden; outline: none;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  animation: bk-up .28s var(--ease) both;
}
@keyframes bk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.bk-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--blue-deep); }
.bk-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--blue-deep); }
.bk-x:hover { background: var(--blue-wash); }
.bk-body { flex: 1; min-height: 0; overflow: auto; padding: 22px; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--line); background: #fff; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 26px; align-items: start; }
.bk-grid > * { min-width: 0; }
.bk-sec { display: grid; gap: 10px; margin-bottom: 22px; }
.bk-sec > h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--blue); }
.bk-sec > h3 small { font-weight: 500; color: var(--ink-soft); }
.bk-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-f { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.bk-in { width: 100%; padding: 11px 14px; font: inherit; font-size: .96rem; color: var(--ink); background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 12px; }
.bk-in:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.bk-err { min-height: 1em; font-size: .8rem; font-weight: 500; color: var(--red-deep); }
.bk-opts { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.bk-opts[style="--n:1"] { max-width: 220px; }
.bk-opt, .bk-chip { position: relative; cursor: pointer; background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 14px; transition: background .2s, color .2s, border-color .2s; }
.bk-opt { display: grid; gap: 2px; padding: 10px 12px; text-align: center; color: var(--blue-deep); }
.bk-opt b { font-size: .92rem; }
.bk-opt span { font-size: 1rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.bk-opt small { font-size: .72rem; color: var(--ink-soft); }
.bk-opt:has(input:checked) small { color: rgba(255, 255, 255, .8); }
.bk-chip { display: inline-flex; padding: 8px 14px; font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.bk-opt input, .bk-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-opt:has(input:checked), .bk-chip:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.bk-opt:has(input:checked) span { color: #fff; }
.bk-opt:has(input:focus-visible), .bk-chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chosen { display: grid; gap: 2px; padding: 12px 16px; background: var(--blue-wash); border: 1px solid var(--gold-soft); border-inline-start: 4px solid var(--blue); border-radius: 14px; }
.bk-chosen small { font-size: .78rem; font-weight: 700; color: var(--gold); }
.bk-chosen b { font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); }
.bk-chosen span { font-size: .85rem; color: var(--ink-soft); }
.bk-qty { display: inline-flex; align-items: center; width: fit-content; overflow: hidden; background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 999px; }
.bk-qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--blue-deep); }
.bk-qty button:hover { background: var(--blue-mist); }
.bk-qty output { min-width: 40px; text-align: center; font-weight: 800; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.bk-docs { padding: 12px 14px; font-size: .88rem; line-height: 1.7; color: var(--blue-deep); background: var(--offwhite); border-inline-start: 3px solid var(--gold); border-radius: 8px; }
.bk-sum { display: grid; gap: 12px; padding: 16px; background: var(--blue-wash); border: 1px solid var(--line); border-radius: 18px; }
.bk-sum h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--blue-deep); }
.bk-sum h4 { margin: 4px 0 0; font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); }
.bk-muted { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-tag { padding: 3px 10px; font-size: .8rem; font-weight: 700; color: var(--blue); background: var(--blue-mist); border-radius: 999px; }
.bk-tl, .bk-inc { margin: 0; padding: 0; list-style: none; }
.bk-tl li { position: relative; padding: 0 22px 14px 0; }
.bk-tl li::before { content: ""; position: absolute; right: 5px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.bk-tl li:last-child::before { display: none; }
.bk-tl li::after { content: ""; position: absolute; right: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-mist); }
.bk-tl b { display: block; font-size: .92rem; color: var(--blue-deep); }
.bk-tl small { display: block; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); }
.bk-tl .bk-d { font-weight: 700; color: var(--gold); }
.bk-inc { display: grid; gap: 6px; font-size: .88rem; color: var(--blue-deep); }
.bk-inc li { position: relative; padding-inline-start: 22px; }
.bk-inc li::before { content: "✓"; position: absolute; inset-inline-start: 0; font-weight: 800; color: #1F7A4D; }
.bk-contact { padding-top: 10px; margin-top: 12px; font-size: .82rem; line-height: 1.7; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.bk-contact b { color: var(--blue-deep); }
.bk-ph { display: inline-block; direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }
/* the price: a compact pill instead of a full-width bar, deposit beside it */
.bk-pricebox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bk-price { display: inline-grid; gap: 0; width: fit-content; padding: 6px 18px 7px; color: #fff; background: #8B0A0F; border-radius: 999px; line-height: 1.2; }
.bk-price span { font-size: .72rem; font-weight: 700; opacity: .85; }
.bk-price b { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-price small { font-size: .75rem; font-weight: 700; }
.bk-dep { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.bk-dep b { color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.bk-ok { display: grid; justify-items: center; gap: 10px; padding: 30px 10px; text-align: center; }
.bk-ok h3 { margin: 0; color: var(--blue-deep); }
.bk-ok p { margin: 0; max-width: 44ch; color: var(--ink-soft); }
.bk-tick { display: grid; place-items: center; width: 64px; height: 64px; font-size: 2rem; color: #fff; background: #1F7A4D; border-radius: 50%; }
@media (max-width: 860px) {
  .bk-scrim { padding: 0; place-items: end center; }
  .bk-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 460px) { .bk-row2 { grid-template-columns: minmax(0, 1fr); } .bk-foot .btn { flex: 1; } .bk-opt { padding: 9px 4px; } .bk-opt b { font-size: .82rem; } .bk-opt span { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .bk-modal { animation: none; } }

/* ==========================================================================
   Elderly care page (elderly.html) — the journey from home back to home
   ========================================================================== */
.page-header--elderly { background-image: url("../img/svc-care.webp"); }
.care-promise { padding-block: clamp(28px, 4vw, 44px); }
.care-promise__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.care-promise__item { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; text-align: center; background: var(--blue-wash); border: 1px solid var(--line); border-radius: 18px; }
.care-promise__item svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 4px; }
.care-promise__item b { color: var(--blue-deep); font-size: 1.02rem; }
.care-promise__item span { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.care-journey .care-phase { max-width: 780px; }
.care-phase + .care-phase { margin-top: 26px; }
.care-phase__name { display: inline-block; margin: 0 0 14px; padding: 5px 16px; font-size: .9rem; font-weight: 800; color: #fff; background: var(--blue-deep); border-radius: 999px; }
.care-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.care-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.care-step::before { content: ""; position: absolute; top: 44px; bottom: -14px; inset-inline-start: 21px; width: 2px; background: var(--gold-soft); }
.care-phase:last-child .care-step:last-child::before { display: none; }
.care-step__num { display: grid; place-items: center; width: 44px; height: 44px; font-weight: 800; color: var(--blue); background: #fff; border: 2px solid var(--blue); border-radius: 50%; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.care-step__card { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 34px -28px rgb(var(--blue-deep-rgb) / .45); }
.care-step__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; color: var(--blue); background: var(--blue-mist); border-radius: 12px; }
.care-step__icon svg { width: 22px; height: 22px; }
.care-step h4 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 800; color: var(--blue-deep); }
.care-step p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.care-step__calm { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--gold) !important; }
.care-step__calm svg { flex: none; width: 18px; height: 18px; }
.care-family__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.care-family__grid .h2 { margin-top: 14px; }
.care-faq__list { max-width: 780px; display: grid; gap: 10px; }
.care-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.care-faq__item summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 800; color: var(--blue-deep); cursor: pointer; list-style: none; }
.care-faq__item summary::-webkit-details-marker { display: none; }
.care-faq__item summary::after { content: "＋"; color: var(--blue); }
.care-faq__item[open] summary::after { content: "－"; }
.care-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); line-height: 1.75; }
.care-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.svc-detail__text .btn--outline { margin-inline-start: 8px; }
@media (max-width: 860px) {
  .care-promise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-family__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .care-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .care-step__num { width: 34px; height: 34px; font-size: .9rem; }
  .care-step::before { top: 34px; inset-inline-start: 16px; }
  .care-step__card { padding: 16px; }
}

/* ==========================================================================
   WordPress additions
   ========================================================================== */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 100; padding: 10px 16px; background: #fff; color: var(--blue-deep); }

/* logged-in admin bar: push the floating logo and button below it */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* the intro paragraph keeps its look when the banner has more after it (package chips) */
.page-header__inner > p:not(.eyebrow) { margin-top: 16px; color: rgba(255, 255, 255, .8); }

/* package cards: the photo links to the package page; a small details link under the button */
.pkg__img { display: block; }
.pkg__more { align-self: center; margin-top: 12px; font-size: .9rem; font-weight: 700; color: var(--blue); }
.pkg__more::after { content: " ←"; }
.pkg__more:hover { color: var(--blue-deep); }

/* services: as many tiles as there are services */
.svc-tabs__row { grid-template-columns: repeat(var(--svc-n, 5), minmax(0, 1fr)); }
@media (max-width: 860px) {
  .svc-tabs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-tabs__row .svc-tab:last-child { grid-column: auto; }
  .svc-tabs__row .svc-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.ht-cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ht-intro__logo--img img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Contact Form 7 — the theme's own look (the plugin stylesheet is not loaded)
   ========================================================================== */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { position: relative; display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: 5px; font-size: .8rem; font-weight: 500; color: var(--red-deep); }
.contact-form [aria-invalid="true"], .bk-in[aria-invalid="true"] { border-color: var(--red); background: #fff; }
.wpcf7 form .wpcf7-response-output {
  margin: 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; line-height: 1.6;
  color: var(--blue); background: var(--blue-wash); border: 1px solid var(--line);
}
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { color: #1F7A4D; background: #EEF8F2; border-color: rgba(31, 122, 77, .3); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { color: var(--red-deep); background: #FFF9EC; border-color: var(--gold-soft); }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { color: var(--red-deep); background: #FDF0F0; border-color: rgba(200, 31, 36, .3); }
.wpcf7-spinner {
  display: none; flex: none; width: 22px; height: 22px; margin: 0 12px; vertical-align: middle;
  border-radius: 50%; border: 2.5px solid var(--gold-soft); border-top-color: var(--blue); animation: htSpin .8s linear infinite;
}
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; }
@keyframes htSpin { to { transform: rotate(360deg); } }
.wpcf7-submit { cursor: pointer; font-family: inherit; line-height: 1; -webkit-appearance: none; appearance: none; }
.wpcf7-submit:disabled { opacity: .6; cursor: progress; }
.ht-submit { display: flex; align-items: center; }
.trip__card .ht-submit .btn { flex: 1; }
/* CF7's submit is an <input>: give it back the button look the field rules override */
.contact-form input.btn { width: auto; min-height: 52px; padding: 0 54px; font-size: .98rem; font-weight: 600; border-radius: 999px; }
.contact-form input.btn--primary { color: #fff; background: var(--blue); border: 1.5px solid var(--blue); }
.contact-form input.btn--primary:hover { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); }
.contact-form input.btn--primary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; background: var(--blue); }
.trip__card input.btn { width: 100%; }
/* trip / contact choices: the CF7 wrappers step aside so the labels stay flex items */
.trip__choice .wpcf7-form-control-wrap, .trip__choice .ht-choice { display: contents; }
.trip__choice .wpcf7-not-valid-tip { flex-basis: 100%; margin-top: 0; }
/* spam trap */
.ht-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* booking popup: the CF7 form fills the modal; body scrolls, footer stays */
.bk-modal [hidden] { display: none !important; }
.bk-modal .wpcf7, .bk-modal .bk-form, .bk-done { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bk-form > .bk-foot { order: 3; }
.bk-form > .wpcf7-response-output { order: 2; margin: 0 22px 12px !important; }
.bk-form .bk-foot .btn { min-height: 48px; padding: 0 34px; }
.bk-qty input {
  width: 44px; height: 40px; padding: 0; border: 0; background: none; text-align: center;
  font: inherit; font-weight: 800; color: var(--blue-deep); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.bk-qty input::-webkit-outer-spin-button, .bk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-qty input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ==========================================================================
   Package page (single package)
   ========================================================================== */
.page-header--package { min-height: clamp(380px, 46vw, 540px); }
.page-header--package .page-header__inner { max-width: 760px; }
.pkd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pkd-chips li {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pkd__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pkd__back { margin: 0; }
.pkd__back a { font-size: .92rem; font-weight: 700; color: var(--blue); }
.pkd__back a::before { content: "→ "; }
.pkd__block {
  margin-top: clamp(20px, 3vw, 30px); padding: clamp(20px, 3vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 40px -34px rgb(var(--blue-deep-rgb) / .45);
}
.pkd__h { margin-bottom: 16px; font-size: 1.25rem; font-weight: 800; color: var(--blue-deep); }
.pkd-tl li { padding-bottom: 18px; }
.pkd-tl b { font-size: 1rem; }
.pkd-tl small { font-size: .9rem; }
.pkd-inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pkd-inc .svc-list { margin-top: 0; }
.pkd-ex li::before {
  background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.pkd-days { max-width: none; }
.pkd-days summary span { display: flex; align-items: center; gap: 10px; }
.pkd-days__n { font-style: normal; font-size: .82rem; color: var(--gold); white-space: nowrap; }
.pkd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pkd-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--blue-mist); }
.pkd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pkd-gallery a:hover img { transform: scale(1.06); }
.pkd__docs { margin-top: clamp(20px, 3vw, 30px); }
.pkd__side { position: sticky; top: 100px; }
.pkd-card {
  display: grid; gap: 12px; padding: 22px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-top: 3px double var(--gold); border-bottom: 3px double var(--gold); border-radius: 22px;
  box-shadow: 0 30px 60px -40px rgb(var(--blue-deep-rgb) / .45);
}
.pkd-card--top { border: 2px solid var(--gold); background: linear-gradient(to bottom, #fff 60%, #FBF8F1); }
.pkd-card .pkg__price-label { margin: 0; }
.pkd-card__rooms { margin: 0; padding: 4px 16px; background: var(--blue-wash); border-radius: 16px; }
.pkd-card__rooms div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; }
.pkd-card__rooms div + div { border-top: 1px dashed var(--line); }
.pkd-card__rooms dt { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.pkd-card__rooms dd { margin: 0; font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; color: var(--red-deep); font-variant-numeric: tabular-nums; }
.pkd-card__rooms small { font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.pkd-card .pkg__deposit { margin: 0; }
.pkd-card .btn { width: 100%; gap: 8px; padding: 0 20px; }
.pkd-card .btn svg { width: 18px; height: 18px; }
.pkd-card__note { font-size: .82rem; color: var(--ink-soft); }
.pkd-card__phones { font-size: .85rem; color: var(--ink-soft); }
.pkd-card__phones a { margin-inline: 4px; font-weight: 700; color: var(--blue-deep); }
.pkd-card__avail { justify-self: center; padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.pkd-card__avail--open { color: #1F7A4D; background: #EEF8F2; }
.pkd-card__avail--limited { color: #8A6100; background: #FFF6E0; }
.pkd-card__avail--full { color: var(--red-deep); background: #FDF0F0; }
@media (max-width: 960px) {
  .pkd__grid { grid-template-columns: minmax(0, 1fr); }
  .pkd__side { position: static; }
}
@media (max-width: 640px) { .pkd-inc { grid-template-columns: minmax(0, 1fr); } }

/* gallery lightbox */
.ht-lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.ht-lightbox::backdrop { background: rgba(8, 20, 38, .86); }
.ht-lightbox img { display: block; max-width: 94vw; max-height: 86vh; border-radius: 14px; }
.ht-lightbox__x, .ht-lightbox__nav { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.ht-lightbox__x { top: -50px; inset-inline-end: 0; width: 40px; height: 40px; font-size: 1.4rem; }
.ht-lightbox__nav { top: 50%; translate: 0 -50%; width: 46px; height: 46px; font-size: 1.6rem; }
.ht-lightbox__nav--prev { right: 10px; }
.ht-lightbox__nav--next { left: 10px; }

/* ==========================================================================
   Regular pages, posts, archives, search, comments
   ========================================================================== */
.section > .prose { max-width: 760px; }
.prose { color: var(--ink); line-height: 1.9; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: var(--blue-deep); }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; font-weight: 800; color: var(--blue-deep); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { height: auto; border-radius: 16px; }
.prose blockquote { margin: 0; padding: 14px 18px; background: var(--blue-wash); border-inline-start: 3px solid var(--gold); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.prose figcaption, .wp-caption-text { margin-top: 6px; font-size: .85rem; text-align: center; color: var(--ink-soft); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.prose__tags, .prose__pages { font-size: .9rem; color: var(--ink-soft); }
.prose__nav { max-width: 760px; margin: 40px auto 0; }
.prose__nav .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.prose__nav a { font-weight: 700; color: var(--blue); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.post-card .svc-img { display: block; }
.post-card h2 { font-size: 1.2rem; font-weight: 800; line-height: 1.4; color: var(--blue-deep); }
.post-card__date { font-size: .8rem; font-weight: 700; color: var(--gold); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--blue-deep); }
.page-numbers.current, .page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.ht-search .search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 36px; }
.ht-search .search-field { flex: 1; padding: 12px 16px; font: inherit; color: var(--ink); background: var(--blue-wash); border: 1px solid var(--gold-soft); border-radius: 12px; }
.ht-search .search-submit { padding: 0 26px; font: inherit; font-weight: 700; color: #fff; background: var(--blue); border: 0; border-radius: 999px; cursor: pointer; }
.ht-empty { text-align: center; color: var(--ink-soft); }
.ht-comments { max-width: 760px; margin: 48px auto 0; }
.ht-comments__title { font-size: 1.3rem; font-weight: 800; color: var(--blue-deep); }
.ht-comments__list, .ht-comments__list .children { list-style: none; padding: 0; }
.ht-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ht-comments__list .avatar { float: right; margin-inline-end: 12px; border-radius: 50%; }
.comment-respond { margin-top: 32px; }
