/* ═══════════════════════════════════════════════════════════════════════════
   services-v5.css — Customizable Tours + Our Tours & Services (V5 hybrid
   redesign, Jesse brief 9 Oct 2026, built 3 Nov 2026)
   ─────────────────────────────────────────────────────────────────────────
   Both pages carry main.esc5 as well as main.svc5, so the Small Group
   Escorted Tours stylesheet (pages/escorted-v5.css) dresses everything the
   three pages share: shells, section voices, parchment and ink bands, the
   tour card and its price plate, and the parallax enquiry band. This file
   holds only what is particular to these two pages: the photo hero, the
   "four things we ask" worksheet, the local-knowledge split, the FAQ
   ledger, the service directory and the "more ways to travel" ledger.
   Loaded AFTER escorted-v5.css, with ?v=filemtime.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero: one real photograph, title block drawn like the tour V5 hero.
   One sub-nav bar shorter, like the escorted page (the bar follows). ── */
main.svc5 .svc5-hero {
    position: relative;
    height: calc(100svh - 3.5rem);
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
    background: var(--v5-ink);
    color: #fff;
}
main.svc5 .svc5-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: var(--svc5-hero-pos, center 40%);
    display: block;
}
main.svc5 .svc5-hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
}
main.svc5 .svc5-hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: radial-gradient(ellipse 85% 70% at 15% 100%, rgba(0, 0, 0, 0.5), transparent 68%);
}
main.svc5 .svc5-hero-content {
    position: absolute; inset: auto 0 0; z-index: 3;
    padding: 0 0 1.5rem;
}
main.svc5 .svc5-hero-box { max-width: 64rem; }
/* 28ch, not the escorted page's 22ch: these titles are a few words longer
   and 22ch left a single word on the last line at 1366. */
main.svc5 .svc5-hero .hero-content-title { max-width: 28ch; color: #fff; animation: heroFadeUp 1s ease-out 0.3s both; }
main.svc5 .svc5-hero .hero-content-subtitle { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); animation: heroFadeUp 1s ease-out 0.5s both; }
main.svc5 .svc5-hero-cta { margin-top: 1.6rem; animation: heroFadeUp 1s ease-out 0.65s both; }
/* The button is an <a> inside a <p>: `main.esc5 a { color: inherit }` made
   it take the paragraph's dark colour until hover. Its ivory is restated. */
main.svc5 .svc5-hero-cta .ivs-btn,
main.svc5 .svc5-hero-cta .ivs-btn:hover,
main.svc5 .svc5-hero-cta .ivs-btn:focus-visible { padding: 0.95rem 1.8rem; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--v5-ivory); }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@media (min-width: 64rem) {
    main.svc5 .svc5-hero-content { padding-bottom: 2rem; }
}

/* ── Testimonial component on these pages. escorted-v5.css resets
   `main.esc5 p { margin: 0 }` and `main.esc5 a { color: inherit }` at
   0,1,1, which outranks the component's own 0,1,0 rules (the :where()
   gotcha, rule-wajib gotcha-teknis.md): the sub lost its `margin: auto`
   and drifted left, the "Read their story" link lost its olive. The
   component's values are restated here at 0,2,1. ── */
main.svc5 .ivs-testi__eyebrow { margin: 0 0 14px; }
main.svc5 .ivs-testi__sub { margin: 14px auto 0; }
main.svc5 .ivs-testi__more { color: var(--ivs-testi-olive, var(--v5-olive-700)); }
main.svc5 .ivs-testi__more:hover,
main.svc5 .ivs-testi__more:focus-visible { color: var(--ivs-testi-olive-deep, var(--v5-olive-900)); }

