html,
body {
  overflow-x: hidden; /* Larang scroll horizontal */
  width: 100%;
  max-width: 100%;
}

:root {
  --terracotta: #e2725b;
  --soft-terracotta: #fdf6f0;
  --warm-beige: #f5e8d3;
  --text-dark: #5d4037;
  --warm-gray: #8d6e63;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--soft-terracotta);
  color: var(--text-dark);
  scroll-behavior: smooth;
  position: relative;
}

/* Navbar */
.navbar {
  background: rgba(253, 246, 240, 1); /* Opaque default */
  backdrop-filter: none; /* Tanpa blur default */
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: transparent; /* Transparan saat di-scroll */
  backdrop-filter: blur(
    8px
  ); /* Tambahkan blur untuk efek transparan yang halus */
  box-shadow: 0 4px 12px rgba(226, 114, 91, 0.1);
}
.navbar-brand {
  font-weight: 700;
  color: var(--terracotta) !important;
}
.navbar-brand img {
  height: 40px;
  width: auto;
}
.nav-link {
  color: var(--warm-gray) !important;
  font-weight: 500;
  margin: 0 0.6rem;
  transition: 0.2s;
}
.nav-link:hover {
  color: var(--terracotta) !important;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(245, 232, 211, 0.7), rgba(253, 246, 240, 0.9)),
    url("asset/parallax.JPG");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--terracotta);
}
.hero p {
  color: var(--warm-gray);
  max-width: 600px;
  margin: 1rem auto 2rem;
}
.btn-main {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-weight: 600;
  transition: 0.3s;
}
.btn-main:hover {
  background: #d95a40;
}

/* Section */
section {
  padding: 5rem 1rem;
}
.section-title {
  text-align: center;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  font-size: 1.9rem;
}
.subtitle {
  text-align: center;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(226, 114, 91, 0.05);
}
.accordion-button {
  font-weight: 600;
  background-color: #fff;
  color: var(--text-dark);
  border-radius: 12px !important;
}
.accordion-button:not(.collapsed) {
  color: var(--terracotta);
  background-color: var(--warm-beige);
  box-shadow: none;
}
.accordion-body img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(226, 114, 91, 0.08);
}

@media (max-width: 991px) {
  .accordion-body img {
    width: 100%; /* Penuh pada mobile, tidak terlalu kecil */
    max-width: none;
  }
}

/* Services Cards */
.text-terracotta {
  color: var(--terracotta);
}
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(226, 114, 91, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  background: #fff;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(226, 114, 91, 0.1);
}
.card i {
  font-size: 2.5rem;
  display: block;
  margin: 1rem auto 1rem;
  color: var(--terracotta);
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-text {
  color: var(--warm-gray);
}
.btn-service {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: 0.3s;
}
.btn-service:hover {
  background: #d95a40;
  color: #fff;
  text-decoration: none;
}

/* Unified Location Section in One Box */
#location {
  background: linear-gradient(
    135deg,
    var(--soft-terracotta) 0%,
    var(--warm-beige) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 5rem 1rem;
}
#location::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(226,114,91,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(226,114,91,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(226,114,91,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  opacity: 0.8;
}
.location-content {
  position: relative;
  z-index: 1;
}
.location-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.location-hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.location-hero p {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 800px;
  margin: 0 auto;
}
.location-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(226, 114, 91, 0.2);
  transition: all 0.4s ease;
  border: 1px solid rgba(226, 114, 91, 0.1);
  margin-bottom: 2rem;
}
.location-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(226, 114, 91, 0.25);
}
.location-map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(226, 114, 91, 0.15);
}
.location-map {
  width: 100%;
  height: 100%;
  border: 0;
}
.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.info-item {
  text-align: center;
}
.location-icon {
  font-size: 2rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.info-title {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.info-text {
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.4;
}
.info-text a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s;
}
.info-text a:hover {
  color: #d95a40;
}
.home-treatment-highlight {
  background: linear-gradient(
    135deg,
    rgba(226, 114, 91, 0.1),
    rgba(245, 232, 211, 0.5)
  );
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
  text-align: center;
  border-left: 3px solid var(--terracotta);
  font-size: 0.85rem;
}
.btn-directions {
  background: linear-gradient(135deg, var(--terracotta), #d95a40);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  box-shadow: 0 4px 15px rgba(226, 114, 91, 0.3);
}
.btn-directions:hover {
  transform: scale(1.05);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(226, 114, 91, 0.4);
}
.location-ornament {
  position: absolute;
  top: 10%;
  right: 5%;
  font-size: 5rem;
  color: rgba(226, 114, 91, 0.08);
  z-index: 0;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Booking */
.booking {
  background: var(--warm-beige);
  border-radius: 20px;
  padding: 3rem;
}

/* Floating Buttons */
.wa-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  animation: pulse 2s infinite;
  text-decoration: none !important;
}
.wa-fab:hover {
  transform: scale(1.15);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .location-map-container {
    height: 250px;
  }
  .location-hero h2 {
    font-size: 1.8rem;
  }
  .location-box {
    padding: 2rem;
  }
  .location-ornament {
    display: none;
  }
  .btn-directions {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .navbar-brand img {
    height: 35px;
  }
}

/* Hover Effects untuk Footer */
.footer-link {
  color: var(--warm-gray);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}
.footer-link:hover {
  color: var(--terracotta) !important;
  padding-left: 8px;
}
.footer-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--terracotta);
  transition: width 0.3s ease;
}
.footer-link:hover::before {
  width: 30px;
}

.footer-list-item {
  color: var(--warm-gray);
  transition: all 0.3s ease;
}
.footer-list-item:hover {
  color: var(--terracotta);
  padding-left: 6px;
}

/* Hover kolom sedikit naik */
.footer-col {
  transition: transform 0.3s ease;
}
.footer-col:hover {
  transform: translateY(-5px);
}

/* Sosmed icon hover */
.text-terracotta.transition-all {
  transition: all 0.3s ease;
}
.text-terracotta.transition-all:hover {
  color: #d95a40 !important;
  transform: scale(1.25) rotate(8deg);
}

/* Tombol WA di footer */
.wa-footer-btn {
  transition: all 0.3s ease;
}
.wa-footer-btn:hover {
  background: #d95a40 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(226, 114, 91, 0.3);
}

/* Partner Brands Slider - Versi Fix Ukuran */
.partner-slider-container {
  overflow: hidden;
  padding: 40px 0;
  background: #fff;
  position: relative;
}

.partner-slider-container::before,
.partner-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px !important;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partner-slider-container::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.partner-slider-container::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.partner-slider-track {
  display: flex;
  animation: scroll-left 40s linear infinite !important;
  width: max-content;
}

.partner-slider-track:hover {
  animation-play-state: paused !important;
}

.partner-logo-item {
  flex: 0 0 auto !important;
  margin: 0 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.partner-logo-item img {
  height: 80px !important; /* Paksa tinggi tetap */
  width: auto !important;
  max-width: 220px !important; /* Batasi lebar biar ga melebar */
  object-fit: contain !important;
  object-position: center !important;
  filter: grayscale(100%) !important;
  opacity: 0.7 !important;
  transition: all 0.4s ease !important;
}

.partner-logo-item img:hover {
  filter: grayscale(0%) !important;
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .partner-logo-item {
    margin: 0 20px !important;
  }
  .partner-logo-item img {
    height: 60px !important;
    max-width: 180px !important;
  }
  .partner-slider-container::before,
  .partner-slider-container::after {
    width: 50px !important;
  }
}

/* Loading Spinner Styles */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fffbf7 0%, #fff5f0 50%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Decorative Background */
#pageLoader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(226, 114, 91, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(226, 114, 91, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo Container */
.loader-logo-wrapper {
  position: relative;
  margin-bottom: 3rem;
  animation: fadeInScale 0.8s ease;
}

.loader-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(226, 114, 91, 0.15));
  position: relative;
  z-index: 2;
}

