/* styles.css — Final, production-ready (Audited + Extended) */

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e5e5;
  --accent: #0a66c2;
  --bg-soft: #f8f9fb;
  --bg-panel: #ffffff;
}

/* =========================
   BASE RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-soft);
  letter-spacing: 0.01em;
}

/* =========================
   LAYOUT
========================= */

main,
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

section {
  background: var(--bg-panel);
  padding: 2.25rem 2.5rem;
  margin-bottom: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.15rem;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

em {
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.6rem;
}

/* =========================
   LINKS
========================= */

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   GLOBAL NAVIGATION
========================= */

.global-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.primary-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-weight: 500;
}

/* =========================
   HERO (HOME PAGE)
========================= */

.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  border: none;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.92)
    ),
    url("/assets/images/hero-accident.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  padding: 4rem 3rem;
}

.hero h1 {
  margin-top: 0;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
}

/* =========================
   ACTION / LIST SECTIONS
========================= */

.action-list ul {
  list-style: disc;
}

.cities ul {
  list-style: disc;
}

.cities-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   LISTINGS
========================= */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.listing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.listing-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem 0;
}

.listing-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================
   SPONSOR STACKS
========================= */

.sponsor-stack {
  margin: 3rem 0;
  padding: 1.75rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sponsor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.sponsor-item {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 1rem;
}

.sponsor-item:last-child {
  margin-bottom: 0;
}

.sponsor-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* =========================
   CROSS-LINK BLOCK (CITY PAGES)
========================= */

.cross-links {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 2.5rem 0;
}

.cross-links p {
  margin: 0 0 0.75rem 0;
}

.cross-links p:last-child {
  margin-bottom: 0;
}

.cross-links strong {
  font-weight: 700;
}

/* =========================
   FOOTER
========================= */

/* Existing footer styles kept for backward compatibility */
.footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1rem;
}

.footer-nav a {
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* Locked footer markup uses .site-footer; reduce font size via CSS only */
.site-footer {
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer .footer-disclaimers {
  font-size: 0.78em; /* slightly smaller than nav/meta */
  line-height: 1.4;
}

.site-footer .footer-disclaimers p {
  margin: 0.35rem 0;
}

.site-footer .footer-meta p {
  margin: 0.5rem 0 0 0;
}

.site-footer .footer-nav a {
  display: inline-block;
  margin-right: 0.75rem;
  font-size: inherit;
}

/* NEW: Make footer text smaller even on legacy pages that don't use .site-footer yet */
.site-footer,
footer.site-footer,
.footer-note,
footer[aria-label="Disclaimers and site footer"] {
  font-size: 0.82rem;
  line-height: 1.35;
}

/* If the homepage footer is a plain <footer> without the class, target common internal blocks */
footer .footer-disclaimers,
footer .footer-meta,
footer .footer-nav {
  font-size: 0.82rem;
  line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero-overlay {
    padding: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  main,
  .content {
    padding: 1.5rem 1rem;
  }

  section {
    padding: 1.75rem 1.5rem;
  }

  .primary-nav {
    gap: 1rem;
  }
}

/* slightly smaller footer on small screens */
@media (max-width: 480px) {
  .site-footer {
    font-size: 0.78rem;
  }
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

button[type="submit"] {
  margin-top: 1rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
