/* =========================================================
   Rewind Looks Salon — public site styles
   Palette sampled from the salon itself: espresso leather chairs,
   walnut wall slats, the champagne-gold logo panel, oak floors,
   caramel balayage and blush nail work.
   ========================================================= */
:root {
  --espresso: #2A1D16;
  --walnut: #5B3B29;
  --champagne: #C8A46A;
  --gold-ink: #8E6A33;
  --caramel: #B5703F;
  --cream: #F6EFE6;
  --ivory: #FFFBF5;
  --oak: #E4D6C3;
  --blush: #F1DDD6;
  --muted: #6E5D51;
  --on-dark: #F3E9DC;
  --on-dark-muted: #BFAE9C;
  --ok: #3E7B55;
  --danger: #A63D32;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--espresso); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--gold-ink); }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.label::before { content: ""; width: 28px; height: 1px; background: var(--champagne); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn i { font-size: 18px; }
.btn-dark { background: var(--espresso); color: var(--ivory); }
.btn-dark:hover { background: var(--walnut); }
.btn-line { border-color: var(--espresso); color: var(--espresso); }
.btn-line:hover { background: var(--espresso); color: var(--ivory); }
.btn-gold { background: var(--champagne); color: var(--espresso); }
.btn-gold:hover { background: #D6B67F; }
.btn-line-light { border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-line-light:hover { border-color: var(--champagne); color: var(--champagne); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.link { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--champagne); padding-bottom: 3px; transition: color .2s; }
.link:hover { color: var(--gold-ink); }

/* ---------- top bar + nav ---------- */
.topbar { background: var(--espresso); color: var(--on-dark-muted); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--champagne); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); display: inline-block; }
.dot.on { background: #6FBF8B; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--oak); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.brand small { font-size: 10px; letter-spacing: .32em; color: var(--gold-ink); margin-top: 5px; text-transform: uppercase; font-weight: 600; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--champagne); transition: right .25s; }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--oak); border-radius: 50%; font-size: 20px; color: var(--espresso); background: var(--ivory); transition: border-color .2s; }
.icon-btn:hover { border-color: var(--champagne); }
.menu-btn { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--oak); background: var(--cream); padding: 8px 16px 20px; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--oak); font-family: var(--serif); font-size: 22px; }
.mobile-menu.open { display: block; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-top: 14px; max-width: 640px; }
.section-head p { max-width: 460px; color: var(--muted); }
.dark { background: var(--espresso); color: var(--on-dark); }
.dark .label { color: var(--champagne); }
.dark .muted, .dark .section-head p { color: var(--on-dark-muted); }
.ivory { background: var(--ivory); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 22px 0 24px; line-height: 1.06; letter-spacing: -.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 44px; }
.proof { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--oak); }
.proof b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.proof span { font-size: 13px; color: var(--muted); }
.stars { color: var(--champagne); letter-spacing: 2px; font-size: 15px; }
.hero-visual { position: relative; padding: 0 0 24px 24px; width: 100%; max-width: 440px; justify-self: center; }
.hero-visual::before { content: ""; position: absolute; inset: 24px 24px 0 0; border: 1px solid var(--champagne); border-radius: 300px 300px 0 0; }
.hero-visual img { position: relative; width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: center top; border-radius: 300px 300px 0 0; }
.hero-tag { position: absolute; left: 0; bottom: 64px; background: var(--ivory); border: 1px solid var(--oak); padding: 14px 18px; max-width: 230px; font-size: 13px; }
.hero-tag b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-collage .a { grid-row: span 2; aspect-ratio: 3 / 4.4; }
.about-collage .b, .about-collage .c { aspect-ratio: 1; }
.about h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 16px 0 22px; }
.about p { color: var(--muted); margin-bottom: 16px; white-space: pre-line; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 32px 0; border-top: 1px solid var(--oak); border-bottom: 1px solid var(--oak); }
.facts div { padding: 18px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--oak); }
.facts b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.facts span { font-size: 13px; color: var(--muted); }

