/*
 * verticals.css — Shared stylesheet for use-case vertical pages
 * (Events, Emergency, Festival, and future verticals)
 * Extends /location.css and /construction.css — load after both.
 * All colors/typography use the same design tokens as construction.css.
 */

/* ── Use-case authority section (matches osha-section rhythm) ── */
.vert-authority-section {
  padding: 72px 0;
  background: #f4f6f8;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
.vert-authority-inner {
  max-width: 860px;
  margin: 0 auto;
}
.vert-authority-inner h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900, #111827);
  margin-bottom: 1.25rem;
}
.vert-authority-inner p {
  color: var(--gray-600, #4b5563);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.vert-authority-inner ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.vert-authority-inner ul li {
  color: var(--gray-600, #4b5563);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.vert-authority-inner h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 1.75rem 0 0.75rem;
}

/* ── Ratio / planning table (matches osha-table styling) ── */
.vert-ratio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0 1.75rem;
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 0.75rem;
  overflow: hidden;
}
.vert-ratio-table th {
  background: var(--navy, #0f172a);
  color: var(--white, #fff);
  text-align: left;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vert-ratio-table td {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  color: var(--gray-700, #374151);
}
.vert-ratio-table td strong { color: var(--gray-900, #111827); }
.vert-ratio-table tbody tr:nth-child(even) td { background: var(--gray-50, #f9fafb); }
.vert-ratio-table tfoot td {
  font-size: 0.82rem;
  color: var(--gray-500, #6b7280);
  background: var(--white, #fff);
  font-style: italic;
}

.vert-authority-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .vert-authority-cta { flex-direction: column; }
}

/* ── Related services cross-links ── */
.related-services-section {
  padding: 4rem 0;
  /* Strong enough gray to read as its own band against adjacent white sections. */
  background: #f4f6f8;
  border-top: 1px solid var(--gray-200, #e5e7eb);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.related-card {
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.related-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900, #111827); margin-bottom: 0.45rem; }
.related-card p { font-size: 0.88rem; color: var(--gray-500, #6b7280); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.related-card .related-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-700, #1d4ed8);
  text-decoration: none;
}
.related-card .related-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Section rhythm fix (vertical service pages only) ──────────────────
   These pages stacked calc-banner (navy) → steps (navy) → plans (navy),
   reading as one giant blue slab. Re-theme the steps section as a light
   band so dark and light sections alternate cleanly down the page. */
.steps-section {
  background: var(--white, #fff);
  border-top: 1px solid var(--gray-200, #e5e7eb);
}
.steps-section .section-head h2 { color: var(--gray-900, #0f172a); }
.steps-section .section-head p { color: var(--gray-500, #6b7280); }
.steps-section .section-label {
  color: var(--gray-500, #6b7280);
  border-color: var(--gray-300, #d1d5db);
}
.steps-section .step-card {
  background: var(--gray-50, #f9fafb);
  border-color: var(--gray-200, #e5e7eb);
}

/* Hidden on desktop; stacked photo panel on mobile (background-image set per-page) */
.hero-img-panel { display: none; }

/* ── Mobile stacked hero ──────────────────────────────────────────────────
   On small screens: .hero-img-panel shows full-width photo above with a
   dark-navy gradient rising from the bottom, then solid dark-navy content
   below. Desktop layout (image as CSS background, content overlaid left)
   unchanged.
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
    overflow: visible;
  }
  .hero-img-panel {
    display: block;
    width: 100%;
    height: 50vw; /* 10% shorter; top of photo is cropped via 111% bg-size anchored bottom */
    max-height: 234px;
    flex-shrink: 0;
    /* background-image set per-page in each page's inline <style> */
    /* kill the subpixel hairline between panel and content section: overlap
       by 1px and force the bottom pixel row to solid navy */
    margin-bottom: -1px;
    border-bottom: 1px solid #0f172a;
  }
  .hero-body {
    /* pull content up so the H1 sits partially over the solid bottom
       gradient of the photo panel (panel bottom is solid navy, stays legible) */
    margin-top: -28px;
    padding-top: 0;
    padding-bottom: 44px;
  }
  /* location.css adds a ::before photo panel for city pages; vertical pages
     use a real .hero-img-panel div instead, so suppress the pseudo-element */
  .hero::before { content: none; }
  .hero-h1 { margin-top: 0; }
}
