/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+FR+Moderne:wght@100..400&display=swap");

:root {
  --main-pink: #f8bbd0;
  --light-pink: #fdf2f5;
  --dark-pink: #d81b60;
  --bg-gradient: linear-gradient(135deg, #f8bbd0 0%, #fdf2f5 50%, #e1f5fe 100%);
  --soft-white: rgba(255, 255, 255, 0.85);
  --call-green: #28a745;
  /* Offset khi cuộn tới #home / #services / … (header fixed) */
  --anchor-offset: 180px;
}

html {
  font-size: 93.75%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  padding-top: 140px;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background-color: var(--light-pink);
  color: #444;
}

.text-pink {
  color: var(--dark-pink) !important;
}

/* --- HEADER & NAVBAR --- */
header.fixed-top {
  background-color: white !important;
  border-bottom: 2px solid var(--main-pink);
  z-index: 1030;
}
.logo {
  font-family: "Playwrite FR Moderne", cursive;
  font-weight: 700;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
header .navbar-brand.logo {
  color: #2a2a2a !important;
}
.logo span {
  color: var(--dark-pink);
}
.address-bar {
  font-size: 0.7rem;
  color: #888;
}

/* Footer: tiệm canh trái; icon mạng xã hội + bản quyền canh giữa */
footer.site-footer .site-footer__tail {
  text-align: center;
}
footer.site-footer .site-footer__tail .social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
footer.site-footer .site-footer__tail .social-icons a {
  margin: 0;
}
footer.site-footer .site-footer__tail hr {
  margin-left: auto;
  margin-right: auto;
}
.nav-link {
  font-weight: 600;
  color: #555 !important;
  transition: 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 10px 15px !important;
}
.nav-link:hover {
  color: var(--dark-pink) !important;
}
header .nav-link.active,
header .nav-link[aria-current="page"],
header .navbar-nav .nav-link.active {
  color: var(--dark-pink) !important;
  font-weight: 700;
}

/* --- HERO SECTION --- */
.hero-section {
  height: 70vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
}
.heroSwiper {
  width: 100%;
  height: 100%;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- ACTION BUTTONS (Sát lề, Xa nhau & Fix kẹt click) --- */
.action-buttons-group {
  position: fixed;
  right: -83px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 135px;
  align-items: center;
  width: 200px;
}

.booking-btn-fixed,
.call-btn-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 170px;
  height: 45px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease-out;
  transform: rotate(-90deg);
  outline: none;
}

.booking-btn-fixed {
  background: linear-gradient(45deg, #d81b60, #ec407a);
  color: white;
}
.call-btn-vertical {
  background-color: var(--call-green);
  color: white;
}
.call-btn-vertical i {
  transform: rotate(90deg);
}

/* Hover nhích ra */
.booking-btn-fixed:hover,
.call-btn-vertical:hover {
  transform: rotate(-90deg) translateY(-10px);
  color: white;
}

/* Fix kẹt: Quay về ngay khi click/focus */
.booking-btn-fixed:active,
.call-btn-vertical:active,
.booking-btn-fixed:focus,
.call-btn-vertical:focus {
  transform: rotate(-90deg) translateY(0);
  transition: all 0.1s ease;
}

/* Pulse Animation */
.pulse-green-right {
  animation: pulse-green-sharp 2s infinite;
}
@keyframes pulse-green-sharp {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
  }
  70% {
    box-shadow: -20px 0 30px 15px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* --- SECTION REVEAL (Services row + About stagger) --- */
.section-fade {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 1.32s cubic-bezier(0.22, 0.65, 0.35, 1),
    transform 1.32s cubic-bezier(0.22, 0.65, 0.35, 1);
}
.section-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.section-fade--stagger {
  opacity: 1;
  transform: none;
  transition: none;
}
.section-fade--stagger .stagger-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  filter: blur(5px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.5s cubic-bezier(0.22, 0.65, 0.28, 1),
    transform 1.5s cubic-bezier(0.22, 0.65, 0.28, 1),
    filter 1.32s ease;
  transition-delay: var(--r-delay, 0s);
}
.section-fade--stagger.active .stagger-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-fade,
  .section-fade--stagger .stagger-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --- SERVICE & WORK --- */
.section-title {
  font-family: "Playwrite FR Moderne", cursive;
  font-weight: 500;
  color: #6e3d53;
  text-align: center;
}
/* service-1: xuống dòng gọn ở mobile, desktop một dòng */
#sub-services .sub-services-hero-title {
  line-height: 1.3;
  padding-inline: 0.2rem;
}
@media (min-width: 768px) {
  #sub-services .sub-services-hero-title {
    white-space: nowrap;
  }
}
.divider {
  height: 3px;
  width: 80px;
  background: linear-gradient(to right, var(--main-pink), var(--dark-pink), var(--main-pink));
  margin: 15px auto 40px;
  border-radius: 2px;
  display: block;
}

.service-card {
  border-radius: 20px;
  background: white;
  overflow: hidden;
  transition: 0.5s;
  height: 100%;
  border: 1px solid #eee !important;
}
.serviceSwiper {
  width: 100%;
  height: 230px;
  overflow: hidden;
}
.serviceSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* View More Buttons */
.view-more-container {
  text-align: center;
  margin-top: 40px;
}
.btn-view-more-main {
  display: inline-block;
  padding: 12px 35px;
  background-color: white;
  color: var(--dark-pink);
  border: 2px solid var(--dark-pink);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.4s;
}
.btn-view-more-main:hover {
  background-color: var(--dark-pink);
  color: white !important;
  transform: translateY(-5px);
}

.btn-outline-pink {
  display: inline-block;
  padding: 8px 25px;
  color: var(--dark-pink) !important;
  border: 1px solid var(--dark-pink) !important;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}
.btn-outline-pink:hover {
  background-color: var(--dark-pink) !important;
  color: white !important;
}

/* --- GALLERY & REVEAL ANIMATION --- */
.gallery-item {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

/* Trang gallery.html: lưới 200px; index our work: 300px (kể cả mobile) */
body.gallery-page .gallery-item {
  height: 200px;
}

section#gallery .gallery-item {
  height: 300px;
}

/* Lightbox toàn màn (click ảnh) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
  background: transparent;
  cursor: zoom-out;
}
/* Nền tối tách lớp — fade không làm tối gấp ảnh */
.gallery-lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.92);
  pointer-events: none;
  opacity: 0;
}
.gallery-lightbox.is-open::before {
  animation: galleryLightboxDimIn 0.32s ease-out forwards;
}
@keyframes galleryLightboxDimIn {
  to {
    opacity: 1;
  }
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  cursor: default;
  pointer-events: auto;
  transform-origin: center center;
}
.gallery-lightbox.is-open .gallery-lightbox__img {
  animation: galleryLightboxImgZoom 0.52s cubic-bezier(0.22, 0.9, 0.32, 1) forwards;
}
@keyframes galleryLightboxImgZoom {
  from {
    opacity: 0.7;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.gallery-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10052;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox.is-open::before {
    animation: none;
    opacity: 1;
  }
  .gallery-lightbox.is-open .gallery-lightbox__img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.reveal-item {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 1.86s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: var(--r-delay, 0s);
  will-change: transform, opacity;
}

.reveal-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.service-card.reveal-item {
  transform: scale(0.92) translateY(16px);
}
.service-card.reveal-item.active {
  transform: scale(1) translateY(0);
}

/* Footer */
footer {
  background-color: #fffafb;
  border-top: 1px solid var(--main-pink);
}
.social-icons a {
  font-size: 1.6rem;
  color: #666;
  margin: 0 15px;
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--dark-pink);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --anchor-offset: 94px;
  }
  body {
    padding-top: 100px;
  }
  .hero-section {
    height: 50vh;
  }
  .action-buttons-group {
    right: -75px;
    gap: 110px;
    font-size: 0.8rem;
  }
  .booking-btn-fixed,
  .call-btn-vertical {
    width: 140px;
    height: 40px;
  }

  /* Mobile: Tắt hover dính nút, nhích nhẹ khi chạm */
  .booking-btn-fixed:hover,
  .call-btn-vertical:hover {
    transform: rotate(-90deg);
  }
  .booking-btn-fixed:active,
  .call-btn-vertical:active {
    transform: rotate(-90deg) translateY(-5px);
  }

  .section-fade {
    transform: translateY(2.25rem);
    transition:
      opacity 1.35s cubic-bezier(0.22, 0.65, 0.35, 1),
      transform 1.35s cubic-bezier(0.22, 0.65, 0.35, 1);
  }
  .section-fade--stagger .stagger-reveal {
    transform: translateY(1.55rem);
    filter: blur(2px);
    transition:
      opacity 1.35s cubic-bezier(0.22, 0.65, 0.28, 1),
      transform 1.35s cubic-bezier(0.22, 0.65, 0.28, 1),
      filter 1.15s ease;
  }

  .reveal-item {
    transform: scale(0.84) translateY(1.75rem) !important;
    transition: transform 1.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    transition-delay: var(--r-delay, 0s);
  }
  .reveal-item.active {
    opacity: 1;
    transform: scale(1) translateY(0) !important;
  }
  .service-card.reveal-item {
    transform: scale(0.87) translateY(1.5rem) !important;
  }
  .service-card.reveal-item.active {
    transform: scale(1) translateY(0) !important;
  }

  .gallery-item {
    height: 200px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.9);
  }
  section#gallery .gallery-item {
    height: 300px;
  }
  body.gallery-page .gallery-item {
    height: 200px;
  }
}
/* --- MOBILE BOTTOM NAV (4 NÚT) --- */
@media (max-width: 768px) {
  /* Hiện thanh điều hướng */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 1px solid #eee;
  }

  /* Chia đều các nút */
  .mobile-bottom-nav .nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #555;
    transition: background 0.2s;
  }

  /* Hiệu ứng khi chạm */
  .mobile-bottom-nav .nav-item:active {
    background-color: #f8f9fa;
  }

  /* Icon */
  .mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: var(--dark-pink, #d81b60);
  }

  /* Màu xanh Google Maps cho nút Direction */
  .mobile-bottom-nav .nav-item:last-child i {
    color: #4285f4 !important;
  }

  /* Nếu bạn muốn khi nhấn vào (active) nó đậm hơn một chút */
  .mobile-bottom-nav .nav-item:last-child:active i {
    color: #357abd !important;
  }

  /* Text dưới icon */
  .mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  /* Màu riêng cho nút Call (thường là xanh lá cho nổi) */
  .mobile-bottom-nav .nav-item:first-child i {
    color: #28a745;
  }

  /* Nút Text (SMS) */
  .mobile-bottom-nav .nav-item:nth-child(2) i {
    color: #0d8bd9 !important;
  }
  .mobile-bottom-nav .nav-item:nth-child(2):active i {
    color: #096fad !important;
  }

  /* Ẩn các nút cũ để không bị chồng chéo */
  .action-buttons-group,
  .booking-btn-fixed,
  .call-btn-vertical {
    display: none !important;
  }

  /* Đẩy footer lên để không bị che */
  footer {
    padding-bottom: 70px !important;
  }
}

/* Ẩn trên máy tính */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