/* ---------- services ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border: 1px solid var(--oak); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--ivory); transition: .2s; }
.chip:hover { border-color: var(--champagne); }
.chip.on { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.svc { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--oak); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .25s; }
.svc:hover { border-color: var(--champagne); transform: translateY(-3px); }
.svc-img { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--oak); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc:hover .svc-img.fit-cover img { transform: scale(calc(var(--z, 1) * 1.04)); }
.svc-img.type { display: flex; align-items: flex-end; padding: 22px; background: var(--walnut); color: var(--on-dark); }
.svc-img.type span { font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1; color: var(--champagne); }
.svc-tag { position: absolute; top: 12px; left: 12px; background: var(--ivory); color: var(--espresso); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.svc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.svc-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.svc h3 { font-size: 24px; font-weight: 600; }
.svc-desc { font-size: 14px; color: var(--muted); }
.svc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; }
.price { font-weight: 700; font-size: 16px; }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 3px; }

/* ---------- framed service photos (fit / position / zoom set per service in Admin > Services) ---------- */
.framed { position: relative; display: block; overflow: hidden; }
.framed img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); }
.framed.fit-contain::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(16px) brightness(.85); }
.framed.fit-contain img { object-fit: contain; object-position: center; transform: none; }

/* ---------- gallery ---------- */
.gallery-tabs { margin-bottom: 32px; }
.gal-more { display: flex; justify-content: center; margin-top: 28px; }
.gal-more [hidden] { display: none; }
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin-bottom: 16px; position: relative; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.masonry img { width: 100%; transition: transform .6s; }
.masonry figure:hover .gtile img { transform: scale(calc(var(--z, 1) * 1.03)); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: var(--on-dark); font-size: 13px; background: rgba(42, 29, 22, .82); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; }
.ba-badge { position: absolute; top: 10px; left: 10px; background: var(--ivory); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); margin: auto; }
.lightbox::backdrop { background: rgba(20, 14, 10, .88); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: var(--on-dark); text-align: center; margin-top: 12px; font-size: 14px; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); font-size: 22px; display: flex; align-items: center; justify-content: center; }

/* ---------- framed gallery tiles (shape / position / zoom set per photo in Admin > Settings > Gallery) ---------- */
.gtile { position: relative; overflow: hidden; aspect-ratio: var(--ar, auto); }
.gtile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); }

/* ---------- why us ---------- */
.why .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.why-photo { position: sticky; top: 110px; }
.why-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why-photo p { font-size: 13px; color: var(--on-dark-muted); margin-top: 12px; }
.why h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 16px 0 40px; }
.why-list { list-style: none; counter-reset: why; }
.why-list li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(200, 164, 106, .3); counter-increment: why; }
.why-list li::before { content: counter(why, decimal-leading-zero); font-family: var(--serif); font-size: 26px; color: var(--champagne); line-height: 1.1; }
.why-list h3 { font-size: 26px; margin-bottom: 6px; }
.why-list p { color: var(--on-dark-muted); font-size: 15px; }

/* ---------- reviews ---------- */
.rating-big { display: flex; align-items: center; gap: 18px; }
.rating-big b { font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1; }
.rating-big span { font-size: 14px; color: var(--muted); }
/* Text-only review cards: equal height per row, name pinned to the bottom so the row lines up. */
.rev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rev { position: relative; display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--oak); border-radius: var(--radius); padding: 30px 28px 24px; }
.rev::before { content: "\201C"; position: absolute; top: 2px; right: 22px; font-family: var(--serif); font-size: 84px; line-height: 1; color: var(--oak); }
.rev-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rev-stars { color: #B8801F; font-size: 20px; letter-spacing: 3px; line-height: 1; }
.rev-src { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.rev p { font-size: 15px; line-height: 1.75; }
.rev-who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--oak); }
.rev p { margin-bottom: 22px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--walnut); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.rev-who b { font-size: 15px; }
.rating-big .stars { color: #B8801F; font-size: 18px; letter-spacing: 3px; }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.map { width: 100%; height: 100%; min-height: 440px; border: 1px solid var(--oak); border-radius: var(--radius); }
.visit-card { background: var(--ivory); border: 1px solid var(--oak); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.visit-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 35%; }
.visit-body { padding: 28px; }
.visit-body h3 { font-size: 30px; margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--oak); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { font-weight: 700; color: var(--espresso); }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- faq ---------- */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq h2 { font-size: clamp(28px, 3.8vw, 44px); margin-top: 16px; }
.faq details { border-top: 1px solid var(--oak); }
.faq details:last-child { border-bottom: 1px solid var(--oak); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--gold-ink); transition: transform .25s; font-size: 20px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 640px; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: 112px 0; text-align: center; color: var(--on-dark); overflow: hidden; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(42, 29, 22, .78); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); margin: 16px 0 14px; }
.cta p { color: var(--on-dark-muted); margin-bottom: 34px; }
.cta .label { color: var(--champagne); }
.cta .label::after { content: ""; width: 28px; height: 1px; background: var(--champagne); }

