/* Pembroke Cottage — direction A, "Front Porch" (decided 2026-10-15).
   Layout: photo-led hero with a white sign panel, then alternating white and soft-green bands. */
@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/mulish-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #ffffff;      /* clapboard white */
  --ink: #26323c;        /* slate from the roof */
  --slate: #4f6272;
  --leaf: #3d6a3e;       /* actions */
  --leaf-dark: #2f5530;
  --on-leaf: #ffffff;
  --sand: #b8683f;       /* sandstone accents, used sparingly */
  --soft: #eef2ec;       /* soft green band */
  --line: #dde3dc;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 0.15em; }
a:hover { color: var(--leaf-dark); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.band { background: var(--soft); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { font: 400 1.35rem/1 var(--display); color: var(--ink); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--leaf); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn-primary, .site-nav .btn-primary { background: var(--leaf); color: var(--on-leaf); }
.btn-primary:hover, .site-nav .btn-primary:hover { background: var(--leaf-dark); color: var(--on-leaf); }
.btn-ghost { border: 2px solid var(--slate); color: var(--ink); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }
.site-nav .btn { padding: 9px 16px; }

/* Hero */
.hero { position: relative; }
.hero-img { width: 100%; height: clamp(22rem, 58vw, 38rem); object-fit: cover; object-position: 50% 60%; }
.sign { position: relative; margin: -7rem auto 0; max-width: 46rem; background: var(--paper); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); box-shadow: 0 18px 50px -20px rgba(38, 50, 60, 0.4); }
.eyebrow { font: 700 0.75rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); margin: 0; }
.sign h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0.5rem 0 0.9rem; }

/* Facts */
.facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 28px; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font: 400 1.15rem/1.3 var(--display); }

/* Layout helpers */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(20px, 4vw, 48px); align-items: center; }
.split img { border-radius: var(--radius); }
.split.top { align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 20px; }
.band .card { background: var(--paper); }
.section:not(.band) .card { background: var(--soft); }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 10px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photos figcaption { font-size: 0.9rem; color: var(--slate); margin-top: 6px; }

/* Testimonials */
.quotes { display: grid; gap: 16px; }
.quote { margin: 0; background: var(--soft); padding: 22px; border-radius: var(--radius); }
.band .quote { background: var(--paper); }
.quote p { font: 400 1.1rem/1.5 var(--display); margin: 0 0 10px; }
.quote footer { font-weight: 700; color: var(--slate); }

/* Inquiry form and availability */
.inquiry { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 14px; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #b9c3bb; border-radius: 6px; padding: 10px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sand); outline-offset: 1px; border-color: var(--slate); }
.choice { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 400; }
.field .choice input { width: auto; margin: 0; accent-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry button[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-note { font-size: 0.9rem; color: var(--slate); }
.availability { background: var(--paper); border-radius: var(--radius); padding: 20px; min-height: 12rem; }
.cal-nav { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-step { font: 600 0.85rem var(--body); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); cursor: pointer; }
.cal-step:disabled { opacity: 0.4; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 18px; }
.cal-title { font-size: 1.05rem; margin: 0 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-variant-numeric: tabular-nums; }
.cal-dow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); text-align: center; padding-bottom: 2px; }
.cal-day { font: 600 0.9rem var(--body); height: 2.5rem; border: 0; border-radius: 6px; background: var(--soft); color: var(--ink); cursor: pointer; padding: 0; }
.cal-day:hover:not(:disabled) { outline: 2px solid var(--leaf); }
.cal-day.is-booked, .cal-day.is-blocked { color: #8a948e; background: repeating-linear-gradient(135deg, #f1f3f0 0 5px, #e3e8e2 5px 6px); text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-out { background: transparent; color: #b4bcb6; cursor: default; }
.cal-day.is-checkout { background: #e2ecdf; }
.cal-day.is-selected, .cal-day.is-checkout-day { background: var(--leaf); color: var(--on-leaf); text-decoration: none; }
.cal-legend { font-size: 0.85rem; color: var(--slate); margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.key-open { background: var(--soft); border: 1px solid var(--line); }
.key-booked { background: repeating-linear-gradient(135deg, #f1f3f0 0 3px, #d6ddd5 3px 4px); }
.key-sel { background: var(--leaf); }
.cal-summary { font-weight: 700; margin: 8px 0 0; }
.cal-error, .cal-loading { color: var(--slate); }

/* Footer */
.site-footer { background: var(--ink); color: #e9eef1; padding-block: 40px; }
.site-footer a { color: #ffffff; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 20px 32px; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer .brand { color: #ffffff; display: inline-block; margin-bottom: 0.6rem; }

/* Phone quick-action bar */
.mobilebar { display: none; }
@media (max-width: 640px) {
  .site-nav .btn-primary { display: none; }
  .mobilebar { display: flex; position: sticky; bottom: 0; z-index: 30; gap: 8px; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .mobilebar a { flex: 1; text-align: center; padding: 12px; border-radius: 8px; font-weight: 700; text-decoration: none; background: var(--leaf); color: var(--on-leaf); }
  .mobilebar a + a { background: transparent; color: var(--ink); border: 2px solid var(--slate); }
}

/* Draft markers for facts the owners must confirm (bin/ci blocks a launch build while any remain) */
mark.owner { background: #ffe58a; color: #2a2412; padding: 0 0.25em; border-radius: 3px; font-size: 0.85em; font-family: var(--body); }
