/*
 * Fablan Travels With You
 * Custom Stylesheet
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* Color Variables */
:root {
  --brand-sage: #8A9585;
  --brand-sage-dark: #6e7969;
  --brand-sage-light: #e8eae6;
  --brand-rose: #D29F9B;
  --brand-rose-dark: #b5817d;
  --brand-rose-light: #f7eded;
  --brand-slate: #7A8C98;
  --brand-taupe: #BAA99F;
  --brand-lavender: #B5A1AD;
  
  --neutral-cream: #FAF8F5;
  --neutral-offwhite: #F5F3EF;
  --neutral-dark: #2D302E;
  --neutral-muted: #5e6360;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset & Typography */
body {
  font-family: var(--font-body);
  background-color: var(--neutral-cream);
  color: var(--neutral-dark);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-offwhite);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-sage);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-sage-dark);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.btn-brand-sage {
  background-color: var(--brand-sage);
  border-color: var(--brand-sage);
  color: #ffffff;
}
.btn-brand-sage:hover, .btn-brand-sage:focus {
  background-color: var(--brand-sage-dark);
  border-color: var(--brand-sage-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(138, 149, 133, 0.3);
}

.btn-brand-rose {
  background-color: var(--brand-rose);
  border-color: var(--brand-rose);
  color: #ffffff;
}
.btn-brand-rose:hover, .btn-brand-rose:focus {
  background-color: var(--brand-rose-dark);
  border-color: var(--brand-rose-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(210, 159, 155, 0.3);
}

.btn-outline-brand {
  border-color: var(--brand-sage);
  color: var(--brand-sage);
  background: transparent;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background-color: var(--brand-sage);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sticky Navbar */
.navbar {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  padding: 0.8rem 0;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neutral-dark) !important;
  font-size: 1.4rem;
}
.navbar-brand span {
  color: var(--brand-sage);
}

/* Brand logo image sizing (scales down slightly once the page is scrolled) */
.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-logo {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}
.navbar.scrolled .navbar-logo {
  height: 64px;
}
@media (max-width: 991.98px) {
  .navbar-logo {
    height: 62px;
  }
  .navbar.scrolled .navbar-logo {
    height: 54px;
  }
}
@media (max-width: 575.98px) {
  .navbar-logo {
    height: 52px;
  }
  .navbar.scrolled .navbar-logo {
    height: 46px;
  }
}
.nav-link {
  font-weight: 500;
  color: var(--neutral-dark) !important;
  margin: 0 0.4rem;
  position: relative;
  transition: var(--transition-smooth);
}
.nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand-rose);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.nav-link:not(.dropdown-toggle):hover::after, .nav-link:not(.dropdown-toggle).active::after {
  width: 80%;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-rose) !important;
}

/* Section styling */
section {
  padding: 6rem 0;
}
.section-bg-alt {
  background-color: var(--neutral-offwhite);
}

.section-tag {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brand-rose);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem 0;
  background: linear-gradient(135deg, var(--neutral-cream) 15%, var(--brand-rose-light) 65%, var(--brand-sage-light) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: 3.9rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--neutral-muted);
  margin-bottom: 2.2rem;
}

/* Color helper utility classes */
.text-brand-sage {
  color: var(--brand-sage) !important;
}
.text-brand-rose {
  color: var(--brand-rose) !important;
}

/* Hero Form CTA transitions */
.hero-section .btn-brand-sage {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(138, 149, 133, 0.2);
}
.hero-section .btn-brand-sage:hover {
  background-color: var(--brand-rose) !important;
  border-color: var(--brand-rose) !important;
  box-shadow: 0 6px 18px rgba(210, 159, 155, 0.35);
}
.hero-img-wrapper {
  position: relative;
}
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid var(--brand-sage);
  border-radius: 16px;
  z-index: 1;
}
.hero-img {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  object-fit: cover;
  width: 100%;
  max-height: 500px;
}

/* About Section */
.about-img-wrapper {
  position: relative;
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 150px;
  height: 150px;
  background-color: var(--brand-rose-light);
  z-index: 1;
  border-radius: 12px;
}
.about-img {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-height: 480px;
  object-fit: cover;
  width: 100%;
}

