/*
Theme Name: Massage Magic
Theme URI: https://www.massagemagicjax.com/
Author: Massage Magic
Description: Custom theme for the Massage Magic studio in Saint Johns, Florida.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: massage-magic
*/

:root {
  --ink: #1c1915;
  --muted: #4a453c;
  --paper: #f6f2eb;
  --paper-2: #ebe4d8;
  --card: #fffcf8;
  --blue: #1a3f73;
  --blue-dark: #122c52;
  --line: #ddd4c6;
  --sand: #e7d8c4;
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
p { margin: 0 0 1rem; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1rem 1rem;
}
.nav a {
  display: block;
  padding: 0.7rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-toggle:checked ~ .nav { display: block; }
.header-cta { display: none; }

.btn, .btn-ghost, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn { background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.hero {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem 0 2.4rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 12ch; }
.lede { font-size: 1.12rem; max-width: 38rem; color: var(--muted); }
.hero-photo { margin: 0; }
.hero-photo img, .frame img {
  width: 100%;
  border-radius: 1.2rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-photo img { aspect-ratio: 16/10; }
.photo-natural img,
.photo-natural video {
  aspect-ratio: auto;
  object-fit: contain;
  background: #e7efe8;
  max-height: 720px;
}
.gallery {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}
.gallery .frame + .frame { margin-top: 0; }
.caption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.band { padding: 2.6rem 0; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-lead { max-width: 40rem; color: var(--muted); }

.reasons, .modalities, .split, .price-grid {
  display: grid;
  gap: 0.9rem;
}
.reason, .modality, .price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
}
.band-white .reason, .band-white .price { background: var(--paper); }
.reason h3, .modality h3, .price h3 { font-size: 1.25rem; }
.reason p, .modality p, .price p { margin: 0; color: var(--muted); }
.price p { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; color: var(--ink); }
.price p span { color: var(--muted); }
.price strong { font-size: 1.35rem; }

.modalities { margin-top: 1rem; }
.modality { background: var(--paper); }

.split { align-items: center; }
.frame { margin: 0; }
.frame + .frame { margin-top: 0.9rem; }
.review-clip { max-width: 380px; }
.review-clip video { width: 100%; border-radius: 1.2rem; background: #e7efe8; }
.frame img { aspect-ratio: 4/3; }

.hours { list-style: none; padding: 0; margin: 0 0 1rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.page-head { padding: 2.2rem 0 0.4rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.prose { width: min(760px, 100%); padding-bottom: 3rem; }
.prose h2 { margin-top: 2rem; font-size: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose .price-grid { width: min(760px, 100%); margin: 1rem 0 1.4rem; }

.site-footer {
  background: var(--blue-dark);
  color: #efe8dc;
  padding: 2.4rem 0 1.4rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.4rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; }
.fine { color: #c9bfb0; font-size: 0.88rem; margin-top: 1.4rem; }

@media (min-width: 860px) {
  .nav-burger { display: none; }
  .nav {
    display: flex;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 0.15rem;
    margin-left: auto;
  }
  .nav a {
    border: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.98rem;
  }
  .header-cta { display: flex; gap: 0.6rem; align-items: center; }
  .header-cta .phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 2.5rem 0 3.2rem; }
  .hero-photo img { aspect-ratio: 16/11; min-height: 420px; }
  .hero-photo.photo-natural img { aspect-ratio: auto; min-height: 0; max-height: 640px; }
  .gallery { grid-template-columns: 1.15fr 1fr 0.72fr; }
  .reasons, .price-grid { grid-template-columns: repeat(3, 1fr); }
  .modalities { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
