/* ==========================================================================
   Design tokens. BUILDER: set the brand palette here from the brief. Keep the
   names; the layout below depends on them. Light is the default; the two dark
   blocks must stay byte-identical apart from their selector (remove BOTH, and
   the theme-toggle partial, when the brand has no dark theme).
   ========================================================================== */
:root {
  color-scheme: light;
  --primary: #2EA3F2;
  --primary-deep: #1A70B0;
  --accent: #E0AC3C;
  --accent-ink: #2B1F03;
  --bg: #FFFFFF;
  --bg-alt: #F1F7FC;
  --bg-card: #FFFFFF;
  --fg: #14212B;
  --fg-muted: #4E5F6E;
  --line: #D5E3EE;
  --on-primary: #FFFFFF;
  --link: #1A70B0;
  --shadow: 0 10px 30px rgba(20, 60, 100, 0.10);
  /* Code blocks and syntax colours (highlight.js classes map onto these). */
  --code-bg: #F1F7FC;
  --code-fg: #14212B;
  --hl-comment: #6A737D;
  --hl-keyword: #A626A4;
  --hl-string: #1B7F3B;
  --hl-number: #B35C00;
  --hl-title: #1F5FBF;
  --hl-attr: #8A4B00;
  --hl-meta: #6A737D;

  --font-display: "Abel", "Century Gothic", "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 72rem;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0D1720;
  --bg-alt: #13202C;
  --bg-card: #182838;
  --fg: #EEF3F7;
  --fg-muted: #AEBDCA;
  --line: #2A3B4C;
  --on-primary: #FFFFFF;
  --link: #6CC0F7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --code-bg: #0A121A;
  --code-fg: #E6EBF0;
  --hl-comment: #8B949E;
  --hl-keyword: #D2A8FF;
  --hl-string: #7EE787;
  --hl-number: #FFA657;
  --hl-title: #79C0FF;
  --hl-attr: #FFA657;
  --hl-meta: #8B949E;
}
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1720;
  --bg-alt: #13202C;
  --bg-card: #182838;
  --fg: #EEF3F7;
  --fg-muted: #AEBDCA;
  --line: #2A3B4C;
  --on-primary: #FFFFFF;
  --link: #6CC0F7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --code-bg: #0A121A;
  --code-fg: #E6EBF0;
  --hl-comment: #8B949E;
  --hl-keyword: #D2A8FF;
  --hl-string: #7EE787;
  --hl-number: #FFA657;
  --hl-title: #79C0FF;
  --hl-attr: #FFA657;
  --hl-meta: #8B949E;
}

/* ---- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--fg); background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--fg); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.01em; color: var(--fg); }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section-alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent-ink); background: var(--accent); display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--fg-muted); max-width: 42rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.muted { color: var(--fg-muted); }

/* ---- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; }
.btn-primary { background: var(--primary-deep); color: var(--on-primary); }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--fg); color: var(--bg); }
.btn-outline { border-color: var(--link); color: var(--link); background: transparent; }
.btn-outline:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--on-primary); }

/* ---- header + nav (mobile first, no JS needed) --------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; position: relative; }
.brand { display: flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 2.75rem; width: auto; }
.brand .brand-mark { height: 2.6rem; }
.brand .brand-word { height: 1.9rem; }
@media (max-width: 359px) { .brand .brand-word { display: none; } }
.nav-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.3rem; height: 2px; background: var(--fg); position: relative; transition: transform 0.2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle-input:checked + .nav-toggle span { background: transparent; }
.nav-toggle-input:checked + .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle-input:checked + .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 3px solid var(--accent); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-toggle-input:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 0.8rem 0; text-decoration: none; color: var(--fg); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li ul { padding: 0 0 0 1rem; }
.site-nav li ul a { font-weight: 400; color: var(--fg-muted); }
.site-nav .btn-book { margin-top: 0.8rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; text-align: center; padding: 0.7rem 1.2rem; border: 0; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 0.25rem; padding: 0; }
  .site-nav a { padding: 0.5rem 0.75rem; border: 0; border-radius: 8px; }
  .site-nav a:hover { background: var(--bg-alt); color: var(--link); }
  .site-nav li { position: relative; }
  .site-nav li ul { display: none; position: absolute; top: 100%; left: 0; min-width: 14rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 0.4rem; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
  .site-nav li ul a { color: var(--fg); font-weight: 500; }
  .site-nav .btn-book { margin: 0 0 0 0.5rem; }
}

/* ---- hero + banners ------------------------------------------------------ */
.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); color: var(--fg); padding-block: clamp(3rem, 9vw, 6.5rem); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
.hero h1 em { font-style: normal; color: var(--link); }
.hero .lead { color: var(--fg-muted); }
.hero-logo { max-width: 16rem; margin-inline: auto; }
.hero-logo img { box-shadow: none; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
.page-banner { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); padding-block: clamp(2rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }

/* ---- cards + grids ------------------------------------------------------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card .icon { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--link); margin-bottom: 1rem; }
.card .icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card .cta { font-weight: 600; text-decoration: none; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); text-align: center; }
.stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--link); }
.testimonial { border-left: 4px solid var(--accent); padding: 0.25rem 0 0.25rem 1.25rem; font-style: italic; }
.testimonial cite { display: block; margin-top: 0.5rem; font-style: normal; color: var(--fg-muted); font-size: 0.95rem; }

/* ---- prose (markdown pages) --------------------------------------------- */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--accent); color: var(--fg-muted); }

