/* ==========================================================================
   Bear Creek Boarding Co.
   One stylesheet for the whole site. Edit the colours and fonts in :root
   and every page updates.
   ========================================================================== */

:root {
  --cream:       #f7f1e6;  /* page background, warm */
  --cream-deep:  #efe6d6;  /* alternate band, slightly deeper */
  --forest:      #1b3a2f;  /* dark panels and headings */
  --fern:        #2f5a48;  /* mid green, links */
  --moss:        #7a9384;  /* quiet green, rules and captions */
  --coral:       #c9503a;  /* buttons and interactive accents */
  --coral-light: #e07c63;  /* decorative accents on dark panels */
  --ink:         #26201b;  /* body text, warm near-black */

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --container: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Karla, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--fern); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  color: var(--forest);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 72;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.22;
  font-weight: 600;
  font-variation-settings: "SOFT" 25, "WONK" 0, "opsz" 24;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Headings carry no margin of their own, so give the first paragraph after
   one some air. */
h2 + p, h2 + .lede { margin-top: 1.15rem; }
h3 + p { margin-top: 0.55rem; }
h1 + p { margin-top: 1.5rem; }

.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--fern);
}

.quiet { color: var(--moss); }

/* --- Layout -------------------------------------------------------------- */

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.25rem, 7.5vw, 6rem); }

.band-dark { background: var(--forest); color: #e4ded1; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--cream); }
.band-dark .lede { color: #bccdc2; }
.band-dark a { color: var(--coral-light); }
/* Buttons keep their own colours on dark panels — without this the coral
   link colour above lands on the coral button and the text disappears. */
.band-dark .btn,
.band-dark .btn:hover { color: var(--cream); }
.band-dark .btn-plain {
  color: var(--cream);
  text-decoration-color: var(--coral-light);
}
.band-dark .btn-plain:hover { color: var(--coral-light); }
.band-dark .checks li::before { background: var(--coral-light); }

.band-light { background: var(--cream-deep); }

.two-col {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: center; }
  .two-col--narrow { grid-template-columns: 1.05fr 0.95fr; }
}

/* --- Header and nav ------------------------------------------------------ */

.masthead { background: var(--cream); padding-block: 1.35rem 0.85rem; }

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 36;
  letter-spacing: -0.015em;
  color: var(--forest);
  text-decoration: none;
}
.wordmark span { color: var(--coral); }

.masthead-phone {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.masthead-phone:hover { color: var(--coral); }

nav.site { background: var(--cream); }
nav.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.85rem;
  border-bottom: 1px solid var(--moss);
}
nav.site a {
  display: inline-block;
  padding: 0.55rem 0 0.75rem;
  margin-bottom: -1px;
  color: var(--fern);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
nav.site a:hover { color: var(--coral); }
nav.site a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: var(--coral);
}

/* On narrow screens the five items don't fit on one line, and wrapping
   looks broken. Scroll them sideways instead. */
@media (max-width: 34rem) {
  nav.site ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 1.35rem;
    scrollbar-width: none;
  }
  nav.site ul::-webkit-scrollbar { display: none; }
  nav.site li { flex: 0 0 auto; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.75rem, 6vw, 5rem); }
.hero h1 { max-width: 19ch; }
.hero .lede { margin-top: 1.6rem; max-width: 44ch; }
.hero figure { margin: 0; }

/* The arch. One shape, used only on feature photos. */
.hero figure img {
  border-radius: 999px 999px 20px 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 60rem) {
  .hero figure img { aspect-ratio: 5 / 6; }
}

/* --- Marquee ------------------------------------------------------------- */

.marquee {
  background: var(--forest);
  overflow: hidden;
  padding-block: 1rem;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee-slide 42s linear infinite;
  align-items: center;
}
.marquee-item {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 32;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 500;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
}
.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-light);
  flex: 0 0 auto;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- Buttons ------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  align-items: center;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--cream);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.95rem 1.9rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #b0402c; color: var(--cream); }

.btn-plain {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--moss);
  text-underline-offset: 0.25em;
  font-size: 1.02rem;
}
.btn-plain:hover { text-decoration-color: var(--coral); }

/* --- Why-us row (rule separated, not cards) ------------------------------ */

