/* Site-wide motion + interactive map */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.header {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 28px rgba(12, 45, 80, 0.1);
  border-bottom-color: #e0e5ec;
}

/* Interactive service area map — Leaflet */
.interactive-map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.map-stage {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #dce3ec;
  height: clamp(320px, 42vw, 430px);
  min-height: 320px;
  background: #e8edf3;
  z-index: 1;
}

.map-stage .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.map-stage .leaflet-control-zoom a {
  color: #1f3a5f;
  border-color: #dce3ec;
}

.map-stage .leaflet-control-zoom a:hover {
  background: #f5f7fa;
  color: #c9a227;
}

.leaflet-map-marker {
  background: transparent;
  border: none;
}

.leaflet-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d4af37 0%, #c9a227 100%);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(31, 58, 95, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.leaflet-map-marker.is-active .leaflet-pin-dot,
.leaflet-map-marker:hover .leaflet-pin-dot {
  transform: scale(1.45);
  background: linear-gradient(180deg, #2a4d78 0%, #1f3a5f 100%);
  box-shadow: 0 4px 14px rgba(31, 58, 95, 0.45);
}

.map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  border: 1px solid #e7eaee;
  box-shadow: 0 10px 28px rgba(12, 45, 80, 0.15);
  padding: 0;
}

.map-popup .leaflet-popup-content {
  margin: 0.75rem 0.875rem;
  line-height: 1.45;
  color: #4d6074;
  font-size: 0.875rem;
}

.map-popup-inner strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1f3a5f;
  font-size: 0.9375rem;
}

.map-popup-inner p {
  margin: 0;
}

.map-popup .leaflet-popup-tip {
  border-top-color: #fff;
}

.map-attribution {
  margin: 0;
  font-size: 0.6875rem;
  color: #7a8798;
  text-align: right;
}

.map-attribution a {
  color: #5f6f80;
  text-decoration: underline;
}

.map-attribution a:hover {
  color: #1f3a5f;
}

.map-info-panel {
  padding: 1rem 1.125rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f3a5f 0%, #152a47 100%);
  color: #fff;
  border-left: 4px solid #c9a227;
  min-height: 5.5rem;
  transition: transform 0.3s ease;
}

.map-info-panel.is-updating {
  transform: translateY(-2px);
}

.map-info-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #c9a227;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-info-city {
  display: block;
  margin-bottom: 0.375rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.map-info-desc {
  margin: 0;
  color: #ecf2f8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cities-grid .chip {
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cities-grid .chip.is-active {
  border-color: #c9a227;
  background: #fff9e8;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.2);
  transform: translateY(-2px);
}

.cities-grid .chip.chip-more {
  cursor: default;
}

/* FAQ smooth open */
.faq .faq-item .faq-a,
.faq-page .faq-item .faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}

.faq .faq-item.open .faq-a,
.faq-page .faq-item.open .faq-a {
  max-height: 14rem;
  opacity: 1;
  padding-bottom: 1.125rem;
}

.faq .faq-q .icon-img,
.faq-page .faq-q .icon-img {
  transition: transform 0.3s ease;
}

/* Card lift on scroll complete */
.service-detail-card,
.credential-card,
.special-card,
.feature-item,
.specialized-link-card {
  will-change: transform;
}

/* Hero subtle float on portrait */
@media (min-width: 901px) {
  .portrait-wrap img,
  .about-photo-frame img {
    animation: gentle-float 7s ease-in-out infinite;
  }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.about-photo:hover .about-photo-frame img {
  animation: none;
  transform: translateY(-4px);
}
