/* I Salon Spot — Fort Myers, FL
   The first salon theme in the library, so it is built to be copied.

   The palette is lifted straight out of the room: the deep emerald of the
   Jaipur mirror panel, the gold on the chair bases and the baroque frames,
   and the warm cream of the walls. Display face is a high-contrast serif,
   body a light geometric sans — the pairing salons actually use, and nothing
   like the condensed/roadside themes in the rest of the library.

   Motion tier: showpiece. Ken-burns hero, a running service marquee, gold
   rules that draw themselves in, staggered card reveals. All of it sits
   behind prefers-reduced-motion. */

:root {
  --green: #14503F;
  --green-dk: #0B3328;
  --green-lt: #EDF3F0;
  --gold: #B8913F;
  --gold-lt: #D9B66A;
  --ink: #1C231F;
  --muted: #5F6B64;
  --bg: #FDFBF7;
  --surface: #F5F0E7;
  --line: #E4DCCD;
  --shell: 1180px;
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 8px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --s1: .35rem; --s2: .6rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.2rem; --s6: 3rem; --s7: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s3); }
img { max-width: 100%; display: block; }

.shell { width: min(var(--shell), calc(100% - 2.5rem)); margin-inline: auto; }
.gold { color: var(--gold-lt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; background: var(--green); color: #fff; padding: var(--s2) var(--s3); z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { margin: 0 0 var(--s2); font-family: var(--font-body); font-size: .7rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.eyebrow-gold { color: var(--gold-lt); }

/* a gold rule that draws itself when the block scrolls in */
.rule { display: block; width: 68px; height: 1px; background: var(--gold); margin: 0 0 var(--s4); transform-origin: left center; }
.rule-gold { background: var(--gold-lt); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253,251,247,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; display: grid; line-height: 1.1; }
.brand-text em { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: .48em; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; text-decoration: none; font-size: .85rem; font-weight: 400; letter-spacing: .06em; color: var(--muted); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right center; transition: transform .3s ease; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left center; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--green); }
.nav-toggle { display: none; width: 42px; height: 38px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; height: 1px; background: var(--ink); }
.nav-toggle span + span { margin-top: 5px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: var(--radius); border: 1px solid var(--green);
  background: var(--green); color: #fff; font-family: var(--font-body); font-weight: 500;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,80,63,.26); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-lt); }
.btn-lg { padding: .95em 1.9em; font-size: .86rem; }
.nav-cta { flex: none; background: var(--gold); border-color: var(--gold); color: #241A05; }
.nav-cta:hover { box-shadow: 0 12px 26px rgba(184,145,63,.4); }

/* hero */
.hero { position: relative; display: grid; align-items: center; min-height: min(660px, calc(100svh - var(--header-h))); overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.06); animation: kb 26s ease-in-out infinite alternate; }
/* Measured, not guessed: at the previous weight the sub-headline sat at
   2.80:1 against the storefront glass. This holds the left half dark enough
   for #DCE9E3 body text to clear 4.5:1 while the sign still reads on the right. */
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
    /* a dark column under the copy: guarantees contrast whatever the photo
       happens to show there, instead of relying on one diagonal gradient */
    linear-gradient(90deg, rgba(3,18,14,.97) 0%, rgba(3,18,14,.94) 42%, rgba(3,18,14,0) 72%),
    linear-gradient(100deg, rgba(4,22,17,.9) 0%, rgba(5,30,23,.78) 48%, rgba(20,80,63,.45) 100%); }
.hero-inner { padding-block: clamp(2.5rem, 7vh, 4.5rem); color: #fff; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); max-width: 14ch; margin-bottom: var(--s3); font-weight: 500; }
.hero h1 .ln { display: block; }
.hero h1 .gold { color: #E6C67F; }
/* 400 rather than 300: thin type over a photograph is hard work, and it
   takes the measured contrast past 4.5:1 */
.hero-sub { max-width: 48ch; color: #F4F9F7; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero .btn { background: var(--gold); border-color: var(--gold); color: #241A05; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

.pill { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 var(--s4); padding: .4em 1em; border-radius: 999px; font-size: .72rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.pill-live { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
/* the divider rides on the status chip, so nothing dangles if JS never runs */
.pill .status { padding-left: .85em; border-left: 1px solid rgba(255,255,255,.3); }

.status { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.status.open { color: #5FD8A4; }
.status.closed { color: #F0C9A8; }
.hours-note .status.open { color: #0B6B45; }
.hours-note .status.closed { color: #9A5B22; }

/* running service marquee */
.marquee { overflow: hidden; background: var(--green-dk); color: var(--gold-lt); padding-block: .85rem; border-block: 1px solid rgba(217,182,106,.22); }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: .6rem; opacity: .6; }

/* facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s3); padding-block: var(--s5); }
.fact { padding-left: var(--s3); border-left: 1px solid var(--gold); }
.fact-k { margin: 0; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.fact-v { margin: .3rem 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.fact-v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.fact-v a:hover { border-bottom-color: var(--gold); }

/* sections */
.section { padding-block: var(--s7); }
.section.alt { background: var(--surface); }
.section-head { max-width: 58ch; margin-bottom: var(--s6); }
.section-head h2, .split-copy h2, .visit-inner h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: var(--s3); }
.section-lede { color: var(--muted); margin: 0; }
.aside { margin: var(--s5) 0 0; font-size: .92rem; color: var(--muted); font-style: italic; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; padding: var(--s5) var(--s4); background: #fff; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
/* a gold hairline that sweeps across the top on hover */
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,80,63,.12); border-color: #D8CDB8; }
.card:hover::before { transform: scaleX(1); }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-lt); color: var(--green); }
.ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.5rem; margin: var(--s3) 0 var(--s1); }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* the standing offer */
.offer { background: var(--green); color: #EAF3EF; text-align: center; }
.offer-inner { padding-block: var(--s6); }
.offer h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: var(--s3); }
.offer-lines { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0 0 var(--s2); }
.offer-lines strong { color: var(--gold-lt); font-weight: 700; }
.offer-note { margin: 0; font-size: .85rem; color: #A9C6BA; }

/* price list */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s4); }
.price-card { background: #fff; border: 1px solid var(--line); padding: var(--s5) var(--s4); }
.price-card h3 { font-size: 1.45rem; padding-bottom: var(--s2); border-bottom: 1px solid var(--gold); margin-bottom: var(--s3); }
.price-sub { margin-top: var(--s5); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: .6rem; padding: .42rem 0; font-size: .93rem; }
.price-list li + li { border-top: 1px dotted var(--line); }
.price-list span { color: var(--muted); }
/* the dotted leader between the service and its price */
.price-list li::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line); order: 1; translate: 0 -.25em; }
.price-list b { order: 2; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.price-list.plain li::after { display: none; }
.price-note { font-size: .9rem; color: var(--muted); }
.price-note strong { color: var(--green); font-weight: 500; }

/* the showpiece split */
.showpiece { background: linear-gradient(160deg, var(--green-dk) 0%, var(--green) 70%, #1A6350 100%); color: #DCE9E3; }
.showpiece h2 { color: #fff; }
.showpiece .ticks li { color: #C4DAD1; }
.showpiece .ticks li::before { color: var(--gold-lt); }
.split-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.split-media { margin: 0; overflow: hidden; border: 1px solid rgba(217,182,106,.3); }
.split-media.tall { aspect-ratio: 3 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split-media:hover img { transform: scale(1.04); }

.ticks { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.ticks li { position: relative; padding-left: 1.7em; font-size: .95rem; }
.ticks li::before { content: "✦"; position: absolute; left: 0; font-size: .7em; top: .35em; color: var(--gold); }

/* gallery */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.06); }

/* visit */
.visit-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hours-card { background: var(--surface); border: 1px solid var(--line); padding: var(--s5); }
.hours-card h3 { font-size: 1.45rem; margin-bottom: var(--s3); }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { padding: .55em .2em; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr + tr { border-top: 1px dotted var(--line); }
.hours tr.today th, .hours tr.today td { color: var(--green); font-weight: 500; }
.hours tr.today th::before { content: "✦ "; color: var(--gold); }
.hours-note { display: flex; align-items: center; gap: .5em; margin: var(--s3) 0 0; font-size: .9rem; }

/* footer */
.site-footer { background: var(--green-dk); color: #A9C6BA; padding-block: var(--s6); font-size: .9rem; }
.footer-inner p { margin: 0 0 .4rem; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: #fff; }
.footer-brand em { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: .44em; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.copy { margin-top: var(--s4); opacity: .7; font-size: .82rem; }

/* lightbox */
.lightbox { width: min(94vw, 980px); max-width: 94vw; border: none; border-radius: var(--radius-lg); padding: var(--s3); background: #fff; }
.lightbox::backdrop { background: rgba(11,51,40,.88); }
.lightbox img { display: block; width: 100%; max-height: 74vh; object-fit: contain; }
.lb-caption { margin: var(--s3) 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-close { top: var(--s3); right: var(--s3); }
.lb-prev { left: var(--s3); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s3); top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--green); color: #fff; border-color: var(--green); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; border: 1px solid var(--gold); font-size: 1.1rem; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.to-top[hidden] { display: none; }

/* motion — showpiece tier, entirely opt-out */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
  .reveal.in { opacity: 1; transform: none; }
  /* cards and gallery tiles come in one after another, not all at once */
  .cards .card, .gallery li, .price-card { transition-delay: calc(var(--i, 0) * 90ms); }
  /* the gold rule draws itself once its block has scrolled in */
  .rule { transform: scaleX(0); transition: transform .9s cubic-bezier(.22,1,.36,1) .25s; }
  .reveal.in .rule { transform: scaleX(1); }
  @keyframes kb { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); } }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .btn:hover, .card:hover, .gallery button:hover img, .split-media:hover img { transform: none; }
}

/* breakpoints */
@media (max-width: 62rem) { .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .nav-toggle { display: block; order: 3; }
  .nav { order: 4; flex-basis: 100%; display: none; padding-bottom: var(--s3); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: var(--s3); }
  .nav-cta { order: 2; }
  .brand-text { font-size: 1.15rem; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .split-media.tall { aspect-ratio: 4 / 3; }
  .hero { min-height: auto; padding-block: var(--s6); }
  .lb-prev, .lb-next { top: auto; bottom: var(--s3); transform: none; }
  .lb-prev { left: var(--s3); } .lb-next { right: var(--s3); }
}
@media (max-width: 30rem) {
  .hero-actions, .visit-actions { display: grid; grid-template-columns: 1fr; }
}

/* ===== service photos in the "What we do" cards =====
   Each card carries a photograph of the service itself. */

.card { padding: 0; overflow: hidden; }
.card-media { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--green-lt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: var(--s4); }
/* the icon rides up over the photo edge so the two read as one object */
.card-body .ico { margin-top: calc(var(--s4) * -1 - 24px); position: relative; background: #fff; box-shadow: 0 6px 18px rgba(20,80,63,.16); }
.card-body h3 { margin-top: var(--s3); }

/* ===== the offer band sits on a photograph ===== */
.offer { position: relative; isolation: isolate; overflow: hidden; }
.offer-bg { position: absolute; inset: 0; z-index: -3; background: url("assets/offer-bed-0dd3fe8a.jpg") center/cover no-repeat; }
/* measured: this veil holds the white and gold type above 4.5:1 on the photo */
.offer-veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(6,32,24,.93), rgba(9,45,35,.9)); }

/* light background motion: gold motes drifting up through the band */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.motes i { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-lt); opacity: 0; }
.motes i:nth-child(1)  { left:  4%; animation: rise 15s linear infinite; animation-delay: 0s;   }
.motes i:nth-child(2)  { left: 12%; animation: rise 19s linear infinite; animation-delay: 2.5s; }
.motes i:nth-child(3)  { left: 21%; animation: rise 13s linear infinite; animation-delay: 5s;   }
.motes i:nth-child(4)  { left: 29%; animation: rise 21s linear infinite; animation-delay: 1.2s; }
.motes i:nth-child(5)  { left: 37%; animation: rise 16s linear infinite; animation-delay: 7s;   }
.motes i:nth-child(6)  { left: 46%; animation: rise 18s linear infinite; animation-delay: 3.4s; }
.motes i:nth-child(7)  { left: 55%; animation: rise 14s linear infinite; animation-delay: 9s;   }
.motes i:nth-child(8)  { left: 63%; animation: rise 20s linear infinite; animation-delay: 4.6s; }
.motes i:nth-child(9)  { left: 71%; animation: rise 17s linear infinite; animation-delay: 11s;  }
.motes i:nth-child(10) { left: 80%; animation: rise 15s linear infinite; animation-delay: 6.2s; }
.motes i:nth-child(11) { left: 88%; animation: rise 22s linear infinite; animation-delay: 8.4s; }
.motes i:nth-child(12) { left: 95%; animation: rise 16s linear infinite; animation-delay: 13s;  }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    0%   { transform: translateY(0) scale(.6);       opacity: 0; }
    12%  {                                           opacity: .75; }
    88%  {                                           opacity: .5; }
    100% { transform: translateY(-115%) scale(1.15); opacity: 0; }
  }
  /* a very slow wash behind the services section, barely there */
  .section#services { background-size: 200% 200%; animation: wash 28s ease-in-out infinite alternate;
    background-image: radial-gradient(60rem 40rem at 12% 8%, rgba(20,80,63,.05), transparent 60%),
                      radial-gradient(50rem 36rem at 88% 92%, rgba(184,145,63,.07), transparent 60%); }
  @keyframes wash { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
}
@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
  .card:hover .card-media img { transform: none; }
}

@media (max-width: 48rem) {
  .card-media { aspect-ratio: 1 / 1; }
}
