/* =============================================
   Mauka Massage — static site
   Tokens pulled directly from reference/design-tokens.json
   (Duda live-site computed styles, extracted 2026-07-07)
   ============================================= */

/* Fonts loaded via <link> in <head> (preconnect + parallel fetch), not @import here —
   @import creates a serial waterfall (HTML -> style.css -> discovers import -> fonts). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Brand Tokens ---------- */
:root {
  /* Palette — reference/design-tokens.json palette + design-brief.md */
  --color-text:        #2c2c2c; /* --color_1 */
  --color-cream:        #f4f0e9; /* --color_2 */
  --color-cream-light:  #fffbee; /* --color_3 */
  --color-tan:          #c3b89d; /* --color_4 */
  --color-teal:         #0d7377; /* --color_5 */
  --color-sage:         #5f6c62; /* --color_6, darkened from #9ba89c for WCAG AA text contrast */
  --color-gold:         #ac8459; /* --color_7 — decorative/large-text use (e.g. 32px logo) only */
  --color-gold-text:    #8f6a42; /* darker gold for small text + white-on-gold buttons/footer — WCAG AA */
  --color-amber:        #d4a574; /* --color_8 */

  --font-heading: 'Poppins', Georgia, serif;
  --font-body:    'Inter', system-ui, Arial, sans-serif;

  --max-width: 1200px;
}

/* ---------- Base ---------- */
body {
  background: var(--color-cream-light);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }

p { letter-spacing: -0.03em; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream-light);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 32px;
  color: var(--color-gold);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-gold-text);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }


