:root {
  /* Provided palette */
  --teal: #087e8b;
  --bittersweet: #ff5a5f;
  --onyx: #3c3c3c;
  --white-smoke: #f5f5f5;
  --puce: #c1839f;

  /* Theme mapping */
  --color-bg-dark: var(--onyx);
  --color-bg-darker: #2b2b2b; /* deeper onyx for dark sections */
  --color-bg-light: var(--white-smoke);
  --color-text-light: #ffffff;
  --color-text-dark: var(--onyx);
  --color-accent: var(--teal);          /* primary accent */
  --color-accent-2: var(--bittersweet); /* secondary accent */
  --color-accent-3: var(--puce);        /* decorative accent */
  --color-accent-dark: #066771;         /* darker teal for hover states */
  --color-muted: #8f8f8f;
  --color-whatsapp: var(--teal);
  --color-footer-text: #d8d8d8;
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.01em;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}
h1, h2, h3 { line-height: 1.2; }
h1 { font-weight: 800; }

/* Bootstrap color tweaks to match palette */
.bg-dark { background-color: var(--color-bg-dark) !important; }
.text-warning { color: var(--color-accent-2) !important; }
.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--color-accent-2);
  --bs-btn-border-color: var(--color-accent-2);
  --bs-btn-hover-bg: #e24f55;
  --bs-btn-hover-border-color: #e24f55;
}
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-hover-bg: var(--color-accent-dark);
  --bs-btn-hover-border-color: var(--color-accent-dark);
}

/* Navbar */
.navbar { background-color: var(--color-bg-dark) !important; }
.navbar-brand,
.navbar-brand:hover {
  color: var(--color-text-light) !important;
  font-weight: bold;
  transition: color 0.3s ease;
}
.nav-link {
  color: var(--white-smoke) !important;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--color-accent) !important; }
.navbar-toggler-icon { filter: invert(100%) brightness(200%); }

/* 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: none;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(60,60,60,0.78), rgba(8,126,139,0.88)),
    url('../images/bgbw.png') no-repeat center/cover;
  min-height: 100dvh;
  padding-block: 3rem;
  padding-inline: 0;
  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; }

/* Hero contact container */
.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(--white-smoke);
}
.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-block: 10rem; } }
@media (min-width: 1200px) { .hero { padding-block: 14rem; } }

/* 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-bg-dark);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-footer-text);
}

/* 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: 10px;
  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 #087e8baa,
      0 0 30px #087e8b55,
      0 0 45px #087e8b33;
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 25px #087e8bff,
      0 0 50px #087e8baa,
      0 0 75px #087e8b88;
    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-3);
  border-radius: 8px;
  background-color: #fff;
  color: var(--color-text-dark);
  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-text-dark);
  background-color: var(--white-smoke);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Animation helpers */
.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-wrapper blockquote {
    min-width: 260px;
    max-width: 260px;
  }
}

/* Tag cloud */
.tag-cloud {
  display: block;
  margin: 0.5rem auto 0;
  max-width: 900px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: pretty;
  opacity: 0.8;
}
@media (max-width: 420px) {
  .tag-cloud { display: none; }
}

/* Portrait wrapper: keep vertical videos pleasant on desktop */
.video-portrait {
  max-width: 420px;
  width: 100%;
}

/* Lazy video preview */
.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;
}
.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; }

/* Keep main content centered and away from edges */
.hero .container,
#sticky-cta .container,
.section-light .container,
.section-dark .container,
footer .container,
header .container {
  max-width: 1140px;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.service-card { transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.section-light .card { background:#fff; }
.section-light .text-warning { color: var(--color-accent-2) !important; }

/* Gallery */
.gallery-filter .btn.active {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.gallery-item a.gallery-link { display: block; position: relative; text-decoration: none; color: inherit; }
.gallery-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover .gallery-thumb {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-filter .btn { border-radius: .5rem; white-space: nowrap; }

@media (max-width: 576px) {
  .gallery-filter .btn { flex: 1 1 calc(50% - .5rem); }
}
@media (max-width: 360px) {
  .gallery-filter .btn { flex: 1 1 100%; }
}

/* Contact – compact and readable */
#contact { padding: clamp(2rem, 5vh, 3rem) 1rem; }
#contact .container { max-width: 720px; }
#contact h1,
#contact h2,
#contact p,
#contact small {
  margin: 0.5rem 0;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
}
#contact .contact-container a.btn { display: inline-block; white-space: nowrap; }

@media (max-width: 576px) {
  #contact { padding: 2rem 1rem; }
  #contact .btn-lg { width: 100%; }
}

.modal { z-index: 2000; }
.modal-backdrop { z-index: 1990; }