/* Life Music – single stylesheet. Spacing uses the --s-* scale only. */
/* Scoutie Sans (self-hosted, variable weight 200-800). Previous font: Raleway, files kept in tools/fonts-alt/ */
@font-face { font-family: "Scoutie Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/ScoutieSans-var.woff2") format("woff2"); }
@font-face { font-family: "Scoutie Sans"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/ScoutieSans-italic-var.woff2") format("woff2"); }
:root {
  --red: #d62c13;
  --red-dark: #880602;
  --navy: #161a26;
  --ink: #222838;
  --muted: #5b6270;
  --line: #e3e5ea;
  --bg: #fff;
  --bg-soft: #f6f6f8;

  --s-1: .25rem; --s-2: .5rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2.5rem; --s-6: 4rem;
  --radius: 8px;
  --measure: 70ch;
  --wrap: 72rem;
  --font: "Scoutie Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #f5f5f5; }
body { margin: 0 auto; max-width: 1600px; font: 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--bg); font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

.wrap { width: min(100% - 2 * var(--s-3), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s-3); top: var(--s-3); background: #fff; padding: var(--s-2) var(--s-3); z-index: 100; }

/* Header */
.site-header { background: #000000; color: #fff; position: relative; z-index: 10; }
.header-row { --logo-w: 360px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: 0 var(--s-3); }
.logo img { width: var(--logo-w); height: auto; }
/* Phone baseline sits on the logo tagline baseline (tagline baseline is 10/360 of the logo width above its bottom; Scoutie baseline is .15em above a line-height:1 box) */
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); margin-left: auto; align-self: flex-end; margin-bottom: calc(var(--logo-w) * .0278 - .15 * 1.75rem); }
.tel { font-size: 1.75rem; line-height: 1; font-weight: 400; text-decoration: none; color: #fff; }
.social { display: flex; align-items: center; gap: var(--s-3); order: -1; }
.social svg { display: block; width: 24px; height: 24px; }
.social a { color: #fff; transition: color .15s; }
.social a:hover, .social a:focus-visible { color: #c9cdd8; }
.tel:hover { color: #fff; }

/* button bottom edge sits on the lowest ink of the logo text (6px above the bottom of the 360px-wide logo, scaled with --logo-w) */
.nav-toggle { align-self: flex-end; margin-bottom: calc(var(--logo-w) * .0167); display: none; font: inherit; padding: var(--s-2) var(--s-3); border: 1px solid #55607a; background: transparent; color: #fff; border-radius: var(--radius); cursor: pointer; transition: background .15s, border-color .15s; }
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--red); border-color: var(--red); }
.nav-toggle[aria-expanded="true"] { background: var(--red-dark); border-color: var(--red-dark); }
.site-nav { background: var(--red); }
.nav-list { list-style: none; margin: 0 0 0 calc(-1 * var(--s-4)); padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: var(--s-3) var(--s-4); color: #fff; text-decoration: none; font-weight: 400; letter-spacing: .03em; }
.nav-list > li > a { font-size: 1.1875rem; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--red-dark); color: #fff; }
.sub { list-style: none; margin: 0; padding: var(--s-2) 0; position: absolute; left: 0; top: 100%; min-width: 18rem; background: var(--red);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .2); display: none; }
.sub a { font-weight: 400; padding: var(--s-2) var(--s-4); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }

/* Slider (scroll-snap; JS adds arrows + autoplay) */
.slider { position: relative; background: var(--ink); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 7; min-height: 16rem; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; inset: auto 0 0 0; padding: 7rem max(var(--s-3), calc((100% - var(--wrap)) / 2)) var(--s-6); color: #fff;
  background: linear-gradient(to top, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .58) 40%, rgb(0 0 0 / .28) 72%, transparent 100%); display: grid; gap: var(--s-2); justify-items: start; }
.slide-text h2 { color: #fff; }
.slide-text p { margin: 0; max-width: 55ch; }
/* prev/next sit side by side at the bottom-right of the content column */
.slide-nav { position: absolute; bottom: var(--s-6); right: max(var(--s-3), calc((100% - var(--wrap)) / 2)); display: flex; gap: var(--s-2); }
.slide-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 2px solid #fff;
  background: rgb(0 0 0 / .25); color: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.slide-btn svg { width: .75rem; height: 1.2rem; fill: currentColor; }
.slide-btn:hover, .slide-btn:focus-visible { background: var(--red); border-color: var(--red); }

.btn, .more { display: inline-block; padding: var(--s-2) var(--s-4); background: var(--red); color: #fff; border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover, .more:hover { background: var(--red-dark); color: #fff; }

main { padding-block: var(--s-5) var(--s-6); }
main > * + *, .content > * + * { margin-top: var(--s-4); }

/* Home tiles */
.tiles { list-style: none; margin: 0; padding: var(--s-4) 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, max(9.5rem, calc((100% - 3 * var(--s-4)) / 4))), 1fr)); }
.tiles a { display: block; height: 100%; padding: var(--s-3) var(--s-3) var(--s-4); background: #232222; border-radius: var(--radius); text-decoration: none; color: #fff; font-weight: 600; text-align: left; font-size: 1.3125rem; line-height: 1.2; }
.tiles img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: var(--s-3); }
.tiles a:hover, .tiles a:focus-visible { background: var(--red-dark); color: #fff; }
.intro { margin-top: var(--s-5); }
.intro-cols { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.intro-photo { width: 100%; height: auto; border-radius: var(--radius); }

/* Content layout */
.layout.has-aside { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
.aside { display: grid; gap: var(--s-4); }
.aside-img { border-radius: var(--radius); width: 100%; }
.aside-nav { background: var(--bg-soft); border-radius: var(--radius); padding: var(--s-3); }
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav a { display: block; padding: var(--s-2) var(--s-3); text-decoration: none; border-radius: var(--s-1); color: var(--ink); }
.aside-nav a:hover { background: #fff; color: var(--red); }
.aside-nav a[aria-current="page"] { background: var(--red); color: #fff; }

/* Prose: one vertical rhythm for everything inside page content */
.prose { max-width: none; }
.prose > * { max-width: var(--measure); }
.prose > .gallery { max-width: none; }
.text-center { text-align: center; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: var(--s-3); }
.prose > h2, .prose > h3, .prose > h4 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: var(--s-4); }
.prose li + li { margin-top: var(--s-1); }
.prose blockquote { margin-inline: 0; padding-left: var(--s-3); border-left: 4px solid var(--red); }
.prose img { border-radius: var(--radius); }
.prose img.alignright { float: right; margin: 0 0 var(--s-3) var(--s-4); max-width: 45%; }
.prose img.alignleft { float: left; margin: 0 var(--s-4) var(--s-3) 0; max-width: 45%; }
.prose img.aligncenter { margin-inline: auto; }
.prose img.fullimg { display: block; float: none; width: 100%; max-width: none; height: auto; margin: var(--s-4) 0; }
.prose img.inlineimg { display: block; float: none; max-width: 100%; height: auto; margin: var(--s-4) 0; }
.prose::after { content: ""; display: block; clear: both; }
.prose .gallery { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); max-width: none; }
.gallery-item { display: block; text-decoration: none; color: var(--ink); }
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; border-radius: var(--radius); transition: opacity .15s; }
.gallery-caption { display: block; font-size: .875rem; line-height: 1.3; color: var(--muted); margin-top: var(--s-2); }
.gallery-item:hover img, .gallery-item:focus-visible img { opacity: .8; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { color: var(--red); }

/* Modal slideshow (built by main.js) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgb(10 12 20 / .92); }
.lightbox-inner { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; padding: var(--s-5) var(--s-5) var(--s-3); gap: var(--s-3); }
.lightbox figure { margin: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--s-2); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 14rem); max-height: calc(100dvh - 14rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; max-width: 60ch; }
.lightbox-count { display: grid; place-items: center; height: 2.75rem; font-size: .875rem; color: #c9cdd8; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 2px solid #fff;
  background: rgb(0 0 0 / .35); color: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.lb-btn svg { width: .75rem; height: 1.2rem; fill: currentColor; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--red); border-color: var(--red); }
/* prev / next sit at the bottom, either side of the counter */
.lb-prev, .lb-next { bottom: var(--s-3); }
.lb-prev { left: calc(50% - 6rem); } .lb-next { left: calc(50% + 3.25rem); }
.lb-close { top: var(--s-3); right: var(--s-3); font-size: 1.75rem; line-height: 1; }
@media (max-width: 40rem) { .lightbox-inner { padding: var(--s-5) var(--s-2) var(--s-3); } }
.big-tel { font-size: 1.75rem; font-weight: 700; }
.contact-address { font-style: normal; margin-bottom: var(--s-3); }
.map-heading { margin-top: var(--s-5); }
.map-embed { margin-block: var(--s-3); aspect-ratio: 3 / 2; max-width: var(--measure); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.back { margin-top: var(--s-5); }

/* Listings */
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); margin-top: var(--s-4); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.card > p:last-child { margin-top: auto; padding-top: var(--s-2); }
.card h2 { font-size: 1.25rem; } .card h2 a { text-decoration: none; color: var(--ink); } .card h2 a:hover { color: var(--red); }
.card p { margin: 0; }

/* Form */
.form { display: grid; gap: var(--s-3); max-width: 36rem; }
.form label { display: grid; gap: var(--s-1); font-weight: 600; }
.form input, .form textarea { font: inherit; padding: var(--s-2) var(--s-3); border: 1px solid #b9bdc7; border-radius: var(--radius); width: 100%; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: var(--s-3) var(--s-4); border-radius: var(--radius); }
.notice.ok { background: #e8f5e9; } .notice.err { background: #fdecea; } .notice ul { margin: 0; padding-left: var(--s-4); }

/* Footer */
.site-footer { background: var(--navy); color: #dfe2ea; padding-block: var(--s-6) 0; border-top: 4px solid #D62C13; }
.site-footer a { color: #fff; text-decoration: none; transition: color .15s; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ff9e8c; }
.footer-tel { display: inline-block; margin-top: var(--s-3); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.copyright-bar { background: var(--red-dark); margin-top: var(--s-6); display: flex; align-items: center; min-height: 5rem; }
.copyright { margin: 0 auto; font-size: .875rem; color: #f2dcd9; }

/* burger menu below 62rem (992px): the full nav no longer fits on one line */
@media (max-width: 62rem) {
  .site-header { border-bottom: 1rem solid var(--red); }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 var(--s-3); }
}
@media (max-width: 52rem) {
  .layout.has-aside { grid-template-columns: 1fr; }
  .aside { order: 2; }
  .header-contact { display: none; }
  .slide { aspect-ratio: 4 / 3; }
  .slide-nav { display: none; }
  .slide-text { padding: var(--s-4) var(--s-3) var(--s-5); }
  .prose img.alignright, .prose img.alignleft { float: none; margin: 0 auto; max-width: 100%; }
}
/* Logo scales down on small screens */
@media (max-width: 767.98px) { .header-row { --logo-w: 240px; padding-block: var(--s-2) .75rem; } }
@media (max-width: 439.98px) { .header-row { --logo-w: 180px; } .nav-toggle { padding: var(--s-1) var(--s-2); } }

@media (max-width: 52rem) { .intro-cols { grid-template-columns: 1fr; } .intro-photo { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
