/* ============================================================
   BARESPACE TEMPLATE STYLES  —  the boutique design system.
   Everything keys off --accent (set from config.brandColor),
   so one colour recolours the whole site. Rarely touch this.
   ============================================================ */

:root {
  --accent: #7c1d3a;                                   /* set at runtime from config */
  --ink: #1c1c1a;
  --muted: #6f6a66;
  --bg: #ffffff;
  --warm: #faf6f2;                                     /* warm off-white base */
  --soft: color-mix(in srgb, var(--accent) 7%, #ffffff); /* brand-tinted panel */
  --line: #ece7e1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;            /* corner shape, set by the theme */
  --card: #ffffff;          /* card surface — a theme can darken it */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.7; font-weight: 300; overflow-x: clip; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }

section { max-width: 1120px; margin: 0 auto; padding: 6rem 1.5rem; }

.section-eyebrow, .eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
}
.section-head { text-align: center; margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: .95rem 2.4rem; border-radius: var(--radius); font-family: var(--sans);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s ease, opacity .2s ease;
}
.btn { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); }

/* NAV — solid refined bar, sits above the hero */
nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 2.5rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: .04em; }
.logo img { height: 38px; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: #fff !important; padding: .55rem 1.3rem; border-radius: var(--radius); }


/* Mobile hamburger (hidden on desktop, shown < 640px) */
.nav-toggle { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; padding: 0; z-index: 25; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease, top .3s ease; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
nav.open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* HERO — full-bleed photo, editorial headline, two CTAs, rating */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--ink); color: #fff; padding: 6rem 1.5rem; overflow: hidden;
}
/* photo layer — slow cinematic zoom (Ken Burns) behind the scrim */
.hero-photo { position: absolute; inset: -2%; z-index: 0; background: center/cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
/* richer scrim: vignette for focus + stronger top/bottom so text always reads */
.hero-scrim { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(125% 95% at 50% 32%, transparent 0%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.58) 100%),
  linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.30) 42%, rgba(0,0,0,.72) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero .eyebrow { color: rgba(255,255,255,.85); letter-spacing: .3em; }
