/* Aiken Well Drilling — Custom CSS */

/* ── Scroll-reveal animations ── */
.section-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover lift ── */
.card-hover {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-hover:hover {
  box-shadow: 0 12px 32px rgba(27, 43, 75, 0.15);
  transform: translateY(-3px);
}

/* ── Nav active link underline ── */
nav a.nav-active {
  color: #F5C100 !important;
  position: relative;
}
nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #F5C100;
  border-radius: 1px;
}

/* ── Sticky header shadow transition ── */
header {
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* ── Lightbox overlay ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(245, 193, 0, 0.7);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── FAQ accordion ── */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-chevron {
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

/* ── Contact form validation highlight ── */
.field-error {
  border-color: #e53e3e !important;
}
.field-error-msg {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ── Mobile menu drawer ── */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 640px;
  opacity: 1;
}

/* ── History/Team pill toggle (about.html) ── */
.toggle-pill {
  padding: 0.55rem 1.75rem;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1B2B4B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle-pill:hover {
  color: #C9A000;
}
.toggle-pill.active {
  background: #1B2B4B;
  color: #fff;
}

/* ── Team placeholder avatars (about.html) ── */
.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B2B4B 0%, #0F1C33 100%);
  color: #F5C100;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Oregon county map (service-area.html) ── */
#oregon-map-svg {
  width: 100%;
  height: auto;
  display: block;
}
#oregon-map-svg .county {
  fill: #D1D9E6;
  stroke: #fff;
  transition: fill 0.2s ease;
}
#oregon-map-svg .county.served {
  fill: #F5C100;
}
#oregon-map-svg .county.served:hover {
  fill: #C9A000;
}
#oregon-map-svg .county.tricounty {
  fill: #C9A000;
  stroke-width: 2;
}
.map-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* ── Hero overlay gradient ── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(27,43,75,0.88) 0%, rgba(15,28,51,0.55) 100%);
}

/* ── Print styles ── */
@media print {
  header, footer, .cta-banner { display: none; }
  .print-phone {
    font-size: 2rem;
    font-weight: bold;
    display: block;
  }
}
