/* Shared styles for every page except the home page (index.html keeps its own, built from mockups/07-restructure.html).
   Palette, fonts, top bar and buttons match the home page. */
:root {
  --text: #313638;
  --text-soft: #4A5053;
  --on-action: #1F2324;
  --brand: #1D3A9E;
  --action: #F06543;
  --paper: #FBFAF6;   /* warm off-white page */
  --tint: #E9EEFC;    /* blue tint: hover pills */
  --data: #3C69FF;    /* the small "HSC" in the logo */
  --grid: #CCD7F7;
  --grid-bold: #A9BCFF;
  --highlight: #FFE066;
  --pen: #E5522E;     /* handwritten notes */
  --error: #B3261E;
  --line: #E3E7F2;
  --white: #FFFFFF;
  --lift: rgba(29, 58, 158, .18);
  --action-lift: rgba(240, 101, 67, .35);
  --display: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --G: 36px;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; }

/* ===== Logo and buttons ===== */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 23px/1 "Atkinson Hyperlegible", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--text); }
.logo-hsc { margin-left: 4px; font-size: 12px; letter-spacing: .06em; color: var(--data); }
.logo svg { width: 36px; height: 36px; flex: none; }
.btn, .btn-outline { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.btn:active, .btn-outline:active { scale: .97; }
/* tomato booking button: turns white with a tomato ring on hover; a mini logo draws in at the right */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: var(--action); color: var(--on-action); font: 700 17px/1 var(--sans); min-height: 56px; padding: 0 30px; border-radius: 8px;
}
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--on-action); scale: 1.05; box-shadow: inset 0 0 0 2px var(--action), 0 10px 22px var(--action-lift); }
.btn-label { transition: translate .3s cubic-bezier(.3, 1.4, .5, 1); }
.btn .rise { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; overflow: visible; pointer-events: none; }
.btn .rise path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .25s ease-out, opacity .1s; }
.btn .rise circle { fill: var(--action); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.btn:hover .btn-label, .btn:focus-visible .btn-label { translate: -10px 0; }
.btn:hover .rise path, .btn:focus-visible .rise path { stroke-dashoffset: 0; opacity: 1; }
.btn:hover .rise circle, .btn:focus-visible .rise circle { transform: scale(1); transition-delay: .18s; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  min-height: 48px; padding: 0 20px; border: 2px solid var(--text); border-radius: 8px;
  font: 700 16px/1 var(--sans); color: var(--text); background: var(--white);
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--white); scale: 1.05; box-shadow: 0 8px 18px var(--lift); }

/* ===== Top bar ===== */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { max-width: 1120px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: none; align-items: center; gap: 8px; font-size: 16px; }
.nav .btn-outline { margin-left: 16px; }
/* links: always bold; on hover a pale blue pill fades in, the text turns blue and pops, and a bar grows underneath */
.nav a:not(.btn-outline) {
  position: relative; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-weight: 700;
  transition: color .2s, background-color .2s, scale .25s cubic-bezier(.3, 1.6, .5, 1);
}
.nav a:not(.btn-outline)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s ease-out;
}
.nav a:not(.btn-outline):hover, .nav a:not(.btn-outline):focus-visible { color: var(--brand); background: var(--tint); scale: 1.06; }
.nav a:not(.btn-outline):hover::after, .nav a:not(.btn-outline):focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brand); }
/* phones: the links sit in a Menu dropdown */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(29, 58, 158, .12); display: flex; flex-direction: column;
}
.menu nav a { padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--text); transition: background-color .2s, color .2s, padding-left .2s ease-out; }
@media (hover: hover) { .menu nav a:hover { background: var(--tint); color: var(--brand); padding-left: 18px; } }
@media (min-width: 960px) { .nav { display: flex; } .menu { display: none; } }

/* "Areas" dropdown in the top bar: press the button to open it, press again to close (site.js adds .open) */
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
  font: 700 16px/1.6 var(--sans); color: var(--text); cursor: pointer; transition: color .2s, background-color .2s;
}
.dd-btn svg { transition: rotate .2s; }
.dd-btn:hover, .dd.open .dd-btn, .dd.here .dd-btn { color: var(--brand); }
.dd-btn:hover, .dd.open .dd-btn { background: var(--tint); }
.dd.open .dd-btn svg { rotate: 180deg; }
.dd-list {
  display: none; position: absolute; left: 0; top: 100%; min-width: 210px; padding: 8px; flex-direction: column; z-index: 41;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(29, 58, 158, .12);
}
.dd.open .dd-list { display: flex; }
.nav .dd-list a { padding: 10px 12px; }
.nav .dd-list a::after { display: none; }
.nav .dd-list a:hover, .nav .dd-list a:focus-visible { scale: none; }
/* phone menu: "Areas" is a plain label, with its two pages indented under it; the page you're on is highlighted */
.menu-group { padding: 12px 12px 2px; font-weight: 700; color: var(--text); }
/* the two area pages: smaller, indented, each with a blue dot so they read as tappable */
.menu nav a.sub { position: relative; padding: 9px 12px 9px 34px; font-size: 16px; font-weight: 600; }
.menu nav a.sub::before { content: ""; position: absolute; left: 18px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--brand); }
.menu nav a[aria-current="page"] { background: var(--tint); color: var(--brand); }


