/* Mag Luxe Studios, Brockton MA
   Tokens first. One style: Walnut & Brass, pulled from the salon photo. */

:root {
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-sm: .5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem;
  --space-2xl: 3rem; --space-3xl: 4.5rem;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-full: 999px;
  --container: 1100px;
  --nav-h: 68px;
  --ease: 220ms ease;

  /* Walnut & Brass: pulled from the salon photo (oak slats, brass, black leather, ivory floor) */
  --bg: #F6EFE5;
  --bg-alt: #EFE2D1;
  --surface: #FFFBF4;
  --ink: #161210;
  --ink-2: #5E4A3A;
  --muted: #9A7F66;
  --line: #E3D2BC;
  --accent: #B8853F;
  --accent-dark: #8C6225;
  --accent-ink: #161210;
  --hero-bg: linear-gradient(180deg, #F0E3D2 0%, #F6EFE5 100%);
  --hero-ink: #161210;
  --nav-bg: rgba(22, 18, 16, .94);
  --shadow: 0 14px 36px rgba(60, 35, 10, .14);
  --slat: repeating-linear-gradient(90deg, rgba(174, 124, 86, .16) 0 10px, transparent 10px 22px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.7;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: var(--space-sm);
}
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: var(--space-md); }
.lead { color: var(--ink-2); max-width: 600px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer; transition: transform var(--ease), background var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn-outline { border-color: var(--accent); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: .6rem 1.1rem; font-size: .78rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.brand { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: .06em; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-links a { color: var(--ink-2); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: var(--space-sm); align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--slat); opacity: .55;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: var(--space-sm) 0 var(--space-md); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.05rem; color: var(--ink-2); max-width: 520px; margin-bottom: var(--space-xl); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: var(--space-xl); display: flex; gap: var(--space-lg); flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-art {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-art .arch {
  position: absolute; inset: 8% 14%; border: 2px solid var(--accent); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  opacity: .55; pointer-events: none;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; aspect-ratio: 4 / 4.4; }
}

/* Services */
.svc-groups { margin-top: var(--space-xl); border-top: 1px solid var(--line); }
.svc-group { border-bottom: 1px solid var(--line); }
.svc-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.svc-group summary::-webkit-details-marker { display: none; }
.svc-group summary::after { content: '+'; font-family: var(--font-body); font-size: 1.3rem; color: var(--accent); flex: 0 0 auto; }
.svc-group[open] summary::after { content: '–'; }
.svc-group ul { list-style: none; padding-bottom: var(--space-sm); }
.svc-row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-md); align-items: center; padding: .55rem 0; border-top: 1px dashed var(--line); }
.svc-row .name { color: var(--ink); }
.svc-row .price { color: var(--accent-dark); font-weight: 600; white-space: nowrap; font-size: .95rem; }
.svc-row .price small { font-weight: 500; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-right: .3rem; }
.services-links { margin-top: var(--space-lg); color: var(--ink-2); font-size: .92rem; }
.services-links a { font-weight: 600; }
@media (max-width: 560px) { .svc-row { grid-template-columns: 1fr auto; } .svc-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.gallery .tile {
  aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-more { margin-top: var(--space-lg); color: var(--ink-2); font-size: .92rem; }
.gallery-more a { font-weight: 600; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-2xl); align-items: center; }
.about-art { aspect-ratio: 1; border-radius: 50% 50% var(--radius-lg) var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; max-width: 380px; }
.about-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.about p + p { margin-top: var(--space-md); }
.about .quote { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-bottom: var(--space-md); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-art { margin: 0 auto; } }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
.visit h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.visit .block + .block { margin-top: var(--space-lg); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.25rem; font-size: .95rem; }
.hours dt { color: var(--ink-2); }
.hours dd { color: var(--ink); font-weight: 500; }
.hours .closed { color: var(--muted); font-weight: 400; }
.map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); text-align: center; padding: var(--space-2xl) 0; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: var(--space-sm); }
.cta-band p { opacity: .85; margin-bottom: var(--space-lg); }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.band-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.55); color: inherit; background: transparent; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); color: inherit; }
.cta-band .btn-primary:hover { background: var(--ink); }