.btn-teal {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-teal:hover { opacity: 0.88; }
.btn-teal:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hamburger + Nav Drawer ---------- */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-btn svg { width: 26px; height: 26px; fill: var(--color-text); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 90vw;
  background: var(--color-cream-light);
  z-index: 201;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-open .nav-drawer  { transform: translateX(0); }

.nav-drawer .close-btn {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.nav-drawer .close-btn svg { width: 16px; height: 16px; fill: var(--color-text); }

.nav-drawer-image { width: 100%; height: 240px; flex-shrink: 0; }
.nav-drawer-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-drawer-content { padding: 28px; display: flex; flex-direction: column; flex: 1; }

.nav-drawer-info h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}
.nav-drawer-info p { font-size: 15px; color: var(--color-text); margin-bottom: 6px; }
.nav-drawer-info a { color: var(--color-text); }
.nav-drawer-info a:hover { color: var(--color-teal); }

.nav-drawer-divider { border: none; border-top: 1px solid var(--color-tan); margin: 24px 0; }

.nav-drawer-buttons { display: flex; flex-direction: column; gap: 14px; }
.nav-drawer-buttons a { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 170px 24px 200px;
  text-align: center;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-teal);
  opacity: 0.75;
  z-index: -1;
}
.hero-content { max-width: 760px; margin: 0 auto; position: relative; }
.hero .eyebrow { color: #fff; }
.hero h1 {
  font-size: 78px;
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 36px;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: auto;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg { display: block; width: 100%; height: 90px; transform: scaleY(-1); }

/* Contact page hero — gold overlay (not teal), shorter, no wave divider */
.hero--contact { padding: 140px 24px 170px; }
.hero--contact::before { background: var(--color-gold); opacity: 0.5; }
.hero--contact h1 { margin-bottom: 0; }
.hero-wave path { fill: var(--color-cream-light); }

/* ---------- About ---------- */
.about {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  background: var(--color-cream-light);
}
/* Botanical watermark — right side, bleeding off the section edge, muted under a cream scrim.
   Source art (leaves-left.webp) is drawn facing left, so it's mirrored to face into the section. */
.about::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 460px;
  height: 100%;
  transform: scaleX(-1);
  background:
    linear-gradient(rgba(255, 251, 238, 0.75), rgba(255, 251, 238, 0.75)),
    url('/images/leaves-left.webp') right center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.about-image { position: relative; }
.about-image::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #d4a574, #0d7377);
  opacity: 0.7;
  border-radius: 4px;
  z-index: 0;
}
.about-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}
.about-copy h2 { color: var(--color-teal); font-size: 40px; font-weight: 300; margin-bottom: 20px; }
.about-copy p { margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }

/* Section accent icons (About, Closing) */
.section-icon { display: block; width: 56px; height: 56px; margin-bottom: 16px; }
.closing .section-icon { margin-left: auto; margin-right: auto; }

/* ---------- Services ---------- */
.services {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  background: var(--color-cream-light);
}
/* Botanical watermark — left side, bleeding off the section edge, muted under a cream scrim */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 460px;
  height: 100%;
  background:
    linear-gradient(rgba(255, 251, 238, 0.75), rgba(255, 251, 238, 0.75)),
    url('/images/leaves-left.webp') left center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.services-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.services h2 { color: var(--color-teal); font-size: 40px; font-weight: 300; text-align: center; }
.pricing-line { text-align: center; font-size: 18px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; }
.cash-note { text-align: center; font-size: 14px; font-style: italic; color: var(--color-sage); margin-bottom: 36px; }
.services h3.services-subhead {
  text-align: center; color: var(--color-teal);
  font-size: 32px; font-weight: 700; margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-grid--second-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}
.service-grid--second-row .service-card { width: calc((100% - 64px) / 3); }
.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.service-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.service-card-body { padding: 20px 22px 26px; }
.service-card h3 { color: var(--color-teal); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 16px; line-height: 1.6; }

/* ---------- Add-Ons (layered: photo + teal overlay) ---------- */
.addons {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 24px;
  text-align: center;
  color: #fff;
}
.addons-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.addons::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-teal);
  opacity: 0.76;
  z-index: -1;
}
.addons .eyebrow { color: #fff; }
.addons h2 { color: #fff; font-size: 40px; font-weight: 300; }
.addons .section-intro { color: #fff; }
.addons h3.addons-subhead { color: #fff; font-size: 32px; font-weight: 700; margin-bottom: 36px; }

.addons-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.addon-icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; }
.addon-item h4 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.addon-item p { font-family: var(--font-body); font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 8px; min-height: 3.4em; }
.addon-item .price { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: #fff; }

.section-wave { position: absolute; left: 0; right: 0; width: 100%; line-height: 0; z-index: 1; }
.section-wave svg { display: block; width: 100%; height: 70px; }
.section-wave--top { top: -1px; }
.section-wave--bottom { bottom: -1px; }
.section-wave--bottom svg { transform: scaleY(-1); }
.section-wave.fill-cream path { fill: var(--color-cream-light); }

/* ---------- CTA Relax (copy + gallery) ---------- */
.cta-relax {
  padding: 96px 24px;
  background: var(--color-cream-light);
}
.cta-relax-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.cta-relax h2 { color: var(--color-teal); font-size: 40px; font-weight: 300; margin-bottom: 16px; }
.cta-relax p { margin-bottom: 20px; }
.cta-relax .info-label { font-weight: 600; color: var(--color-text); margin-bottom: 2px; }
.cta-relax .info-value { margin-bottom: 16px; }
.cta-relax .info-value a { color: var(--color-teal); }

/* Image slider — off-white frame around a single visible slide */
.image-slider {
  background: var(--color-cream-light);
  padding: 14px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}
.slider-slide { flex: 0 0 100%; height: 100%; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.slider-dot {
  width: 28px; height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-dot::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active::after { background: #fff; transform: scale(1.2); }

/* ---------- Contact page: intro copy + form ---------- */
.contact-main {
  padding: 96px 24px;
  background: var(--color-cream-light);
}
.contact-main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-main-copy { text-align: left; }
.contact-main h2 { color: var(--color-teal); font-size: 40px; font-weight: 300; margin-bottom: 20px; }
.contact-main-copy p { margin-bottom: 20px; }
.contact-main .cash-note { text-align: left; font-style: italic; color: var(--color-sage); margin-bottom: 0; }

.contact-form {
  text-align: left;
  background: var(--color-cream-light);
  border: 1.5px solid var(--color-tan);
  padding: 40px;
  border-radius: 6px;
}
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-label .required { color: var(--color-gold); }
.form-input,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--color-tan);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-text);
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--color-teal); }
.form-textarea { min-height: 120px; resize: vertical; }

.form-submit-wrap { text-align: left; margin-top: 8px; }
.form-submit { width: auto; }
.form-msg { text-align: left; margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-msg.error { color: #c00; }

.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.visible { display: block; }
.form-success p {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-teal);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Closing CTA band (layered: dark photo) ---------- */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 24px;
  text-align: center;
  color: #fff;
}
.closing-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.closing::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-text);
  opacity: 0.85;
  z-index: -1;
}
.closing h2 { color: #fff; font-size: 40px; font-weight: 300; margin-bottom: 16px; }
.closing p { max-width: 560px; margin: 0 auto 32px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-gold-text); color: #fff; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  font-size: 15px;
  color: #fff;
  line-height: 1.9;
  display: block;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-desc { margin-top: 16px; }

.footer-bottom {
  background: var(--color-text);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ---------- 404 Page ---------- */
.not-found {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--color-text); margin-bottom: 16px; }
.not-found p { font-size: 1.1rem; color: #555; margin-bottom: 32px; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .hero { padding: 90px 20px 110px; }
  .hero h1 { font-size: 44px; }
  .hero-wave svg { height: 44px; }
  .section-wave svg { height: 32px; }

  .about-inner,
  .cta-relax-inner,
  .contact-main-inner { grid-template-columns: 1fr; gap: 36px; }
  .about { padding-bottom: 48px; }
  .services { padding-top: 48px; }
  .about::after { width: 240px; right: -70px; }
  .services::before { width: 240px; left: -70px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid--second-row .service-card { width: calc((100% - 32px) / 2); }
  .addons-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px 32px; }
}

@media (max-width: 560px) {
  .site-header { padding: 16px 20px; }
  .hero h1 { font-size: 34px; }
  .hero-wave svg { height: 32px; }
  .section-wave svg { height: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid--second-row { flex-direction: column; }
  .service-grid--second-row .service-card { width: 100%; }
  .addons-grid { grid-template-columns: 1fr; }
  .services::before { display: none; }
  .about::after { display: none; }
}
