/* MDPPGA – the look of the WordPress/Elementor site (October 2026), hand-built.
   Colours, sizes and spacing were measured from the live pages. */

:root {
  --maroon: #6b0103;       /* headings, hero */
  --crimson: #9e2335;      /* gradient start, social icons */
  --ink: #333;             /* body text */
  --grey: #eee;            /* sponsor band */
  --pill: linear-gradient(to right, var(--crimson), #000);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--crimson); }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--maroon); border-radius: 8px; }
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header: white card on the Maryland flag ---------- */
.site-header { padding: 10px; background: url(/assets/img/md-flag.webp) center / cover; }
.header-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 25px; background: #fff; border-radius: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, .11);
}
.header-logo { display: block; flex: none; }
.header-logo img { display: block; width: 145px; height: 145px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.site-nav a {
  display: inline-block; padding: 13px 20px; border: 7px solid transparent; border-radius: 50px;
  background: linear-gradient(#fff, #fff) padding-box, var(--pill) border-box;
  color: #000; font-size: 16px; font-weight: 600; line-height: 20px; text-transform: uppercase; text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  background: var(--pill) padding-box, var(--pill) border-box; color: #fff;
}
.menu-toggle { display: none; }

@media (max-width: 1024px) {
  .header-card { padding: 10px 20px; }
  .header-logo img { width: 110px; height: 110px; }
  .menu-toggle {
    display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
    background: none; border: 0; cursor: pointer; color: var(--maroon);
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 38px; height: 6px; border-radius: 3px; background: currentColor; content: "";
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before { position: absolute; top: -12px; }
  .menu-toggle-bars::after { position: absolute; top: 12px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; z-index: 50; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 20px;
    background: #fff; border-radius: 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  }
  .site-nav a { text-align: center; }
  .site-header.menu-open .site-nav { display: flex; }
}
@media (max-width: 600px) {
  .header-card { padding: 8px 16px; }
  .header-logo img { width: 112px; height: 112px; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  min-height: 400px; padding: 40px 20px; background: var(--maroon); color: #fff; text-align: center;
}
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1; }
.hero-sub { margin: 0; font-size: 28.8px; font-weight: 700; line-height: 1; }
.hero-short { min-height: 260px; }
@media (max-width: 767px) {
  .hero { min-height: 400px; }
  .hero h1 { font-size: 50px; }
  .hero-sub { font-size: 27px; }
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-grey { background: var(--grey); }
.prose-center { text-align: center; }
.prose-center h2 { color: var(--maroon); font-size: 36px; font-weight: 700; margin: 0 0 14px; }
.prose-center p + h2 { margin-top: 30px; }
.prose-center p { margin: 0 0 18px; font-size: 20px; line-height: 30px; }
@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .prose-center h2 { font-size: 34px; }
  .prose-center p { font-size: 19px; line-height: 30px; }
}

.button {
  display: inline-block; padding: 13px 28px; border-radius: 50px; background: var(--pill);
  color: #fff; font-weight: 600; text-transform: uppercase; text-decoration: none;
}

/* ---------- Sponsor carousel ---------- */
.sponsors { padding: 60px 0 90px; }
.sponsors-title { color: var(--maroon); font-size: 28.8px; font-weight: 700; text-align: center; margin-bottom: 30px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin: 0; padding: 0; list-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.sponsor { scroll-snap-align: start; text-align: center; }
.sponsor a { color: inherit; text-decoration: none; }
.sponsor img { display: block; width: 175px; height: 175px; margin: 0 auto 15px; object-fit: contain; }
.sponsor h3 { color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.2; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.carousel-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #c8c8c8; cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--maroon); }
@media (max-width: 1024px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 767px) {
  .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .sponsors { padding: 40px 0 50px; }
  .sponsor img { width: 110px; height: 110px; }
  .sponsor h3 { font-size: 16px; }
}

/* ---------- Footer: white card on the flag, copyright below ---------- */
/* The flag is dimmed under the copyright, and the top 40px is black, as on the old site. */
.site-footer {
  border-top: 40px solid #000;
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), url(/assets/img/footer-flag.webp) center / cover;
}
.footer-card { padding: 17px 20px 40px; background: #fff; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 22px; margin: 0 0 20px; padding: 0; list-style: none; }
.footer-social a { display: block; color: var(--crimson); }
.footer-social svg { display: block; width: 77px; height: 77px; fill: currentColor; }
.footer-title, .footer-email { margin: 0; color: var(--maroon); font-weight: 600; line-height: 1.2; }
.footer-title { font-size: 40px; }
.footer-email { margin-top: 10px; font-size: 35px; }
.footer-email a { color: inherit; text-decoration: none; }
.footer-crab { display: block; width: 520px; margin: 40px auto 20px; }
.footer-copy {
  margin: 0; padding: 115px 20px; color: #fff; text-align: center;
  font: 600 24px/1.3 Futura, sans-serif;
}
@media (max-width: 767px) {
  .footer-crab { width: 320px; }
  .footer-copy { padding: 70px 30px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .site-nav a { transition: none; }
}
