/* NON-CRITICAL STYLES - LOADED DEFERRED */

/* SECTION WRAPPER */
section {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
section.visible { opacity: 1; transform: translateY(0); }
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 1.8rem;
  color: #1F2A4A;
}
/* Dark mode: make section titles lighter */
.sky.night ~ main section .section-title {
  color: #fff;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ffd700;
  margin: 1rem auto;
}
#journeys .section-title {
  text-align: left;
}
#journeys .section-title::after {
  margin-left: 0;
}
.about-grid,
.journeys-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-items: center;
}
.about-text,
.journeys-copy {
  max-width: 640px;
  justify-self: stretch;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  text-align: left;
}
.about-portrait,
.journeys-media {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  max-width: 300px;
  width: 100%;
  justify-self: center;
}
.about-portrait picture,
.journeys-media picture {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.about-portrait img,
.journeys-media img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
}
.about-portrait img {
  object-position: center 15%;
}
.about-portrait figcaption,
.journeys-media figcaption {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
  font-size: 0.9rem;
}
.sky.night ~ main #about .about-text p,
.sky.night ~ main .journeys-media figcaption,
.sky.night ~ main #about .about-portrait figcaption {
  color: #e2e8f0;
}
.sky.night ~ main .journeys-media,
.sky.night ~ main #about .about-portrait {
  background: rgba(15,28,58,0.8);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

/* COMPANION TIMELINE */
.companion-timeline-section {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 55px rgba(0,0,0,0.08);
}
.sky.night ~ main .companion-timeline-section {
  background: rgba(12,22,42,0.85);
  box-shadow: 0 25px 65px rgba(0,0,0,0.5);
}
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-time {
  min-width: 90px;
  font-weight: 700;
  color: #1f2a4a;
  font-size: 0.95rem;
}
.timeline-content {
  background: #f6f8ff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  flex: 1;
}
.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #1f2a4a;
}
.timeline-content p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}
.sky.night ~ main .timeline-time {
  color: #f8fafc;
}
.sky.night ~ main .timeline-content {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.sky.night ~ main .timeline-content h3,
.sky.night ~ main .timeline-content p {
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .timeline-item {
    flex-direction: column;
  }
  .timeline-time {
    min-width: auto;
  }
}

@media (min-width: 900px) {
  .journeys-layout {
    grid-template-columns: minmax(0, 1.2fr) auto;
    justify-items: start;
  }
  #about .about-grid {
    grid-template-columns: minmax(0, 1.1fr) auto;
    justify-items: start;
  }
  .journeys-media,
  #about .about-portrait {
    justify-self: end;
  }
}

/* SERVICES & EXPECTATIONS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 0 0.5rem;
}
.service-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: #ffd700;
  transition: height 0.3s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-card.active {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-left: 5px solid #ffd700;
}
.service-card h3 {
  color: #1F2A4A;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.service-card p { color: #4a5568; font-size: 0.95rem; line-height: 1.5; }

/* TESTIMONIALS CAROUSEL */
.testimonials {
  margin: 3rem auto;
  max-width: 800px;
  position: relative;
}
.testimonial-slides {
  display: flex;
  overflow: hidden;
  position: relative;
  height: 220px;
  border-radius: 12px;
}
.testimonial-slide {
  min-width: 100%;
  padding: 2rem;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.testimonial-slide.active { opacity: 1; transform: translateX(0); z-index: 1; }
.testimonial-slide img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #ffd700;
}
.testimonial-quote { font-style: italic; margin-bottom: 1rem; color: #4a5568; }
.testimonial-author { font-weight: bold; color: #1F2A4A; }
.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}
.testimonial-dot.active { background: #ffd700; }
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(31,42,74,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s ease;
}
.testimonial-arrow:hover { background: #1F2A4A; }
.testimonial-prev { left: -20px; }
.testimonial-next { right: -20px; }

/* INTERACTIVE MAP */
.destination-map {
  margin: 2rem auto;
  max-width: 1200px;
  height: 750px; /* Desktop default */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.map-container {
  position: relative;
  width: 100%;
  height: 100%;
}
#mapContainer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Force light color scheme for the embedded map */
  color-scheme: light;
  filter: none !important;
}

/* PRICING */
.pricing {
  text-align: center;
  font-size: 2rem;
  color: #1F2A4A;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* CONTACT FORM */
.contact-form-section {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.contact-form-section .section-title {
  font-size: 2rem;
}
.lead-form {
  display: grid;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  background: #ffd700;
  color: #1F2A4A;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.submit-btn:hover {
  background: #ffe600;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.sky.night ~ main .contact-form-section {
  background: rgba(24,34,58,0.95);
  box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}
.sky.night ~ main .contact-form-section p,
.sky.night ~ main .contact-form-section .section-title,
.sky.night ~ main .contact-form-section .form-group label {
  color: #e2e8f0;
}
.sky.night ~ main .contact-form-section .form-group input,
.sky.night ~ main .contact-form-section .form-group textarea {
  background: #3b4364;
  border-color: #4b5678;
  color: #f8fafc;
}
.sky.night ~ main .contact-form-section .form-group input::placeholder,
.sky.night ~ main .contact-form-section .form-group textarea::placeholder {
  color: #c5cee8;
}

@media (prefers-color-scheme: dark) {
  .contact-form-section {
    background: rgba(28,36,58,0.9);
    box-shadow: 0 15px 45px rgba(0,0,0,0.55);
  }
  .contact-form-section .form-group label,
  .contact-form-section p,
  .contact-form-section .section-title {
    color: #e8edf9;
  }
  .contact-form-section .form-group input,
  .contact-form-section .form-group textarea {
    background: #4d5776;
    border-color: #66709a;
    color: #f8fafc;
  }
  .contact-form-section .form-group input::placeholder,
  .contact-form-section .form-group textarea::placeholder {
    color: #cdd6f1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
footer {
  background: #1F2A4A;
  color: #fff;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  align-items: start;
}
.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ffd700;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 1.8;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-socials a {
  font-size: 1.5rem;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* FLOATING BUTTON (SCROLL TO TOP) */
.floating-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #ffd700;
  color: #1F2A4A;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  animation: bounce 1.8s infinite;
  display: none; /* Hidden by default, shown by JS */
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
  z-index: 100;
}
.floating-button.visible {
  display: flex;
}
.floating-button:hover {
  transform: scale(1.1);
  background: #ffe600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* STICKY MOBILE CTA */
.sticky-mobile-cta {
  display: none; /* Hidden by default */
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Increase mobile map height so it's not too small */
  .destination-map {
    height: 500px;
  }
  .contact-form-section {
    margin: 2rem 1rem;
  }
  /* Adjust testimonial arrow positions on mobile */
  .testimonial-prev { left: 10px !important; }
  .testimonial-next { right: 10px !important; }

  /* STICKY MOBILE CTA - visible only on mobile */
  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1F2A4A;
    padding: 0.8rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
  }
  .sticky-cta-button {
    flex-grow: 1;
    background: #ffd700;
    color: #1F2A4A;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
  }
  .sticky-cta-consult {
    color: white;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
  }
  main {
    padding-bottom: 80px; /* Add padding to main to avoid overlap with sticky CTA */
  }
}
