/* ==========================================================================
   rhythm.css — Stage 71: titles and vertical rhythm, one global set.
   Loaded LAST (after site.css, deep-luxury.css and home-luxury.css), so it only
   has to say what changes; no rule here is tied to one page.

   What it settles:
   1. Titles. One H1 size and one section-title size for the whole site, in
      place of the 64px / 76px / 89px / 152px that each stylesheet had grown.
      A title that fits on one line stays on one line (no narrow max-width, no
      ch caps); a long one is balanced, never broken inside a word.
   2. Space. Sections no taller than 64px of padding on desktop and 40px on a
      phone; 12-24px between eyebrow, title, text and buttons.
   3. Light-ground gold button: the pale gold text on cream was ~1.6:1; it is now
      a dark gold (about 7:1).
   4. Small repairs that belong to the same pass (banner overflow on a phone).
   ========================================================================== */

:root{
  --r-h1:clamp(2rem,1.2rem + 2.6vw,3.5rem);
  --r-h2:clamp(1.6rem,1.1rem + 1.6vw,2.5rem);
  --r-sec:clamp(2.5rem,2rem + 1.5vw,4rem);        /* 40px phone -> 64px desktop */
  --r-sec-tight:clamp(1.25rem,1rem + 1vw,2rem);
  /* the two scales site.css uses for every themed band */
  --band-space:clamp(2.5rem,2rem + 1.5vw,4rem);
  --band-space-tight:clamp(1.25rem,1rem + 1vw,2rem);
}

/* ---- 1. Titles ----------------------------------------------------------- */
h1,
.lux-hero h1,
.hero-body h1,
.hero-cinematic h1,
.journey-hero h1,
.entity-banner-body h1,
.entity-banner-body--city h1,
.list-hero__title,
.legal-head h1,
.page-intro h1,
h1.display{
  font-size:var(--r-h1) !important;
  line-height:1.1 !important;
  max-width:none !important;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:manual;
}
/* the homepage title keeps its two intended lines ("Europa," / "prin ochii lui Giddo.") */
.lux-hero h1 em{display:block}

h2.display,
.head h2,
.band-head h2,
h2.band-title,
.prose h2,
.content-section > h2,
.article-section > h2,
.section-head h2,
.city-search__title{
  font-size:var(--r-h2) !important;
  line-height:1.15 !important;
  max-width:none !important;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:manual;
}
/* the small result heading on the map page */
.map-results .section-head h2{font-size:1.25rem !important;line-height:1.2 !important}
/* h1s that are small on purpose (a notice, the departure card) keep their size */
.notice-card h1{font-size:1.6rem !important;line-height:1.15 !important}
.departure-card h1{font-size:1.3rem !important;line-height:1.2 !important}
/* a <br> that was only there to force a break is a plain space */
h1 br,h2 br{content:" "}

/* ---- 2. Space ------------------------------------------------------------ */
/* homepage sections */
.countries,.atlas,.routes,.gallery,.stories,.journey,.stay,.shop{padding-block:var(--r-sec)}
.dest{padding-block:var(--r-sec) var(--r-sec-tight)}
.foot{padding-block:var(--r-sec) 2rem}
.divider{height:clamp(40px,5vw,72px)}
/* the stack inside a section head: eyebrow, title, text — 12 to 20px apart */
.head{gap:.75rem;margin-bottom:clamp(1.25rem,2.2vw,2rem)}
.head h2{margin:0}
.head .lede,.head .label{margin:0}
.head__rule{margin:0}
.mt-lg{margin-top:1.25rem}
.lux-hero__lede{margin-top:1rem}
.lux-hero__cta{margin-top:1.5rem}
.lux-hero__figs{margin-top:1.75rem;padding-top:1.25rem}
.index{margin-top:clamp(1.5rem,3vw,2.5rem);padding-top:clamp(1.25rem,2vw,1.75rem)}
.journey__strip{margin-top:clamp(1.5rem,3vw,2.5rem)}
.foot__top{padding-bottom:clamp(1.5rem,3vw,2.5rem)}
.partners{padding-top:clamp(1.5rem,3vw,2.25rem)}

