/* Beleza — Phase 0 stylesheet. Palette and type per spec §4.2. */
:root {
  --bg: #FAF8F5;
  --ink: #141210;
  --ink-2: #5A544C;
  --line: #E4DED5;
  --accent: #C4562F; /* spec offers terracotta or ocean blue #1B4B5A; terracotta chosen */
  --accent-ink: #FFFFFF;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 660px;
  --wide: 880px;
  --page: 1120px;
  --gutter: 20px;
  --space: 1.5rem;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.6em; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-top: 0; text-wrap: balance; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: calc(var(--space) * 2) 0; }
section + section { border-top: 1px solid var(--line); }
.sub { font-size: 1.15rem; margin-top: 2rem; }
.kicker { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.note { color: var(--ink-2); font-size: 0.92rem; }

/* header */
.top { display: flex; justify-content: space-between; align-items: baseline; max-width: var(--page); margin: 0 auto; padding: 1rem var(--gutter); }
.brand { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; font-weight: 600; }
.langs a { text-decoration: none; font-size: 0.85rem; letter-spacing: 0.06em; margin-left: 0.9rem; color: var(--ink-2); padding-bottom: 2px; }
.langs a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--accent); }

/* photos: full bleed at section breaks; slot = labelled placeholder until real photos exist */
.photo { margin: 0 0 var(--space); width: 100%; }
.photo--hero, .photo--guide { aspect-ratio: 3 / 2; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; }
.photo img.in { opacity: 1; }
.photo--slot { display: grid; place-items: center; background: linear-gradient(160deg, #D9CFC2 0%, #B9A48F 60%, #8C7A69 100%); color: #FAF8F5; text-align: center; padding: var(--gutter); }
.photo--slot span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; max-width: 28ch; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
@media (min-width: 900px) { .photo--guide { max-width: 960px; margin-left: auto; margin-right: auto; } }

/* hero */
.hero { padding-top: 0; }
.hero .measure { padding-top: var(--space); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 0.85rem 1.4rem; border-radius: 4px; line-height: 1.2; }
.btn:hover { filter: brightness(0.92); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn--big { font-size: 1.1rem; padding: 1rem 1.7rem; margin: 0.5rem 0 1rem; }

/* tours */
.tours { list-style: none; padding: 0; margin: 0; }
.tour { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.tour:last-child { border-bottom: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.meta strong { color: var(--ink); margin-left: auto; }

/* guides */
.guide { padding-top: var(--space); }
.guide + .guide { margin-top: var(--space); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; margin: 0 0 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts--stack { grid-template-columns: 1fr; border: 0; padding: 0; }
.facts div { margin: 0; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.2rem; }
.facts dd { margin: 0; }

/* money */
.split { margin: 1.5rem 0; padding: 0; }
.split div { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.split div:last-child { border-bottom: 1px solid var(--line); }
.split dt { font-family: var(--serif); font-size: 1.15rem; }
.split dd { margin: 0; text-align: right; }
.split b { font-family: var(--serif); font-weight: 600; font-size: 2rem; display: block; font-variation-settings: 'opsz' 60; }
.split small { display: block; color: var(--ink-2); font-size: 0.85rem; max-width: 26ch; margin-left: auto; }
.split__guide b { color: var(--accent); }

/* rules and steps */
.rules, .steps { padding-left: 1.4rem; margin: 0 0 1rem; }
.rules li, .steps li { margin-bottom: 0.7rem; padding-left: 0.3rem; }
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: calc(var(--space) * 1.5) var(--gutter) calc(var(--space) * 4); max-width: var(--page); margin: 0 auto; font-size: 0.9rem; color: var(--ink-2); }
.foot__brand { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.foot__note { font-size: 0.8rem; }

/* sticky booking bar (mobile only, appears once the hero scrolls out) */
.bar { display: none; }
@media (max-width: 720px) {
  .bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem var(--gutter); background: rgba(250,248,245,0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 240ms ease; z-index: 10; }
  .bar--on { transform: translateY(0); }
  .bar .btn { padding: 0.7rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
  .bar__price { font-family: var(--serif); font-size: 1rem; }
  body { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .bar, .photo img { transition: none; } html { scroll-behavior: auto; } }

/* policies */
.policies { padding: var(--space) var(--gutter) calc(var(--space) * 3); }
.policies h2 { font-size: 1.6rem; margin-top: 2.5rem; }

/* desktop: structural blocks get a wider track than the prose */
@media (min-width: 900px) {
  .tours, .split { width: var(--wide); max-width: calc(100vw - 2 * var(--gutter)); margin-left: calc(50% - var(--wide) / 2); }
  .tour { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.3rem 2.5rem; align-items: start; padding: 1.8rem 0; }
  .tour h4 { grid-row: 1 / span 2; font-size: 1.45rem; }
  .tour p { margin: 0; }
  .tour .meta { grid-column: 2; margin-top: 0.4rem; }
  .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .split div { display: block; border: 0; padding: 1.4rem 1.5rem; }
  .split div + div { border-left: 1px solid var(--line); }
  .split div:last-child { border-bottom: 0; }
  .split div:first-child { padding-left: 0; }
  .split dd, .split small { text-align: left; margin-left: 0; }
  .split b { font-size: 2.2rem; margin: 0.3rem 0; }
  .photo--guide { max-width: var(--page); }
  .guide .measure { display: grid; grid-template-columns: 1fr 2fr; gap: 0 2.5rem; max-width: var(--wide); }
  .guide h3 { grid-column: 1 / -1; }
  .guide .facts { grid-template-columns: 1fr; border-top: 0; padding-top: 0; align-content: start; }
  .guide .facts + p { margin-top: 0; }
}
@media (min-width: 900px) {
  .photo--hero { aspect-ratio: auto; height: min(62vh, 620px); }
  .photo--guide { aspect-ratio: 5 / 2; }
  #tour .sub { width: var(--wide); margin-left: calc(50% - var(--wide) / 2); }
}

/* money: the total is the headline figure, the three-way split sits under it */
.total { margin: 1.5rem 0 0; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.total dt { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.2rem; }
.total dd { margin: 0; }
.total b { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 9vw, 3.6rem); display: block; line-height: 1; font-variation-settings: 'opsz' 96; }
.total small { display: block; color: var(--ink-2); font-size: 0.95rem; margin-top: 0.5rem; max-width: 46ch; }
.money .split { margin-top: 0; }
.money .note { font-size: 0.85rem; margin-top: 1.2rem; }

/* story strip: four tiles, the tour in order, captions under each */
.strip { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--page); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space) var(--gutter); }
.strip li { margin: 0; }
.photo--tile { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 0.6rem; }
.cap { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-2); line-height: 1.35; margin: 0; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* language chooser (root page) */
.choose { min-height: 100vh; }
.ch__brand { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; letter-spacing: 0; margin: 0 0 0.25rem; }
.ch a { text-decoration: none; display: block; color: inherit; }
.ch__name { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; display: block; }
.ch__sug[hidden] { display: none; }
.ch__sug { display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 0.5rem; }
.ch a:hover .ch__name, .ch a:focus-visible .ch__name { color: var(--accent); }
.ch a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.choose .ch__head { max-width: var(--page); margin: 0 auto; padding: 1rem var(--gutter) 0.5rem; display: flex; justify-content: space-between; align-items: baseline; }
.choose .ch__head .kicker { margin: 0; }
.choose .ch__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.choose .ch__grid a { position: relative; }
.choose .ch__tile { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; max-height: 30vh; }
.choose .ch__tile img { transition: transform 900ms ease, opacity 600ms ease; }
.choose a:hover .ch__tile img { transform: scale(1.03); }
.choose .ch__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem var(--gutter); color: #FAF8F5; background: linear-gradient(to top, rgba(20,18,16,0.72), rgba(20,18,16,0)); }
.choose .ch__label .ch__sug { color: #FAF8F5; opacity: 0.85; }
.choose a:hover .ch__name { color: #FAF8F5; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
@media (min-width: 720px) { .choose .ch__grid { grid-template-columns: repeat(3, 1fr); } .choose .ch__tile { max-height: none; height: calc(100vh - 90px); aspect-ratio: auto; } }
