/* Cobblers Cottage — booking site.
   Matches cobblerscottage.com.au: white ground, olive-green accent (#859C1C),
   Open Sans UI type, with Zilla Slab for headings to echo the logo's slab.
   Deliberately light-only, to match the brand site. */

:root {
  --ground: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f7f2;   /* warm off-white, nods to the cottage sandstone */
  --ink: #222222;
  --ink-soft: #67665e;
  --ink-faint: #9b998e;
  --line: #e7e5dd;
  --accent: #859c1c;      /* Cobblers Cottage olive */
  --accent-deep: #6d811a;
  --accent-wash: #eef1dc;
  --slate: #5c7d8e;       /* the cottage's painted timber — used sparingly */
  --poppy: #c24230;       /* from the boots illustration — errors / unavailable */
  --poppy-wash: #f6e7e2;
  --radius-btn: 5px;
  --radius-card: 12px;
  --shadow: 0 1px 2px rgba(40, 38, 28, 0.05), 0 10px 26px -14px rgba(40, 38, 28, 0.14);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 .6rem;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; font-weight: 600; }

a { color: var(--accent-deep); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- Header (brand banner) ---------- */
.site-banner {
  display: block;
  border-bottom: 3px solid var(--accent);
  background: #fff;
  line-height: 0;
}
.site-banner img {
  display: block;
  width: 100%;
  max-width: 1037px;
  height: auto;
  margin-inline: auto;
}

/* ---------- Intro ---------- */
.page-intro { margin: 1.6rem 0; }
.page-intro h1 { margin-bottom: .5rem; }
.intro { margin: 1.6rem 0 1.75rem; }
.intro p { margin: 0 0 .8rem; max-width: 60ch; }
.rate {
  font-weight: 700;
  color: var(--ink);
}
.rate .sep { color: var(--accent); margin: 0 .5rem; font-weight: 400; }
.fineprint { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Panels ---------- */
.booking { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.panel > h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- Form ---------- */
form label {
  display: block;
  margin: 0 0 .9rem;
  font-size: .82rem;
  color: var(--ink-soft);
}
form input, form select, form textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .62rem .75rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
  color: var(--ink);
  font-size: .88rem;
}
.check input { width: auto; margin-top: .2rem; }
.field-error { color: var(--poppy); font-size: .8rem; display: block; min-height: 1em; }
.error { color: var(--poppy); font-weight: 600; min-height: 1.2em; margin: .5rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  width: 100%;
  padding: .95rem 1rem;
  font: inherit;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color .12s ease;
}
.btn:hover:not(:disabled) { background: var(--accent-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Summary ---------- */
.summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 1rem;
  margin: 1rem 0;
}
.sum-line, .sum-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.sum-line { color: var(--ink-soft); padding: .15rem 0; }
.sum-line em { color: var(--accent-deep); font-style: normal; }
.sum-total {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Calendar ---------- */
.calendar { user-select: none; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.cal-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cal-nav {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover:not([data-disabled]) { background: var(--accent-wash); }
.cal-nav[data-disabled] { opacity: .3; cursor: default; }

.cal-grid-wrap { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.cal-month:nth-child(2) { display: none; }
.cal-dow-row, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: .3rem 0 .5rem;
}
.cal-cell { aspect-ratio: 1 / 1; }
.cal-empty { visibility: hidden; }
.cal-day {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  border-radius: var(--radius-btn);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  transition: background-color .1s ease;
}
.cal-day .cal-price {
  font-size: .58rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.cal-day.is-sat .cal-price { color: var(--accent-deep); }
.cal-day:hover:not(.is-disabled):not(.is-unavailable) { background: var(--accent-wash); }
.cal-day.is-disabled { color: #c9c7bd; cursor: default; }
.cal-day.is-unavailable {
  color: var(--ink-faint);
  cursor: default;
  background: repeating-linear-gradient(-45deg, transparent, transparent 4px, #efe9e2 4px, #efe9e2 6px);
}
.cal-day.is-unavailable .cal-day-num { text-decoration: line-through; text-decoration-color: var(--poppy); }
.cal-day.is-unavailable .cal-price { visibility: hidden; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--slate); }
.cal-day.is-preview { background: var(--accent-wash); }
.cal-day.is-inrange { background: var(--accent-wash); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.cal-day.is-start .cal-price, .cal-day.is-end .cal-price { color: rgba(255, 255, 255, 0.82); }
.cal-day.is-start { border-radius: var(--radius-btn) 0 0 var(--radius-btn); }
.cal-day.is-end { border-radius: 0 var(--radius-btn) var(--radius-btn) 0; }
.cal-day.is-start.is-end { border-radius: var(--radius-btn); }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 1; }

.cal-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.3rem;
  padding: .9rem 0 0;
  margin: 0;
  font-size: .8rem;
  color: var(--ink-soft);
}
.cal-legend li { display: flex; align-items: center; gap: .4rem; }
.cal-legend .key {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  flex: none;
}
.key-avail { background: #fff; }
.key-unavail { background: repeating-linear-gradient(-45deg, transparent, transparent 3px, #efe9e2 3px, #efe9e2 5px); }
.key-sel { background: var(--accent); border-color: var(--accent); }
.key-sat { background: var(--accent-wash); border-color: var(--accent); }

/* ---------- Terms + footer ---------- */
.terms { color: var(--ink-soft); margin-bottom: 2rem; }
.terms h2 { color: var(--ink); }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  padding: 1.3rem 1.1rem;
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Confirmation page ---------- */
.confirm-panel { margin: 1.75rem 0; }
.confirm-panel .btn { max-width: 240px; margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .cal-grid-wrap { grid-template-columns: 1fr 1fr; }
  .cal-month:nth-child(2) { display: block; }
}
@media (max-width: 460px) {
  .grid-2 { grid-template-columns: 1fr; }
  .brand-wordmark { width: 180px; }
  .brand-boots { width: 52px; }
}
