/* =============================================================================
   STS Body Works: styles for the one-page website concept.
   Mobile-first. Colors come from Negros sugar and coconut oil: muscovado brown,
   gata cream, clay, banana leaf and a warm amber like massage oil in the light.
   Fonts: Young Serif (display), Figtree (text).

   Contents
     1. Colors and fonts
     2. Base
     3. Buttons and notes
     4. Header
     5. Hero (oil drop and ripples)
     6. Where does it hurt? (body map)
     7. Massage menu (menu board)
     8. Home service
     9. Your first visit
    10. FAQ
    11. Find us
    12. Footer
    13. Motion
   ============================================================================= */


/* 1. Colors and fonts ------------------------------------------------------- */

:root {
  --muscovado: #2E1D14;     /* dark bands and body text: 14.3:1 on gata */
  --muscovado-2: #4A3226;   /* raised surfaces on dark bands */
  --gata: #F7F0E6;          /* page background */
  --gata-deep: #EFE3D2;
  --paper: #FFFBF5;         /* cards on gata */
  --line: #E3D2BD;
  --clay: #A9462A;          /* buttons and links: 5.2:1 on gata, white on clay 5.8:1 */
  --clay-deep: #8C3820;
  --leaf: #35594A;          /* headings, home-service band: 6.9:1 on gata */
  --leaf-deep: #284638;
  --amber: #E9B35F;         /* text on muscovado only (8.5:1); shapes elsewhere */
  --ink-soft: #6B5547;      /* muted text on gata: 6.2:1 */
  --cream-soft: #D9C7B3;    /* muted text on muscovado: 9.8:1 */

  --focus: var(--clay);

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
}


/* 2. Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--gata);
  color: var(--muscovado);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

img,
svg,
iframe {
  max-width: 100%;
}

a {
  color: var(--clay);
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

section {
  padding-block: 4rem;
}

.section-title {
  color: var(--leaf);
  font-size: clamp(2rem, 6vw, 2.875rem);
}

.section-lead {
  max-width: 40rem;
  margin-top: .75rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  border-radius: 0 0 12px 12px;
  background: var(--amber);
  color: var(--muscovado);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}


/* 3. Buttons and notes ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .5rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-small {
  min-height: 44px;
  padding: .4rem 1.1rem;
  font-size: 1rem;
}

.btn-clay {
  background: var(--clay);
  color: #fff;
}

.btn-clay:hover {
  background: var(--clay-deep);
}

/* Outline button on dark bands */
.btn-ghost {
  border-color: var(--cream-soft);
  color: var(--gata);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Outline button on light bands */
.btn-outline {
  border-color: var(--clay);
  color: var(--clay);
}

.btn-outline:hover {
  background: var(--clay);
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.sample-note {
  display: inline-block;
  margin-top: .5rem;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--gata-deep);
  color: var(--muscovado);
  font-size: .875rem;
  font-weight: 600;
}


/* 4. Header ----------------------------------------------------------------- */

.site-header {
  --focus: var(--amber);
  background: var(--muscovado);
  color: var(--gata);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: .9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  color: var(--gata);
  text-decoration: none;
}

.brand-mark {
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.brand-sub {
  color: var(--cream-soft);
  font-size: .8125rem;
  letter-spacing: .02em;
}

/* On phones the nav is a scrollable strip under the brand row. */
.site-nav {
  order: 3;
  width: 100%;
  margin-inline: -.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .75rem;
  border-radius: 999px;
  color: var(--gata);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--muscovado-2);
  color: var(--amber);
}

/* Small phones: the brand and the button don't fit on one row, and the hero's
   Messenger button is right below anyway. */
.header-cta {
  display: none;
}

@media (min-width: 30rem) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 64rem) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-inline: 0;
    overflow: visible;
  }
}


/* 5. Hero (oil drop and ripples) -------------------------------------------- */

.hero {
  --focus: var(--amber);
  position: relative;
  overflow: hidden;
  padding-block: 2.5rem 3.5rem;
  background: var(--muscovado);
  color: var(--gata);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: .75rem;
  color: var(--amber);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .02em;
}

.hero-title {
  color: var(--gata);
  font-size: clamp(3.25rem, 13vw, 6rem);
  line-height: .95;
}

.hero-title span {
  display: block;
  color: var(--amber);
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  color: var(--cream-soft);
  font-size: 1.1875rem;
}