.facts { display: grid; gap: 0; }
.facts > div {
  padding-block: 1.75rem;
  border-top: 2px solid var(--coral);
}
.facts h3 { margin-bottom: 0.45rem; }
.facts p { max-width: 40ch; margin: 0; }
@media (min-width: 52rem) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 clamp(1.75rem, 3.5vw, 3.5rem);
  }
}

/* --- Schedule and standards lists ---------------------------------------- */

.schedule { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.schedule li {
  display: grid;
  gap: 0.3rem 2.5rem;
  padding-block: 1.45rem;
  border-top: 1px solid var(--moss);
}
.schedule li:last-child { border-bottom: 1px solid var(--moss); }
.schedule .when {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 28;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
}
.schedule p { margin: 0; max-width: 56ch; }
.band-dark .schedule li { border-color: rgba(247, 241, 230, 0.25); }
.band-dark .schedule .when { color: var(--coral-light); }
@media (min-width: 46rem) {
  .schedule li { grid-template-columns: 12.5rem 1fr; align-items: baseline; }
}

/* --- Price list (menu-board style) --------------------------------------- */

.prices { margin: 0 0 2.5rem; padding: 0; list-style: none; max-width: 34rem; }
.prices li { display: flex; align-items: baseline; gap: 0.6rem; padding-block: 0.7rem; }
.prices .what { flex: 0 1 auto; }
.prices .leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--moss);
  min-width: 1.5rem;
  transform: translateY(-0.28em);
}
.prices .amount {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--forest);
}

.price-group { margin-bottom: 2.75rem; }
.price-group h3 { margin-bottom: 0.5rem; }
.price-note { font-size: 0.97rem; color: var(--fern); max-width: var(--measure); }

/* --- Check lists --------------------------------------------------------- */

.checks { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 40ch; }
.checks li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 0.7rem;
  height: 2px;
  background: var(--coral);
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { max-width: 45rem; margin-top: 2.5rem; border-top: 1px solid var(--moss); }
.faq details { border-bottom: 1px solid var(--moss); }
.faq summary {
  cursor: pointer;
  padding: 1.2rem 2.75rem 1.2rem 0;
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 35, "WONK" 1, "opsz" 28;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--forest);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.55rem;
  width: 1.05rem;
  height: 2px;
  background: var(--coral);
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 1.05rem;
  width: 2px;
  height: 1.05rem;
  background: var(--coral);
}
.faq details[open] summary::before { display: none; }
.faq details > p { padding-bottom: 1.4rem; }

/* --- Photos -------------------------------------------------------------- */

.photos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.75rem;
}
@media (min-width: 52rem) {
  .photos { grid-template-columns: repeat(3, 1fr); }
}
.photos img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border-radius: 999px 999px 18px 18px;
}

figure { margin: 0; }
figure img { border-radius: 18px; }
figcaption {
  font-size: 0.92rem;
  color: var(--moss);
  margin-top: 0.7rem;
  max-width: 40ch;
}
.band-light figure img,
.band .two-col figure img {
  border-radius: 999px 999px 18px 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* --- Forms --------------------------------------------------------------- */

form.enquiry { max-width: 34rem; margin-top: 2rem; }
form.enquiry p { max-width: none; }

label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf8;
  border: 1.5px solid var(--moss);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.25rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--coral); }

.field-hint { font-size: 0.92rem; color: var(--fern); margin: -1rem 0 1.25rem; }

/* Honeypot for the contact form. Real people never see it; bots fill it in
   and Netlify discards the submission. */
.hidden-field { position: absolute; left: -9999px; }

/* --- Footer -------------------------------------------------------------- */

footer.site {
  background: var(--forest);
  color: #bccdc2;
  padding-block: 3.25rem;
  font-size: 0.97rem;
}
footer.site a { color: var(--cream); }
footer.site a:hover { color: var(--coral-light); }
footer.site .foot-grid { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); }
@media (min-width: 46rem) {
  footer.site .foot-grid { grid-template-columns: repeat(3, 1fr); }
}
footer.site h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 0.6rem; }
footer.site p { max-width: 32ch; }
footer.site .legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 241, 230, 0.2);
  color: var(--moss);
}

/* --- Skip link ----------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  background: var(--coral);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 10;
}
.skip:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, .marquee-track { animation: none !important; transition: none !important; }
}
