/* Define Color Palette */
:root {
  --primary-color: #8abd58;
  --primary-dark: #7aa949;  
  --secondary-color: #5a3324;
  --off-white: #f5f5f5;          /* Soft, neutral base background */
  --off-white-contrast: #000fff; /* Dark contrast for text and elements on off-white */
  --accent-color: #ffc107;       /* For stars and accents */
}
html {
  scroll-padding-top: 120px; /* or the height of your fixed navbar */
}

.topbar {
  background-color: var(--off-white) !important;;
  /*font-size: 0.85rem;*/
  /*z-index: 1031; !* Above navbar *!*/
}

.topbar a {
  color: var(--secondary-color);
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--primary-color);
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--secondary-color);
  background-color: var(--off-white);
  line-height: 1.6;
}

.toast-success {
  background-color: var(--primary-color); /* e.g. #8abd58 */
  color: #fff; /* or whatever contrasts well with your primary color */
}

.toast-error {
  background-color: #e74c3c; /* or your desired "red" tone */
  color: #fff;
}


section {
  padding: 60px 0;
}

/* Highlight class for color accents */
.highlight {
  color: var(--primary-color);
}

/* Navbar: Always same background color */
.navbar {
  background-color: var(--off-white) !important;
}
.navbar-brand {
  font-size: 1.8rem;
}

.nav-highlight {
color: var(--secondary-color);
}
.nav-link.active, .nav-link:hover {
  color: var(--primary-color);
  font-weight: bold;
}

/* Standard Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark) !important;
  filter: brightness(90%);
  transform: translateY(-1px);
}
/* Outline Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-dark) !important;
  color: var(--off-white-contrast) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

/* Link-Style Button */
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

/* Ensure icons inside buttons are centered */
.btn i,
.btn-outline i,
.btn-link i {
  margin-right: 0.5rem; /* Adjust spacing as needed */
  display: inline-flex;
  align-items: center;
}

/* Icon animation on hover for icons placed at the end */


.btn:hover .animate-icon-end,
.btn-outline:hover .animate-icon-end,
.btn-link:hover .animate-icon-end {
  transform: translateX(50px);
  transition: transform 0.5s ease-in-out;
}


/* Hero Section */
#hero {
  background: url('/img/atitlan_fisherman.png') no-repeat top center/cover;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  filter: brightness(100%);
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.4);
}
#hero .container {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* Button Microinteraction for Icons */
.btn .material-icons {
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
  margin-left: 5px;
}
.btn:hover .material-icons {
  transform: scale(1.1);
}
/* --- Frosted-Glass Style for Carousel Captions --- */
.carousel-caption {
  position: absolute;
  bottom: 2rem;                  /* Space above the bottom edge */
  left: 50%;                     /* Center horizontally */
  transform: translateX(-50%);   /* Center alignment fix */
  width: 80%;                    /* Slightly narrower than the image */
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.5); /* Subtle overlay */
  backdrop-filter: blur(5px);     /* Creates the frosted-glass effect */
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Larger heading for main focus */
.carousel-caption h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  .carousel-caption {
    width: 50%;              /* Slightly narrower so it doesn't span the entire width */
    bottom: 0.5rem;            /* Move it up or down to taste */
    padding: 0.3rem;
    font-size: 0.375rem;     /* Make overall text smaller */
    background: rgba(0, 0, 0, 0.3); /* lower opacity */
  }
  .carousel-caption h4 {
    font-size: 1.1rem;       /* Adjust title size on small screens */
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
}

/* Subtle highlight for the main goal using an accent underline */
.carousel-caption h4.highlight {
  position: relative;
  display: inline-block;
}

/* Force all carousel images to a uniform max-height */
.carousel-item img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

/* For top positioning */
.img-pos-top {
  object-position: top;
}

/* For center positioning */
.img-pos-center {
  object-position: center;
}

/* For bottom positioning */
.img-pos-bottom {
  object-position: bottom;
}

/* Paragraph text smaller & with a cleaner look */
.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 0;
}


/* Title icon styling */
h4.d-flex.align-items-center .material-icons {
  font-size: 2rem;      /* or however large you want the icon */
}

/* Add right arrow icon to CTA */
.btn-link.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* space between text and arrow */
}

/* Optional spacing tweaks */
.experience-item {
  margin-top: 6rem !important; /* Increase or decrease as desired */
}
/* Force service (experience) images to a uniform max-height */
.experience-item img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* Add margin-top to the text columns */
.col-md-6.mt-2 {
  margin-top: 0.5rem !important; /* 'mt-2' is 0.5rem in Bootstrap */
}


/* Destination Cards (for slider images) */
.destination-card {
  position: relative;
  overflow: hidden;
}
.destination-card img {
  transition: transform 0.5s ease;
}
.destination-card:hover img {
  transform: scale(1.05);
}
.destination-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem;              /* relative padding for responsiveness */
  transition: transform 0.3s ease;
  transform: translateY(100%);
}
.destination-card:hover .destination-overlay {
  transform: translateY(0);
}
/* GSAP Animations (basic style placeholders if needed) */
.slide-wrapper {
  overflow: hidden; /* so slides look smooth if content shifts in */
}
.slide-from-left,
.slide-from-right {
  opacity: 1;
}

/* (Optional) Tweak for more gutter space between columns, if desired */
@media (min-width: 768px) {
  .row.align-items-center > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Why Us Section */
.row.align-items-stretch {
  /* Ensures columns stretch to the same height */
  align-items: stretch;
}

.col-md-3.d-flex {
  /* Allows each column to become a flex container */
  display: flex;
}

.whyus-item {
  transition: transform 0.3s ease;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  /* Additional flex properties if needed */
  display: flex; 
  flex-direction: column; 
  justify-content: center;
}

.whyus-item .material-icons {
  color: var(--primary-color);
}


.whyus-item:hover {
  transform: scale(1.05);
}

/* Animated Icons */
.animated-icon {
  transition: transform 0.5s ease;
}
.animated-icon:hover {
  transform: rotate(10deg);
}

/* Our Experiences Section */
.experience-item {
  margin-bottom: 50px;
}
.experience-item img {
  width: 100%;
  border-radius: 8px;
}
.experience-item .text-center {
  margin-bottom: 20px;
}

/* Reviews Section (Carousel) with distinct background */
.bg-reviews {
  background-color: #f1f1f1;
}
.review-slide {
  padding: 20px;
}
.review-slide p {
  overflow: hidden;
}
.stars .star {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Contact Section with Parallax Background */
.parallax {
  background: url('/img/cathedral_park_antigua.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}
#contact .container {
  position: relative;
  z-index: 1;
  min-height: 90vh;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}
.contact-content {
  position: relative;
  z-index: 1;
  padding: 40px;
}

/* Contact Form */
#contact form {
  max-width: 600px;
  margin: 0 auto;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/*!* Button Microinteraction *!*/
/*.btn:hover {*/
/*  transform: translateY(-3px);*/
/*  transition: transform 0.2s ease-in-out;*/
/*}*/

/* Responsive Fixes */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}
