/* ===== SABAI THAI WELLNESS — FRESH & MODERN MINIMAL ===== */

/* Theme 1: Soft Coral (default) */
:root,
[data-theme="coral"] {
  --color-primary: #E8836B;
  --color-primary-light: #F0A090;
  --color-primary-dark: #D06A52;
  --color-secondary: #2D2D2D;
  --color-accent: #FFF0EC;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FFF8F6;
  --color-text: #1E1E1E;
  --color-text-muted: #8A8A8A;
  --color-text-on-primary: #FFFFFF;
  --color-border: #F0E0DB;
}

/* Theme 2: Sky Blue */
[data-theme="sky"] {
  --color-primary: #4BA3C7;
  --color-primary-light: #7AC0DB;
  --color-primary-dark: #3688A8;
  --color-secondary: #1E2D36;
  --color-accent: #EBF6FB;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4FAFE;
  --color-text: #1E1E1E;
  --color-text-muted: #8A8A8A;
  --color-text-on-primary: #FFFFFF;
  --color-border: #D4E8F0;
}

/* Theme 3: Sage */
[data-theme="sage"] {
  --color-primary: #7BA68C;
  --color-primary-light: #9CC0A8;
  --color-primary-dark: #5F8A6E;
  --color-secondary: #1E2B22;
  --color-accent: #EFF6F1;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6FAF7;
  --color-text: #1E1E1E;
  --color-text-muted: #8A8A8A;
  --color-text-on-primary: #FFFFFF;
  --color-border: #D4E4D9;
}

/* ===== GLOBAL OVERRIDES — FRESH MINIMAL FEEL ===== */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== PILL NAVBAR — FLOATING ROUNDED ===== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1120px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  padding: 10px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  max-width: 100%;
  padding: 0;
}

.navbar-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  padding: 6px 14px;
  border-radius: 9999px;
}

.navbar-links a:hover {
  color: var(--color-primary);
  background: var(--color-accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle button {
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 4px 10px;
}

.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* ===== HERO — SPLIT LAYOUT ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Decorative blob behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 540px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small floating accent card on hero image */
.hero-image::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: var(--color-primary);
  opacity: 0.15;
  z-index: -1;
}

/* ===== SECTION DEFAULTS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ===== SERVICES — NUMBERED LIST ===== */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-radius: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.service-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
  letter-spacing: -0.04em;
}

.service-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.service-meta .duration {
  color: var(--color-primary);
}

.service-meta .price {
  color: var(--color-text-muted);
}

/* ===== PRICE CARDS ===== */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.price-card:hover::before {
  opacity: 1;
}

.price-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.price-card .price-duration {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.price-card .price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text .btn {
  border-radius: 9999px;
  padding: 14px 32px;
  margin-top: 8px;
}

.about-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 32px;
}

/* Decorative blob behind about image */
.about-image::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.1;
  z-index: -1;
}

/* ===== GALLERY — BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.bento-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item:nth-child(4) {
  grid-column: span 2;
}

/* ===== BOOKING ===== */
.booking-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
}

.booking-placeholder p {
  color: var(--color-text-muted);
}

/* ===== TESTIMONIALS — HORIZONTAL SCROLL ===== */
.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 32px;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-card .stars {
  color: #FBBF24;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-card .author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-group {
  margin-bottom: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 16px;
  aspect-ratio: 16/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER — ROUNDED TOP ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 32px 32px 0 0;
  padding: 64px 0 32px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.footer h3 {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--color-primary-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.hours-list {
  list-style: none;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
}

/* ===== FLOATING ACTION BUTTONS — PILL SHAPE ===== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.fab-call {
  background: var(--color-primary);
}

.fab-whatsapp {
  background: #25D366;
}

.fab svg {
  width: 22px;
  height: 22px;
}

/* ===== DECORATIVE BLOBS ===== */
.blob-decor {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 0;
}

.blob-decor--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -60px;
  opacity: 0.5;
}

.blob-decor--2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -40px;
  opacity: 0.4;
}

/* ===== BUTTONS OVERRIDE ===== */
.btn {
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
  padding: 14px 28px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  padding: 14px 28px;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 8px;
    width: calc(100% - 24px);
    padding: 8px 16px;
    border-radius: 24px;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .bento-item:nth-child(1),
  .bento-item:nth-child(4) {
    grid-column: span 1;
  }

  /* Mobile nav overlay */
  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-links {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .navbar-links a {
    font-size: 1.25rem;
    padding: 12px 24px;
  }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children > *.visible {
  opacity: 1;
  transform: translateY(0);
}
