/* Areas We Serve — London Boroughs Page */

.areas-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 30%, white 100%);
}

.areas-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.areas-hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.areas-hero-intro {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.areas-hero .hero-sub-trust {
  margin-top: 1rem;
}

.areas-cta .cta-hours {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* A-Z navigation — sticky below main header */
.areas-nav-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 80px;
  z-index: 90;
}

.areas-az-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.areas-az-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.areas-az-nav a:hover {
  background: var(--primary);
  color: white;
}

/* Boroughs index grid */
.areas-index {
  background: white;
}

.areas-index h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.boroughs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.borough-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 2rem;
  text-decoration: none;
  transition: var(--transition);
}

.borough-chip:hover {
  background: var(--primary);
  color: white;
}

/* Borough detail sections */
.boroughs-detail {
  background: var(--gray-50);
}

.boroughs-detail > .container > h2 {
  margin-bottom: 2rem;
}

.letter-anchor {
  scroll-margin-top: 180px;
}

/* Prevent fixed header overlapping borough blocks when scrolling to #borough-* (e.g. City of London) */
.borough-detail {
  scroll-margin-top: 100px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.borough-detail summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.borough-detail summary::-webkit-details-marker {
  display: none;
}

.borough-detail summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
}

.borough-detail[open] summary::after {
  content: '−';
}

.borough-detail summary:hover {
  background: var(--gray-50);
}

.borough-detail > *:not(summary) {
  padding: 0 1.25rem 1.25rem;
  margin-left: 0;
}

.borough-detail p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.borough-detail ul {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.borough-detail li {
  margin-bottom: 0;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 2rem;
}

.borough-detail li a {
  color: inherit;
  font-weight: 500;
}

.borough-detail a {
  color: var(--accent);
  font-weight: 600;
}

.borough-detail a:hover {
  text-decoration: underline;
}

/* FAQ */
.areas-faq {
  background: white;
}

.areas-faq .faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.areas-faq .faq-item {
  margin-bottom: 0.5rem;
}

.areas-faq summary {
  font-weight: 600;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.areas-faq p {
  padding: 0 1rem 1rem;
  color: var(--gray-600);
}

/* CTA section */
.areas-cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.areas-cta h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.areas-cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.areas-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.areas-cta-buttons .btn-primary {
  background: var(--accent);
}

.areas-cta-buttons .btn-primary:hover {
  background: var(--accent-hover);
}

.areas-cta-buttons .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.areas-cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

/* Sticky CTA group — uses styles.css; areas-specific overrides if needed */

@media (max-width: 768px) {
  .areas-hero {
    padding: 2.5rem 0 2.5rem;
  }

  /* Prevent A-Z nav bar from overlapping content below (no sticky on mobile) */
  .areas-nav-section {
    position: relative;
    top: auto;
  }

  /* Space so "All 32 London Boroughs & The City of London" h2 isn't under nav/header */
  .areas-index {
    padding-top: 1.25rem;
  }

  .letter-anchor {
    scroll-margin-top: 120px;
  }

  /* Mobile: scroll-margin so City of London (and all boroughs) sit fully below fixed header */
  .borough-detail {
    scroll-margin-top: 120px;
  }

  .boroughs-grid {
    gap: 0.4rem;
  }

  .borough-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