/* Service Cards */
.service-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 2.2rem 2rem;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(138, 149, 133, 0.12);
  border-color: rgba(138, 149, 133, 0.15);
}
.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--brand-sage-light);
  color: var(--brand-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-box {
  background-color: var(--brand-rose-light);
  color: var(--brand-rose);
}
.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.service-card-text {
  font-size: 0.95rem;
  color: var(--neutral-muted);
  flex-grow: 1;
}

/* How It Works Step Cards */
.step-card {
  position: relative;
  text-align: center;
  padding: 2rem;
  height: 100%;
}
.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--brand-sage);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 10px rgba(138, 149, 133, 0.3);
}
.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.step-text {
  font-size: 0.95rem;
  color: var(--neutral-muted);
}
.step-connector {
  position: absolute;
  top: 45px;
  left: 60%;
  right: -40%;
  height: 2px;
  background-color: var(--brand-taupe);
  opacity: 0.3;
  z-index: 1;
}

/* Why Choose Us Cards */
.benefit-item {
  display: flex;
  margin-bottom: 1.8rem;
}
.benefit-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--brand-rose-light);
  color: var(--brand-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 1.2rem;
  flex-shrink: 0;
}
.benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.benefit-desc {
  font-size: 0.95rem;
  color: var(--neutral-muted);
}

/* Travel Gallery */
.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.gallery-card:focus-visible {
  outline: 3px solid var(--brand-sage);
  outline-offset: 3px;
}
.gallery-media-box {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  background-color: var(--neutral-offwhite);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-media-box,
.gallery-card:focus-visible .gallery-media-box {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
}
.gallery-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-media {
  transform: scale(1.06);
}
.gallery-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-sage);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-play-badge {
  background-color: var(--brand-rose);
  color: #ffffff;
}
.gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1.25rem 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(45, 48, 46, 0.85), rgba(45, 48, 46, 0));
  color: #ffffff;
}
.gallery-overlay-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}
.gallery-overlay-text {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery lightbox */
.gallery-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  min-height: 320px;
  max-height: 78vh;
}
.gallery-modal-media img,
.gallery-modal-media video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.85);
  color: var(--neutral-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.gallery-nav:hover {
  background-color: var(--brand-sage);
  color: #ffffff;
}
.gallery-nav-prev {
  left: 14px;
}
.gallery-nav-next {
  right: 14px;
}

/* Product Cards */
.product-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.product-img-box {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  background-color: var(--neutral-offwhite);
  overflow: hidden;
}
.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background-color: var(--brand-slate);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.product-badge.out-of-stock {
  background-color: var(--neutral-muted);
}
.product-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-sage);
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--neutral-muted);
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

/* Contact Info Box */
.contact-info-card {
  background-color: var(--brand-sage);
  color: #ffffff;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  height: 100%;
  box-shadow: 0 8px 25px rgba(138, 149, 133, 0.2);
}
.contact-info-card h3 {
  color: #ffffff;
}
.contact-info-item {
  display: flex;
  margin-bottom: 1.8rem;
  align-items: center;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-right: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.contact-info-item:hover .contact-info-icon {
  background-color: #ffffff;
  color: var(--brand-sage);
  transform: scale(1.1);
}
.contact-info-content h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  opacity: 0.8;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
}
.contact-info-content a, .contact-info-content p {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.social-icon-btn:hover {
  background-color: #ffffff;
  color: var(--brand-sage);
  transform: translateY(-3px);
}

/* Form Styles */
.form-control, .form-select {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--neutral-dark);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-sage);
  box-shadow: 0 0 0 3px rgba(138, 149, 133, 0.15);
  background-color: #ffffff;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Floating Quick Action Buttons Stack */
.floating-actions-stack {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.floating-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}
.floating-action-btn:hover {
  transform: scale(1.1) translateY(-3px);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.floating-action-btn:active {
  transform: scale(0.95);
}
.fab-call {
  background-color: var(--brand-sage);
}
.fab-call:hover {
  background-color: var(--brand-sage-dark);
}
.fab-sms {
  background-color: var(--brand-slate);
}
.fab-sms:hover {
  background-color: #5d6f7a;
}
.fab-whatsapp {
  background-color: #25D366;
}
.fab-whatsapp:hover {
  background-color: #128C7E;
}

/* Entrance Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 991px) {
  .hero-section {
    padding: 7rem 0 4rem 0;
    text-align: center;
  }
  .hero-title {
    font-size: 3.1rem;
  }
  .hero-img-wrapper {
    margin-top: 3.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-img-wrapper {
    margin-top: 3rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .step-connector {
    display: none;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 4rem 0;
  }
  .contact-info-card {
    padding: 2rem 1.5rem;
  }
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background-color: var(--neutral-cream);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
}
.dropdown-item {
  color: var(--neutral-dark) !important;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--brand-sage-light);
  color: var(--brand-sage) !important;
}
.dropdown-divider {
  border-color: rgba(0,0,0,0.05);
  margin: 0.4rem 0;
}
