:root {
  /* Palette variables */
  --color-columbia-blue: #bfd7ea;   /* light */
  --color-cadet-gray:   #91aec1;    /* mid light */
  --color-air-force-blue:#508ca4;   /* blue accent */
  --color-sea-green:    #0a8754;    /* primary accent */
  --color-cal-poly-green:#004f2d;   /* deep green */

  /* Theme mapping */
  --color-bg-dark: var(--color-cal-poly-green);
  --color-bg-darker: #003c24; /* darker shade for sections */
  --color-bg-light: var(--color-columbia-blue);
  --color-text-light: #ffffff;
  --color-text-dark: var(--color-cal-poly-green);
  --color-accent: var(--color-sea-green);
  --color-accent-dark: var(--color-air-force-blue);
  --color-whatsapp: var(--color-sea-green);
  --color-footer-text: var(--color-cadet-gray);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Navbar */
.navbar {
  background-color: var(--color-bg-dark) !important;
}
.navbar-brand {
  color: var(--color-text-light) !important; /* keep logo white */
  font-weight: bold;
  transition: color 0.3s ease;
}
.navbar-brand:hover {
  color: var(--color-text-light) !important; /* remain white on hover */
}
.nav-link {
  color: var(--color-columbia-blue) !important;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--color-accent) !important;
}
.navbar-toggler-icon {
  filter: invert(100%) brightness(200%);
}
.navbar-nav.gap-3 > .nav-item {
  margin: 0 0.5rem;
}

/* Animate sections on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0,79,45,0.75), rgba(0,79,45,0.92)),
    url('../images/bg.png') no-repeat center/cover;
  min-height: 100dvh;
  padding: 3rem 1rem;
  color: var(--color-text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero h1 {
  max-width: 900px;
  margin: 0 0 1rem;
}
.hero p.lead {
  max-width: 800px;
  margin: 0 0 2rem;
}

/* Short hero bullet list */
.hero-intro { font-size: 1rem; line-height: 1.5; }
.hero-intro li { margin-bottom: 0.5rem; }

.contact-container {
  max-width: 600px;
  margin-top: 2rem;
}
.contact-container h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-container p.lead {
  margin-bottom: 2rem;
  color: var(--color-columbia-blue);
}
.contact-container a.btn {
  min-width: 220px;
  margin-bottom: 1rem;
}

/* Responsive Hero Padding & Font Sizes */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .btn-highlight {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }
  .contact-container a.btn {
    min-width: 180px;
  }
  .hero-intro { font-size: 0.95rem; }
}
@media (min-width: 768px) {
  .hero {
    padding: 10rem 4rem;
  }
}
@media (min-width: 1200px) {
  .hero {
    padding: 14rem 6rem;
  }
}

/* Highlight Button */
.btn-highlight {
  background-color: var(--color-accent);
  color: #fff;
  font-weight: bold;
  padding: 0.9rem 2.5rem;
  font-size: 1.25rem;
  transition: background-color 0.3s ease;
}

/* Sections */
.section-dark, .section-light {
  padding: min(10vh, 5rem) 2rem;
}
.section-dark {
  background-color: var(--color-bg-darker);
}
.section-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* Footer */
footer {
  background-color: var(--color-cal-poly-green);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-footer-text);
}

/* Contact Section (Hero) */
#contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.356), rgb(0, 0, 0)),
    url('../images/bg.png') no-repeat center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  position: relative;
  padding: min(10vh, 5rem) 1rem;
}
#contact .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}
#contact h2,
#contact p,
#contact a {
  margin: 0.5rem;
  display: inline-block;
  min-width: 160px;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
#contact.in-view h2,
#contact.in-view p,
#contact.in-view a {
  opacity: 1;
  transform: translateY(0);
}
/* Buttons spacing */
#contact a {
  min-width: 220px;
}

/* Floating Buttons */
a.btn.position-fixed {
  transition: transform 0.3s ease-in-out;
}
a.btn.position-fixed:hover {
  transform: scale(1.05);
}

/* WhatsApp Icon Hover */
a[href*="wa.me"] img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--color-whatsapp);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1300;
  width: 48px;
  height: 48px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}
.floating-whatsapp img {
  filter: invert(1);
  width: 24px;
  height: 24px;
}
.floating-whatsapp:hover {
  background-color: var(--color-accent-dark);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow:
      0 0 15px #0a8754aa,
      0 0 30px #0a875455,
      0 0 45px #0a875433;
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 25px #0a8754ff,
      0 0 50px #0a8754aa,
      0 0 75px #0a875488;
    transform: scale(1.1);
  }
}

/* Small screen floating WhatsApp adjustments */
@media (max-width: 360px) {
  .floating-whatsapp {
    width: 56px;
    height: 56px;
    padding: 10px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Testimonials Section */
.testimonials-wrapper {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.testimonials-wrapper blockquote {
  min-width: 300px;
  max-width: 320px;
  flex: 0 0 auto;
  border-left: 5px solid var(--color-accent);
  border-radius: 8px;
  background-color: #fff;
  color: var(--color-cal-poly-green);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(136, 136, 136, 0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#testimonials blockquote footer.blockquote-footer {
  color: var(--color-cal-poly-green);
  background-color: var(--color-columbia-blue);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Animation delays for fade-in */
.animated-fadein {
  animation: fadeInUp 0.8s forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky CTA Banner */
#sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 -2px 8px rgb(0 0 0 / 0.3);
  z-index: 1200;
  height: 50px;
  line-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}
#sticky-cta a.btn {
  font-weight: 700;
  min-width: 160px;
  white-space: nowrap;
}

@media (max-width: 576px) {
  #sticky-cta {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    height: auto;
    line-height: normal;
  }
  #sticky-cta a.btn {
    width: 100%;
    min-width: auto;
  }
  /* Testimonials scroll smaller */
  .testimonials-wrapper blockquote {
    min-width: 260px;
    max-width: 260px;
  }
}

#contact h1,
#contact h2,
#contact p,
#contact small {
margin: 0.5rem 0;
max-width: 100%;
white-space: normal;
text-overflow: clip;
overflow: visible;
}
#contact .contact-container a.btn {
display: inline-block;
min-width: 160px;
white-space: nowrap; /* keep buttons single‑line */
}

.tag-cloud {
display: block;
margin: 0.5rem auto 0;
max-width: 900px;
line-height: 1.4;
white-space: normal;
overflow-wrap: anywhere;     /* modern /
word-break: break-word;      / fallback /
text-wrap: pretty;           / progressive enhancement /
opacity: 0.8;
}
@media (max-width: 420px) {
.tag-cloud { display: none; } / Optional: hide on very small screens */
}

/* Portrait wrapper: keep vertical videos pleasant on desktop */
.video-portrait {
  max-width: 420px;      /* adjust as you like (e.g., 360–480px) */
  width: 100%;
}

/* Lazy video preview (same as before) */
.video-lazy { position: relative; cursor: pointer; border-radius: 0.5rem; overflow: hidden; }
.video-lazy .video-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block; /* cover fills the frame */
}
/* If you prefer no crop and are okay with bars, switch to: object-fit: contain; background:#000; */

.video-lazy .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  color: #fff; font-size: clamp(36px, 6vw, 72px);
}
.video-lazy:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.video-lazy video { width: 100%; height: 100%; display: block; }