/* inner pages */
.theme-section-head{padding-bottom:1.25rem}
.band-head{margin-bottom:var(--band-space-tight)}
.band-head-link{margin-top:.75rem}
.list-hero{min-height:0}
.list-hero__in{padding-block:1.5rem 3rem}
.list-hero--compact .list-hero__in{padding-block:1.5rem 2rem}
.list-hero__lead{margin-top:.6rem}
.list-hero__eyebrow{margin:.2rem 0 .3rem}
.journey-hero{min-height:clamp(15rem,34vh,24rem)}
.hero-body{padding-block:clamp(2rem,4vw,3.5rem) clamp(1.5rem,3vw,2.5rem)}
.hero-cinematic .hero-body{padding-block:clamp(1.75rem,3vw,3rem)}
.hero-cinematic .hero-lead{margin-top:.75rem}
.section-head{margin-bottom:1.25rem}
.page-intro{padding-block:1.25rem .75rem}
.content-section{padding-top:1.25rem;margin-top:1.25rem}
.feature-band-inner{padding-block:var(--band-space-tight)}
.site-main{padding-block:1.25rem 2.5rem}

/* ---- 3. The homepage "where to stay" section ----------------------------- */
.stay__panel{max-width:none}
.stay__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.stay__fallback{margin-top:1rem}
.stay__quick{margin-top:1rem}
.stay__collage{display:grid;grid-template-columns:1.25fr 1fr;grid-template-rows:1fr 1fr;gap:.75rem;min-height:clamp(15rem,26vw,22rem);margin:0;padding:0;list-style:none}
.stay__collage li{position:relative;margin:0;overflow:hidden;border-radius:3px;background:var(--porcelain)}
.stay__collage li:first-child{grid-row:1 / span 2}
.stay__collage a{display:block;position:absolute;inset:0}
.stay__collage img{width:100%;height:100%;object-fit:cover;display:block}
.stay__collage span{position:absolute;left:0;right:0;bottom:0;padding:1.6rem .8rem .6rem;color:#fff;font-size:.8rem;font-weight:600;
  background:linear-gradient(180deg,transparent,rgba(18,14,11,.72))}
@media(max-width:63.99rem){
  .stay__grid{grid-template-columns:minmax(0,1fr)}
  .stay__collage{min-height:0;grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .stay__collage li:first-child{grid-row:auto;grid-column:1 / -1}
  .stay__collage li{aspect-ratio:16/10}
  .stay__collage li:first-child{aspect-ratio:16/9}
}

/* ---- 4. Contrast: the gold ghost button on a light ground --------------- */
.stay .btn--gold,
.btn--gold.btn--on-light{color:#6B4F14;border-color:var(--gold)}
.stay .btn--gold::before,
.btn--gold.btn--on-light::before{background:#6B4F14}
.stay .btn--gold:hover,
.btn--gold.btn--on-light:hover{color:#FFFDFA;border-color:#6B4F14}

/* ---- 5. Phone: nothing wider than the screen ----------------------------- */
.affiliate-banner{max-width:100%}
.affiliate-banner a{min-width:0;max-width:100%}
.affiliate-banner img{max-width:100%;height:auto}
@media(max-width:47.99rem){
  .affiliate-banner img{width:100%}
  .lux-hero__cta .btn,.stay__fallback .btn,.cta-row .btn{width:100%;justify-content:center}
  .stay__fallback{flex-direction:column;align-items:stretch}
  .stay__fallback .btn{text-align:center}
  .head{margin-bottom:1.25rem}
}

/* the mascot panel on the right of "where to stay" when there are no destination photographs yet */
.stay__mascot{margin:0;display:flex;align-items:center;justify-content:center;min-height:clamp(14rem,24vw,20rem);
  border:1px solid var(--hair-gold);border-radius:3px;
  background:radial-gradient(circle at 50% 40%,rgba(220,192,138,.28),rgba(251,247,240,0) 70%),var(--porcelain)}
.stay__mascot img{width:auto;height:clamp(11rem,19vw,16rem);max-width:80%;object-fit:contain}
@media(max-width:63.99rem){.stay__mascot{min-height:12rem}.stay__mascot img{height:10rem}}

/* the two buttons of "where to stay" sit side by side where the column allows it */
@media(min-width:48rem){.stay__fallback .btn{padding-inline:1.35rem}}

/* the homepage hero: a 56px title does not need a 58rem stage */
.lux-hero{min-height:min(78svh,40rem);padding-block:clamp(6.5rem,13vh,8.5rem) clamp(2rem,5vh,3.5rem)}
.lux-hero__copy{max-width:46rem}
/* "Găsește-ți cazarea": break at the space, not after the hyphen */
h1.band-title{text-wrap:wrap}
@media(max-width:48rem){.lux-hero{min-height:0;padding:4.6rem 0 2rem}}