.hero-h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.28; font-weight: 500; margin-bottom: 1.4rem; }
.hero-h1 em { font-style: italic; color: var(--accent); display: block; margin-top: .5em; font-size: .8em; line-height: 1.15; }
.caps .hero-h1 { letter-spacing: .03em; line-height: 1.3; }
.hero-tag { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 34rem; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; box-shadow: none; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.hero-rating { margin-top: 1.6rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-rating .stars { color: var(--accent); letter-spacing: .12em; margin-right: .4rem; }

/* ABOUT — editorial split: photo beside the copy (the lassie-style rhythm) */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-media { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--soft) center/cover no-repeat; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.about-copy .section-eyebrow { margin: 0; }
.about-copy h2 { margin: 0; }
.about-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.55; color: var(--ink); font-style: italic; }
.btn-arrow { display: inline-block; margin-left: .55em; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .about-media { aspect-ratio: 16 / 11; }
}

/* SERVICES — editorial two-column (heading/intro beside the list) */
.services { background: var(--soft); max-width: none; }
.services-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; max-width: 1120px; margin: 0 auto; }
.services-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; position: sticky; top: 96px; }
.services-head h2 { margin: 0; }
.services-head .section-eyebrow { margin: 0; }
.services-intro { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 30ch; }
.service-list { columns: 1; }
.svc { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.svc-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.svc-name small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 300; margin-top: .12rem; }
.svc-price { font-family: var(--sans); color: var(--accent); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.service-list.collapsed .svc:nth-child(n+9) { display: none; }  /* show first 8, rest behind "View all" */
.svc-toggle-wrap { text-align: center; margin-top: 1.9rem; }
.svc-toggle { display: inline-block; text-decoration: none; cursor: pointer; background: transparent; border: 1px solid var(--accent); color: var(--accent); font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .75rem 1.7rem; border-radius: var(--radius); transition: background .2s ease, color .2s ease; }
.svc-toggle:hover { background: var(--accent); color: #fff; }
/* Category-grouped menu (services pulled from the booking link) */
.service-list[data-categorized="1"] { border-top: 0; }
.svc-cat { margin-bottom: 1.8rem; }
.svc-cat-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; border-top: 2px solid var(--ink); cursor: pointer; text-align: left; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; padding: 1.2rem 0 .4rem; }
.svc-cat-meta { display: inline-flex; align-items: center; gap: .6rem; }
.svc-cat-n { font-size: .72rem; color: var(--muted); }
.svc-cat-chev { transition: transform .25s ease; }
.svc-cat.closed .svc-cat-chev { transform: rotate(-90deg); }
.svc-cat.closed .svc-cat-items { display: none; }
@media (max-width: 760px) {
  .services-inner { grid-template-columns: 1fr; gap: 2rem; }
  .services-head { position: static; }
}

/* GALLERY — even grid (uniform tiles, centered — no left-stacking) */
/* Flex (not grid) so an incomplete last row CENTERS instead of orphaning photos.
   --gcols (set by main.js) drives per-row count; tablet 2-up; phones swipe. */
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1080px; margin: 0 auto; }
@media (min-width: 901px) {
  .gallery-grid { max-width: var(--gmax, 1080px); margin: 0 auto; }
}
.gallery-grid .gal { overflow: hidden; border-radius: var(--radius); flex: 0 1 calc((100% - (var(--gcols, 3) - 1) * 1rem) / var(--gcols, 3)); }
.gallery-grid img { width: 100%; aspect-ratio: 4/5; height: auto; display: block; object-fit: cover; }
@media (max-width: 900px) { .gallery-grid .gal { flex-basis: calc((100% - 1rem) / 2); } }
/* Phones keep a tidy 2-up masonry (natural aspect — never a single giant column) */
/* Phone: horizontal swipe carousel (snap + peek) instead of stacked */
@media (max-width: 600px) {
  .gallery-grid { columns: auto; display: flex; flex-wrap: nowrap; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem .5rem; max-width: none; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid .gal { flex: 0 0 80%; scroll-snap-align: center; margin: 0; }
  .gallery-grid img { width: 100%; height: 60vh; height: 60svh; max-height: 440px; object-fit: cover; }
  /* Reviews swipe sideways on phones too (was messily stacked) */
  .reviews-grid { display: flex; flex-wrap: nowrap; grid-template-columns: none; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: none; margin: 2rem -1.25rem 0; padding: 0 1.25rem .5rem; }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-grid .review-card { flex: 0 0 85%; scroll-snap-align: center; margin: 0; }
}

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; max-width: 1080px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 3 / 4; background: var(--soft) center/cover no-repeat; border-radius: var(--radius); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.team-card:hover .team-photo { transform: translateY(-6px); }
.team-card figcaption { margin-top: 1rem; }
.team-card h3 { font-family: var(--serif); font-size: 1.3rem; }
.team-card p { color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .25rem; }
/* Awards & recognition — photo + caption cards (title · organisation · year).
   Photos use `contain` (not `cover`) so certificates/plaques are never cropped. */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem; max-width: 1080px; margin: 0 auto; }
