/* ==========================================================================
   HIVE Surgical Skills Centre - shared stylesheet
   Warm off-white pages, deep teal-charcoal ink and one accent: the HIVE
   logo orange. Mobile first; wider layouts are added with min-width queries.
   ========================================================================== */

:root {
  --bg: #fbfaf7;           /* page background */
  --surface: #ffffff;      /* cards, header */
  --tint: #f3efe7;         /* alternate sections */
  --ink: #1b2529;          /* body text */
  --heading: #14323b;      /* headings, dark buttons, footer (logo stroke colour) */
  --muted: #55636a;        /* secondary text (AA on all backgrounds above) */
  --line: #e4ded3;
  --accent: #f5921e;       /* HIVE orange: fills and marks only */
  --accent-ink: #9a4d05;   /* orange for text on light backgrounds (AA) */
  --accent-soft: #fdf0e1;
  --focus: #1f6fd1;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1200px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }

a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--heading); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-ink);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 10px;
}
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #1b1305; }
.btn-primary:hover { background: #e07f0c; color: #1b1305; }
.btn-dark { background: var(--heading); color: #fff; }
.btn-dark:hover { background: #0d242b; color: #fff; }
.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { background: var(--heading); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.text-link { font-weight: 650; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.brand-logo { height: 38px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; flex: 0 0 auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none; margin: 0; padding: 12px var(--gutter) 20px;
  position: absolute; top: 68px; left: 0; right: 0;
  display: none; flex-direction: column; gap: 2px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(20, 50, 59, 0.08);
}
.nav-links.open { display: flex; }
.nav-links a { display: block; padding: 12px 4px; color: var(--heading); font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--accent-ink); }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--accent-ink); }
.nav-cta { margin-top: 10px; }
.nav-links .nav-cta a { display: inline-flex; color: #fff; padding: 0.6rem 1.2rem; }
.nav-links .nav-cta a.active, .nav-links .nav-cta a[aria-current="page"] { color: #fff; }

@media (min-width: 1000px) {
  .nav { height: 76px; }
  .brand-logo { height: 44px; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-links a { padding: 8px 12px; font-size: 0.97rem; border-radius: 8px; }
  .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .nav-cta { margin: 0 0 0 10px; }
  .nav-links .nav-cta a { box-shadow: none; border-radius: 999px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-white { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child { margin-bottom: 0; }
.section-foot { margin-top: 32px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 18ch; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hero-media figcaption, .page-head-media figcaption {
  margin-top: 10px; font-size: 0.88rem; color: var(--muted);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Facts strip ---------- */
.facts {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts li { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts li:last-child { grid-column: 1 / -1; border-bottom: 0; border-left: 0; padding-left: 0; }
.facts strong { display: block; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; color: var(--heading); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .facts li, .facts li:nth-child(even) { border-bottom: 0; border-left: 0; padding: 24px 20px 24px 0; }
  .facts li:nth-child(n+2) { border-left: 1px solid var(--line); padding-left: 20px; }
  .facts li:last-child { grid-column: auto; }
}

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; gap: 28px; align-items: center; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.page-head-media { margin: 0; }
.page-head-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
@media (min-width: 900px) {
  .page-head-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* ---------- Two paths ---------- */
.paths { display: grid; gap: 24px; }
.path {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.path img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.path-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; flex: 1; }
.path-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.path-body .btn { align-self: flex-start; margin-top: auto; }
.path-body .ticks { margin-bottom: 26px; }
@media (min-width: 800px) { .paths { grid-template-columns: 1fr 1fr; } }

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-2 { display: grid; gap: 0 32px; }
@media (min-width: 700px) { .ticks-2 { grid-template-columns: 1fr 1fr; } }

.numbered { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: n; }
.numbered > li { counter-increment: n; padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 6px 24px; align-content: start; }
.numbered > li:last-child { border-bottom: 1px solid var(--line); }
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; font-size: 0.95rem;
}
.numbered h3 { margin: 0 0 4px; }
.numbered p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .numbered.cols { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .numbered.cols > li { border-bottom: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
}
.section-white .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.group-title { font-size: 1.05rem; margin: 36px 0 14px; color: var(--accent-ink); letter-spacing: 0; }
.section-head + .group-title { margin-top: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink);
}

/* ---------- Split (text + photo) ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split > * { min-width: 0; }
.split .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
  .split.top { align-items: start; }
}

/* ---------- Spec list (facilities) ---------- */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 650; color: var(--heading); }
.spec dd { margin: 0; color: var(--muted); }
@media (min-width: 600px) { .spec > div { grid-template-columns: minmax(140px, 0.8fr) 2fr; } }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic figure { margin: 0; min-width: 0; }
.mosaic img { width: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.mosaic .wide, .mosaic .full { grid-column: 1 / -1; }
.mosaic .wide img, .mosaic .full img { aspect-ratio: 16 / 9; }
.mosaic figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .mosaic figure { display: flex; flex-direction: column; }
  .mosaic .wide { grid-column: span 2; }
  /* Wide photos stretch to the height of the portrait ones in the same row. */
  .mosaic .wide img { aspect-ratio: auto; flex: 1 1 0; min-height: 220px; }
  .mosaic .full img { aspect-ratio: 21 / 8; }
}

/* ---------- Statement block ---------- */
.statement { display: grid; gap: 24px; }
.statement-lead { font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.25; color: var(--heading); font-weight: 650; letter-spacing: -0.02em; margin: 0; max-width: 22ch; }
@media (min-width: 900px) { .statement { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700;
}
.steps strong { display: block; color: var(--heading); margin-bottom: 2px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { padding: 70px 22px 22px; } }

/* ---------- Callout / notice / CTA panel ---------- */
.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
}
.notice h3 { margin-bottom: 6px; }
.notice p { color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }
.notice .actions { margin-top: 1.25rem; }

.cta-panel {
  display: grid; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 56px);
  box-shadow: inset 6px 0 0 var(--accent);
}
.cta-panel > * { min-width: 0; }
.cta-panel h2 { margin-bottom: 8px; }
.cta-panel p { color: var(--muted); margin: 0; max-width: 56ch; }
.cta-panel .actions { margin-top: 0; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.3fr auto; } }

/* ---------- Location ---------- */
.place-grid { display: grid; border-top: 1px solid var(--line); }
.place-grid > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.place-grid h3 { font-size: 1rem; margin-bottom: 4px; }
.place-grid p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .place-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1000px) { .place-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-grid > * { min-width: 0; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3.4vw, 36px); }
.form-grid { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 18px; min-width: 0; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; color: var(--heading); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #b9b0a2; border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); border-radius: 10px; }
.form-field .hint { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 5px; }
.form-field.check { display: flex; gap: 12px; align-items: flex-start; }
.form-field.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: 0 0 auto; accent-color: var(--heading); }
.form-field.check label { font-weight: 400; font-size: 0.95rem; color: var(--muted); margin: 0; }
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.97rem; }
.form-status.ok { background: #e7f3ee; border: 1px solid #7fb69d; color: #12372a; }
.form-status.err { background: #fdecea; border: 1px solid #e0b4ae; color: #8c231a; }
button[disabled] { opacity: 0.6; cursor: progress; }
.form-card .btn { width: 100%; }
@media (min-width: 640px) { .form-card .btn { width: auto; } }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.info-list strong { display: block; color: var(--heading); }
.info-list div { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.map-embed { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); margin-top: 24px; background: var(--tint); }
.aside-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--heading); color: #c9d6d6; padding: 56px 0 28px; font-size: 0.97rem; }
.site-footer a { color: #e6eeee; text-decoration-color: rgba(245, 146, 30, 0.7); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > * { min-width: 0; }
.footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-note { color: #a9bcbc; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.88rem; color: #a9bcbc;
}
.footer-bottom p { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
}

/* Privacy notice and other long-form text */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 2em 0 0.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
