/* FS Maylanhcuvungtau – Minimalist Teal Landing CSS */
/* Tailwind handles most utilities; this file covers custom styles only */

/* --- Base Overrides --- */
html {
  scroll-behavior: smooth;
}

/* Neutralize Flatsome button/link resets inside landing content */
main button,
main a {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
}

body {
  background-color: #F4F7F6;
  color: #2d3748;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  position: relative;
}
::selection {
  background-color: #0A4E5C; /* brand-main */
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F4F7F6; }
::-webkit-scrollbar-thumb { background: #0A4E5C; border-radius: 10px; }

/* Smooth Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero shape */
.hero-shape {
  border-radius: 40px 40px 40px 100px;
}
@media (min-width: 768px) {
  .hero-shape {
    border-radius: 40px 40px 40px 200px;
  }
}

body.menu-open { overflow: hidden; }

/* --- Booking Modal (Tailwind-compatible) --- */
.tp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.tp-modal.is-open {
  display: flex;
}
.tp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 70, 86, 0.5);
  backdrop-filter: blur(4px);
}
.tp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 90vw);
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(10, 70, 86, 0.2);
}
.tp-modal__panel h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #2d3748;
}
.tp-modal__panel p {
  margin: 0 0 18px;
  color: #718096;
  font-size: 0.875rem;
}
.tp-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  padding: 4px 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #718096;
  transition: color 0.2s ease;
}
.tp-modal__close:hover {
  color: #2d3748;
}

/* Form within modal */
.tp-form {
  display: grid;
  gap: 14px;
}
.tp-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
.tp-form input,
.tp-form select {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}
.tp-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  text-overflow: ellipsis;
}
.tp-form input:focus,
.tp-form select:focus {
  outline: none;
  border-color: #0A4E5C;
  box-shadow: 0 0 0 3px rgba(10, 70, 86, 0.1);
}
.tp-form__status {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* Submit button (modal) */
.tp-btn-submit {
  background: #0A4E5C;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
  min-height: 44px;
}
.tp-btn-submit:hover {
  background: #083F4A;
}

/* --- Floating CTA (Mobile) --- */
.tp-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  display: none;
  box-shadow: 0 -4px 20px rgba(10, 70, 86, 0.1);
  z-index: 999;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.tp-floating-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: #0A4E5C;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.tp-floating-cta__btn--zalo {
  background: #0068FF;
}

@media (max-width: 768px) {
  .tp-floating-cta {
    display: flex;
    gap: 8px;
  }
  body {
    padding-bottom: 70px;
  }
}

/* --- Footer overrides for Flatsome compatibility --- */
.tp-footer-custom {
  padding-bottom: 0;
}

/* Flatsome forces h3 { color: #555 } and a { color: var(--tp-experimental-link-color) }
   which breaks our white-text footer. Override them. */
footer.bg-brand-main h3 {
  color: #ffffff !important;
}
footer.bg-brand-main a {
  color: rgba(232, 240, 242, 0.8);
  text-decoration: none;
}
footer.bg-brand-main a:hover {
  color: #ffffff;
}
footer.bg-brand-main a.text-white {
  color: #ffffff;
}
footer.bg-brand-main .text-white {
  color: #ffffff !important;
}

/* --- Line clamp utility (for older browsers) --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-template-templatestemplate-landing-php .absolute-footer {
  display: none !important;
}

/* Removed .footer-wrapper hide because tp-footer is inside it */

/* --- Custom Desktop Menu (wp_nav_menu) --- */
.tp-desktop-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-desktop-menu li {
  margin: 0;
}
.tp-desktop-menu li a {
  font-size: 0.875rem; /* text-sm */
  font-weight: 600;    /* Increased font-weight for better contrast */
  color: #2d3748;      /* text-base-text */
  transition: color 0.2s ease;
  text-decoration: none;
}
.tp-desktop-menu li a:hover {
  color: #0A4E5C;      /* text-brand-main */
}
/* Active item style */
.tp-desktop-menu > li.current-menu-item > a {
  font-weight: 600;    /* font-semibold */
  color: #0A4E5C;      /* text-brand-main */
  border-bottom: 2px solid #0A4E5C;
  padding-bottom: 0.25rem; /* pb-1 */
}

/* Sub-menu styling for desktop */
.tp-desktop-menu li {
  position: relative;
}
.tp-desktop-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  min-width: 220px;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 50;
  margin-top: 0.5rem;
}
.tp-desktop-menu li:hover > .sub-menu {
  display: block;
  animation: dropdownFadeIn 0.2s ease-out;
}
.tp-desktop-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #4a5568;
  font-weight: 500;
}
.tp-desktop-menu .sub-menu li a:hover {
  background-color: #f7fafc;
  color: #0A4E5C;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fix WP Admin Bar overlap on fixed navbar */
body.admin-bar #navbar {

  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #navbar {
    top: 46px;
  }
}

/* --- Custom Mobile Menu (wp_nav_menu) --- */
.tp-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-mobile-menu li {
  margin: 0;
}
.tp-mobile-menu li a {
  display: block;
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;   /* font-bold */
  color: #1a202c;     /* text-base-text */
  border-bottom: 1px solid #f9fafb; /* border-gray-50 */
  padding-bottom: 1rem; /* pb-4 */
  text-decoration: none;
}
.tp-mobile-menu .sub-menu {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  border-left: 2px solid #e2e8f0;
}
.tp-mobile-menu .sub-menu li a {
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: none;
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  color: #4a5568;
}


/* Fix WordPress Admin Bar icons overridden by theme/Flatsome CSS */
#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon::before {
    font-family: dashicons !important;
}


/* Fix tap highlight color on mobile devices */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* Prevent iOS popup on long press */
  user-select: none; /* Prevent text selection */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
