/* ============================================
   APEX CO. — MAIN STYLESHEET
   Bootstrap 5 + Custom Styles
   ============================================ */

:root {
  /* ── Brand ─────────────────────────────── */
  --primary:        #ed1e79;   /* brand pink    */
  --primary-dark:   #009245;   /* brand green   */
  --accent:         #86757b;   /* brand mauve   */

  /* ── Tints ─────────────────────────────── */
  --primary-tint:   #fce8f3;   /* soft pink wash   */
  --green-tint:     #e6f5ed;   /* soft green wash  */
  --accent-tint:    #f2eeef;   /* warm mauve wash  */

  /* ── Text & UI ─────────────────────────── */
  --text:           #1d1719;   /* near-black, warm */
  --muted:          #7a6e71;   /* warm mid-grey    */
  --bg:             #ffffff;
  --bg-soft:        #faf8f9;   /* warm off-white   */
  --border:         #e8e3e5;   /* warm light border*/

  --radius:        14px;
  --transition:    0.25s ease;
}

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

body {
 font-family: "Urbanist", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: "Urbanist", sans-serif;
  line-height: 1.25;
}
h1.display-4 {
    line-height: 1;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ---- BOOTSTRAP OVERRIDES ---- */
.btn {
  border-radius: 32px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 800;
  padding: .6rem 1.4rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary.book {
  text-transform: uppercase;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text);
  font-weight: 500;
  padding: .6rem 1.4rem;
}
.btn-outline-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--border);
  padding: .65rem 1rem;
  font-family: "Urbanist", sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 146, 69, .15);
}
.form-label { font-weight: 500; margin-bottom: .35rem; }
/* ---- TYPE ---- */
.urbanist-<uniquifier> {
  font-family: "Urbanist", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
  transition: box-shadow var(--transition);
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.navbar-brand {
  font-family: "Urbanist", sans-serif;
  font-size: 1.4rem;
  color: var(--text) !important;
}
.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  transition: color var(--transition);
  padding: .4rem .6rem !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--text) !important;
}