.hours {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--cream-soft);
  font-size: 1rem;
}

.hours strong {
  color: var(--gata);
}

.hero-art {
  margin: 0;
  justify-self: center;
  width: min(100%, 18rem);
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 52rem) {
  .hero {
    padding-block: 4rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
  }

  .hero-art {
    width: 100%;
    max-width: 30rem;
  }
}


/* 6. Where does it hurt? (body map) ----------------------------------------- */
/* Hovering or focusing an item in the list lights its zone and pin on the figure,
   using :has(). Without :has() the list and the numbers still match. */

.bodymap {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.bodymap-figure {
  margin: 0;
  padding: 1.5rem 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(233, 179, 95, .14), transparent 60%),
    var(--leaf);
  text-align: center;
}

.bodymap-figure svg {
  width: min(100%, 15rem);
  height: auto;
}

.zone {
  opacity: 0;
  transition: opacity .3s;
}

.pin {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .25s;
}

.pin-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  opacity: .6;
}

.pin-dot {
  fill: var(--clay);
  stroke: var(--gata);
  stroke-width: 3;
  transition: fill .25s;
}

.pin text {
  fill: #fff;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}

.areas {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s, background-color .2s;
}

.area h3 {
  color: var(--muscovado);
  font-size: 1.3125rem;
}

.area p {
  margin: .35rem 0 .5rem;
  color: var(--ink-soft);
}

.area-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-weight: 700;
}

.area-link {
  font-weight: 700;
}

.area-link::after {
  content: "\00a0→";  /* no-break space keeps the arrow with the last word */
}

/* The whole card is the link's tap target; the card shows the focus ring. */
.area-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.area-link:focus-visible {
  outline: none;
}

.area:hover,
.area:focus-within {
  border-color: var(--clay);
  background: #FFF3E3;
}

.area:focus-within {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.area-all .area-num {
  background: var(--amber);
  color: var(--muscovado);
}

.bodymap:has(.area-1:hover, .area-1:focus-within) .zone-1,
.bodymap:has(.area-2:hover, .area-2:focus-within) .zone-2,
.bodymap:has(.area-3:hover, .area-3:focus-within) .zone-3,
.bodymap:has(.area-4:hover, .area-4:focus-within) .zone-4,
.bodymap:has(.area-5:hover, .area-5:focus-within) .zone-5 {
  opacity: .8;
}

.bodymap:has(.area-all:hover, .area-all:focus-within) .zone {
  opacity: .45;
}

.bodymap:has(.area-1:hover, .area-1:focus-within) .pin-1,
.bodymap:has(.area-2:hover, .area-2:focus-within) .pin-2,
.bodymap:has(.area-3:hover, .area-3:focus-within) .pin-3,
.bodymap:has(.area-4:hover, .area-4:focus-within) .pin-4,
.bodymap:has(.area-5:hover, .area-5:focus-within) .pin-5 {
  transform: scale(1.25);
}

@media (min-width: 52rem) {
  .bodymap {
    grid-template-columns: minmax(16rem, .8fr) 1.2fr;
    gap: 3rem;
  }

  .bodymap-figure {
    position: sticky;
    top: 1.5rem;
    padding: 2rem;
  }

  .bodymap-figure svg {
    width: min(100%, 17rem);
  }

  .areas {
    grid-template-columns: 1fr 1fr;
  }
}


/* 7. Massage menu (menu board) ---------------------------------------------- */

.menu {
  --focus: var(--amber);
  background: var(--muscovado);
  color: var(--gata);
}

.menu .section-title {
  color: var(--amber);
}

.menu .section-lead {
  color: var(--cream-soft);
}

.menu .sample-note {
  background: var(--muscovado-2);
  color: var(--amber);
}

.menu-board {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  padding: 1.25rem 1rem;
  margin-inline: -1rem;
  border-bottom: 1px dashed rgba(233, 179, 95, .35);
  border-radius: 14px;
  scroll-margin-top: 1rem;
  transition: background-color .3s;
}

/* Reached from the body map: highlight the suggested massage. */
.dish:target {
  background: var(--muscovado-2);
  box-shadow: inset 0 0 0 2px var(--amber);
}

.dish-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.dish h3 {
  color: var(--gata);
  font-size: 1.4375rem;
}

.leader {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted rgba(217, 199, 179, .45);
  transform: translateY(-.3em);
}

.dish-price {
  margin: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.dish > p {
  margin: .5rem 0 .75rem;
  color: var(--cream-soft);
}

.addon-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--muscovado);
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: .2rem .75rem;
  border: 1px solid rgba(233, 179, 95, .5);
  border-radius: 999px;
  color: var(--gata);
  font-size: .9375rem;
  font-weight: 600;
}

