/* ============================================================
   Tidewater Massage & Wellness — reference template styles
   Design system is brand-driven via CSS variables (see :root).
   Swap the variables to re-skin for any studio.
   ============================================================ */

:root {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --ink: #2a211c;
  --ink-soft: #6b5d52;
  --gold: #c0934e;
  --gold-deep: #a87c3d;
  --rose: #d99a7e;
  --sage: #8fae93;
  --espresso: #241b16;
  --line: #e7ddcf;

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 24px 60px -28px rgba(36, 27, 22, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); }
.section-title { font-size: clamp(30px, 4.4vw, 50px); font-style: italic; font-weight: 500; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }

.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: 46px; background: var(--gold); opacity: 0.5; }

/* ---------- Buttons (origin-fill effect) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--gold); background: var(--gold); color: #fff;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; }
.btn .btn-fill {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: var(--espresso); pointer-events: none; z-index: 1;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn-fill { transform: translate(-50%, -50%) scale(1); }
.btn:hover { color: #fff; border-color: var(--espresso); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost .btn-fill { background: var(--ink); }
.btn.ghost:hover { color: var(--bg); }

.btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.light .btn-fill { background: #fff; }
.btn.light:hover { color: var(--espresso); border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; gap: 24px;
  background: rgba(247, 241, 232, 0); transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled { background: rgba(247, 241, 232, 0.96); backdrop-filter: blur(10px); padding: 12px 32px; box-shadow: 0 8px 30px -20px rgba(36,27,22,0.4); }
.header.scrolled .nav-link, .header.scrolled .brand, .header.scrolled .phone-top { color: var(--ink); }

.brand { font-family: var(--serif); font-style: italic; font-size: 24px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: #fff; position: relative; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav-link:hover::after { width: 100%; }

/* services dropdown */
.has-dropdown { position: relative; padding: 10px 0; }
.has-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
/* transparent bridge so the cursor can travel into the menu without it closing */
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  min-width: 280px; max-height: 72vh; overflow-y: auto; padding: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown:hover .caret { transform: rotate(225deg) translateY(2px); }
.dropdown a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 9px; color: var(--ink); font-size: 14px; transition: background 0.2s ease; }
.dropdown a:hover { background: var(--bg); }
.dropdown a .d-price { color: var(--gold-deep); font-size: 12px; font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 18px; }
.phone-top { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 16px; }
.phone-top .ph-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; flex: none; }
.phone-top small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); line-height: 1; margin-bottom: 2px; }
.header.scrolled .phone-top small { color: var(--gold-deep); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; transition: 0.3s var(--ease); }
.header.scrolled .burger span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 55%, rgba(20,14,11,0.30) 0%, rgba(20,14,11,0.62) 75%),
    linear-gradient(180deg, rgba(20,14,11,0.45) 0%, rgba(20,14,11,0.30) 35%, rgba(20,14,11,0.72) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 90px; max-width: 900px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #f0d9a8; margin-bottom: 18px; }
.hero-brand { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); color: #fff; letter-spacing: 0.01em; margin-bottom: 8px; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero h1 { color: #fff; font-size: clamp(38px, 6.4vw, 80px); font-style: italic; font-weight: 600; line-height: 1.04; text-shadow: 0 3px 26px rgba(0,0,0,0.5); }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1; color: #f3c977; font-style: italic; font-weight: 700;
  text-shadow: 0 3px 26px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(40px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rotator > span.active { opacity: 1; transform: translateY(0); }
.rotator > span.exit { opacity: 0; transform: translateY(-40px); transition: opacity 0.4s ease, transform 0.4s ease; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.92); margin: 22px auto 8px; max-width: 560px; }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 30px; font-size: 14px; letter-spacing: 0.04em; }
.stars { color: var(--gold); letter-spacing: 2px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust badges ---------- */
.badges { background: var(--surface); }
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 54px 0; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px; border-radius: var(--radius); transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.badge:hover { transform: translateY(-6px); background: var(--bg); }
.badge .b-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--gold-deep); }
.badge:hover .b-ico { background: var(--gold); color: #fff; }
.badge span { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }

/* ---------- Feature band ---------- */
.feature { padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-imgs { position: relative; }
.feature-imgs .fi-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-imgs .fi-inset { position: absolute; right: -28px; bottom: -28px; width: 52%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--bg); }
.feature-body h2 { font-size: clamp(28px, 3.6vw, 44px); font-style: italic; font-weight: 500; margin: 14px 0 18px; }
.feature-body p { color: var(--ink-soft); font-size: 17px; margin-bottom: 28px; }

/* ---------- Services grid ---------- */
.services { padding: 100px 0; background: var(--surface); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-img { aspect-ratio: 16/11; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.07); }
.svc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.svc-from { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.svc-body h3 { font-size: 24px; font-style: italic; font-weight: 500; margin: 6px 0 10px; }
.svc-body p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.svc-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 12px; }
.svc-link { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.svc-link .arr { transition: transform 0.3s var(--ease); }
.svc-link:hover .arr { transform: translateX(5px); }
.svc-book { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); border: 1.5px solid var(--gold); border-radius: 999px; padding: 9px 16px; transition: 0.3s var(--ease); }
.svc-book:hover { background: var(--gold); color: #fff; }

/* ---------- Scroll-tilt showcase ---------- */
.showcase { padding: 60px 0 100px; }
.tilt-stage { perspective: 1400px; max-width: 980px; margin: 0 auto; }
.tilt-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--surface); transform: rotateX(18deg) scale(0.94); transform-origin: 50% 0%; will-change: transform; }
.tilt-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* ---------- Testimonials ---------- */
.reviews { padding: 100px 0; background: var(--espresso); color: #fff; }
.reviews .section-title, .reviews h2 { color: #fff; }
.reviews .eyebrow { color: var(--gold); }
.rev-stage { position: relative; max-width: 780px; margin: 40px auto 0; min-height: 280px; }
.rev-card {
  position: absolute; inset: 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 44px; text-align: center;
  opacity: 0; transform: translateX(60px) scale(0.96); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); pointer-events: none;
}
.rev-card.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.rev-card .q-stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; margin-bottom: 18px; }
.rev-card blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: #fff; }
.rev-meta { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.7); }
.rev-meta strong { color: #fff; font-weight: 600; }
.rev-dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.rev-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s var(--ease); }
.rev-dots button.active { width: 30px; background: var(--gold); }

