/* ==========================================================================
   SUNBABY Spa & Massage — Main stylesheet
   Palette: #ff7105 (brand orange) · #171616 (ink) · #ffffff (surface)
   Typeface: Raleway
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --brand: #ff7105;
  --brand-dark: #d95d00;
  --brand-soft: #fff3e9;
  --ink: #171616;
  --ink-soft: #4a4646;
  --muted: #8b8585;
  --line: #e8e3e0;
  --surface: #ffffff;
  --surface-alt: #faf8f7;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(23, 22, 22, 0.06);
  --shadow: 0 12px 32px rgba(23, 22, 22, 0.10);

  --wrap: 1180px;
  --header-h: 84px;

  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

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

.section { padding: 84px 0; }
.section--alt { background: var(--surface-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

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

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

.btn--sm { padding: 10px 20px; font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   4. Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 10px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand); }
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { flex: none; width: 15px; height: 15px; fill: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand__tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__menu a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.nav__menu a:hover { color: var(--brand); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__social img { width: 26px; height: 26px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88vh, 760px);
  padding: 96px 0;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23,22,22,0.72) 0%, rgba(23,22,22,0.60) 45%, rgba(23,22,22,0.86) 100%);
}
.hero__inner { max-width: 860px; margin-inline: auto; }
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; text-transform: uppercase; }
.hero__sub {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.86);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__cta .btn { flex-direction: column; gap: 2px; }
.hero__cta small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: none;
}

.chat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.chat-row__label { color: rgba(255,255,255,0.8); text-transform: uppercase; }
.chat-row a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.chat-row a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.24); }
.chat-row img { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   6. Stats
   -------------------------------------------------------------------------- */
.stats { background: var(--ink); color: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0;
  text-align: center;
}
.stat__value {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stat__label {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.service-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card__duration {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(23,22,22,0.82);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.service-card__body h3 { margin-bottom: 4px; font-size: 1.02rem; line-height: 1.35; }
.service-card__ko {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
}
.service-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.service-card__price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.service-card__price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   8. Offer banner
   -------------------------------------------------------------------------- */
.offer {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}
.offer__media { position: relative; min-height: 340px; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow);
}
.offer__badge small { display: block; font-size: 0.6rem; letter-spacing: 0.12em; margin-top: 4px; }

.offer__body { padding: 52px 48px; align-self: center; }
.offer__body .eyebrow { background: rgba(255, 255, 255, 0.12); color: #fff; }
.offer__body h2 { color: #fff; text-transform: uppercase; }
.offer__body p { color: rgba(255,255,255,0.78); max-width: 46ch; }

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 190px);
  gap: 16px;
}
.about__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__gallery img:first-child { grid-row: span 2; height: 100%; }
.about__ko {
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__item.is-open { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--brand); }
.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__a p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__list { margin: 0; padding: 0; list-style: none; }
.contact__list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.contact__ico svg { width: 19px; height: 19px; fill: var(--brand); }
.contact__list strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--brand); }

.contact__map {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 380px;
}
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
  font-size: 0.94rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--brand); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.footer__brand:hover { color: #fff; }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer__brand span { font-weight: 800; font-size: 1.05rem; color: #fff; }

.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li { margin-bottom: 10px; }

.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.footer__social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__social img { width: 22px; height: 22px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.86rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* --------------------------------------------------------------------------
   13. Legal pages
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); margin: 0; }

.legal { max-width: 820px; margin-inline: auto; }
.legal h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 26px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; margin: 0 0 1rem; }
.legal li { margin-bottom: 8px; }

.legal__toc {
  padding: 24px 28px;
  margin-bottom: 44px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal__toc h2 { margin: 0 0 14px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal__toc li { margin-bottom: 8px; break-inside: avoid; }

.legal__note {
  padding: 20px 24px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal__note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}
.chat-fab:hover { background: var(--brand-dark); color: #fff; }
.chat-fab svg { width: 18px; height: 18px; fill: currentColor; }
.chat-fab.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* --------------------------------------------------------------------------
   15. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .offer { grid-template-columns: 1fr; }
  .offer__body { padding: 40px 32px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { display: block; padding: 14px 0; }

  .nav__actions .btn { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 44px 0; }
  .section { padding: 64px 0; }
  .topbar__inner { justify-content: center; text-align: center; }
  .about__gallery { grid-template-rows: repeat(2, 150px); }
  .legal__toc ol { columns: 1; }
  /* Revealed once the hero is scrolled past, so it never covers the chat icons. */
  .chat-fab {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 0.95rem; }
  .hero { min-height: 0; padding: 72px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .offer__body { padding: 32px 24px; }
  .offer__badge { width: 76px; height: 76px; font-size: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 130px); }
  .services__grid { gap: 20px; }
}