.menu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--muscovado-2);
}

.menu-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

@media (min-width: 52rem) {
  .menu-board {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
}


/* 8. Home service ----------------------------------------------------------- */

.home {
  --focus: var(--amber);
  background: var(--leaf);
  color: var(--gata);
}

.home .section-title {
  color: var(--gata);
}

.home .section-lead {
  color: var(--gata);
}

.home .sample-note {
  background: var(--leaf-deep);
  color: var(--gata);
}

.home-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.home-lists {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.home-lists h3 {
  margin-bottom: .75rem;
  font-size: 1.375rem;
}

/* Bullets shaped like a drop of oil. */
.drops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drops li {
  position: relative;
  margin-bottom: .6rem;
  padding-left: 1.6rem;
}

.drops li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: .15rem;
  width: .65rem;
  height: .65rem;
  border-radius: 0 50% 50% 50%;
  background: var(--amber);
  transform: rotate(45deg);
}

.home-map {
  margin: 0;
  justify-self: center;
  width: min(100%, 18rem);
}

.home-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-sea {
  fill: #C3DABD;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.map-label {
  fill: var(--gata);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
}

.map-label-home {
  fill: var(--amber);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.map-note {
  fill: var(--gata);
  font-family: var(--font-text);
  font-size: 13px;
  opacity: .85;
}

@media (min-width: 52rem) {
  .home-grid {
    grid-template-columns: 1.4fr .6fr;
    gap: 4rem;
  }

  .home-lists {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .home-map {
    width: 100%;
  }
}


/* 9. Your first visit ------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 1.25rem;
  border-top: 2px dashed var(--line);
}

.step-num {
  display: block;
  margin-bottom: .5rem;
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.step h3 {
  margin-bottom: .5rem;
  color: var(--muscovado);
  font-size: 1.3125rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* 10. FAQ ------------------------------------------------------------------- */

.faq {
  background: var(--gata-deep);
}

.faq .sample-note {
  background: var(--gata);
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: .75rem;
}

.faq details {
  border-radius: 16px;
  background: var(--paper);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: .85rem 3.25rem .85rem 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gata-deep);
  color: var(--clay);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .faq-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 3rem;
  }
}


/* 11. Find us --------------------------------------------------------------- */

.find-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.find address {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  font-style: normal;
  line-height: 1.5;
}

.find-hours {
  display: grid;
  gap: .5rem;
  margin: 1.5rem 0 2rem;
}

.find-hours div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

.find-hours dt {
  color: var(--leaf);
  font-weight: 700;
}

.find-hours dd {
  margin: 0;
}

.map iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gata-deep);
}

@media (min-width: 52rem) {
  .find-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
  }

  .map iframe {
    height: 26rem;
  }
}


/* 12. Footer ---------------------------------------------------------------- */

.site-footer {
  --focus: var(--amber);
  padding-block: 3rem 1.5rem;
  background: var(--muscovado);
  color: var(--cream-soft);
}

.site-footer a {
  color: var(--gata);
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-line {
  margin-bottom: .5rem;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--muscovado-2);
  font-size: .9375rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}


/* 13. Motion ---------------------------------------------------------------- */
/* Only for visitors who haven't asked their device to reduce motion. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: ripple 7s ease-out infinite;
  }

  .ripple-2 { animation-delay: -1.75s; }
  .ripple-3 { animation-delay: -3.5s; }
  .ripple-4 { animation-delay: -5.25s; }

  .drop {
    animation: float 6s ease-in-out infinite;
  }

  .pin-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2.8s ease-out infinite;
  }

  .pin-2 .pin-ring { animation-delay: -.6s; }
  .pin-3 .pin-ring { animation-delay: -1.2s; }
  .pin-4 .pin-ring { animation-delay: -1.8s; }
  .pin-5 .pin-ring { animation-delay: -2.4s; }
}

@keyframes ripple {
  0%   { transform: scale(.35); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: scale(1.1); opacity: 0; }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%   { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