/* Baby Footprints Walker */
.footprints-loader {
  width: 180px;
  height: 120px;
  position: relative;
  margin: 0 auto 2rem;
}

.footprint {
  position: absolute;
  width: 45px;
  height: 60px;
  opacity: 0;
}

.footprint.left {
  animation: walkLeft 3s ease-in-out infinite;
}

.footprint.right {
  animation: walkRight 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.toe {
  width: 12px;
  height: 12px;
  background: #e2725b;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 2px 5px rgba(226, 114, 91, 0.3);
}

.toe:nth-child(1) {
  top: 0;
  left: 8px;
  width: 10px;
  height: 10px;
}

.toe:nth-child(2) {
  top: 5px;
  left: 18px;
  width: 11px;
  height: 11px;
}

.toe:nth-child(3) {
  top: 10px;
  left: 28px;
  width: 10px;
  height: 10px;
}

.foot-sole {
  width: 28px;
  height: 35px;
  background: #e2725b;
  border-radius: 50% 50% 45% 45%;
  position: absolute;
  bottom: 0;
  left: 8px;
  box-shadow: 0 3px 8px rgba(226, 114, 91, 0.3);
}

@keyframes walkLeft {
  0% {
    left: 0;
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  25% {
    transform: translateY(-5px);
  }
  40% {
    left: 67px;
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0.5;
  }
  75% {
    opacity: 0;
  }
  100% {
    left: 135px;
    opacity: 0;
  }
}

@keyframes walkRight {
  0% {
    right: 0;
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  25% {
    transform: translateY(-5px);
  }
  40% {
    right: 67px;
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 0.5;
  }
  75% {
    opacity: 0;
  }
  100% {
    right: 135px;
    opacity: 0;
  }
}

/* Walking Path Line */
.walking-path {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(226, 114, 91, 0.2) 0px,
    rgba(226, 114, 91, 0.2) 15px,
    transparent 15px,
    transparent 30px
  );
  position: absolute;
  bottom: 30px;
}

/* Loading Text */
.loader-text {
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 0.5rem;
  animation: fadeIn 1s ease;
  letter-spacing: 0.5px;
}

.loader-subtext {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #999;
  font-weight: 400;
  animation: fadeIn 1.2s ease;
  font-style: italic;
}

/* Dots Animation */
.loading-dots {
  display: inline-block;
}

.loading-dots span {
  animation: blink 1.4s infinite;
  animation-fill-mode: both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Prevent scroll during loading */
body.loading {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 576px) {
  .loader-logo {
    width: 120px;
  }
  .footprints-loader {
    width: 150px;
    height: 100px;
  }
  .loader-text {
    font-size: 1.1rem;
  }
  .loader-subtext {
    font-size: 0.9rem;
  }
}