/* ---- contact bits --------------------------------------------------------- */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 0.75rem; align-items: start; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }
.hours td { padding: 0.35rem 0.75rem 0.35rem 0; }

/* ---- site specific --------------------------------------------------------- */
.section-title { max-width: 42rem; margin-bottom: 2rem; }
.section-title p { color: var(--fg-muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem 1.5rem; }
@media (min-width: 720px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.check-list svg { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; color: var(--link); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.feature-panel h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); text-transform: uppercase; letter-spacing: 0.02em; }
.feature-panel h2 em { font-style: normal; color: var(--accent-ink); background: var(--accent); padding: 0 0.3rem; border-radius: 6px; }
.pill-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li { background: var(--primary-deep); color: var(--on-primary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.95rem; }
.style-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.style-grid .style { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.style-grid .style svg { width: 2.6rem; height: 2.6rem; margin: 0 auto 0.6rem; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-band { background: var(--primary-deep); color: var(--on-primary); text-align: center; }
.cta-band h2, .cta-band p { color: inherit; }
.cta-band p { max-width: 40rem; margin-inline: auto; }
.cta-band p a { display: inline-block; padding: 0.6rem 0.2rem; }
.cta-band p a:not(.btn), .cta-band p a:not(.btn):hover { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.cta-band .btn-outline { border-color: var(--on-primary); color: var(--on-primary); }
.cta-band .btn-outline:hover { background: var(--on-primary); color: var(--primary-deep); }
.quote { background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 1.1rem; }
.quote p { margin-bottom: 0.75rem; }
.quote cite { display: block; font-style: normal; font-weight: 600; color: var(--fg-muted); }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.25rem; color: var(--link); }
.contact-list li svg { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: 0.25rem; color: var(--link); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; }
.contact-list a { overflow-wrap: anywhere; }
.portrait { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 26rem; width: 100%; }
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo.portrait { margin-inline: auto; }
.photo-pair { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; }
.photo-tiles { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 600px) { .photo-tiles { grid-template-columns: 1fr 1fr; } }
.photo-tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--fg); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%); color: #FFFFFF; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
.photo-card { position: relative; display: flex; align-items: flex-end; min-height: 24rem; height: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--fg); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.photo-card .hero-actions { position: relative; width: 100%; margin: 0; padding: 4rem 1.25rem 1.25rem; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%); }
.photo-card .btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
.photo-card .btn-outline:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--primary-deep); }
.footer-contact li { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer-contact a, .site-footer nav a { display: inline-block; padding: 0.6rem 0; }
.site-footer h3 { color: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--primary-deep); color: var(--on-primary); margin-top: 3rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1rem; font-size: 0.9rem; opacity: 0.85; }
.footer-bottom p { margin: 0; }

/* ---- theme toggle --------------------------------------------------------- */
.theme-toggle { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 2.9rem; height: 2.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: var(--fg); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.theme-toggle .icon { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[hidden] { display: none !important; }

/* Code blocks and syntax colouring (classes from highlight.js, colours from the tokens above). */
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.9em; background: var(--code-bg); color: var(--code-fg); padding: 0.1em 0.35em; border-radius: 5px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.prose pre { background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; overflow-x: auto; margin-block: 1.25rem; line-height: 1.55; font-size: 0.9rem; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.hljs { background: transparent; color: var(--code-fg); }
.hljs-comment, .hljs-quote { color: var(--hl-comment); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-doctag, .hljs-name { color: var(--hl-keyword); }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-template-tag { color: var(--hl-string); }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-link, .hljs-deletion { color: var(--hl-number); }
.hljs-title, .hljs-section, .hljs-type, .hljs-built_in, .hljs-class .hljs-title, .hljs-function .hljs-title { color: var(--hl-title); }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-selector-attr, .hljs-selector-id, .hljs-selector-class { color: var(--hl-attr); }
.hljs-meta, .hljs-meta .hljs-keyword, .hljs-subst { color: var(--hl-meta); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* Table of contents on long posts (nav.roq-toc comes from the TOC plugin). */
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; font-size: 0.95rem; }
.toc-title { margin: 0 0 0.4rem; font-weight: 600; color: var(--fg-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { padding-left: 1rem; }
.toc li { margin: 0.2rem 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Newer / older links under a paginated listing. */
.pagination ul { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0 0; padding: 0; }
.pagination p { margin: 0; }
.pagination .page-number { color: var(--fg-muted); font-size: 0.9rem; }
