/* Demo Spa – Custom styles & animations */

:root {
  --color-dark: #7a5c0c;
  --color-mid: #a67c00;
  --color-accent: #b8860b;
  --color-muted: #6b5b3d;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
}

/* ----- Page loader ----- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  text-align: center;
  padding: 2rem;
  max-width: 90%;
}

.page-loader-logo {
  max-height: 3rem;
  max-width: 140px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.page-loader-bar {
  width: 200px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.page-loader-progress {
  height: 100%;
  width: 0%;
  background: var(--color-dark);
  border-radius: 2px;
  transition: width 0.25s ease;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.hero-subtitle,
.hero-logo,
.footer-logo {
  font-family: var(--font-heading);
}

/* ----- Hero ----- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-brand {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  line-height: 0;
}

.hero-brand-img {
  height: auto;
  /* max-height: 2.25rem; */
  width: auto;
  max-width: 120px;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-section .carousel-item {
  position: relative;
}

.hero-section .carousel-item img {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  object-fit: cover;
}

/* Overlay darkens only the image; center stays lighter so text isn’t darkened */
.hero-section .carousel-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* Caption centered in the middle of the slide, above the overlay */
.hero-section .hero-caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-logo {
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  text-align: center;
  max-width: 90%;
}

.hero-title {
  font-size: clamp(5rem, 5.5vw, 3.5rem);
  /* font-weight: 300; */
  color: #fff;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  text-transform: capitalize;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
}

/* Hero carousel controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0.9;
  transition: opacity var(--transition), background var(--transition);
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
}

/* ----- Page header (inner pages) ----- */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: url('../images/shutterstock_2071655492.jpg') center / cover no-repeat;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
}

.page-header-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}

.page-header-logo-img {
  max-width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
}

.page-header .main-nav {
  background: transparent;
}

.page-header .main-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.page-header .main-nav .nav-link:hover,
.page-header .main-nav .nav-link.active {
  color: #fff;
}

.page-header-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin: 1rem 0 0 0;
  text-transform: capitalize;
}

/* ----- Countdown ----- */
.countdown-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.countdown-block {
  text-align: center;
  padding: 0.75rem 1.5rem;
  min-width: 100px;
}

.countdown-number {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.countdown-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.countdown-open-message {
  padding: 0.5rem 0;
}

.countdown-open-text {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.05em;
}

.countdown-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ----- Animations: hero on load ----- */
.animate-slide-up {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.8s var(--transition) forwards;
}

.animate-slide-up.delay-1 {
  animation-delay: 0.15s;
  animation-fill-mode: both;
}

.animate-slide-up.delay-2 {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Nav ----- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

.main-nav .nav-link {
  color: var(--color-dark);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color var(--transition);
}

.main-nav .nav-link:hover {
  color: var(--color-accent);
}

/* ----- About section & diamonds ----- */
.about-section {
  padding: 0 0.5rem;
}

.about-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition);
}

.about-section .about-img:hover {
  transform: scale(1.02);
}

.about-section .btn-cta {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.about-stats {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  display: inline-block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  font-family: var(--font-heading);
}

.about-stat-suffix {
  font-size: inherit;
  font-weight: 700;
  color: var(--color-accent);
}

.about-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* Diamond decorations */
.diamond {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-dark);
  transform: rotate(45deg);
  z-index: 1;
}

.diamond-tl {
  top: -4px;
  left: -4px;
}

.diamond-br {
  bottom: -4px;
  right: -4px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-dark);
}

.subscribe-form .form-control {
  max-width: 280px;
  border-radius: 0;
  border: 1px solid #cbd5e1;
}

.subscribe-form .form-control {
  border-radius: 0;
  border: 1px solid #cbd5e1;
}

.subscribe-form .btn {
  border-radius: 0;
}

/* ----- Services ----- */
.service-category,
.scroll-margin-top {
  scroll-margin-top: 6rem;
}
.service-category {
  padding-bottom: 2rem;
}
.service-category:last-child {
  padding-bottom: 0;
}
.service-category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.service-category-desc {
  font-size: 0.95rem;
  max-width: 40rem;
}

.service-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.service-price {
  font-size: 1rem;
  color: var(--color-dark);
}
.service-price .service-duration {
  font-weight: 400;
  font-size: 0.9em;
}

.service-card-text {
  line-height: 1.5;
  flex: 1;
}

.service-card .btn {
  flex-shrink: 0;
}

/* ----- Services ticker ----- */
.ticker-section {
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
  font-family: var(--font-body);
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 3rem;
  gap: 0.75rem;
  white-space: nowrap;
}

.ticker-item {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 0.6em;
  user-select: none;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner {
    animation: none;
    will-change: auto;
  }
}

/* ----- Gallery ----- */
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1;
  background: #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.reviews-section .reviews-embed {
  min-height: 80px;
}

/* ----- Contact ----- */
/* Contact section with map background */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.contact-map-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.letter-spacing {
  letter-spacing: 0.1em;
}

.contact-form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.service-price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.service-duration {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.btn-social {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-social i {
  font-size: 1.2rem;
}

.btn-social:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff !important;
}

.footer-social .btn-social.btn-sm {
  width: 2.25rem;
  height: 2.25rem;
}

.footer-social .btn-social i {
  font-size: 1rem;
}

/* ----- Scroll-triggered animations ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.services-section .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.services-section .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.services-section .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.services-section .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  color: #fff;
}

.footer-heading {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-hours {
  line-height: 1.6;
}

.site-footer .border-footer {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.site-footer .text-muted,
.site-footer p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.site-footer a,
.site-footer .footer-logo {
  color: #fff !important;
}

.site-footer .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.site-footer .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.footer-brand {
  text-decoration: none;
  line-height: 0;
}

.footer-logo-img {
  display: block;
  height: auto;
  /* max-height: 2rem; */
  max-width: 100px;
  width: auto;
}

.site-footer .footer-logo-img {
  filter: brightness(0) invert(1);
}

.footer-logo {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.15em;
  color: #fff;
  font-weight: 600;
}

/* ----- Carousel fade (Bootstrap override) ----- */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* ----- Utility: reduce motion ----- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-slide-up,
  .service-card .service-card-img,
  .gallery-item img,
  .about-img {
    transition: none;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .animate-slide-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
