:root {
  --brand-blue: #34339a;
  --brand-blue-dark: #22246f;
  --cream: #f5f1e6;
  --cream-strong: #ece5d5;
  --surface: #ffffff;
  --surface-muted: #f9f8f4;
  --border: #d8d3c4;
  --text: #1f2533;
  --muted: #5e6574;
  --success: #166534;
  --shadow: 0 18px 40px rgba(34, 36, 111, 0.12);
  --radius: 18px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(52, 51, 154, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, var(--cream) 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: "Libre Baskerville", serif;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(34, 36, 111, 0.96);
  backdrop-filter: blur(10px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 84px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand h1 {
  margin: 0;
  font-size: 1.3rem;
}

.eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.brand .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero {
  padding: 5.25rem 0 2.5rem;
}

.hero-grid,
.overview-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(620px, 1.35fr);
  align-items: center;
  gap: 2.5rem;
}

.hero h2 {
  max-width: 9ch;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-panel,
.content-panel,
.card,
.feature-copy,
.feature-image-card,
.form-panel,
.toolbar,
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel,
.content-panel,
.card,
.feature-copy,
.form-panel,
.toolbar,
.table-wrap {
  padding: 1.4rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 229, 213, 0.88));
  padding: 0.9rem;
}

.hero-panel-label {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
}

.info-list,
.contact-list {
  padding-left: 1.1rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1.5rem;
}

.hero-message-link {
  margin: 0;
  font-weight: 700;
}

.hero-message-link a {
  color: var(--brand-blue-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: var(--brand-blue);
  color: #fff;
}

.button-secondary {
  border-color: var(--border);
  color: var(--brand-blue-dark);
  background: rgba(255, 255, 255, 0.7);
}

.section,
.page-shell {
  padding-bottom: 2.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.feature-image-card {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.feature-image-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 229, 213, 0.9));
  padding: 0.5rem;
}

.direct-link-note {
  margin-top: 0.85rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.explore-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 150px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-blue-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.explore-pill:hover {
  text-decoration: none;
  background: var(--cream-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card h4 {
  margin-bottom: 0.5rem;
}

.geico-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: #fff;
  box-shadow: var(--shadow);
}

.geico-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.geico-visual img {
  width: 110px;
  height: auto;
  padding: 0.4rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.geico-banner .eyebrow,
.geico-banner a {
  color: #fff;
}

.page-shell {
  padding-top: 3rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  max-width: 18ch;
}

.page-header-wide h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.page-header-wide p {
  max-width: 72ch;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: end;
}

.search-field,
.filter-field {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.search-field {
  flex: 2 1 320px;
}

.filter-field {
  flex: 1 1 220px;
}

.toolbar-action {
  display: grid;
  gap: 0.45rem;
}

.toolbar-label {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

.results-meta {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.letter-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.letter-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--cream-strong);
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
}

.records-table th,
.records-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.records-table th {
  color: var(--brand-blue-dark);
  font-family: "Libre Baskerville", serif;
  font-size: 0.95rem;
}

.records-table tbody tr:hover {
  background: rgba(236, 229, 213, 0.35);
}

.table-wrap {
  overflow-x: auto;
}

.table-pill {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--cream-strong);
  color: var(--brand-blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.records-year {
  white-space: nowrap;
  font-weight: 700;
}

.table-link {
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.25fr;
  align-items: start;
}

.map-frame {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.map-frame img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.form-panel form {
  display: grid;
  gap: 1rem;
}

.form-panel label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.field-error {
  min-height: 1.1rem;
  color: #b91c1c;
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.25rem;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--success);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.4rem 0 2.25rem;
  border-top: 1px solid rgba(52, 51, 154, 0.12);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-weight: 700;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
}

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

@media (max-width: 900px) {
  .topbar,
  .footer-layout,
  .geico-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .feature-grid,
  .overview-grid,
  .contact-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .hero h2,
  .page-header h2 {
    max-width: none;
    font-size: 2rem;
  }

  .page-header-wide h2 {
    font-size: 2rem;
  }

  .records-table th,
  .records-table td {
    min-width: 130px;
  }
}
