/* ==========================================================
   THE EDGE MASSAGE & BODYWORK — styles
   Colors live in the :root block below. Change them there and
   the whole site updates.
   ========================================================== */

:root {
  --cream: #fcf6f3;
  --mist: #e9e4e1;
  --blush: #f3d1e0;      /* soft pink */
  --pink: #ebb5d2;       /* brighter pink accent */
  --sand: #d3a992;
  --tan: #b58b72;
  --cocoa: #8a6252;      /* main brand brown */
  --text-soft: #7a5546;  /* brown for small text (dark enough to read easily) */
  --deep: #4b3329;       /* body text */
  --gold: linear-gradient(135deg, #9a6a47 0%, #8a6252 45%, #946a54 100%);  /* white text stays readable on it */

  --radius: 28px;
  --shadow: 0 10px 40px rgba(138, 98, 82, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--deep);
  background:
    radial-gradient(1200px 600px at 15% -10%, #f3e9dc 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 20%, #d3b8a0 0%, transparent 55%),
    #e6d6c4;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Water background (drawn by js/water.js) sits behind everything */
#ripples {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #e6d6c4;
}
header, main, footer, .book-bar { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-soft); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(243, 233, 220, 0.8);
  border-bottom: 1px solid rgba(181, 139, 114, 0.2);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--deep);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s;
}
.nav a:hover { background: var(--blush); }
.nav a[aria-current="page"] { background: var(--blush); color: var(--deep); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--gold);
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(138, 98, 82, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(138, 98, 82, 0.45); }
.btn-small { padding: 9px 20px; font-size: 0.92rem; }
.btn-big { padding: 20px 48px; font-size: 1.25rem; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1.5px var(--tan);
}
.btn-ghost:hover { background: #fff; }

/* Gentle pulsing ring on the main booking button, like a ripple */
.btn-pulse::before, .btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--pink);
  opacity: 0;
  animation: pulse 3.2s ease-out infinite;
}
.btn-pulse::after { animation-delay: 1.6s; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35, 1.7); opacity: 0; }
}

/* ---------- Home hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.hero .logo { width: min(520px, 86%); margin: 0 auto 8px; }
.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  color: var(--cocoa);
  margin: 12px auto 28px;
  max-width: 28ch;
}
.hero .sub { margin-top: 18px; color: var(--deep); font-size: 0.98rem; }
.hero .sub a { font-weight: 500; }

/* ---------- Wave divider ---------- */
/* The wave stays fixed along the bottom of the screen while scrolling,
   behind the page content. */
.wave {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  pointer-events: none;
}
.wave path { fill: rgba(235, 181, 210, 0.6); }   /* top wave: pink highlight */
.wave path:nth-child(2) { fill: rgba(150, 108, 88, 0.55); }   /* bottom wave: brown */

/* ---------- Sections & cards ---------- */
section { padding: 48px 0; }
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(181, 139, 114, 0.28);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .big {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--cocoa);
}
.card .big small { font-size: 1.1rem; font-family: var(--font-body); color: var(--text-soft); }
.muted { color: var(--text-soft); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.blob {
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.8);
  max-width: 340px;
  margin-inline: auto;
}
.blob img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Photo on the home page: smaller, arched like the original site */
.scene { margin: 0 auto; max-width: 560px; }
.scene img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  object-position: 80% 40%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.85);
}
.scene figcaption { margin-top: 10px; text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-soft); }

/* Find us: map + directions */
.find { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.6);
  aspect-ratio: 4 / 3;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.steps { counter-reset: step; list-style: none; margin: 0 0 20px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 12px 40px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blush); color: var(--deep);
  font-weight: 500; font-size: 0.9rem; line-height: 28px; text-align: center;
}
.find .btn { margin: 0 8px 8px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--pink);
  color: var(--cocoa);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.95rem;
}

.cta-band {
  text-align: center;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 24px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--cocoa); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* ---------- Meet Eddy ---------- */
.eddy-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  max-width: 440px;
  margin-inline: auto;
}
.arch img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
.awards { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--pink); }
.awards li { position: relative; padding: 0 0 22px 28px; }
.awards li::before {
  content: "";
  position: absolute;
  left: -7px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cocoa);
  box-shadow: 0 0 0 4px var(--blush);
}
.awards .year { font-family: var(--font-display); font-size: 1.6rem; color: var(--cocoa); line-height: 1; }
.awards .what { margin: 4px 0 0; }
.awards .what small { display: block; color: var(--text-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Policies ---------- */
details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(181, 139, 114, 0.28);
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(138, 98, 82, 0.08);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 24px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--tan);
  transition: transform 0.25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details .body { padding: 0 24px 20px; }
details .body p:last-child { margin-bottom: 0; }

/* ---------- Reviews ---------- */
.review-grid { columns: 300px; column-gap: 20px; }
.review { margin: 0 0 20px; break-inside: avoid; padding: 24px; }
.review .stars { color: var(--tan); letter-spacing: 0.2em; margin-bottom: 8px; }
.review blockquote { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.4; }
.review figcaption { color: var(--text-soft); font-size: 0.9rem; }
.review-more { text-align: center; padding: 20px 0 0; }
.empty { text-align: center; padding: 48px 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 110px; text-align: center; color: var(--text-soft); font-size: 0.95rem; }
.site-footer img { height: 64px; width: auto; margin: 0 auto 12px; }
.site-footer p { margin: 0 0 6px; }

/* ---------- Sticky book bar (phones only) ---------- */
.book-bar { display: none; }

/* ---------- Page intro heading ---------- */
.page-head { text-align: center; padding: 48px 0 8px; }

/* ---------- Phones & tablets ---------- */
@media (max-width: 820px) {
  body { font-size: 1rem; }
  .cards, .split, .eddy-intro, .two-col, .find { grid-template-columns: 1fr; }
  .scene { max-width: min(420px, 92%); }
  .wave { bottom: calc(var(--bar-h, 80px) + env(safe-area-inset-bottom)); }
  .split, .eddy-intro, .find { gap: 28px; }
  .eddy-intro { padding-top: 28px; }
  .hero { padding-top: 32px; }

  .site-header .wrap { flex-direction: column; gap: 4px; padding: 8px 0 6px; }
  .brand img { height: 46px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { flex: 1; text-align: center; padding: 8px 4px; font-size: 0.86rem; letter-spacing: 0.02em; }
  .site-header .btn-small { display: none; }  /* the bottom bar takes over */

  .book-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243, 233, 220, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(181, 139, 114, 0.25);
  }
  .book-bar .btn { display: block; text-align: center; padding: 15px; font-size: 1.1rem; }
  .btn-big { padding: 18px 36px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-pulse::before, .btn-pulse::after { animation: none; }
}
