/* ============================================================================
   design.css: the readability layer on top of the imported Elementor layout.

   Loaded after site.css. The import keeps every page's structure, text and
   images; this file decides how big, how spaced and how legible things are.
   Rules here win by being later and by using the same selectors.
   Decision D9 in MIGRATION_LEDGER.md: we moved off the pixel replica on purpose.
   ============================================================================ */

:root {
  /* Type scale (desktop) */
  --fs-h1: clamp(34px, 2.2vw + 20px, 52px);
  --fs-h2: clamp(28px, 1.4vw + 16px, 38px);
  --fs-h3: clamp(22px, 0.9vw + 14px, 28px);
  --fs-h4: 22px;
  --fs-h5: 19px;
  --fs-body: 18px;
  --fs-small: 16px;
  --lh-tight: 1.12;
  --lh-head: 1.2;
  --lh-body: 1.6;
  /* Vertical rhythm */
  --space-section: clamp(48px, 6vw, 88px);
  --space-block: 24px;
  --measure: 70ch;
}

/* ---- Headings: Elementor's per-widget sizes are kept only when they are
        smaller than the scale; anything larger is capped. ---- */
.ec-heading { line-height: var(--lh-head); letter-spacing: -0.01em; }
h1.ec-heading { font-size: min(var(--fs, var(--fs-h1)), var(--fs-h1)); line-height: var(--lh-tight); margin-bottom: 0.2em; }
h2.ec-heading { font-size: min(var(--fs, var(--fs-h2)), var(--fs-h2)); line-height: var(--lh-tight); }
h3.ec-heading { font-size: min(var(--fs, var(--fs-h3)), var(--fs-h3)); }
h4.ec-heading { font-size: min(var(--fs, var(--fs-h4)), var(--fs-h4)); }
h5.ec-heading, h6.ec-heading { font-size: min(var(--fs, var(--fs-h5)), var(--fs-h5)); line-height: 1.35; }
p.ec-heading { font-size: min(var(--fs, 22px), 22px); line-height: 1.4; }
/* The Elementor "style guide" headings inside rich text */
.ec-text h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); margin: 0 0 0.5em; }
.ec-text h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); margin: 1.4em 0 0.5em; }
.ec-text h3 { font-size: var(--fs-h3); line-height: var(--lh-head); margin: 1.3em 0 0.4em; }
.ec-text h4 { font-size: var(--fs-h4); line-height: var(--lh-head); margin: 1.2em 0 0.4em; }
.ec-text h2:first-child, .ec-text h3:first-child { margin-top: 0; }

/* ---- Body text: 24px/33px everywhere was the biggest readability problem ---- */
.ec-text { font-size: min(var(--fs, var(--fs-body)), 20px); line-height: var(--lh-body); }
.ec-text p { margin: 0 0 1em; }
.ec-text p:last-child { margin-bottom: 0; }
.ec-text ul, .ec-text ol { margin: 0 0 1.1em; }
.ec-text li { margin-bottom: 0.35em; }
.ec-icon-list { font-size: min(var(--fs, var(--fs-body)), 20px); line-height: 1.45; }
.ec-icon-list li { margin-bottom: 10px; }
.ec-button { font-size: min(var(--fs, 16px), 17px); letter-spacing: 0.02em; }
.ec-faq summary { font-size: min(var(--fs, 20px), 22px); line-height: 1.35; }

/* Keep long text at a readable measure. Centered text stays centered. */
.ec-col > .ec-text, .ec-col > .ec-icon-list { max-width: var(--measure); }
.ec-col > .ec-text[style*="--ta:center"], .ec-col > .ec-text[style*="--ta: center"] { margin-left: auto; margin-right: auto; }
.ec-col > .ec-heading { max-width: 28ch; }
.ec-col > .ec-heading[style*="--ta:center"], .ec-col > .ec-heading[style*="--ta: center"] { margin-left: auto; margin-right: auto; max-width: 32ch; }
.ec-col[style*="--ai:center"] > .ec-text, .ec-col[style*="--ai:center"] > .ec-heading,
.ec[style*="--ai:center"] > .ec__inner > .ec-text, .ec[style*="--ai:center"] > .ec__inner > .ec-heading { margin-left: auto; margin-right: auto; }