/* ---- ACCENT ---- */
.accent { color: var(--primary); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(134,117,123,0.8);
  padding: .25rem .75rem;
  border-radius: 99px;
}
.ruled {
  border-top: 1px solid rgba(134,117,123,0.3);
  border-bottom: 1px solid rgba(134,117,123,0.3);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* ---- HERO ---- */
.hero-section {
  min-height: 42vh;
  padding: 4rem 0 3rem;
  background-size: cover;
  background-position: center 40%; /* adjust vertical position here — e.g. "center top", "center 60%" */
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 146, 69, .08) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-section h1 {
    color: white;
}
.hero-section p.text-muted {
    color: white !important;;
}

.hero-section .btn-outline-secondary {
    border-color: var(--border);
    color: var(--accent);
    background-color: white;
    font-weight: 500;
    padding: .6rem 1.4rem;
}
p.lead {
    font-weight: 500;
    text-wrap: balance;
}
.hero-graphic {
  position: relative;
  height: 465px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text-panel {
  /*background: rgba(255, 255, 255, 0.72);*/
  border-radius: var(--radius);
  padding: 3.25rem 3.75rem;
  position: relative;
  z-index: 1;
}
.hero-blob {
  width: 340px; height: 460px;
  padding: 50px;
  border-radius: 10% / 10%;
  /**background: linear-gradient(135deg, rgba(26,86,219,.1), rgba(245,158,11,.08));**/
  position: absolute;
  animation: blobFloat 6s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(8px,-12px) rotate(4deg); }
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  animation: cardFloat 5s ease-in-out infinite;
}
.hero-card p { margin: .25rem 0 0; font-weight: 500; color: var(--muted); font-size: .82rem; }
.hero-card span { font-size: 1.6rem; }
.hero-card.card-1 { top: 15%; left: 5%; animation-delay: 0s; }
.hero-card.card-2 { top: 50%; right: 3%; animation-delay: 1.5s; }
.hero-card.card-3 { bottom: 10%; left: 20%; animation-delay: 3s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- STATS ---- */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-family: "Urbanist", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: .25rem;
}

/* ---- SERVICE CARDS (home) ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:has(.stretched-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.service-card:has(.stretched-link) {
  cursor: pointer;
}
.service-card--sm {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card--sm .small {
  line-height: 1.2em;
}

/* ---- IMAGE + BODY ROW (services page) ---- */
.service-card__lower {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
}
.service-card__image {
  position: relative;
  width: 320px;
  min-width: 320px;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 1.5em;
  cursor: pointer;
}
.service-card__image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='rgba(0%2C0%2C0%2C0.45)'/%3E%3Ccircle cx='24' cy='24' r='22' fill='none' stroke='rgba(255%2C255%2C255%2C0.7)' stroke-width='1.5'/%3E%3Cpolygon points='19%2C14 37%2C24 19%2C34' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card__image.is-playing::before { opacity: 0; }
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: opacity 0.35s ease;
}
.service-card__video {
  position: absolute;
  inset: 1.5em;
  width: calc(100% - 3em);
  height: calc(100% - 3em);
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card__image.is-playing img                  { opacity: 0; }
.service-card__image.is-playing .service-card__video { opacity: 1; }
.service-card__body {
  flex: 1;
  min-width: 0;
}
.service-card__header {
  padding: 2rem 1.25rem 2.25rem;
  position: relative;
  overflow: hidden;
  background: #86757b; /* mauve — gradient saved below in card color classes */
}

/* ---- SERVICE CARD COLORS — mauve ---- */
/* Gradient saved for later: linear-gradient(160deg, #5c5157 0%, #86757b 100%) */
.card-emerald   { background: #86757b; } /* mauve — Thai Massage          */
.card-topaz     { background: #86757b; } /* mauve — Thai Signature        */
.card-ruby      { background: #86757b; } /* mauve — Deep Tissue           */
.card-sapphire  { background: #86757b; } /* mauve — Swedish               */
.card-amethyst  { background: #86757b; } /* mauve — Aroma Oil             */
.card-jade      { background: #86757b; } /* mauve — Combination           */
.card-citrine   { background: #86757b; } /* mauve — Reflexology           */
.card-turquoise { background: #86757b; } /* mauve — Back, Neck & Shoulder */
.service-card__header h3,
.service-card__header .service-tag {
  position: relative;
  z-index: 1;
}
.service-card__header h3 {
  color: #fff;
  font-size: 1.05rem;
}
.service-card__header .service-tag {
  color: rgba(255,255,255,0.65) !important;
  font-size: .85rem;
}
.service-card__header .service-tag::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot, rgba(255, 255, 255, 0.4));
  margin-right: 0.45em;
  vertical-align: middle;
  position: relative;
  top: -1px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.card-emerald   .service-tag { --dot: #009245; } /* Brand green  — Thai Massage          */
.card-topaz     .service-tag { --dot: #ed1e79; } /* Brand pink   — Thai Signature        */
.card-ruby      .service-tag { --dot: #1b1464; } /* Deep navy    — Deep Tissue           */
.card-sapphire  .service-tag { --dot: #00a99d; } /* Teal aqua    — Swedish               */
.card-amethyst  .service-tag { --dot: #801d7f; } /* Deep purple  — Aroma Oil             */
.card-jade      .service-tag { --dot: #f04e23; } /* Orange       — Combination           */
.card-citrine   .service-tag { --dot: #d51920; } /* Deep red     — Reflexology           */
.card-turquoise .service-tag { --dot: #8299ce; } /* Periwinkle   — Back, Neck & Shoulder */
.service-card__body p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.card-num {
  position: absolute;
  top: -0.15em;
  right: -0.25rem;
  font-size: 11.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.service-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}
.service-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  background: var(--green-tint);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.service-icon--sm {
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.service-tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---- TESTIMONIAL ---- */
.testimonial-block {
  max-width: 640px;
  padding: 3rem 2rem;
  background: var(--bg-soft);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, var(--accent-tint), var(--bg));
  border-top: 1px solid var(--border);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}
h1.mt-2 {
    margin-top: 1.2rem !important;
}
/* ---- ABOUT PAGE ---- */
.values-list {
  list-style: none;
  padding: 0;
}
.values-list li {
  padding: .4rem 0;
  font-weight: 500;
}

.about-visual {
  position: relative;
  height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.about-blob {
  width: 280px; height: 280px;
  border-radius: 50% 40% 60% 45%;
  background: linear-gradient(135deg, rgba(237, 30, 121, .1), rgba(0, 146, 69, .08));
  position: absolute;
}
.about-box {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

/* ---- TEAM CARDS ---- */
.team-card {
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
}
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ---- SERVICES PAGE ---- */
.service-card-lg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card-lg:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.service-icon-lg {
  font-size: 2.4rem;
  width: 64px; height: 64px;
  background: var(--green-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.service-list li {
  padding: .35rem 0;
  color: var(--muted);
  font-size: .95rem;
}
.service-list li::before {
  content: '→ ';
  color: var(--primary);
  font-weight: 600;
}

/* ---- PORTFOLIO ---- */
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.portfolio-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* ---- CONTACT PAGE ---- */
.contact-form-wrap {
  border: 1px solid var(--border);
}
.contact-icon {
  font-size: 1.4rem;
  width: 42px; height: 42px;
  background: var(--green-tint);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* ---- MAP ---- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
/* ---- FOOTER ---- */
.footer {
  background: var(--accent);
  color: #fff;
}
.footer a {
  color: #aaa;
  font-size: .9rem;
  margin: 0 .4rem;
  transition: color var(--transition);
}
.footer a:hover { color: #fff; }
.footer .accent { color: var(--accent); }
.footer .text-muted { color: #888 !important; }

/* ---- BACKGROUNDS ---- */
.bg-light-subtle { background: var(--bg-soft) !important; }

.navbar-toggler { border: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 3rem 0 calc(2.5rem + 100px); }
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-graphic { height: auto; }
  .hero-blob { width: 220px; height: auto; }
  .hero-card { padding: .7rem 1rem; font-size: .8rem; }
  .hero-card span { font-size: 1.2rem; }
  .stat-num { font-size: 2rem; }
  .container {
    padding-right: calc(var(--bs-gutter-x) * .75);
    padding-left: calc(var(--bs-gutter-x) * .75);
  }
  .service-card__lower {
    flex-direction: column;
  }
  .service-card__image {
    width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    height: auto;
    padding: 1em;
  }
}