/* ===== Text pages ===== */
main { padding-block: 64px 80px; }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.updated { font: italic 400 17px/1.4 var(--sans); color: var(--brand); margin: 10px 0 36px; }
.lead { font: 400 clamp(20px, 2.4vw, 23px)/1.5 var(--sans); margin: 18px 0 32px; }
h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 10px; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* ===== Content pages (About, Rank Guarantee, area pages, booking) ===== */
.kicker { margin: 0 0 10px; font: 600 16px/1.4 var(--sans); color: var(--brand); }
.hand { font: 700 26px/1.15 var(--hand); color: var(--pen); margin: 0 0 6px; rotate: -1.5deg; transform-origin: left; }
.hl { background: linear-gradient(var(--highlight), var(--highlight)) 0 55% / 100% 80% no-repeat; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-intro { display: grid; gap: 28px; align-items: center; margin-bottom: 8px; }
.page-intro .photo { width: min(100%, 260px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 34px rgba(29, 58, 158, .12); }
@media (min-width: 720px) { .page-intro.has-photo { grid-template-columns: minmax(0, 1fr) 240px; } }
.panel { background: var(--tint); border-radius: 20px; padding: 24px; margin: 28px 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); rotate: -45deg; }
.cols { columns: 2; column-gap: 32px; }
.cols li { break-inside: avoid; }
@media (min-width: 640px) { .cols.three { columns: 3; } }
@media (max-width: 479px) { .cols:not(.three) { columns: 1; } }
.timeline-list { list-style: none; padding: 0; border-left: 2px solid var(--grid); margin-left: 7px; }
.timeline-list li { position: relative; padding: 0 0 18px 24px; margin: 0; }
.timeline-list li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--data); }
.timeline-list li:last-child::before { background: var(--action); border-color: var(--action); }
.timeline-list b { display: block; color: var(--brand); font-size: 15px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; font: 700 28px/1 var(--display); color: var(--brand); }
.steps-list strong { display: block; }
/* yellow dashed marker for anything still to be confirmed (never shown on a live page) */
.ph { background: #FFF4C2; border-bottom: 2px dashed #D9A400; padding: 0 .15em; }

/* closing booking band on graph paper, at the end of every page */
.cta-band {
  border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-bold) 1px, transparent 1px), linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
                    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--G) * 5) calc(var(--G) * 5), calc(var(--G) * 5) calc(var(--G) * 5), var(--G) var(--G), var(--G) var(--G);
}
.cta-band .wrap { padding-block: 64px 72px; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; margin: 0 0 14px; }
.cta-band p { max-width: 46ch; }

/* ===== Booking form (the /book page) ===== */
button.btn { border: 0; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: progress; }
.book-grid { display: grid; gap: 28px; align-items: start; margin-top: 28px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.book-form { background: var(--white); border: 1px solid var(--grid); border-radius: 14px; padding: 22px; }
.book-form .fields { display: grid; gap: 12px 14px; margin-bottom: 18px; }
.book-form label { display: grid; gap: 6px; font: 700 15px/1.3 var(--sans); color: var(--text); }
.book-form .opt { font-weight: 400; color: var(--text-soft); }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; padding: 10px 12px; font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--white); border: 1.5px solid var(--grid); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.book-form textarea { resize: vertical; }
.book-form .form-status { margin: 12px 0 0; font-size: 16px; }
.book-form .form-status:empty { display: none; }
.book-form .form-status.err { color: var(--error); }
.book-form .opt-in { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font: 400 15px/1.45 var(--sans); color: var(--text-soft); cursor: pointer; }
.book-form .opt-in input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.book-form .form-note { margin: 12px 0 0; font-size: 14px; color: var(--text-soft); }
@media (min-width: 640px) { .book-form .fields { grid-template-columns: 1fr 1fr; } .book-form .wide { grid-column: 1 / -1; } }
.expect { background: var(--white); border: 1px solid var(--grid); border-radius: 14px; padding: 24px; }
.expect-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.expect-head h2 { font: 700 18px/1.3 var(--sans); margin: 0; letter-spacing: 0; }
.expect-head img { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tint); }
.expect ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: e; }
.expect li { counter-increment: e; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 16px; margin: 0; }
.expect li::before { content: counter(e); width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--brand); font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 14px; color: var(--text-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot a { color: var(--text-soft); text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn, .btn-outline, .nav a { scale: none !important; }
}
