/* ── Public Site Styles ────────────────────────────────────────────────── */
/* rev: 2026-07-25T22:42-04:00 — section spacing fix */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Navbar */
.navbar .nav-link {
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-secondary) !important;
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-video {
  /* Height always fills the section — never letterboxed (no horizontal
     bars) — width scales from the video's own intrinsic aspect ratio and
     is centered, rather than being force-stretched/cropped to cover the
     full box like object-fit:cover did. On a viewport proportionally
     wider than the video (typical desktop), this leaves side "sidebars"
     that .hero-section's own background-color (var(--color-primary), the
     site's configured brand color) already shows through automatically —
     no separate fill color needed. On a viewport proportionally narrower
     than the video (e.g. mobile portrait), the computed width exceeds
     the viewport instead; .hero-section's existing overflow:hidden clips
     the excess evenly off both sides rather than showing horizontal bars.
  */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,.85) 0%, rgba(0,0,0,.5) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-cta {
  background: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  color: #fff;
  transition: background-color .15s ease, color .15s ease;
}
.hero-cta:hover, .hero-cta:focus {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* Section spacing */
section { padding: 5rem 0; }
section:nth-of-type(even) { background: #f8f9fa; }
section + section {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.hero-section + section { margin-top: 0; border-top: none; }

/* Section heading underline */
.section-heading {
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Service cards */
.service-card {
  transition: transform .25s, box-shadow .25s;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12) !important;
  border-top-color: var(--color-secondary);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-primary) 10%, white);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Testimonial cards */
.testimonial-card {
  border-left: 4px solid var(--color-secondary);
}

/* Why choose us */
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Contact section */
.contact-section { background: var(--color-primary) !important; }
.contact-section h2,
.contact-section p.text-muted { color: #fff !important; }
.contact-section .form-control,
.contact-section .form-select {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.contact-section .form-control::placeholder { color: rgba(255,255,255,.5); }
.contact-section .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(244,160,32,.25);
}
.contact-section label { color: rgba(255,255,255,.85); }

/* Footer hover utility */
.hover-white:hover { color: #fff !important; }

/* Admin-authored rich text in the footer (bold/lists/links) — links need
   explicit contrast since they'd otherwise inherit default link-blue against
   the dark footer background. */
.footer-rich-text a { color: #fff; text-decoration: underline; }
.footer-rich-text a:hover { color: var(--color-secondary, #f4a020); }
.footer-rich-text p:last-child { margin-bottom: 0; }
/* Normal HTML flow collapses runs of typed spaces to one — preserve them so
   admins can use spacing to visually separate independent elements (e.g. a
   copyright notice and a policy link) without them silently disappearing. */
.footer-rich-text { white-space: pre-wrap; }

/* Admin-authored rich text on standalone content pages (Privacy Policy) */
.legal-content { line-height: 1.7; }
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 1.75rem; margin-bottom: .75rem; }
.legal-content h1:first-child, .legal-content h2:first-child, .legal-content h3:first-child { margin-top: 0; }
.legal-content p:last-child { margin-bottom: 0; }

/* Fade-in animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats counter */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: opacity .2s;
}
#backToTop.show { display: flex; }

/* Gallery — auto-scrolling marquee */
.gallery-scroll-outer {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gallery-scroll-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 45s linear infinite;
}
.gallery-scroll-outer:hover .gallery-scroll-track {
  animation-play-state: paused;
}
.gallery-scroll-item {
  flex: 0 0 auto;
  width: 320px;
  margin-right: 1rem;
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.gallery-scroll-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  padding: .5rem .75rem .6rem;
  font-size: .85rem;
}
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-scroll-track { animation: none; }
  .gallery-scroll-outer { overflow-x: auto; }
}
