/* Maestro — contact page (page-specific layout only; shared components live in styles.css) */

/* ---------- 01 · page hero (ink) ---------- */
.contact-hero {
  padding-top: calc(76px + clamp(44px, 6vw, 84px));
}
.contact-hero .hero-kicker {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-on-dark-soft);
}
.contact-hero .hero-kicker::before {
  content: ""; width: 8px; height: 8px; background: var(--red); flex: none;
}
.contact-hero h1 {
  font-size: var(--fs-hero);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.hero-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero-strap {
  grid-column: 1 / span 4;
  color: var(--text-on-dark);
  border-left: 1px solid var(--red);
  padding-left: 1.1rem;
  align-self: start;
}
.hero-body {
  grid-column: 5 / span 6;
  color: var(--text-on-dark);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 52ch;
}

/* the giant mailto band */
.mail-band {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rule-dark);
  padding-block: clamp(1.9rem, 3.5vw, 3rem) clamp(3.25rem, 6.5vw, 5.5rem);
}
.mail-label { color: var(--text-on-dark-soft); }
.mail-giant {
  display: inline-block;
  position: relative;
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
  /* sized to hold ONE line from 821px up (string ≈ 17.8em in Archivo 850 expanded);
     the only break opportunity is the <wbr> after the @ — never mid-word */
  font-size: clamp(2.1rem, 4.5vw, 4.05rem);
  color: var(--white);
  overflow-wrap: normal;
  word-break: normal;
}
.mail-giant::after {
  content: ""; position: absolute; left: 0; bottom: -0.08em;
  width: 100%; height: 0.055em; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.mail-giant:hover::after,
.mail-giant:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.mail-cta { margin-top: clamp(1.5rem, 2.75vw, 2.25rem); }

/* ---------- 02 · location cards (paper) ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.loc-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 3.2vw, 3.25rem);
}
.loc-card--depot { grid-column: 1 / span 7; }
.loc-card--office { grid-column: 8 / span 5; margin-top: clamp(2.5rem, 6vw, 5.5rem); }

.loc-tag { color: var(--red); }
.loc-card h2 {
  font-size: var(--fs-h3);
  margin-top: 1.1rem;
  color: var(--ink);
}
.loc-addr {
  font-style: normal;
  margin-top: 1.3rem;
  line-height: 1.75;
}
.loc-coords {
  display: block;
  color: var(--text-soft);
  border-block: 1px solid var(--rule);
  padding-block: 0.8rem;
  margin-block: 1.4rem;
}
.loc-body { color: var(--text-soft); max-width: 48ch; }
.loc-card .link-arrow { margin-top: 1.7rem; }

/* ---------- 03 · the map (full bleed) ---------- */
.map-section { background: var(--white); }
.lo-map {
  width: 100%;
  height: 74vh;
  min-height: 560px;
  border-block: 1px solid var(--rule);
  background: var(--paper);
  scroll-margin-top: 90px;
  z-index: 0; /* keep leaflet panes under the fixed nav */
}
.map-caption {
  background: var(--ink);
  color: var(--text-on-dark-soft);
  padding-block: 16px;
}

/* leaflet — align the widget with the design system (page-scoped, no shared overrides) */
#map.leaflet-container { font-family: var(--font-sans); }
.lo-map .leaflet-tile-pane { filter: grayscale(0.35); }
.lo-pin { background: none; border: none; }
.lo-pin svg { display: block; }

.lo-map .leaflet-bar { border-radius: 0; border: 1px solid var(--rule); box-shadow: none; }
.lo-map .leaflet-bar a { border-radius: 0; color: var(--ink); }
.lo-map .leaflet-bar a:first-child,
.lo-map .leaflet-bar a:last-child { border-radius: 0; }

.lo-map .leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--text);
}
.lo-map .leaflet-popup-tip { box-shadow: none; }
.lo-map .leaflet-popup-content {
  margin: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.popup-title {
  display: block;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.popup-mail {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero-cols { display: block; }
  .hero-body { margin-top: 1.75rem; max-width: 60ch; }

  /* intentional two-line lockup: business@ / maestrodrc.com (breaks at the <wbr>).
     The domain line measures ~11.6em in Archivo 850 expanded, so size against the
     container: gutter is 4.5vw down to 444px (→ 7.45vw), fixed 20px below (→ calc) */
  .mail-giant { font-size: min(7.45vw, calc((100vw - 40px) / 12.1)); }

  .loc-grid { display: block; }
  .loc-card--office { margin-top: 1.25rem; }

  .lo-map { height: 70vh; min-height: 440px; }
}