/* ---------- Book CTA band ---------- */
.book-band { padding: 100px 0; }
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.book-grid img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.book-copy h2 { font-size: clamp(28px, 3.6vw, 44px); font-style: italic; font-weight: 500; margin: 14px 0 16px; }
.book-copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 28px; }

/* ---------- Calendar embed slot ---------- */
.booking { padding: 0 0 100px; }
.embed-slot { background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); min-height: 420px; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--ink-soft); }
.embed-slot .es-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.embed-slot code { background: var(--bg); padding: 3px 8px; border-radius: 6px; font-size: 13px; color: var(--ink); }

/* ---------- Hours + Map ---------- */
.visit { padding: 100px 0; background: var(--surface); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.hours-card { background: var(--bg); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.hours-card h3 { font-size: 28px; font-style: italic; font-weight: 500; margin-bottom: 8px; }
.hours-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours-row:last-of-type { border-bottom: 0; }
.hours-row .h-days { color: var(--ink); font-weight: 500; }
.hours-row .h-time { color: var(--ink-soft); }
.visit-contact { margin-top: 26px; display: grid; gap: 12px; }
.vc-row { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.vc-row .vc-ico { color: var(--gold-deep); flex: none; }
.map-slot { border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px dashed var(--gold); display: grid; place-items: center; text-align: center; color: var(--ink-soft); background: var(--bg); padding: 30px; }
.map-slot iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* when an embed is pasted in, drop the placeholder styling so the iframe/form shows cleanly */
.embed-slot.filled, .map-slot.filled { border: 0; padding: 0; display: block; min-height: 0; background: transparent; }
.embed-slot.filled iframe, .contact-band .embed-slot.filled iframe { width: 100%; min-height: 600px; border: 0; display: block; border-radius: var(--radius); }

/* ---------- Contact band ---------- */
.contact-band { padding: 100px 0; }
.contact-band .section-head p { margin-top: 14px; }
.form-card { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card iframe { width: 100% !important; height: 980px !important; min-height: 980px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: rgba(255,255,255,0.78); position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 80px 0 56px; }
.footer h4 { font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff; margin-bottom: 18px; font-weight: 500; }
.footer .f-about { font-size: 15px; line-height: 1.7; }
.footer .f-brand { font-family: var(--serif); font-style: italic; font-size: 26px; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { font-size: 15px; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer ul a:hover { color: var(--gold); }
.footer .f-contact .vc-row { color: rgba(255,255,255,0.78); }
.footer .f-contact .vc-ico { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; display: none; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,0.3); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.mobile-bar a.primary { background: var(--gold); color: #fff; }
.mobile-bar a svg { width: 20px; height: 20px; }

/* ---------- Mobile nav drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; background: var(--bg); transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column; padding: 24px; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer .d-sub { padding-left: 18px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Service-page specific ---------- */
.svc-hero { position: relative; min-height: 64vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.svc-hero .hero-bg::after { background: linear-gradient(180deg, rgba(36,27,22,0.5), rgba(36,27,22,0.7)); }
.svc-hero-inner { position: relative; z-index: 2; padding: 130px 24px 70px; max-width: 760px; }
.svc-hero h1 { color: #fff; font-size: clamp(34px, 5.5vw, 62px); font-style: italic; font-weight: 500; }
.svc-hero .price-pill { display: inline-block; margin: 18px 0 24px; padding: 8px 20px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); font-size: 14px; letter-spacing: 0.04em; }
.svc-detail { padding: 90px 0; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: start; }
.detail-body h2 { font-size: clamp(26px, 3vw, 38px); font-style: italic; font-weight: 500; margin-bottom: 16px; }
.detail-body p { color: var(--ink-soft); font-size: 17px; margin-bottom: 22px; }
.benefit-list { display: grid; gap: 14px; margin: 10px 0 0; }
.benefit-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.benefit-list .chk { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; }
.detail-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.detail-side .ds-price { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--ink); }
.detail-side .ds-price small { font-size: 15px; color: var(--ink-soft); font-style: normal; }
.detail-side .ds-meta { color: var(--ink-soft); font-size: 14px; margin: 6px 0 22px; }
.detail-side .btn { width: 100%; margin-bottom: 12px; }
.related { padding: 30px 0 100px; }

@media (max-width: 980px) {
  .feature-grid, .book-grid, .visit-grid, .detail-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-side { position: static; }
  .feature-imgs .fi-inset { right: 0; }
}

@media (max-width: 760px) {
  .nav, .header-right .phone-top, .header-right .btn { display: none; }
  .burger { display: flex; }
  .header-right { gap: 10px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); padding: 36px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 64px; }
  .tilt-card { transform: none !important; }
  .feature-imgs .fi-inset { position: static; width: 60%; margin: -40px 0 0 auto; }
}
