:root {
  --bs-primary: #7a0101;
  --bs-secondary: #ffd300;
  --bs-light-bg: #fdfaf5;
  --primary-gradient: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
  --whatsapp-color: #25d366;
  --line-color: #00b900;
  --wechat-color: #07c160;
}

body {
  font-family: var(--font-body);
  background-color: var(--bs-light-bg);
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
}

.text-primary-custom {
  color: var(--bs-primary) !important;
}

.text-secondary-custom {
  color: var(--bs-secondary) !important;
}

.bg-primary-custom {
  background-color: var(--bs-primary) !important;
}

.bg-secondary-custom {
  background-color: var(--bs-secondary) !important;
}

.bg-light-custom {
  background-color: var(--bs-light-bg) !important;
}

.glass-nav {
  background: var(--primary-gradient) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--bs-secondary);
}

.btn-whatsapp {
  background: var(--whatsapp-color) !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-line {
  background: var(--line-color) !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

/* Metallic Gold Buttons */
.bg-secondary-custom,
.btn-outline-secondary:hover {
  background: var(--gold-gradient) !important;
  color: #4a0000 !important;
  border: none !important;
}

.text-secondary-custom {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-secondary:hover {
  color: var(--bs-secondary) !important;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

/* Mobile Sidebar (Bento Style) */
.mobile-sidebar {
  background-color: #5a0101 !important;
  width: 320px !important;
}

.mobile-sidebar .offcanvas-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
}

.bento-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px; /* Slightly smaller gap to ensure fit */
  grid-auto-rows: minmax(100px, auto);
  width: 100%;
  margin: 0;
  grid-auto-rows: max-content;
}

.bento-menu-item {
  color: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 16px; /* Slightly smaller padding to ensure fit */
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* overflow: hidden; */ /* Prevent inner content from pushing width */
  width: 100%;
}

.bento-menu-item:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.1);
}

/* Theme-consistent gradients */
.bento-home {
  grid-column: span 1;
  grid-row: span 1;
  background: linear-gradient(135deg, #a30101, #7a0101);
}
/* Theme-consistent gradients */
.bento-services {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #7a0101, #5a0101);
  border-color: rgba(212, 175, 55, 0.2);
}

.bento-gallery {
  grid-column: span 1;
  grid-row: span 1;
  background: rgba(255, 255, 255, 0.05); /* Subtle glass */
}

.bento-price {
  grid-column: span 1;
  grid-row: span 1;
  background: rgba(255, 255, 255, 0.05);
}

.bento-faq {
  grid-column: span 1;
  grid-row: span 1;
  background: rgba(255, 255, 255, 0.05);
}

.bento-contact {
  grid-column: span 2;
  background: linear-gradient(135deg, #d4af37, #b8860b); /* Gold accent */
  color: #ffffff !important;
}
.bento-contact i,
.bento-contact span,
.bento-contact small {
  color: #ffffff !important;
}

.bento-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.fs-xs {
  font-size: 0.7rem;
}

.btn-whatsapp-icon:hover,
.btn-line-icon:hover,
.btn-phone-icon:hover {
  background: var(--bs-secondary);
  color: var(--bs-primary);
}

.btn-whatsapp-icon,
.btn-line-icon,
.btn-phone-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 18px;
}

/* Navbar */
.glass-nav {
  background: rgba(122, 1, 1, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

header.fixed-top .navbar {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--bs-secondary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(122, 1, 1, 0.8),
    rgba(90, 1, 1, 0.7),
    rgba(30, 0, 0, 0.9)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: linear-gradient(to right, #c9a55d, #e8d5a5, #c9a55d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Page Header (Subpages) */
.page-header {
  position: relative;
  padding: 160px 0 100px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(122, 1, 1, 0.85),
    rgba(90, 1, 1, 0.75)
  );
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Utilities */
.premium-shadow {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.radius-lg {
  border-radius: 1rem;
}

.radius-xl {
  border-radius: 1.5rem;
}

/* Buttons */
.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #20b858;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-line {
  background-color: var(--line-color);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-line:hover {
  background-color: #009900;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 185, 0, 0.3);
}

.btn-transition {
  transition: all 0.3s ease;
}

/* Cards & Images */
.service-card {
  border: none;
  border-bottom: 4px solid var(--bs-secondary);
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  object-fit: cover;
}

.therapist-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 4px solid rgba(201, 165, 93, 0.2);
  border-radius: 50%;
}

/* Service Item Block (Services Page) */
.service-row {
  transition: all 0.4s ease;
}

.service-img-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4/3;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.price-tag {
  background: rgba(201, 165, 93, 0.15);
  color: var(--bs-primary);
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 165, 93, 0.3);
}

/* Sticky Mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: white;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
  padding: 8px;
}

/* Pricing Table Styling */
.pricing-table-wrapper {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(201, 165, 93, 0.2);
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary);
  border-radius: 10px;
}

.table > :not(caption) > * > * {
  padding: 1.25rem 1rem;
}

.price-highlight {
  color: #b8860b;
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accordion for FAQ */
.accordion-button:not(.collapsed) {
  background-color: rgba(201, 165, 93, 0.1);
  color: var(--bs-primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--bs-secondary);
}

/* Interactive Gallery System */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4/3;
  background: #000;
}

.gallery-item.tall {
  aspect-ratio: 3/4;
}

.gallery-item.wide {
  aspect-ratio: 16/9;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(122, 1, 1, 0.95) 0%,
    rgba(122, 1, 1, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 2;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
  opacity: 0.8;
}

.gallery-item:hover .gallery-overlay,
.bento-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: var(--bs-secondary);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-desc {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 300;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
  opacity: 0;
  margin-bottom: 0;
}

.gallery-item:hover .gallery-title,
.bento-item:hover .gallery-title {
  transform: translateY(0);
}

.gallery-item:hover .gallery-desc,
.bento-item:hover .gallery-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Contact Cards */
.contact-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(201, 165, 93, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Feature List */
.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--bs-secondary);
}

.contact-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* ================= BENTO GRID GALLERY V2 ================= */

/* ================= BENTO GRID GALLERY V2 ================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 15vw; /* Using viewport width for consistent aspect ratio blocks */
  gap: 15px;
}

.bento-grid2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 15vw; /* Using viewport width for consistent aspect ratio blocks */
  gap: 15px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fcfcfc;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.bento-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

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

/* Bento Span Classes */
.bento-item.big {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-item.wide {
  grid-column: span 2;
  grid-row: span 1;
}
.bento-item.tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .bento-grid {
    grid-auto-rows: 20vw;
  }
}

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 35vw;
  }
  .hero-section {
    min-height: 80vh;
    padding-top: 120px;
  }
}

@media (max-width: 575px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 12px;
  }
  .bento-item {
    border-radius: 12px;
  }
  .bento-item.big,
  .bento-item.wide,
  .bento-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
