/* =========================================================
   Villa l'Aimant — shared styles
   Provençal / warm-stone palette. No external dependencies.
   ========================================================= */

:root {
  --stone:        #f4efe6;   /* page background, warm off-white */
  --stone-deep:   #e9e1d3;   /* section panels */
  --ink:          #2c2a26;   /* body text */
  --ink-soft:     #5c574e;   /* muted text */
  --olive:        #6b7256;   /* primary accent, olive */
  --olive-deep:   #4f5540;
  --terracotta:   #b5623c;   /* secondary accent */
  --line:         #d8cdb8;   /* hairlines */
  --gold:         #a98b4b;
  --white:        #fffdf9;
  --radius:       4px;
  --serif:        "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:         system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap:         1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }

a { color: var(--olive-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1.1em; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip / accessibility ---------- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }

/* ---------- Agent / LLM summary block ---------- */
/* Visible, tasteful plain-text fact sheet placed at the very top of the DOM
   so AI agents, crawlers, and screen readers get clean, structured content first. */
.agent-summary {
  background: var(--olive-deep);
  color: #f0ecdf;
  font-size: 14px;
  line-height: 1.6;
}
.agent-summary .wrap { padding-top: 14px; padding-bottom: 14px; }
.agent-summary details > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  color: #cfd3bd;
  display: flex; align-items: center; gap: 8px;
}
.agent-summary details > summary::-webkit-details-marker { display: none; }
.agent-summary details > summary::before { content: "▸"; transition: transform .2s; }
.agent-summary details[open] > summary::before { transform: rotate(90deg); }
.agent-summary .summary-body { margin-top: 10px; max-width: 900px; }
.agent-summary .summary-body p { margin: 0 0 .5em; }
.agent-summary strong { color: #fff; }
/* The global link colour is the same olive as this block's background. */
.agent-summary a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; }
.nav a:hover, .nav a.active { color: var(--olive-deep); text-decoration: none; }
.nav .btn { padding: 8px 16px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .03em; padding: 13px 24px; border-radius: 999px;
  background: var(--olive); color: #fff; border: 1px solid var(--olive);
  transition: background .15s, transform .05s; cursor: pointer;
}
.btn:hover { background: var(--olive-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--olive-deep); }
.btn.secondary:hover { background: rgba(107,114,86,.1); }
.btn.terracotta { background: var(--terracotta); border-color: var(--terracotta); }
.btn.terracotta:hover { background: #9c4f2e; }
.btn.big { font-size: 16px; padding: 16px 34px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-img { height: min(72vh, 640px); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,28,24,.15), rgba(30,28,24,.55)); }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
}
.hero-copy .wrap { padding-bottom: 46px; }
.hero-copy h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 15ch; }
.hero-copy .lede { font-size: 1.15rem; max-width: 46ch; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 22px; font-size: 14px; opacity: .95; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.band { padding: 76px 0; }
section.band.alt { background: var(--stone-deep); }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Fact strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--white); padding: 26px 18px; text-align: center; }
.facts .n { font-family: var(--serif); font-size: 2rem; color: var(--olive-deep); }
.facts .l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { height: 240px; width: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .span2 { grid-column: span 2; }
.gallery .span2 img { height: 100%; }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }

/* ---------- Cards / rooms ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { height: 200px; width: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card .body h3 { margin-bottom: 4px; }
.card .body p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Amenities ---------- */
.amenities { columns: 3; column-gap: 40px; }
.amenities li { break-inside: avoid; list-style: none; padding: 7px 0 7px 26px; position: relative; font-size: 15.5px; }
.amenities li::before { content: "•"; color: var(--terracotta); position: absolute; left: 6px; font-weight: 700; }
.amenities { padding: 0; margin: 0; }

/* ---------- Recommendations ---------- */
.rec-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.rec-nav a { font-size: 13px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); }
.rec-nav a:hover { border-color: var(--olive); color: var(--olive-deep); text-decoration: none; }
.rec-group { margin-bottom: 56px; }
.rec-group > p.note { color: var(--ink-soft); max-width: 68ch; }
.rec-sub { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin: 26px 0 12px; }
.rec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 34px; padding: 0; margin: 0 0 8px; }
.rec-list li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rec-list .name { font-weight: 600; }
.rec-list .price { color: var(--gold); font-weight: 700; white-space: nowrap; font-size: 14px; letter-spacing: .05em; }
.tip { background: var(--white); border-left: 3px solid var(--olive); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0; }
.tip .we-love { font-family: var(--serif); font-style: italic; color: var(--olive-deep); }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.book-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }
.book-card h3 { font-size: 1.5rem; }
.book-card .stars { color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.book-card p { color: var(--ink-soft); }

/* ---------- Quote ---------- */
.quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--olive-deep); max-width: 32ch; }
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.quote-grid blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); border-top: 2px solid var(--terracotta); padding-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc9bd; padding: 54px 0 34px; font-size: 14px; }
.site-footer a { color: #e7e0d2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-bottom { border-top: 1px solid #3d3a34; padding-top: 20px; color: #8f887b; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }

/* Anchor jumps land below the 68px sticky header instead of under it. */
section[id], .rec-group[id] { scroll-margin-top: 84px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--stone); flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
  .facts { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .split, .book-grid, .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .amenities { columns: 2; }
  .rec-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .amenities { columns: 1; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2,1fr); }
}
