/* ===========================================================
   Faraway Barn — styles (v2, editorial rebuild)
   Plain CSS, no build step. Brand colours in :root.
   =========================================================== */

:root {
  --bg:        #f7f4ee;   /* warm paper */
  --bg-alt:    #eee9df;   /* deeper cream for alternating bands */
  --ink:       #211f19;   /* near-black, timber */
  --ink-soft:  #534e45;   /* body text */
  --muted:     #8a8275;   /* captions, small labels */
  --line:      #e1dacd;   /* hairlines */
  --accent:    #586a4d;   /* sage / field green */
  --accent-dk: #3e4c38;
  --gold:      #9a7b3b;   /* used sparingly, e.g. drive times */
  --white:     #ffffff;
  --maxw:      1160px;
  --prose:     720px;
  --radius:    6px;
  --shadow:    0 16px 40px rgba(33,31,25,.12);
  --serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: .5px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }
a { color: var(--accent-dk); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: var(--prose); }
.center { text-align: center; }

/* small uppercase label */
.label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.1em;
}

/* lead paragraph */
.lead { font-size: 1.28rem; line-height: 1.7; color: var(--ink); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 16px 34px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-line { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* understated text link with arrow */
.tlink {
  display: inline-block; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; color: var(--accent-dk);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.tlink:hover { border-color: var(--accent-dk); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; max-width: var(--maxw); margin: 0 auto; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .9rem; letter-spacing: .03em; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 10px 22px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 92vh; min-height: 560px; display: flex; align-items: flex-end; color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,18,14,.30) 0%, rgba(20,18,14,0) 35%, rgba(20,18,14,.65) 100%);
}
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; padding: 0 26px 70px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero .label { color: #f0e4c6; }
.hero h1 { color: #fff; margin-bottom: .15em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: #f3eee4; margin: 0 0 .7em; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero p.sub { font-size: 1.12rem; max-width: 44ch; color: #efe9dd; text-shadow: 0 1px 14px rgba(0,0,0,.45); margin-bottom: 26px; }
.hero.short { height: 64vh; min-height: 440px; }

/* ---------- Stat strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats ul {
  list-style: none; margin: 0 auto; max-width: var(--maxw);
  padding: 22px 26px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 0; font-family: var(--sans);
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 600; color: var(--ink);
}
.stats li { padding: 0 26px; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background: var(--line); }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin: 0 auto 52px; }

/* ---------- Editorial feature row ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }
.feature-body h2 { margin-bottom: .35em; }

/* ---------- Statement band (image + big serif line) ---------- */
.statement { position: relative; color: #fff; text-align: center; padding: 0; }
.statement-inner { position: relative; z-index: 2; padding: 140px 26px; max-width: 900px; margin: 0 auto; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(22,20,15,.5); }
.statement picture, .statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; color: #fff; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.statement .by { font-family: var(--sans); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #e7dcc2; margin-top: 26px; }

/* ---------- Near / far place lists ---------- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.places h3 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.places ul { list-style: none; margin: 0; padding: 0; }
.places li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.places .place { font-size: 1.08rem; color: var(--ink); }
.places .time { font-size: .82rem; letter-spacing: .08em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Gallery (editorial collage) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery a { overflow: hidden; border-radius: var(--radius); display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- Horizontal image scroller ---------- */
.scroller-wrap { position: relative; }
.scroller {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 26px 20px;
  scroll-padding-left: 26px;
}
.scroller figure { flex: 0 0 auto; margin: 0; width: clamp(260px, 64vw, 720px); scroll-snap-align: start; }
.scroller img { width: 100%; height: clamp(300px, 56vh, 520px); object-fit: cover; border-radius: var(--radius); }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.scroll-btn {
  position: absolute; top: calc(50% - 10px); transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .15s ease;
}
.scroll-btn:hover { background: #fff; }
.scroll-btn.prev { left: 16px; }
.scroll-btn.next { right: 16px; }
.image-section { padding: 90px 0; }
.image-section .section-head { margin-bottom: 36px; }
@media (max-width: 700px) { .scroll-btn { display: none; } }

/* ---------- Approximate-area map ---------- */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 50px; }
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-circle {
  position: absolute; top: 50%; left: 50%; width: 180px; height: 180px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(88,106,77,.18); border: 2px solid rgba(88,106,77,.55);
  pointer-events: none;
}
.map-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--prose); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--gold); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 22px; max-width: 62ch; }

/* ---------- Floor plan ---------- */
.floorplan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.floorplan img { margin: 0 auto; max-width: 780px; }

/* ---------- Amenities ---------- */
.amenities { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 1.2em 0 0; }
.amenities li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; }
.amenities li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Booking ---------- */
.book { background: var(--ink); color: #efe9dd; text-align: center; }
.book h2 { color: #fff; }
.book p { max-width: 50ch; margin-left: auto; margin-right: auto; color: #d9d3c6; }
.book .note { font-size: .85rem; color: #a59d8e; margin-top: 22px; }
.book .btn-primary { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8b1a3; padding: 64px 0 30px; font-size: .92rem; border-top: 1px solid #34312a; }
.site-footer a { color: #efe9dd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.brand-foot { font-family: var(--serif); font-size: 1.6rem; color: #fff; letter-spacing: 1px; margin-bottom: .3em; }
.footer-bottom { border-top: 1px solid #34312a; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: #8f897b; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 72px 0; }
  .feature, .places { grid-template-columns: 1fr; gap: 30px; }
  .feature + .feature { margin-top: 64px; }
  .feature.reverse .feature-media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-wide { grid-column: span 2; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 6px 26px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .amenities { columns: 1; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-wide, .g-tall { grid-column: span 1; grid-row: span 1; }
  .stats li { padding: 0 14px; }
}
