/* Big Dog Bins local-pages.css
   Shared styles for the town landing pages and the Service Area dropdown.
   Load after css/styles.css. Uses the same tokens (--red, --charcoal, --bg, fonts). */

/* ---------- Service Area dropdown (desktop) ---------- */
.nav__item--dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; color: var(--charcoal);
}
.nav__dropdown-toggle:hover { color: var(--red); }
.nav__dropdown-toggle svg { width: 0.9em; height: 0.9em; transition: transform 0.2s; }
.nav__item--dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: calc(100% + 0.6rem); left: -1rem; z-index: 120;
  min-width: 15rem; padding: 0.6rem; display: grid; gap: 0.1rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown:focus-within .nav__submenu,
.nav__item--dropdown.is-open .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu .nav__submenu a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; font-size: 0.95rem; }
.nav__menu .nav__submenu a::after { display: none; }
.nav__menu .nav__submenu a:hover, .nav__menu .nav__submenu a[aria-current="page"] { background: rgba(206,27,34,0.08); color: var(--red); }

/* ---------- Breadcrumb ---------- */
.crumbs { background: var(--kraft); font-family: var(--font-ui); font-size: 0.88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0.7rem 0; }
.crumbs li + li::before { content: '\203A'; margin-right: 0.4rem; color: var(--stone); }
.crumbs a { color: var(--charcoal); font-weight: 600; }
.crumbs [aria-current="page"] { color: var(--stone); }

/* ---------- Local hero (content + quick-quote card) ---------- */
.hero--local .hero__content { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.hero--local h1 { font-size: clamp(2.1rem, 5.6vw, 4.2rem); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); align-items: center; }
.hero__benefits { display: grid; gap: 0.65rem; margin: 0 0 2rem; }
.hero__benefits li { position: relative; padding-left: 1.9rem; color: rgba(255,255,255,0.92); font-size: 1.05rem; }
.hero__benefits li::before { content: '\2605'; position: absolute; left: 0; top: 0; color: #ff6b6f; font-size: 1.15rem; line-height: 1.5; }
.quick-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); border-top: 6px solid var(--red);
}
.quick-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--charcoal); }
.quick-card p { color: var(--stone); }
.quick-card__phone {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--red); margin: 0.4rem 0 0.2rem; line-height: 1.1;
}
.quick-card__hours { font-family: var(--font-ui); font-size: 0.92rem; color: var(--stone); margin-bottom: 1.4rem; }
.quick-card .btn { margin-top: 0.6rem; }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: #fff; }

/* ---------- Photo slot (placeholder until a real local photo is supplied) ---------- */
.photo-slot {
  display: grid; place-items: center; text-align: center; gap: 0.6rem;
  aspect-ratio: 4/3; border-radius: var(--radius); padding: 1.5rem;
  border: 3px dashed rgba(206,27,34,0.45); background: rgba(206,27,34,0.05);
  font-family: var(--font-ui); color: var(--stone); font-size: 0.95rem;
}
.photo-slot svg { width: 2.6rem; height: 2.6rem; color: var(--red); }
.photo-slot strong { color: var(--charcoal); display: block; }
.photo-slot--wide { aspect-ratio: 21/8; }

/* ---------- Quick facts grid ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid #eee6d8; }
.facts__row:nth-child(odd) { border-right: 1px solid #eee6d8; }
.facts dt { font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.facts dd { margin: 0; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; margin: 0; max-width: 32ch; }
.cta-band .btn--ghost { border-color: #fff; }

/* ---------- Card grids ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--jobs { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--stone); margin-bottom: 0; }
.card--compact { padding: 1.5rem 1.3rem; text-align: center; }
.card--compact .feature__icon { margin-inline: auto; }

/* ---------- Featured photo fallback (photo not uploaded yet) ---------- */
.situation .grid--2.is-single { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- Reviews widget and Google buttons ---------- */
.reviews-widget { margin-bottom: 2rem; }
.reviews-intro { text-align: center; color: var(--stone); font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.4rem; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Reviews ---------- */
.review { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.review__stars { color: var(--red); letter-spacing: 0.15em; font-size: 1.1rem; margin-bottom: 0.8rem; }
.review__name { font-family: var(--font-ui); font-weight: 700; color: var(--charcoal); margin: 0; }
.review--placeholder { border: 3px dashed rgba(206,27,34,0.45); box-shadow: none; background: rgba(206,27,34,0.04); }
.review--placeholder p { color: var(--stone); font-family: var(--font-ui); font-size: 0.95rem; }

/* ---------- Text sections ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.checks { display: grid; gap: 0.7rem; margin: 1.2rem 0 1.4rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: '\2713'; position: absolute; left: 0; top: 0.15rem; color: #fff; font-weight: 700;
  background: var(--red); width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem;
}
.note { background: #fff; border-left: 5px solid var(--red); border-radius: 10px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }

/* ---------- Coverage grid ---------- */
.coverage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem 1.5rem; max-width: 960px; margin: 0 auto; }
.coverage li { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-weight: 600; color: var(--charcoal); padding: 0.55rem 0; border-bottom: 1px solid #e6dfd1; }
.coverage li svg { width: 1rem; height: 1rem; color: var(--red); flex: none; }

/* ---------- Service area map (Leaflet) ---------- */
.area-map {
  height: clamp(340px, 52vw, 540px); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #e8e4dc; position: relative; z-index: 0;
}
.area-map .leaflet-control-attribution { font-family: var(--font-ui); font-size: 0.72rem; }
.area-map .leaflet-popup-content-wrapper { border-radius: 12px; border-top: 4px solid var(--red); }
.area-map .leaflet-popup-content { margin: 0.8rem 1rem; font-family: var(--font-ui); font-size: 0.92rem; line-height: 1.4; }
.area-map .leaflet-popup-content strong { display: block; font-size: 1rem; color: var(--charcoal); }
.area-map .leaflet-popup-content span { color: var(--stone); }
.area-map .leaflet-popup-content a { font-weight: 700; }
.map-pin { background: none; border: 0; }
.map-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,0.3)); }
.map-label.leaflet-tooltip {
  background: var(--charcoal); color: #fff; border: 0; border-radius: 6px; box-shadow: var(--shadow);
  font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem; padding: 0.25rem 0.55rem;
}
.map-label.leaflet-tooltip-top::before { border-top-color: var(--charcoal); }
.map-fallback { padding: 1.5rem; display: grid; gap: 0.4rem; font-family: var(--font-ui); }
.map-fallback li { font-weight: 600; color: var(--charcoal); }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; margin: 1.2rem 0 0.6rem; font-family: var(--font-ui); font-size: 0.92rem; color: var(--charcoal); }
.map-legend li { display: flex; align-items: center; gap: 0.5rem; }
.map-legend__swatch { width: 1.1rem; height: 1.1rem; border-radius: 4px; flex: none; }
.map-legend__swatch--area { background: rgba(206,27,34,0.18); border: 2px solid var(--red); }
.map-legend__swatch--pin { background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(0.8); }
.map-legend__swatch--town { background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--red); }
.map-note { color: var(--stone); margin: 0; }