.footer { background: var(--espresso); color: var(--on-dark-muted); padding: 72px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand b { color: var(--on-dark); }
.footer .brand small { color: var(--champagne); }
.footer p { margin-top: 18px; max-width: 300px; }
.footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); margin-bottom: 18px; font-weight: 600; }
.footer li { list-style: none; margin-bottom: 10px; }
.footer a:hover { color: var(--champagne); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border: 1px solid rgba(200, 164, 106, .4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--on-dark); }
.social a:hover { border-color: var(--champagne); }
.copy { display: flex; justify-content: center; text-align: center; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(200, 164, 106, .2); font-size: 13px; }

.m-bar { display: none; }

/* ---------- simple content pages ---------- */
.page { padding: 72px 0 104px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin: 16px 0 28px; }
.page p { color: var(--muted); margin-bottom: 16px; white-space: pre-line; }
.page-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--oak); }
.page-contact p { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.page-contact .page-contact-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--espresso); margin-bottom: 12px; }
.page-contact i { color: var(--gold-ink); font-size: 18px; }
.page-contact a { color: var(--espresso); font-weight: 600; border-bottom: 1px solid var(--champagne); }
.page-contact a:hover { color: var(--gold-ink); }

/* ---------- admin sign-in (public layout) ---------- */
.auth { padding: 72px 0 96px; }
.auth-card { display: grid; grid-template-columns: 360px minmax(0, 1fr); max-width: 880px; margin: 0 auto; background: var(--ivory); border: 1px solid var(--oak); border-radius: var(--radius); overflow: hidden; }
/* Photo panel stays at about the photo's real size (384 px wide) so it never gets stretched and blurry. */
.auth-photo { position: relative; margin: 0; min-height: 100%; }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; }
.auth-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: rgba(42, 29, 22, .82); color: var(--on-dark); }
.auth-photo b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.auth-photo span { font-size: 13px; color: var(--on-dark-muted); }
.auth-form { padding: 48px 48px 40px; }
.auth-form h1 { font-size: clamp(30px, 3.4vw, 38px); margin: 14px 0 6px; }
.auth-form > .muted { margin-bottom: 28px; font-size: 15px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > i { position: absolute; left: 14px; color: var(--muted); font-size: 18px; pointer-events: none; }
.auth-input input { width: 100%; padding: 13px 44px; border: 1px solid var(--oak); border-radius: var(--radius); background: #fff; outline: none; transition: border-color .2s; }
.auth-input input:focus { border-color: var(--gold-ink); }
.auth-eye { position: absolute; right: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; border-radius: var(--radius); }
.auth-eye:hover { color: var(--espresso); }
.auth-form .btn-block { margin-top: 8px; padding: 15px; }
.auth-error { display: flex; gap: 8px; align-items: center; padding: 12px 14px; margin-bottom: 20px; border-radius: var(--radius); background: #F6E0DC; color: var(--danger); font-size: 14px; font-weight: 600; }
.auth-note { display: flex; gap: 8px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--oak); font-size: 13px; color: var(--muted); }
.auth-note i { color: var(--gold-ink); font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-cta .btn { display: none; } /* "Book Now" is already in the links */
}
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .hide-m, .topbar .hide-m { display: none; }
  .menu-btn { display: inline-flex; }
  .hero .wrap, .about .wrap, .why .wrap, .visit-grid, .faq .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .why-photo { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-list { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .topbar .wrap { justify-content: center; }
  .nav .wrap { height: 68px; }
  .brand b { font-size: 24px; }
  .hero { padding: 36px 0 64px; }
  .hero-actions .btn { flex: 1; }
  .proof { gap: 24px; }
  .svc-grid { gap: 12px; }
  .svc-body { padding: 14px; }
  .svc h3 { font-size: 20px; }
  .svc-desc { display: none; }
  .svc-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .svc-foot .btn { width: 100%; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
  .facts b { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .map { min-height: 300px; }
  .auth { padding: 32px 0 64px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-photo { height: 170px; }
  .auth-photo img { object-position: center 60%; }
  .auth-form { padding: 28px 22px 26px; }
  .m-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 1px solid var(--oak); }
  .m-bar .btn { flex: 1; padding: 13px 10px; }
  body.has-mbar { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- manage booking ---------- */
.manage { padding: 56px 0 96px; }
.manage h1 { font-size: clamp(30px, 4.2vw, 44px); margin: 12px 0 8px; }
.manage-find { max-width: 880px; margin: 0 auto; }
.manage-find > .muted { max-width: 620px; }
.manage-help { margin-top: 18px; font-size: 14px; color: var(--muted); }
.manage-help a { color: var(--espresso); font-weight: 600; border-bottom: 1px solid var(--champagne); }
.m-error { display: flex; gap: 8px; align-items: center; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius); background: #F6E0DC; color: var(--danger); font-size: 14px; font-weight: 600; }
.m-flash { padding: 14px 16px; margin-bottom: 24px; border-radius: var(--radius); background: #E2F0E6; color: var(--ok); font-weight: 600; }
.m-flash.err { background: #F6E0DC; color: var(--danger); }
.manage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.m-status { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--oak); }
.m-status.pending { background: #F8EBCF; color: #8A5A12; }
.m-status.completed { background: #E2F0E6; color: var(--ok); }
.m-status.cancelled { background: #EEE8E1; color: #6E5D51; }
.m-status.missed { background: #F6E0DC; color: var(--danger); }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.m-sub { font-family: var(--sans); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.m-reschedule-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.manage .days .day { text-decoration: none; }
@media (max-width: 760px) { .manage-grid { grid-template-columns: minmax(0, 1fr); } .manage { padding: 32px 0 64px; } }
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.find-grid .m-sub { display: flex; align-items: center; gap: 8px; }
.find-grid .m-sub i { color: var(--gold-ink); font-size: 20px; }
.find-grid .hint { font-size: 12px; color: var(--muted); }
.m-status.notvisited { background: #EFE7DC; color: var(--walnut); }
.m-group { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 28px 0 12px; }
.m-list { display: grid; gap: 10px; }
.m-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 14px 18px; transition: border-color .2s; }
.m-item:hover { border-color: var(--champagne); }
.m-item-date { text-align: center; line-height: 1.1; border-right: 1px solid var(--oak); padding-right: 12px; }
.m-item-date b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.m-item-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.m-item-main { display: flex; flex-direction: column; min-width: 0; }
.m-item-main .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-item-go { color: var(--muted); font-size: 18px; }
.verify label { display: block; font-size: 14px; margin-bottom: 10px; }
.verify input { width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--oak); border-radius: var(--radius); background: #fff; font-size: 18px; letter-spacing: .3em; outline: none; }
.verify input:focus { border-color: var(--gold-ink); }
@media (max-width: 760px) {
  .find-grid { grid-template-columns: 1fr; }
  .m-item { grid-template-columns: 48px minmax(0, 1fr) 16px; gap: 12px; padding: 12px 14px; }
  .m-item .m-status { grid-column: 2; justify-self: start; font-size: 12px; padding: 4px 10px; }
  .m-item-go { grid-column: 3; grid-row: 1; }
}
.hero h1 em { white-space: nowrap; } /* keep the gold phrase on one line */

/* service cards with more than one photo, and the photo viewer's arrows */
.svc-img.has-more { cursor: zoom-in; }
.svc-img.has-more:focus-visible { outline: 3px solid var(--champagne); outline-offset: -3px; }
.svc-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(42, 29, 22, .78); color: var(--ivory); font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); transition: background .2s; }
.svc-img.has-more:hover .svc-count { background: var(--espresso); }
.lightbox [hidden] { display: none !important; }
.lightbox .lb-nav { top: 50%; right: auto; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255, 251, 245, .92); }
.lightbox .lb-prev { left: max(16px, calc(50vw - 520px)); }
.lightbox .lb-next { left: auto; right: max(16px, calc(50vw - 520px)); }
.lightbox .lb-nav:hover { background: var(--ivory); }
.lightbox img { user-select: none; touch-action: pan-y; }
@media (max-width: 600px) { .lightbox .lb-nav { top: auto; bottom: 20px; transform: none; } }
.lightbox { overflow: visible; }
.lightbox img { max-height: calc(100dvh - 110px); }

/* gallery laid out row by row by the page script (falls back to CSS columns without it) */
.masonry.js-masonry { columns: auto; display: flex; align-items: flex-start; gap: 16px; }
.masonry.js-masonry .m-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.masonry.js-masonry figure { margin-bottom: 0; }
@media (max-width: 760px) { .masonry.js-masonry, .masonry.js-masonry .m-col { gap: 10px; } }