/* Footer */
.footer { padding: var(--space-xl) 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer .container { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink-2); }
.footer nav { display: flex; gap: var(--space-md); }

/* Sticky mobile book bar */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: .6rem var(--space-md) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--nav-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.book-bar .btn { width: 100%; }
@media (max-width: 760px) { .book-bar { display: block; } body { padding-bottom: 72px; } }

/* Legal page */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.4rem; margin: var(--space-xl) 0 var(--space-sm); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.2rem; }

/* Logo: one alpha PNG, colored by the theme accent via mask */
.mark, .logo-full {
  display: inline-block; background: var(--accent);
  -webkit-mask: url("../assets/img/mark-gold.png") center / contain no-repeat;
          mask: url("../assets/img/mark-gold.png") center / contain no-repeat;
}
.logo-full {
  -webkit-mask-image: url("../assets/img/logo-gold.png");
          mask-image: url("../assets/img/logo-gold.png");
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand .mark { width: 34px; height: 34px; }
.brand-text { font-family: 'Cinzel', var(--font-heading); font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.brand-text small { display: block; font-size: .58rem; letter-spacing: .34em; color: var(--accent); margin-top: .2rem; }
.hero-logo { display: grid; place-items: center; padding: 12%; aspect-ratio: 1; background: var(--bg-alt); }
.hero-logo .logo-full { width: 100%; aspect-ratio: 1315 / 1281; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer-brand .mark { width: 22px; height: 22px; }
@media (max-width: 860px) { .hero-logo { max-width: 320px; aspect-ratio: 1; } }

/* Parking block */
.parking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-lg); }
.parking-intro { color: var(--ink-2); font-size: .92rem; margin-bottom: var(--space-sm); }
.steps { list-style: none; counter-reset: step; display: grid; gap: .6rem; }
.steps li { position: relative; padding-left: 2.1rem; font-size: .93rem; color: var(--ink-2); }
.steps li b { color: var(--ink); font-weight: 600; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .15rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; display: grid; place-items: center;
}
.parking-photo { margin-top: var(--space-md); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.parking-photo img { display:block; width:100%; height:auto; }

/* Language toggle */
.lang-toggle {
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: .45rem .85rem; cursor: pointer; transition: all var(--ease);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--ink); }
.lang-note { margin-top: var(--space-md); font-size: .85rem; color: var(--accent-dark); font-weight: 600; letter-spacing: .04em; }

/* Walnut & Brass: black nav and band, brass on black buttons, oak accents */
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1.02; }
.nav-links a { color: #D9CBB6; }
.nav-links a:hover { color: #FFFFFF; }
.brand-text { color: #F4EADB; }
.brand-text small { color: #D9B56A; }
.nav .mark { background: #D9B56A; }
.lang-toggle { color: #D9CBB6; border-color: rgba(217, 203, 182, .4); }
.btn-primary { background: #161210; color: #D9B56A; }
.btn-primary:hover { background: #2A221D; color: #E8C87E; }
.btn-outline { border-color: #161210; color: #161210; }
.btn-outline:hover { background: #161210; color: #D9B56A; }
.cta-band { background: #161210; color: #F4EADB; }
.cta-band p { color: #D9CBB6; opacity: 1; }
.cta-band .btn-primary { background: #C9993F; color: #161210; }
.cta-band .btn-primary:hover { background: #D9B56A; }
.book-bar .btn-primary { background: #161210; color: #D9B56A; }
.steps li::before { background: #161210; color: #D9B56A; }
.hero-art { border-color: rgba(184, 133, 63, .35); border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }

/* Booking popup */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-md); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22, 18, 16, .72); }
.modal-box { position: relative; width: min(900px, 100%); height: min(90vh, 920px); background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #161210; color: #D9B56A; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-body { width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
.modal-body iframe { display: block; width: 100%; min-height: 100%; border: 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) { .modal { padding: 0; } .modal-box { height: 100%; border-radius: 0; } }