/* ── Section head width when the heading is centred ── */
main.svc5 .svc5-head { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ── Parchment band without the toile: a card grid sits on it (the toile
   is for narrative bands, rule-wajib komponen.md). ── */
main.svc5 .svc5-plain::after { content: none; }

/* ── Customizable: the worksheet, four questions on one sheet. Hairlines
   divide the sheet into quarters; nothing is a card. ── */
main.svc5 .cz5-ask {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.6rem;
    border: 1px solid var(--v5-line);
    background: rgba(250, 249, 246, 0.55);
}
main.svc5 .cz5-ask-it {
    padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.3rem, 2.4vw, 2rem);
}
main.svc5 .cz5-ask-it:nth-child(2n) { border-left: 1px solid var(--v5-line); }
main.svc5 .cz5-ask-it:nth-child(n + 3) { border-top: 1px solid var(--v5-line); }
/* Icon in a hairline olive ring, centred over the heading like a seal. */
main.svc5 .cz5-ask-ring {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    margin: 0 auto;
    border: 1px solid var(--v5-olive-300);
    border-radius: 50%;
    background: var(--v5-ivory);
}
main.svc5 .cz5-ask-ic {
    display: block; width: 24px; height: 24px;
    stroke: var(--v5-olive-700); fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
main.svc5 .cz5-ask-it h3 {
    margin-top: 1rem;
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: 1.3rem; line-height: 1.25; color: var(--v5-ink);
}
main.svc5 .cz5-ask-it p { margin-top: 0.5rem; font-size: 0.97rem; line-height: 1.7; color: var(--v5-stone); }
main.svc5 .cz5-then {
    max-width: 56ch;
    margin: 2rem auto 0;
    font-family: var(--v5-font-display); font-style: italic; font-weight: 500;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45;
    color: var(--v5-ink);
}

/* ── Customizable: local knowledge, ink band, text beside a photograph ── */
main.svc5 .cz5-local {
    display: grid; grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
main.svc5 .cz5-local p { margin-top: 1rem; font-size: 1.04rem; line-height: 1.75; color: rgba(250, 249, 246, 0.82); }
main.svc5 .cz5-local figure { margin: 0; order: -1; }
/* height:auto beats the img's height attribute, or aspect-ratio never applies
   (global-new.css did this for the escorted page; it is not loaded here). */
main.svc5 .cz5-local figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
main.svc5 .cz5-local figcaption {
    margin-top: 0.6rem;
    font-family: var(--v5-font-label);
    font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(250, 249, 246, 0.6);
}
main.svc5 .cz5-what {
    margin-top: 1.8rem; padding-top: 1.4rem;
    border-top: 1px solid rgba(250, 249, 246, 0.16);
}
main.svc5 .cz5-what-t {
    font-family: var(--v5-font-label);
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--v5-amber);
}
main.svc5 .cz5-what ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.4rem;
    margin: 0.8rem 0 0; padding: 0; list-style: none;
}
main.svc5 .cz5-what li {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.95rem; color: rgba(250, 249, 246, 0.86);
}
main.svc5 .cz5-what .esc5-ic { color: var(--v5-olive-300); }

/* ── Customizable: FAQ, a ledger of questions (native details, no JS) ── */
main.svc5 .cz5-faq { max-width: 820px; margin: 2.2rem auto 0; border-top: 1px solid var(--v5-line); }
main.svc5 .cz5-faq details { border-bottom: 1px solid var(--v5-line); }
main.svc5 .cz5-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    padding: 1.1rem 0.2rem;
    list-style: none; cursor: pointer;
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: 1.12rem; line-height: 1.35; color: var(--v5-ink);
    transition: color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease);
}
main.svc5 .cz5-faq summary::-webkit-details-marker { display: none; }
main.svc5 .cz5-faq summary:hover { color: var(--v5-olive-700); }
main.svc5 .cz5-faq summary:focus { outline: none; }
main.svc5 .cz5-faq summary:focus-visible { box-shadow: 0 0 0 2px var(--v5-parchment), 0 0 0 3px var(--v5-olive-500); }
main.svc5 .cz5-faq-ic {
    width: 16px; height: 16px; flex: 0 0 auto;
    stroke: var(--v5-olive-700); fill: none; stroke-width: 1.6; stroke-linecap: round;
    transition: transform var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease);
}
main.svc5 .cz5-faq details[open] .cz5-faq-ic { transform: rotate(45deg); }
main.svc5 .cz5-faq details p { max-width: 68ch; padding: 0 0.2rem 1.3rem; font-size: 1rem; line-height: 1.75; color: var(--v5-stone); }

/* ── Our Tours: service directory (components/ivs-marquee). The row names
   are the page's H3s here, so the heading's default type and margin are
   neutralised and the component's own voice stays. ── */
main.svc5 .ot5-dir { margin-top: 2.2rem; }
main.svc5 .ot5-dir :where(h3.ivs-marq-name) { margin: 0; font-weight: inherit; }

/* ── Our Tours: more ways to travel. A magazine contents page on the ink
   band: two columns of rows, each with a small photograph, a Playfair
   title and one line, divided by hairlines (bos, 3 Nov: the text-only
   ledger read stiff). ── */
