/* North Patchway Hall — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&display=swap');

:root {
  --green: #1f4d3a;
  --green-deep: #143326;
  --green-soft: #dce8df;
  --marigold: #f2b632;
  --marigold-soft: #fcefc9;
  --paper: #f7f9f6;
  --white: #ffffff;
  --ink: #17211c;
  --muted: #52615a;
  --line: #c9d5cd;
  --booked: #e4e7e5;
  --danger: #a3312a;
  --danger-soft: #f8e1df;
  --ok: #24704f;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);

  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marigold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 var(--step-0)/1 var(--body); padding: .9rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--green); background: var(--green); color: var(--white);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--green-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn--sun:hover { background: #e3a51d; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.btn--small { padding: .5rem .9rem; font-size: var(--step--1); }
.btn--danger { background: var(--white); border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header { background: var(--green); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--white); object-fit: contain; padding: 3px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; opacity: .85; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a { color: var(--white); text-decoration: none; padding: .55rem .8rem; border-radius: 999px; font-weight: 700; font-size: .98rem; }
.nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.16); }
.nav .btn { margin-left: .4rem; padding: .65rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); border-radius: 10px; padding: .45rem .7rem; font: 700 .95rem var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--green-deep); padding: .75rem 1.25rem 1.25rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* ---------- hero ---------- */
.hero { background: var(--green); color: var(--white); padding: 3rem 0 4.5rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p.lead { font-size: var(--step-1); line-height: 1.45; color: #e6efe9; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.hero-actions .phone { color: var(--white); font-weight: 700; text-decoration: none; padding: .9rem .4rem; }
.hero-actions .phone:hover { text-decoration: underline; color: var(--white); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 2.2rem; } .hero h1 { max-width: 18ch; } }

/* ---------- session board (hero signature) ---------- */
.board { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; box-shadow: 0 0 0 6px rgba(242,182,50,.9); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.board-head h2 { font-size: var(--step-1); margin: 0; }
.board-head a { font-size: var(--step--1); font-weight: 700; }
.board table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.board th { font-size: var(--step--1); font-weight: 700; color: var(--muted); text-align: left; padding: 0 .25rem .2rem; }
.board th small { display: block; font-weight: 400; font-size: .78rem; }
.board tbody th { color: var(--ink); width: 26%; white-space: nowrap; }
.board tbody th span { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.slot {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700; text-decoration: none;
}
a.slot { background: var(--green-soft); color: var(--green-deep); border: 2px solid transparent; }
a.slot:hover { border-color: var(--green); background: #cfe0d4; }
.slot--booked { background: repeating-linear-gradient(135deg, var(--booked) 0 6px, #eef0ef 6px 12px); color: #6b7570; font-weight: 400; }
.slot--closed { background: transparent; color: #9aa5a0; border: 1px dashed var(--line); font-weight: 400; }
.board-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.board-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: .35rem; }
@media (max-width: 480px) { .board { padding: 1rem .7rem .8rem; } .slot { height: 40px; font-size: .78rem; } .board th small { display: none; } }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
.section-intro { max-width: 60ch; margin-bottom: 2.2rem; }
.section-intro p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.tint { background: var(--white); border-block: 1px solid var(--line); }

.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; margin-top: -2.5rem; position: relative; }
.photos figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-soft); aspect-ratio: 4/3; }
.photos figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photos { grid-template-columns: 1fr 1fr; } .photos figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.facts dd { margin: .2rem 0 0; color: var(--muted); }
.uses { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1.8rem 0 0; }
.uses li { background: var(--marigold-soft); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: var(--step--1); }

.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.rate { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--paper); }
.rate--main { border-color: var(--green); background: var(--white); }
.rate h3 { margin-bottom: .2rem; }
.rate .price { font-family: var(--display); font-size: var(--step-4); font-weight: 800; line-height: 1; margin: .6rem 0 .2rem; color: var(--green); }
.rate .price small { font-family: var(--body); font-size: var(--step-0); font-weight: 400; color: var(--muted); }
.rate ul { padding-left: 1.1rem; margin: 1rem 0 0; }
.rate li { margin-bottom: .35rem; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.times div { background: var(--green); color: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.times strong { display: block; font-family: var(--display); font-size: var(--step-1); }
@media (max-width: 760px) { .rates, .times { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 3.2rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; font: 800 1.2rem var(--display); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.terms details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.terms summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after { content: '+'; font: 700 1.3rem/1 var(--display); color: var(--green); }
.terms details[open] summary::after { content: '–'; }
.terms details > div { padding: 0 1.2rem 1rem; color: var(--muted); }
.terms ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

.findus { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { font-size: var(--step-1); font-weight: 700; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.callout { background: var(--green); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; }
.callout h3 { color: var(--white); font-size: var(--step-2); }
.callout p { color: #e6efe9; }
@media (max-width: 760px) { .findus { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: #cfdcd4; padding: 2.5rem 0; font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-size: var(--step--1); color: var(--muted); margin-top: -.2rem; margin-bottom: .4rem; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; min-height: 48px;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid var(--marigold-soft); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: var(--step--1); font-weight: 700; margin-top: .3rem; display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--green); flex: none; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label { display: block; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; cursor: pointer; background: var(--white); margin: 0; }
.choice label small { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.choice input:checked + label { border-color: var(--green); background: var(--green-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--marigold); outline-offset: 2px; }
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; font-weight: 700; }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--ok { background: var(--green-soft); color: var(--green-deep); }
.hp { position: absolute; left: -5000px; }
.nav a.btn--sun[aria-current="page"] { background: var(--marigold); color: var(--ink); }
[hidden] { display: none !important; }