.award-card { text-align: center; }
.award-photo { width: 100%; aspect-ratio: 4 / 5; background: var(--soft) center/contain no-repeat; background-origin: content-box; padding: 1.1rem; box-sizing: border-box; border-radius: var(--radius); border: 1px solid var(--line, rgba(0,0,0,.08)); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.award-card:hover .award-photo { transform: translateY(-6px); }
.award-photo--empty { display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--accent); }
.award-card figcaption { margin-top: 1rem; }
.award-card h3 { font-family: var(--serif); font-size: 1.2rem; }
.award-meta { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
@media (max-width: 560px) { .awards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.gallery-grid .gal:hover img { transform: scale(1.05); }

/* FEEDS / REVIEWS */
.feed, .reviews { text-align: center; }
.reviews { background: var(--soft); max-width: none; }
.feed-slot { margin-top: 2rem; }
.ig-follow { text-align: center; margin-bottom: 1.6rem; }
.ig-follow:empty { display: none; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 64rem; margin: 2rem auto 0; }
.review-stat { display: inline-flex; align-items: baseline; gap: .6rem; margin-top: 1rem; }
.review-stat .num { font-family: var(--serif); font-size: 3rem; color: var(--accent); line-height: 1; }
.review-stat .stars { color: var(--accent); letter-spacing: .1em; font-size: 1.2rem; }
.review-stat .count { color: var(--muted); font-size: .9rem; }
.reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; max-width: 1000px; margin: 2.5rem auto 0; text-align: left; }
.reviews-grid .review-card { flex: 1 1 280px; max-width: 340px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.review-card .stars { color: var(--accent); letter-spacing: .08em; margin-bottom: .6rem; }
.stars-edit .star-pick { cursor: pointer; opacity: .3; transition: opacity .12s; }
.stars-edit .star-pick.on, .stars-edit .star-pick:hover { opacity: 1; }
.review-card .rtext { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-bottom: .8rem; }
.review-card .rauthor { font-size: .82rem; color: var(--muted); font-weight: 500; }
.review-cta { text-align: center; margin-top: 2.5rem; }
.review-cta:empty { display: none; }

/* CONTACT */
.contact { text-align: center; max-width: 720px; }
.contact-line { font-size: 1.05rem; color: var(--muted); margin: .3rem 0; }
.contact .btn { margin-top: 1.75rem; }
.socials { margin-top: 2rem; }
.socials a { display: inline-block; margin: 0 .75rem; color: var(--ink); font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.socials a:hover { color: var(--accent); }

/* FOOTER */
footer { text-align: center; padding: 3rem 1.5rem; color: var(--muted); font-size: .82rem; letter-spacing: .05em; background: var(--warm); }

/* ===== SUBPAGES (blog posts + standalone pages) ===== */
.post { max-width: 760px; margin: 0 auto; padding: 8rem 1.5rem 5rem; }
.post-eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.post-title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; color: var(--ink); }
.post-lede { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--muted); margin-top: 1.1rem; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; background: var(--soft) center/cover no-repeat; border-radius: var(--radius); margin: 2.5rem 0; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.post-body { font-family: var(--sans); font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.post-body > * + * { margin-top: 1.2rem; }
.post-body h2 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; margin-top: 2.4rem; }
.post-body h3 { font-family: var(--serif); font-size: 1.4rem; margin-top: 1.8rem; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li + li { margin-top: .5rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 1.6rem 0; }
.post-body blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.post-foot { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.post-foot a.back { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.post-foot a.back:hover { color: var(--accent); }

/* Journal index (list of posts) */
.journal { max-width: 1100px; margin: 0 auto; padding: 8rem 1.5rem 5rem; }
.journal-head { text-align: center; margin-bottom: 3.5rem; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.journal-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.journal-card .jc-cover { width: 100%; aspect-ratio: 4 / 3; background: var(--soft) center/cover no-repeat; border-radius: var(--radius); overflow: hidden; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.journal-card:hover .jc-cover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.journal-card .jc-date { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 1rem 0 .4rem; }
.journal-card h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.journal-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-top: .5rem; }
@media (max-width: 640px) {
  .post { padding-top: 6rem; }
  .journal { padding-top: 6rem; }
  .journal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== Theme variations (driven by body class from the chosen theme) ===== */

/* Condensed / uppercase headings (Modern Mono, Bold Barber) */
.caps h2, .caps h3 { text-transform: uppercase; letter-spacing: .02em; }
/* (All themes now use the full-bleed photo hero — no solid/light hero variants.) */

/* Card corners follow the theme too */
.service-card { border-radius: var(--radius); }

/* Opening hours */
.hours { max-width: 360px; margin: 1.75rem auto 0; text-align: left; }
.hours-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.hours-row span:last-child { color: var(--muted); }

/* Google map */
.map { margin-top: 2.5rem; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block; }

/* Instagram blockquote grid */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1000px; margin: 2rem auto 0; }
@media (max-width: 720px) { .ig-grid { grid-template-columns: 1fr; } }

/* ===== Engaging hover micro-interactions ===== */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0; background: var(--accent); transition: width .28s cubic-bezier(.16,1,.3,1); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.svc { position: relative; transition: background .25s ease, padding-left .3s cubic-bezier(.16,1,.3,1); }
.svc::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s cubic-bezier(.16,1,.3,1); }
.svc-name { display: inline-block; transition: transform .25s cubic-bezier(.16,1,.3,1), color .25s ease; }
.svc:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); padding-left: 1.1rem; }
.svc:hover::before { width: 3px; }
.svc:hover .svc-name { color: var(--accent); transform: translateX(4px); }

/* Premium card lift + faint accent ring on hover */
.review-card, .team-card .team-photo { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.review-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,.12), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Thin scroll-progress bar (futuristic accent line, top of viewport) */
#bs-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9998;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); transition: width .1s linear; }

/* Image reveal mask — photos wipe up instead of fading */
.gal { opacity: 1 !important; transform: none !important; overflow: hidden; }
.gal img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1), filter .4s ease; }
.in .gal img { clip-path: inset(0 0 0 0); transform: scale(1); }
.gal:hover img { transform: scale(1.08); filter: saturate(1.08) brightness(1.03); }

/* Custom cursor */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .gal, .has-cursor .svc { cursor: none; }
#bs-cursor { position: fixed; top: 0; left: 0; width: 26px; height: 26px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; will-change: transform; transition: width .22s ease, height .22s ease, background .22s ease; }
#bs-cursor.hover { width: 56px; height: 56px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
@media (pointer: coarse) { #bs-cursor { display: none; } .has-cursor, .has-cursor * { cursor: auto; } }

.review-card { transition: transform .25s ease, box-shadow .25s ease; }
.review-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(0,0,0,.10); }

.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); transform: translateX(-100%); transition: transform .45s ease; }
.btn:hover::after { transform: translateX(0); }

