/* S&H Travels home page concept.
   White and black, like their logo. The photographs carry the colour.
   The trips are a scroll journey: one full-screen photo stays pinned while white cards
   scroll over it, and each place fades into the next.
   Shape rule: buttons and chips are pills, cards and inputs 14px. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --soft: #f3f3f2;
  --ink: #0a0a0a;
  --muted: #4d4d4d;
  --line: #dcdcda;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --nav: 72px;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-weight: 700; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; margin-bottom: .4em; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
html { scrollbar-color: #9a9a9a var(--paper); accent-color: var(--ink); caret-color: var(--ink); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.card :focus-visible, .step-hero :focus-visible { outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section { padding: clamp(64px, 9vw, 120px) var(--pad); max-width: 1400px; margin: 0 auto; }
.section-lede { color: var(--muted); max-width: 52ch; margin-bottom: 40px; }

.demo-note { margin: 0; max-width: none; padding: 8px var(--pad); background: var(--soft); color: var(--ink); font-size: 14px; }
@media (max-width: 767px) { .wide-only { display: none; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; height: var(--nav); padding: 0 var(--pad);
  background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-brand img { height: 40px; width: auto; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 500; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 2px solid var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #333; border-color: #333; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* journey: the pinned photo layer, then the steps that scroll over it */
.journey { max-width: none; padding: 0; position: relative; }
.journey-media { position: sticky; top: var(--nav); height: calc(100dvh - var(--nav)); overflow: hidden; background: var(--ink); }
.journey-media + .step { margin-top: calc(-100dvh + var(--nav)); }
.scene { position: absolute; inset: 0; opacity: 0; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene.is-active { opacity: 1; }
.scene[data-scene="istanbul"] img { object-position: 50% 80%; }
.scene[data-scene="makkah"] img { object-position: 50% 20%; }
.scene[data-scene="madinah"] img { object-position: 74% 50%; }

.step { position: relative; min-height: calc(100dvh - var(--nav)); display: flex; align-items: center; padding: 48px var(--pad); }
.step:nth-child(odd) { justify-content: flex-end; }
.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); max-width: 480px;
  box-shadow: 0 24px 60px rgb(0 0 0 / .22); }
.card p { color: var(--muted); }
.card .place { color: var(--ink); font-weight: 600; margin: -.2em 0 .8em; }
.card .price { font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-link { font-weight: 600; text-decoration-thickness: 1.5px; transition: text-decoration-thickness .2s, text-underline-offset .2s; }
.card-link:hover { text-decoration-thickness: 2.5px; text-underline-offset: .28em; }
.step-hero .card { max-width: 620px; }
.step-hero .lede { font-size: clamp(18px, 1.5vw, 20px); margin: 20px 0 28px; }
@media (max-width: 767px) {
  .step, .step:nth-child(odd) { align-items: flex-end; justify-content: stretch; padding: 24px 16px; }
  .card { max-width: none; width: 100%; }
  .step-hero { align-items: flex-start; }
  .scene[data-scene="istanbul"] img { object-position: 68% 100%; }
}

/* story: one statement. Where the browser can tie animation to scroll, the section is tall,
   the statement pins, and its words fill in from grey to black (Magic UI's Text Reveal, rebuilt
   in CSS: no React, no library). Everywhere else it is plain black text. */
.story-pin { max-width: 1100px; margin: 0 auto; }
.story h2 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; margin-bottom: 1.2em; }
.reveal-text { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; max-width: 30ch; color: var(--ink); margin-bottom: .9em; }
.story-after { font-size: 19px; color: var(--muted); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .story { height: 220vh; padding-top: 0; padding-bottom: 0; view-timeline-name: --story; }
    .js .story-pin { position: sticky; top: var(--nav); height: calc(100dvh - var(--nav)); display: flex; flex-direction: column; justify-content: center; }
    .js .reveal-text .w { opacity: .14; animation: word-in linear both; animation-timeline: --story; animation-range: contain var(--a) contain var(--b); }
    .js .story-after { animation: word-in linear both; animation-timeline: --story; animation-range: contain 78% contain 88%; }
  }
}
@keyframes word-in { from { opacity: .14; } to { opacity: 1; } }

/* what we arrange: three plain groups, no cards */
.arrange { padding-top: 0; }
.arrange-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 16px; }
.group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { padding: 6px 0; font-size: 18px; }
@media (max-width: 767px) { .arrange-groups { grid-template-columns: 1fr; gap: 28px; } }