/* ---------- Town links ---------- */
.town-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; max-width: 900px; margin: 0 auto; }
.town-links a {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 10px; padding: 1rem 1.2rem; box-shadow: var(--shadow);
  font-family: var(--font-ui); font-weight: 700; color: var(--charcoal);
  transition: transform 0.12s, color 0.15s;
}
.town-links a:hover { color: var(--red); transform: translateY(-2px); text-decoration: none; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/7; background: var(--kraft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }
.faq__item { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.faq__item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.faq__item p { margin: 0; color: var(--ink); }

/* ---------- Still have questions ---------- */
.questions { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.questions h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.questions p { max-width: 640px; margin: 0 auto 1.6rem; color: var(--stone); font-size: 1.1rem; }

.section--kraft { background: var(--kraft); }
.section--white { background: #fff; }

/* ---------- Accessibility toolbar ---------- */
.a11y { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 96; }
.a11y__toggle {
  width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: var(--charcoal); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(26,26,26,0.28);
}
.a11y__toggle svg { width: 1.5rem; height: 1.5rem; }
.a11y__panel {
  position: absolute; left: 0; bottom: calc(100% + 0.7rem); width: min(18rem, calc(100vw - 2rem));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.a11y__panel[hidden] { display: none; }
.a11y__panel p { grid-column: 1 / -1; margin: 0 0 0.2rem; font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; color: var(--charcoal); }
.a11y__btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.85rem; color: var(--charcoal);
  background: var(--bg); border: 1.5px solid #d8d2c6; border-radius: 8px; padding: 0.55rem 0.4rem; cursor: pointer;
}
.a11y__btn--wide { grid-column: span 3; text-align: left; padding-left: 0.8rem; }
.a11y__btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

html.a11y-gray main, html.a11y-gray .site-header, html.a11y-gray .site-footer { filter: grayscale(1); }
html.a11y-contrast { --bg: #ffffff; --ink: #000000; --stone: #111111; --kraft: #ffffff; }
html.a11y-contrast .hero__overlay { background: rgba(0,0,0,0.9); }
html.a11y-contrast .card p, html.a11y-contrast .feature p { color: #000; }
html.a11y-underline a { text-decoration: underline; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .btn, html.a11y-readable .nav__menu a { font-family: Verdana, Tahoma, Arial, sans-serif; letter-spacing: 0.02em; word-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .facts__row { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 900px) {
  .hero__grid, .cards--3, .cards--jobs { grid-template-columns: 1fr; }
  .cards--5 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts__row:nth-child(odd) { border-right: 0; }
  .coverage { grid-template-columns: repeat(2, 1fr); }
  .town-links { grid-template-columns: 1fr 1fr; }
  .map-frame { aspect-ratio: 4/3; }
  .photo-slot--wide { aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  .nav__item--dropdown { border-bottom: 1px solid rgba(26,26,26,0.08); }
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.9rem 0; font-size: 1.05rem; }
  .nav__submenu {
    position: static; min-width: 0; box-shadow: none; border-top: 0; background: transparent;
    padding: 0 0 0.6rem 0.8rem; opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__item--dropdown:hover .nav__submenu, .nav__item--dropdown:focus-within .nav__submenu { display: none; }
  .nav__item--dropdown.is-open .nav__submenu { display: grid; }
  .nav__menu .nav__submenu li { border-bottom: 0; }
  .nav__menu .nav__submenu a { padding: 0.6rem 0.8rem; font-size: 1rem; }
  .cards--5, .coverage, .town-links { grid-template-columns: 1fr; }
  .area-map { height: 460px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
