/* ==============================================================================
   Lariscy Watson Mortgage Team — Custom Styles
   Supplements Tailwind CSS CDN — brand overrides & component-specific styles
   ============================================================================== */

/* --- Smooth scroll for anchor links --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky nav height */
}

/* --- Nav transitions --- */
.nav-sticky {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-sticky.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-sticky.scrolled .nav-link {
  color: #111928;
}

/* --- Mobile nav drawer --- */
.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero section --- */
.hero-decorative-dots {
  background-image: radial-gradient(circle, #8FC295 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

/* --- Photo collage overlap (When Should I Start section) --- */
.collage-stack img {
  transition: transform 0.3s ease;
}

.collage-stack img:hover {
  transform: scale(1.02);
}

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 800px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* --- Blog category filter pills --- */
.blog-filter-pill {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-filter-pill.active {
  background-color: #8FC295;
  color: #ffffff;
}

/* --- Blog cards --- */
.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Service cards --- */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- CTA banner gradient overlay --- */
.cta-banner-gradient {
  background: linear-gradient(135deg, #507A56 0%, #8FC295 100%);
}

/* --- Areas We Serve grid items --- */
.area-item {
  transition: background-color 0.2s ease;
}

.area-item:hover {
  background-color: #F8FAF9;
}

/* --- Mortgage calculator inputs --- */
.calc-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input:focus {
  border-color: #8FC295;
  box-shadow: 0 0 0 3px rgba(143, 194, 149, 0.2);
  outline: none;
}

/* --- GoHighLevel / Elfsight embed containers --- */
.ghl-embed-container iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

.elfsight-container {
  min-height: 200px;
}

/* --- Skip to content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: #507A56;
  color: #ffffff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --- Utilities --- */
.text-balance {
  text-wrap: balance;
}

/* --- Print styles --- */
@media print {
  .nav-sticky,
  .mobile-nav,
  .mobile-overlay,
  .ghl-embed-container,
  .elfsight-container,
  footer {
    display: none !important;
  }
}