/* Click-to-edit mode (portal editor) */
.bs-edit .bs-editable { outline: 1px dashed transparent; transition: outline-color .15s ease, background .15s ease; border-radius: 4px; cursor: text; }
.bs-edit .bs-editable:hover { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.bs-edit .bs-editable:focus { outline: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Scroll-reveal animation — cinematic focus-in: rise + subtle scale + blur→sharp */
.reveal { opacity: 0; transform: translateY(46px) scale(.985); filter: blur(9px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.05s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1); will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: none; }
/* Section headings lead the section in, content follows */
.section-head.reveal { transition-delay: .04s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero-photo { animation: none !important; transform: none !important; }
}

/* Staggered children for grids + service rows (cards/photos/rows rise in sequence) */
.service-card, .gal, .review-card, .svc { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.in .service-card, .in .gal, .in .review-card, .in .svc { opacity: 1; transform: none; }
.in .service-card:nth-child(2), .in .gal:nth-child(2), .in .review-card:nth-child(2), .in .svc:nth-child(2) { transition-delay: .08s; }
.in .service-card:nth-child(3), .in .gal:nth-child(3), .in .review-card:nth-child(3), .in .svc:nth-child(3) { transition-delay: .16s; }
.in .service-card:nth-child(4), .in .gal:nth-child(4), .in .review-card:nth-child(4), .in .svc:nth-child(4) { transition-delay: .24s; }
.in .service-card:nth-child(n+5), .in .gal:nth-child(n+5), .in .svc:nth-child(n+5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .svc { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Videos */
.videos .video-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; max-width: 58rem; margin: 0 auto; }
.videos .video-grid:has(.video-embed:nth-child(2)) { grid-template-columns: repeat(2, 1fr); }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero-photo.has-video { background-color: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.hero-photo.has-video iframe.hero-video { width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 820px) { .videos .video-grid, .videos .video-grid:has(.video-embed:nth-child(2)) { grid-template-columns: 1fr; } }

/* Kinetic marquee band */
.marquee { overflow: hidden; white-space: nowrap; padding: 2.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-block; animation: marquee 26s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 600; padding: 0 1.2rem; text-transform: uppercase; letter-spacing: .01em; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.marquee span.fill { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

@media (max-width: 640px) {
  nav { position: sticky; } /* containing block for the absolutely-pinned toggle */
  .nav-toggle { display: block; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); }
  /* nav links become a slide-down panel toggled by the hamburger */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: .25rem 1.25rem 1.1rem; box-shadow: 0 18px 40px rgba(0,0,0,.12);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .28s ease, transform .28s cubic-bezier(.16,1,.3,1);
  }
  nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  /* Instagram posts swipe sideways on phones instead of stacking */
  .ig-grid { display: flex; grid-template-columns: none; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -1.25rem; margin-right: -1.25rem; padding: 0 1.25rem .5rem; }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid > * { flex: 0 0 85%; scroll-snap-align: center; margin: 0 !important; min-width: 0; }
  .nav-links a { display: block; font-size: .95rem; }
  .nav-links a:not(.nav-cta) { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links .nav-cta { text-align: center; margin-top: .9rem; padding: .85rem 1.3rem; }
  section { padding: 4rem 1.25rem; }
  nav { padding: 1rem 1.25rem; }
  .hero { min-height: 82vh; min-height: 82svh; padding: 5rem 1.25rem; }
  /* headline: smaller floor + break long words so the accent never clips off-screen */
  .hero-h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); line-height: 1.25; overflow-wrap: break-word; word-break: break-word; }
  .hero-tag { font-size: 1rem; }
  /* CTAs: stack full-width instead of crowding/clipping side-by-side */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team-card h3 { font-size: 1.1rem; }
  .map iframe { height: 280px; }
}

/* Multiple booking buttons ("Book with X" / "Book with Y") */
.book-multi { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Optional Education section (image + text) */
.bs-education { max-width: 1120px; margin: 0 auto; padding: 6rem 1.5rem; }
.bs-education .bs-edu-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }
.bs-education .bs-edu-inner.no-media { grid-template-columns: 1fr; max-width: 44rem; margin: 0 auto; text-align: center; }
.bs-edu-media { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--soft) center/cover no-repeat; box-shadow: 0 24px 60px rgba(0,0,0,.14); }
.bs-edu-media--multi { aspect-ratio: auto; background: none; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.bs-edu-media--multi .bs-edu-tile { aspect-ratio: 1; border-radius: var(--radius); background: var(--soft) center/cover no-repeat; box-shadow: 0 16px 44px rgba(0,0,0,.12); }
.bs-edu-copy h2 { margin: .3rem 0 1rem; }
.bs-edu-copy p:not(.section-eyebrow) { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem,2vw,1.5rem); line-height: 1.5; color: var(--ink); }
.bs-edu-cta { margin-top: 1.6rem; }
@media (max-width: 760px) { .bs-education .bs-edu-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* FAQ accordion — JS-injected before #contact; also powers the FAQPage schema. */
.bs-faq .l-sec-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.bs-faq .l-sec-head h2 { margin: .3rem 0 0; }
.bs-faq-list { max-width: 760px; margin: 0 auto; }
.bs-faq-item { border-top: 1px solid var(--line); }
.bs-faq-item:last-child { border-bottom: 1px solid var(--line); }
.bs-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.3; color: var(--ink); }
.bs-faq-item summary::-webkit-details-marker { display: none; }
.bs-faq-ic { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.bs-faq-ic::before, .bs-faq-ic::after { content: ""; position: absolute; background: var(--accent); transition: transform .25s ease, opacity .25s ease; }
.bs-faq-ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.bs-faq-ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.bs-faq-item[open] .bs-faq-ic::after { transform: scaleY(0); opacity: 0; }
.bs-faq-a { padding: 0 0 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 64ch; }
.bs-faq-a p { margin: 0 0 .7rem; } .bs-faq-a p:last-child { margin-bottom: 0; }
.bs-faq-a ul { margin: 0; padding-left: 1.1rem; } .bs-faq-a li { margin-bottom: .4rem; }
