/* --- CSS Variables & Color Palette --- */
:root {
  /* Premium Forest/Earth Theme */
  --bg-main: #F3F4F4;
  /* Barely-there green-tinted white */
  --bg-secondary: #F3F4F4;
  /* Soft sage/mint gray */
  --accent: #A1BC98;
  /* Rich Earthy Gold/Brown for luxury feel */
  --highlight: #25343F;
  /* Deep Forest Green for primary CTAs */
  --highlight-hover: #2d4657;
  /* Darker green for hover states */
  --text-dark: #061E29;
  /* Very dark green-gray instead of pure black */
  --text-light: #5A6A61;
  --white: #FFFFFF;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Poppins', serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 10px 30px rgba(42, 90, 64, 0.08);
  /* Green-tinted shadow */
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img,
video,
iframe {
  max-width: 100%;
  border-radius: 8px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--highlight);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 106, 106, 0.4);
}

.btn-primary:hover {
  background-color: #d15656;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 106, 106, 0.6);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 169, 90, 0.3);
}

.btn-secondary:hover {
  background-color: #f09545;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--text-dark);
}

/* --- Typography Helpers --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--highlight);
  border-radius: 2px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(249, 253, 249, 0.95);
  /* Matched to new bg-main */
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(42, 90, 64, 0.05);
  padding: 10px 0 !important;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 60px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo-text {
  display: none;
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--highlight);
  white-space: nowrap;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 5px;
}

.desktop-nav a.active {
  color: var(--highlight);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
  /* Stay above nav overlay */
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger .bar:nth-child(1) {
  top: 0;
}

.hamburger .bar:nth-child(2) {
  top: 10.5px;
}

.hamburger .bar:nth-child(3) {
  bottom: 0;
}

.hamburger.is-active .bar:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  animation: pulse 3s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.main-content {
  min-height: calc(100vh - 300px);
  /* Adjust based on header/footer */
  padding-top: 79px;
  /* Offset for fixed header */
}

.hero-page {
  padding-top: 0;
  /* Remove top padding for pages where hero is first */
}

.hero-page .main-content {
  padding-top: 0;
}

/* --- Cards (Packages & Generic) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
  overflow: hidden;
  height: 400px;
  /* Adjust based on package image aspect ratio */
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 3px solid var(--accent);
  margin-top: auto;
}

/* --- Image Gallery / Masonry --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 9/16;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* --- YouTube Section --- */
.youtube-section {
  background-color: var(--bg-secondary);
  border-radius: 20px;
  padding: 3rem;
  margin: 4rem auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.yt-badge svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.short-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 177.77%;
  /* Aspect ratio 9:16 for Shorts */
  height: 0;
  box-shadow: var(--shadow);
}

.short-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Alternating Layout (About, Forms, etc.) --- */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  display: block;
}

/* --- Features / Testimonials --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid var(--accent);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--bg-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 169, 90, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* --- Footer --- */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
  font-size: 1.3rem;
}

.footer-col p {
  color: #ccc;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--highlight);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 0.9rem;
}

/* --- Floating Buttons --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}

.float-btn:hover {
  transform: scale(1.1) translateY(-5px);
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-call {
  background-color: var(--highlight);
  animation-delay: 1.5s;
  /* stagger animation */
}

.float-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* --- Marquee --- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--highlight);
  color: var(--white);
  padding: 10px 0;
  white-space: nowrap;
  position: relative;
  display: flex;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 3rem 0 0 0;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding-right: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Button Loader Spinner --- */
.btn-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: btn-spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Popup Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-main);
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transform: scale(0.8) translateY(50px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 5px solid var(--accent);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--highlight);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-title {
  color: var(--highlight);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-body p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}