/* 22 Stoney Meadow – shared styles for the website's inner pages (22A, 22B, 22C and later guides).
   The homepage (public/site.html) keeps its own styles. If you change this file, save it under a new
   name (pages-v3.css) and update the <link> in each page: /media files are cached for a week. */

:root {
  --ink: #22221e;
  --muted: #686258;
  --paper: #f5f2ec;
  --white: #fffefa;
  --stone: #eae5dc;
  --line: #d7d0c5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --header: 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.8 var(--sans);
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ul, ol { margin: 0; }
p + p { margin-top: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

.container { width: calc(100% - 96px); max-width: 1180px; margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, .98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 17px; flex-shrink: 0; }
.brand-number { font: 500 47px/.85 var(--serif); letter-spacing: -.055em; }
.brand-name { font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; }

.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.desktop-nav > a:hover, .desktop-nav > a[aria-current="page"] { color: var(--muted); }
.desktop-nav .nav-enquire { border-bottom: 1px solid var(--ink); min-height: 36px; margin-left: 6px; }

.menu-button {
  display: none;
  gap: 12px;
  align-items: center;
  border: 0;
  padding: 10px 0 10px 14px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 44px;
  cursor: pointer;
}
.menu-lines { width: 21px; display: grid; gap: 6px; }
.menu-lines::before, .menu-lines::after { content: ""; height: 1px; background: currentColor; }

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 24px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 15px 25px #22221e0a;
}
.mobile-nav > a { display: block; padding: 9px 0; font: 400 26px/1.3 var(--serif); }

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 25px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
}
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: transparent; color: var(--ink); }
.button:not(.button-dark):hover { background: var(--ink); color: var(--paper); }

.link {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.link:hover { text-decoration-color: currentColor; }

/* Page top */

.crumbs { padding-top: 22px; font-size: 12px; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

.page-top { padding-block: 26px 40px; }
.page-top h1 {
  margin: 12px 0 16px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.page-top .lead { font-size: 19px; line-height: 1.7; max-width: 640px; }

.facts {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts li { font-size: 13px; line-height: 1.4; padding: 7px 12px; border: 1px solid var(--line); background: var(--white); }

.page-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Content */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 20px; }
h3 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }

.prose p { color: var(--ink); }
.prose p + p { margin-top: 16px; }

.rooms { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rooms li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.rooms strong { font-weight: 600; font-size: 14px; }
.rooms span { font-size: 15px; color: var(--muted); }

.features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.features li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.features li::before { content: "\2713"; position: absolute; left: 0; color: var(--muted); }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photos figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photos figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }

.box { background: var(--white); border: 1px solid var(--line); padding: 36px 40px; }

.cta-box { background: var(--ink); color: var(--paper); padding: 40px; }
.cta-box h2 { margin-top: 0; }
.cta-box p { color: #d1cabf; max-width: 560px; }
.cta-box .button { margin-top: 22px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-box .button:hover { background: transparent; color: var(--paper); }
.cta-box .link { color: var(--paper); }

/* FAQs */

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.faq details[open] > summary::after { content: "\2212"; }
.faq .answer { padding: 0 25px 20px 0; font-size: 14px; color: var(--muted); line-height: 1.85; }

/* Other homes */

.homes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-card { border: 1px solid var(--line); background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.home-card strong { font: 500 30px/1.1 var(--serif); }
.home-card span { font-size: 14px; color: var(--muted); }
.home-card em { margin-top: 8px; font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.home-card:hover { border-color: var(--ink); }

/* Footer */

.site-footer { padding-block: 56px 26px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.footer-grid .eyebrow { margin-bottom: 14px; }
.footer-links { display: grid; justify-items: start; gap: 4px; font-size: 13px; }
.footer-links a { min-height: 30px; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-tagline { max-width: 290px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}

/* Phone booking bar */

.book-bar { display: none; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .desktop-nav { gap: 18px; }
  .two-col { gap: 40px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .js .menu-button { display: flex; }
}

@media (max-width: 760px) {
  :root { --header: 76px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 52px; }
  .brand-number { font-size: 43px; }
  .brand { gap: 13px; }
  .brand-name { font-size: 9px; }
  .page-top .lead { font-size: 17px; }
  .page-actions .button { width: 100%; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .two-col, .homes { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rooms li { grid-template-columns: 1fr; gap: 2px; }
  .box, .cta-box { padding: 28px 22px; }
  .cta-box .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 242, 236, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  }
  .book-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .book-bar-main { flex: 1; background: var(--ink); color: var(--paper); }
  .book-bar-wa { padding: 0 16px; border: 1px solid var(--ink); }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 360px) {
  .photos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Guide pages (Stage 3) */
.guide h2 { margin-top: 48px; }
.guide h2:first-child { margin-top: 0; }
.plain { padding-left: 20px; margin: 14px 0 16px; }
.plain li { margin: 6px 0; }
.plain + p { margin-top: 16px; }