main.svc5 .ot5-ledger {
    display: grid; grid-template-columns: minmax(0, 1fr);
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
    margin-top: 2.4rem;
    border-top: 1px solid rgba(250, 249, 246, 0.16);
}
@media (min-width: 1200px) {
    main.svc5 .ot5-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
main.svc5 .ot5-row {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 1.2rem;
    padding: 1rem 0.2rem;
    border-bottom: 1px solid rgba(250, 249, 246, 0.16);
}
main.svc5 .ot5-row-ph {
    display: block; width: 120px; aspect-ratio: 4 / 3;
    overflow: hidden; background: #14130f;
}
main.svc5 .ot5-row-ph img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 700ms var(--ivs-anim-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
@media (hover: hover) { main.svc5 .ot5-row:hover .ot5-row-ph img { transform: scale(1.06); } }
main.svc5 .ot5-row h3 {
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.3; color: var(--v5-ivory);
    transition: color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease);
}
main.svc5 .ot5-row p { margin-top: 0.3rem; font-size: 0.93rem; line-height: 1.6; color: rgba(250, 249, 246, 0.68); }
main.svc5 .ot5-row-go {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--v5-font-label);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--v5-amber);
    white-space: nowrap;
    opacity: 0; transform: translateX(-6px);
    transition: opacity var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease), transform var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease);
}
main.svc5 .ot5-row-go .esc5-ic { width: 14px; height: 14px; }
main.svc5 .ot5-row:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--v5-ink), 0 0 0 3px var(--v5-olive-300); }
main.svc5 .ot5-row:hover h3, main.svc5 .ot5-row:focus-visible h3 { color: var(--v5-amber); }
main.svc5 .ot5-row:hover .ot5-row-go, main.svc5 .ot5-row:focus-visible .ot5-row-go { opacity: 1; transform: none; }
@media (hover: none) { main.svc5 .ot5-row-go { opacity: 1; transform: none; } }

/* Quiet rows of links under the ledger: regions for private touring and
   the Vatican tours the old page listed. */
main.svc5 .ot5-links { margin-top: 2rem; }
main.svc5 .ot5-links + .ot5-links { margin-top: 1.2rem; }
main.svc5 .ot5-links-t {
    display: block; margin-bottom: 0.5rem;
    font-family: var(--v5-font-label);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--v5-amber);
}
main.svc5 .ot5-links ul { display: flex; flex-wrap: wrap; gap: 0.35rem 0; margin: 0; padding: 0; list-style: none; }
main.svc5 .ot5-links li { display: flex; align-items: center; }
main.svc5 .ot5-links li + li::before { content: ''; display: block; width: 4px; height: 4px; margin: 0 0.9rem; border-radius: 50%; background: rgba(250, 249, 246, 0.35); }
main.svc5 .ot5-links a {
    font-family: var(--v5-font-body); font-size: 0.97rem;
    color: rgba(250, 249, 246, 0.86);
    border-bottom: 1px solid transparent;
    transition: color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease), border-color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease);
}
main.svc5 .ot5-links a:hover { color: #fff; border-bottom-color: var(--v5-amber); }
/* Long titles (the Vatican tours): two tidy columns with an amber dash,
   instead of one wrapping line of dots. */
main.svc5 .ot5-links--stack ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 2.5rem; }
main.svc5 .ot5-links--stack li { align-items: flex-start; gap: 0.7rem; }
main.svc5 .ot5-links--stack li::before,
main.svc5 .ot5-links--stack li + li::before { content: ''; display: block; flex: 0 0 auto; width: 14px; height: 1px; margin: 0.75rem 0 0; border-radius: 0; background: var(--v5-amber); }
main.svc5 .ot5-links--stack a { line-height: 1.5; }
@media (max-width: 991px) { main.svc5 .ot5-links--stack ul { grid-template-columns: minmax(0, 1fr); } }

/* ── Responsive (4 viewports: 375 / 768 / 1366 / 1920) ── */
@media (max-width: 767px) {
    main.svc5 .svc5-hero { height: calc(78svh - 3.5rem); min-height: 480px; }
    main.svc5 .cz5-ask { grid-template-columns: minmax(0, 1fr); }
    main.svc5 .cz5-ask-it:nth-child(2n) { border-left: 0; }
    main.svc5 .cz5-ask-it:nth-child(n + 2) { border-top: 1px solid var(--v5-line); }
    main.svc5 .cz5-local { grid-template-columns: 1fr; }
    main.svc5 .ot5-row { grid-template-columns: 88px minmax(0, 1fr); gap: 0.9rem; }
    main.svc5 .ot5-row-ph { width: 88px; }
    main.svc5 .ot5-row-go { display: none; }
    main.svc5 .ot5-links li + li::before { margin: 0 0.6rem; }
}
@media (max-width: 479px) {
    main.svc5 .cz5-what ul { grid-template-columns: minmax(0, 1fr); }
    main.svc5 .svc5-hero-cta .ivs-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    main.svc5 .svc5-hero .hero-content-title, main.svc5 .svc5-hero .hero-content-subtitle, main.svc5 .svc5-hero-cta { animation: none; }
    main.svc5 .cz5-faq summary, main.svc5 .cz5-faq-ic, main.svc5 .ot5-row h3, main.svc5 .ot5-row-go, main.svc5 .ot5-row-ph img, main.svc5 .ot5-links a { transition: none; }
}