/* ---- Spacing: cap the imported paddings, give sections a consistent rhythm,
        never let a section pull itself over the previous one. ---- */
.ec, .ec-col {
  padding-top: min(var(--pt, 10px), var(--space-section));
  padding-bottom: min(var(--pb, 10px), var(--space-section));
  margin-top: max(var(--mt, 0px), 0px);
  margin-bottom: max(var(--mb, 0px), 0px);
  gap: var(--gap, 20px 20px);
}
.imported-main > .ec { padding-top: max(min(var(--pt, 10px), var(--space-section)), 32px); padding-bottom: max(min(var(--pb, 10px), var(--space-section)), 32px); }
.imported-main > .ec:first-child:not(.ec--bg) { padding-top: calc(max(min(var(--pt, 10px), var(--space-section)), 32px) + 120px); }
.imported-main > .ec.ec--bg:first-child { padding-top: max(min(var(--pt, 10px), var(--space-section)), 140px); }
.imported-main > .ec.ec--extra { padding-top: 24px; padding-bottom: 24px; }
.ec-spacer { height: min(var(--sp, 40px), 48px); }
/* Hero sections: tall enough to breathe, never a full screen of photo */
.ec, .ec-col { min-height: min(var(--minh, auto), 64vh); }
.ec[style*="--minh:100vh"] { min-height: min(72vh, 620px); }
/* A hero that only carries a title does not need a full screen */
.imported-main > .ec.ec--bg:first-child:not(:has(.ec-text, .ec-button, .ec-icon-list, form)) { min-height: min(56vh, 520px); }

/* ---- Text on photos: always behind a scrim so it stays legible ---- */
.ec--bg:not([style*="--ovl:"]):not([style*=".svg"]):has(.ec-heading, .ec-text, .ec-icon-list)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(38,29,42,.35) 0%, rgba(38,29,42,.55) 100%);
}
.ec--bg > *, .ec-col.ec--bg > * { position: relative; }
.ec--bg .ec-heading, .ec--bg .ec-text, .ec--bg .ec-icon-list { text-shadow: 0 1px 2px rgba(0,0,0,.25); }
/* a section that only holds an image as its background and no text does not need the scrim */
.ec--bg.ec--no-scrim::before { display: none; }

/* ---- Images ---- */
.ec-image img { border-radius: var(--imgr, 8px); }
.ec-image figcaption { font-size: var(--fs-small); color: var(--text); margin-top: 8px; }

/* ---- Blog post body (Elementor "theme-post-content") ---- */
.ec-text.ec-post-content, .ec-plain-content { font-size: var(--fs-body); line-height: var(--lh-body); }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  :root { --fs-h1: clamp(30px, 4vw, 42px); --fs-h2: clamp(26px, 3vw, 34px); --fs-h3: 24px; --space-section: 56px; }
  h1.ec-heading { font-size: min(var(--t-fs, var(--fs, var(--fs-h1))), var(--fs-h1)); }
  h2.ec-heading { font-size: min(var(--t-fs, var(--fs, var(--fs-h2))), var(--fs-h2)); }
  h3.ec-heading { font-size: min(var(--t-fs, var(--fs, var(--fs-h3))), var(--fs-h3)); }
  .ec-text { font-size: min(var(--t-fs, var(--fs, 18px)), 19px); }
  .ec, .ec-col { padding-top: min(var(--t-pt, var(--pt, 10px)), var(--space-section)); padding-bottom: min(var(--t-pb, var(--pb, 10px)), var(--space-section)); margin-top: max(var(--t-mt, var(--mt, 0px)), 0px); margin-bottom: max(var(--t-mb, var(--mb, 0px)), 0px); min-height: min(var(--t-minh, var(--minh, auto)), 60vh); }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  :root { --fs-h1: 32px; --fs-h2: 27px; --fs-h3: 22px; --fs-h4: 20px; --fs-h5: 18px; --fs-body: 17px; --space-section: 44px; }
  h1.ec-heading { font-size: min(var(--m-fs, var(--fs-h1)), var(--fs-h1)); line-height: 1.15; }
  h2.ec-heading { font-size: min(var(--m-fs, var(--fs-h2)), var(--fs-h2)); line-height: 1.2; }
  h3.ec-heading, h4.ec-heading { font-size: min(var(--m-fs, var(--fs-h3)), var(--fs-h3)); }
  h5.ec-heading, h6.ec-heading { font-size: var(--fs-h5); }
  p.ec-heading { font-size: min(var(--m-fs, 19px), 19px); }
  .ec-text { font-size: min(var(--m-fs, var(--fs-body)), 18px); line-height: 1.55; }
  .ec-text h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); margin: 0 0 0.5em; }
