/* ============================================================
   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:hover { transform: translateY(-2px); opacity: .92; }

/* 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; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--ink) center/cover no-repeat; color: #fff; padding: 6rem 1.5rem;
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.32) 45%, rgba(0,0,0,.6)); }
.hero-inner { position: relative; max-width: 900px; text-shadow: 0 2px 26px rgba(0,0,0,.45); }
.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.14; font-weight: 500; margin-bottom: 1.4rem; }
.hero-h1 em { font-style: italic; color: var(--accent); }
.caps .hero-h1 { letter-spacing: .03em; line-height: 1.2; }
.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 */
.about { text-align: center; max-width: 760px; }
.about-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.5; color: var(--ink); font-style: italic; }

/* SERVICES */
.services { background: var(--soft); max-width: none; }
.service-list { max-width: 980px; margin: 0 auto; columns: 2; column-gap: 3.5rem; }
.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 { 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; }
@media (max-width: 640px) { .service-list { columns: 1; } }

/* GALLERY — editorial masonry */
.gallery-grid { columns: 3; column-gap: 1rem; max-width: 1100px; margin: 0 auto; }
.gallery-grid .gal { break-inside: avoid; margin: 0 0 1rem; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }

/* 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; }
.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; }
.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: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; max-width: 1000px; margin: 2.5rem auto 0; text-align: left; }
.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; }
.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; }

/* 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); }

/* ===== 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 { transition: background .25s ease; }
.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); }
.svc:hover .svc-name { color: var(--accent); transform: translateX(6px); }

/* 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; }
}

/* Staggered children for grids (cards/photos rise in sequence) */
.service-card, .gal, .review-card { 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 { opacity: 1; transform: none; }
.in .service-card:nth-child(2), .in .gal:nth-child(2), .in .review-card:nth-child(2) { transition-delay: .08s; }
.in .service-card:nth-child(3), .in .gal:nth-child(3), .in .review-card:nth-child(3) { transition-delay: .16s; }
.in .service-card:nth-child(4), .in .gal:nth-child(4), .in .review-card:nth-child(4) { transition-delay: .24s; }
.in .service-card:nth-child(n+5), .in .gal:nth-child(n+5) { transition-delay: .32s; }

/* 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; }
  .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; 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); 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; }
  .gallery-grid img { height: 220px; }
  .service-grid { grid-template-columns: 1fr; }
  .map iframe { height: 280px; }
}