/* reviews: two large quotes, offset */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: 0; }
.quote { margin: 0; }
.quote:nth-of-type(2) { margin-top: clamp(0px, 8vw, 120px); }
.quote blockquote { margin: 0 0 16px; }
.quote p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.quote figcaption { color: var(--muted); font-weight: 500; }
@media (max-width: 767px) { .reviews { grid-template-columns: 1fr; } }

/* enquiry */
.enquire { display: grid; grid-template-columns: 1.6fr .8fr; gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
#trip-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 16px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid #767676;
  border-radius: var(--radius); padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid #767676;
  border-radius: 999px; font-weight: 500; cursor: pointer; }
.chips input { color: inherit; background: transparent; appearance: none; width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; }
.chips input:checked { background: currentColor; box-shadow: inset 0 0 0 2.5px var(--ink); }
.chips label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* pickers: a field that opens a floating panel (date calendar, travellers counter) */
.field-label { font-weight: 600; font-size: 16px; }
.who-plain { display: flex; gap: 12px; }
.who-plain label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.picker { position: relative; }
.picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 500 17px/1.3 var(--sans); color: var(--ink); text-align: left; background: var(--paper); border: 1.5px solid #767676; border-radius: var(--radius); cursor: pointer; }
.picker-trigger::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.picker-trigger[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.picker-trigger[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.picker-trigger.is-empty { color: var(--muted); font-weight: 400; }
.picker-trigger:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.picker-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: max(100%, 344px); padding: 20px; background: var(--paper);
  border-radius: 20px; box-shadow: 0 18px 50px rgb(0 0 0 / .16), 0 2px 8px rgb(0 0 0 / .08); }
.who-panel { left: auto; right: 0; }
@media (prefers-reduced-motion: no-preference) { .picker-panel:not([hidden]) { animation: pop .22s var(--ease); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 767px) { .picker-panel, .who-panel { left: 0; right: 0; width: auto; } }

.cal-head { display: grid; gap: 14px; margin-bottom: 12px; }
.seg { display: flex; padding: 4px; background: var(--soft); border-radius: 999px; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .14); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; }
.cal-month { font-weight: 600; font-size: 17px; }
.nav-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.nav-btn::before { content: ""; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; }
.nav-btn.prev::before { transform: translateX(2px) rotate(135deg); }
.nav-btn.next::before { transform: translateX(-2px) rotate(-45deg); }
.nav-btn:hover:not(:disabled) { background: var(--soft); }
.nav-btn:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wd { display: grid; place-items: center; height: 32px; font-size: 13px; color: var(--muted); }
.day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font: 500 15px/1 var(--sans); color: var(--ink); cursor: pointer; }
.day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day.is-today { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.day:disabled { color: #c2c2c2; cursor: default; }
.day:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.text-btn { border: 0; background: none; padding: 8px 0; font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

.who-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.who-row + .who-row { border-top: 1px solid var(--line); }
.who-name { font-weight: 600; }
.counter { display: flex; align-items: center; gap: 14px; }
.count { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.count-btn { position: relative; width: 36px; height: 36px; border: 1.5px solid #767676; border-radius: 999px; background: var(--paper); cursor: pointer; }
.count-btn::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.count-btn:hover:not(:disabled) { border-color: var(--ink); }
.count-btn:disabled { opacity: .3; cursor: not-allowed; }
.hint { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 767px) { .enquire, #trip-form { grid-template-columns: 1fr; } }

.contact { align-self: start; position: sticky; top: calc(var(--nav) + 24px); }
.contact h3 { margin-bottom: 16px; }
.contact p a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; padding: 10px 0; }
.contact p a span { font-weight: 400; color: var(--muted); }
.contact p a:hover span { text-decoration: underline; }
.social { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.social a:hover { border-color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 32px var(--pad);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot p { margin: 0 0 0 auto; }
.foot-social { display: flex; gap: 4px; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.foot-social a:hover { background: var(--soft); }
@media (max-width: 767px) { .foot p { margin-left: 0; } }

/* motion: only when the visitor has not asked for less. Without JS the first photo stays and everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .scene { transition: opacity 1.1s ease; }
  .scene img { transform: scale(1.08); transition: transform 7s ease-out; }
  .scene.is-active img { transform: scale(1); }
  .step-hero .card > * { animation: rise .9s var(--ease) both; }
  .step-hero .card > :nth-child(2) { animation-delay: .08s; }
  .step-hero .card > :nth-child(3) { animation-delay: .16s; }
  .js .step:not(.step-hero) .card { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .step.is-in .card { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