.ec-text h2 { font-size: var(--fs-h2); } .ec-text h3 { font-size: var(--fs-h3); } .ec-text h4 { font-size: var(--fs-h4); }
  .ec, .ec-col { padding-top: min(var(--m-pt, var(--t-pt, var(--pt, 10px))), var(--space-section)); padding-bottom: min(var(--m-pb, var(--t-pb, var(--pb, 10px))), var(--space-section)); margin-top: max(var(--m-mt, var(--t-mt, var(--mt, 0px))), 0px); margin-bottom: max(var(--m-mb, var(--t-mb, var(--mb, 0px))), 0px); min-height: min(var(--m-minh, var(--t-minh, var(--minh, auto))), 56vh); }
  .ec[style*="--minh:100vh"] { min-height: min(60vh, 520px); }
  .imported-main > .ec.ec--bg:first-child:not(:has(.ec-text, .ec-button, .ec-icon-list, form)) { min-height: 300px; }
  .imported-main > .ec:first-child:not(.ec--bg) { padding-top: calc(max(min(var(--m-pt, var(--pt, 10px)), var(--space-section)), 24px) + 96px); }
  .imported-main > .ec.ec--bg:first-child { padding-top: 120px; }
  .ec-col > .ec-heading, .ec-col > .ec-text { max-width: none; }
}

/* ============================================================================
   Homepage (hand-built sections in index.html)
   ============================================================================ */
.hero { min-height: min(100vh, 760px); }
.hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 100%); }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); max-width: 18ch; margin: 0 auto; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hero__content { padding: 160px 24px 96px; }
.welcome { position: relative; min-height: 0; padding: var(--space-section) 24px; }
.welcome::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,20,.78) 0%, rgba(20,30,20,.55) 55%, rgba(20,30,20,.15) 100%); }
.welcome__inner { position: relative; }
.welcome__copy { max-width: 620px; }
.welcome h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); margin-bottom: 20px; max-width: 16ch; }
.welcome p { font-size: var(--fs-body); line-height: var(--lh-body); }
.places { padding: var(--space-section) 24px 0; }
.places__scene { min-height: 0; padding: 56px 24px 24px; position: relative; }
.places h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); margin-bottom: 32px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.place-card { min-height: 380px; font-size: 24px; line-height: 1.3; letter-spacing: .04em; box-shadow: inset 0 -160px 120px -80px rgba(0,0,0,.55); }
.places__booking { padding: 28px 40px; }
.places__booking-title { font-size: 24px; line-height: 1.3; }
.why-stay { padding: var(--space-section) 24px 56px; }
.why-stay h2, .adventures h2, .outdoor h2, .testimonials h2, .final-cta h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); margin-bottom: 28px; }
.why-stay .feature-list, .why-stay p, .outdoor p { font-size: var(--fs-body); line-height: var(--lh-body); max-width: var(--measure); margin-left: auto; margin-right: auto; }
.why-stay .feature-list li { margin-bottom: 12px; }
.why-stay .feature-list em { font-size: var(--fs-small); }
.outdoor p { text-align: left; }
.adventures, .outdoor, .testimonials { padding: var(--space-section) 24px; }
.adventure-card { min-height: 340px; font-size: 20px; line-height: 1.3; box-shadow: inset 0 -180px 120px -80px rgba(0,0,0,.6); }
.adventure-card img { width: 110px; }
.testimonials__quote p { font-size: 15px; line-height: 1.5; }
.final-cta { position: relative; min-height: 0; margin-top: var(--space-section); padding: var(--space-section) 24px; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,20,.45); }
.final-cta__inner { position: relative; }
@media (max-width: 767px) {
  .hero { min-height: 70vh; }
  .hero__content { padding: 120px 20px 64px; }
  .welcome h2 { max-width: none; }
  .place-card { min-height: 220px; font-size: 20px; }
  .adventure-card { min-height: 260px; }
}


