/* H&H Pump — 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, 61, 111, 0.15);
  transform: translateY(-3px);
}

/* ── Nav active link underline ── */
nav a.nav-active {
  color: #5B9EC9 !important;
  position: relative;
}
nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #5B9EC9;
  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);
}

/* ── 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;
  display: block;
}

/* ── 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;
}

/* ── Hero overlay gradient ── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.90) 0%, rgba(27, 61, 111, 0.60) 100%);
}

/* ── Anchor offset below fixed header ── */
section[id],
article[id] {
  scroll-margin-top: 7.5rem;
}

/* ── Timeline (about.html) ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #C8DCF0;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5B9EC9;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #5B9EC9;
}

/* ── Sticky mobile call bar ── */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2C6499;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
}
.mobile-call-bar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
@media (max-width: 767px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 3.25rem; }
}

/* ── Client photo placeholders ── */
.ph-label {
  background: #EBF4FB;
  border: 2px dashed #C8DCF0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4A5A6A;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 1rem;
}
.ph-label::after {
  content: attr(data-label);
  max-width: 92%;
}
.ph-hero {
  background: linear-gradient(160deg, #1B3D6F 0%, #0F2A4A 70%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
}
.ph-hero::after {
  content: attr(data-label);
}

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