/* ============================================================================
   Blog posts: a reading column, left-aligned body, images matching the column
   ============================================================================ */
.imported-main--post .ec.ec--boxed > .ec__inner { max-width: 860px; }
.imported-main--post .ec-col.ec--boxed { max-width: 860px; }
.imported-main--post .ec-col > .ec-text, .imported-main--post .ec__inner > .ec-text { max-width: none; text-align: left; }
.imported-main--post .ec-text { font-size: 19px; line-height: 1.65; color: #4a4a4a; }
.imported-main--post .ec-text p { margin-bottom: 1.15em; }
.imported-main--post h1.ec-heading { text-align: left; max-width: none; margin: 0 0 20px; }
.imported-main--post .ec__inner > h2.ec-heading, .imported-main--post .ec-col > h2.ec-heading { text-align: left; max-width: none; margin-top: 24px; }
.imported-main--post .ec__inner > h3.ec-heading, .imported-main--post .ec-col > h3.ec-heading { text-align: left; max-width: none; margin-top: 12px; }
.imported-main--post .ec-image { margin: 8px 0 24px; }
.imported-main--post .ec-image img { width: 100%; }
.imported-main--post .ec-text img { border-radius: 8px; margin: 12px 0; }
.imported-main--post .ec-text blockquote { margin: 24px 0; padding: 16px 24px; border-left: 4px solid var(--clay); background: #fff; border-radius: 0 8px 8px 0; }
.imported-main--post .ec-text table { font-size: 16px; }
.imported-main--post .ec--extra .ec-plain-content { font-size: 17px; }
@media (max-width: 767px) { .imported-main--post .ec-text { font-size: 17px; } }

/* ---- Tables and anything else wider than a phone ---- */
.imported-main { overflow-x: clip; }
.ec-text table { display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 0 0 1.2em; }
.ec-text th { background: #f3eadf; font-weight: 700; }
.ec-text tr:nth-child(even) td { background: rgba(255,255,255,.5); }
@media (max-width: 767px) {
  .ec-text table { font-size: 15px; }
  .ec-text th, .ec-text td { padding: 8px 10px; }
  .ec-text pre, .ec-text code { white-space: pre-wrap; word-break: break-word; }
  .ec-text img, .ec-image img { max-width: 100%; height: auto; }
}

/* ---- Text colour follows the section it sits in (a dark section makes its text light) ---- */
.imported-main { color: var(--text); }
.ec-text, .ec-icon-list, .ec-faq { color: var(--c, inherit); }
.ec-text p, .ec-text li { color: inherit; }

/* A column whose heading is centred keeps its text block centred under it */
.ec-col:has(> .ec-heading[style*="--ta:center"]) > .ec-text,
.ec-col:has(> .ec-heading[style*="--ta:center"]) > .ec-icon-list,
.ec__inner:has(> .ec-heading[style*="--ta:center"]) > .ec-text { margin-left: auto; margin-right: auto; }

/* ---- Elementor "Posts" widgets (blog index, archive lists) become a card grid ---- */
.ec-text div[role="list"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 28px; margin: 24px 0; }
.ec-text article[role="listitem"] { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(71,71,71,.08); }
.ec-text article[role="listitem"] > div { display: flex; flex-direction: column; height: 100%; }
.ec-text article[role="listitem"] img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border-radius: 0; }
.ec-text article[role="listitem"] > div > div:last-child { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ec-text article[role="listitem"] h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.ec-text article[role="listitem"] h3 a { color: var(--charcoal); text-decoration: none; }
.ec-text article[role="listitem"] h3 a:hover { color: var(--clay); }
.ec-text article[role="listitem"] p { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.ec-text article[role="listitem"] > div > div:last-child > div:last-child { margin-top: auto; }
.ec-text article[role="listitem"] a[aria-label^="Read more"] { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.imported-main--post .ec-text div[role="list"], .ec-col > .ec-text:has(div[role="list"]) { max-width: none; }

/* ---- Hub pages (/stay/, /adventures/): child-page cards under the intro text ---- */
.hub-cards { padding-top: 0 !important; padding-bottom: var(--space-section) !important; }
.hub-cards__heading { margin-bottom: 24px; }
.hub-cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; width: 100%; }
.hub-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--charcoal); box-shadow: 0 2px 14px rgba(71,71,71,.08); transition: transform .25s ease, box-shadow .25s ease; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(71,71,71,.14); }
.hub-card__media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.hub-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.hub-card__title { font-family: var(--font-heading); font-size: 24px; line-height: 1.2; font-weight: 700; }
.hub-card__text { font-size: 16px; line-height: 1.55; color: var(--text); }
.hub-card__cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.ec--plain + .hub-cards { margin-top: -40px; }

/* Plugin widgets (offers, experiences, post-type grids, reviews) are layouts, not prose: no measure limit */
.ec-col > .ec-text[class*="ec-widget-rv"], .ec-col > .ec-text.ec-widget-reviews, .ec__inner > .ec-text[class*="ec-widget-rv"] { max-width: none; }
.rv-offers-card { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 14px rgba(71,71,71,.08); }
.rv-offers-title { font-size: 24px; line-height: 1.25; }
.rv-offers-description { font-size: 16px; line-height: 1.55; }
.rv-offers-grid { gap: 40px; }
.rv-offers-card { gap: 40px; padding: 32px; border-width: 1px; border-color: #e8dccd; }
@media (max-width: 767px) { .rv-offers-card { padding: 20px; gap: 20px; } }

/* Plugin buttons keep white labels (site.css colours every link in rich text clay) */
.ec-text a[class*="-button"], .ec-text a.button, .ec-text .rv-experiences-button, .ec-text .rv-offers-button, .ec-text .rv-post-type-button { color: #fff; }
.ec-text a[class*="-button"]:hover { color: #fff; text-decoration: none; filter: brightness(1.06); }
/* Events/offers without a picture on WordPress: hide the empty frame instead of a broken image */
img[src=""], img:not([src]) { display: none; }
.rv-experiences-card, .rv-experience-card { border-radius: 14px; }
.rv-experiences-grid { gap: 36px; }
.rv-experiences-card { gap: 32px; background: #fff; border: 1px solid #e8dccd; padding: 24px; align-items: center; }
.rv-experiences-image:has(img[src=""]) { display: none; }
.rv-experiences-image img { border-radius: 10px; object-fit: cover; }
.rv-experiences-text h3, .rv-experiences-title { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.rv-experiences-text p { font-size: 16px; line-height: 1.55; }
@media (max-width: 767px) { .rv-experiences-card { padding: 16px; gap: 16px; } }

/* Booking placeholder (until NewBook is wired to the static site, issue #1) */
.newbook-embed { border: 1px solid #d9cdbd; background: #fff; border-radius: 14px; padding: 36px 28px; box-shadow: 0 2px 14px rgba(71,71,71,.06); }
.newbook-embed__title { margin: 0 0 8px; font-family: var(--font-heading); font-size: 26px; line-height: 1.2; color: var(--charcoal); font-weight: 700; }
.newbook-embed__note { margin: 0 auto 20px; max-width: 56ch; font-size: 17px; line-height: 1.55; }
.newbook-embed__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.newbook-embed__actions .button--outline { border: 2px solid var(--clay); color: var(--clay); background: transparent; }
