:root {
  --header: #00b461;
  --header-text: #ffffff;
  --page: #ffffff;
  --text: #000000;
  --link: #00b461;
  --link-hover: #15eb89;
  --accent: #f03f41;
  --accent-hover: #d12626;
  --accent-outline: #00ff00;
  --highlight: #f13c3c;
  --circle: #4caf50;
  --circle-hover: #ffff00;
  --footer: #000000;
  --footer-text: #ffffff;
  --divider-1: #ff0000;
  --divider-2: #008000;
  --divider-3: #000000;
  --green: var(--link);
  --green-hover: var(--link-hover);
  --red: var(--accent);
  --red-dark: var(--accent-hover);
  --header-green: var(--header);
  --black: var(--footer);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--page);
  font-family: "HelveticaNeue", "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-home { background: var(--black); }

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.main-header {
  background: var(--header);
  color: var(--header-text);
  padding: 10px 0;
  position: relative;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 90px;
}

.branding .logo img,
.branding .logo svg {
  height: 80px;
  width: 80px;
  display: block;
  margin-top: 8px;
  border-radius: 50%;
}

.site-name a {
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  line-height: 1.1em;
  color: var(--header-text);
  font-weight: 700;
}
.site-name a:hover { color: var(--header-text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--header-text);
  margin: 5px 0;
}

.animated-pill-menu {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  flex-wrap: wrap;
}

.animated-pill-menu a {
  display: block;
  min-width: 120px;
  height: 50px;
  border-radius: 25px;
  background-color: var(--accent);
  color: var(--header-text);
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  position: relative;
  padding: 0 25px;
  margin: 10px;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.animated-pill-menu a::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--accent-outline);
  border-radius: 30px;
}

.animated-pill-menu a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 70%, transparent);
  background-color: var(--accent-hover);
  color: var(--header-text);
}

@keyframes colorCycle {
  0% { background-color: var(--divider-1); }
  33% { background-color: var(--divider-2); }
  66% { background-color: var(--divider-3); }
  100% { background-color: var(--divider-1); }
}

.color-divider {
  height: 5px;
  width: 100%;
  background-color: var(--divider-1);
  animation: colorCycle 6s infinite linear;
  margin: 20px 0;
}

/* Home banner */
.front-banner-container {
  background: var(--header);
  text-align: center;
  padding-bottom: 28px;
}

.front-banner-container .color-divider:last-child {
  margin-bottom: 0;
}

.front-banner h1,
.front-banner h2 {
  font-family: "Oswald", sans-serif;
  color: var(--header-text);
  font-size: 84px;
  font-weight: 700;
  padding: 50px 0 20px;
  line-height: 1.2em;
  margin: 0;
}

.front-banner p.lede {
  color: var(--header-text);
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 24px;
}

.front-banner .hero-mark {
  margin: 10px auto 24px;
  width: 180px;
}

.front-banner .button-action {
  margin-bottom: 40px;
}

/* Circles */
.highlighted-container {
  padding: 30px 0;
  background: var(--highlight);
}

.circle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.circle {
  position: relative;
  width: 100px;
  height: 100px;
  background-color: var(--circle);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--header-text);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-width 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  padding: 12px;
  line-height: 1.15;
}

.circle.large {
  width: 150px;
  height: 150px;
  font-size: 20px;
}

.circle:hover {
  border-color: var(--circle-hover);
  border-width: 6px;
  color: var(--header-text);
}

.circle:active { background-color: var(--accent); }

/* Page titles */
#page-title {
  text-align: center;
  background: var(--page);
}

#page-title h1 {
  font-family: "Oswald", sans-serif;
  font-size: 60px;
  padding: 20px;
  margin: 30px 0;
  font-weight: 700;
  line-height: 1.2;
}

#wrapper {
  background: var(--page);
  padding: 10px 0 60px;
}

#wrapper .container {
  padding-top: 10px;
}

.content-body {
  font-size: 12pt;
  max-width: 900px;
  margin: 0 auto;
}

.content-body h2,
.content-body h3 {
  font-family: "HelveticaNeue", "Open Sans", sans-serif;
  color: var(--text);
}

.content-body h2 { font-size: 36px; margin: 20px 0; }
.content-body h3 { font-size: 1.4em; margin: 18px 0 10px; }
.content-body p { margin: 0 0 10px; }
.content-body ul { margin: 0 0 16px 1.4em; padding: 0; }
.content-body li { margin-bottom: 6px; }

.quote-block {
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--header-text);
  font-size: 1.15rem;
  font-style: italic;
}
.quote-block cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
}

/* News teasers — Middleton style */
.views-row {
  margin: 0 0 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

article.node h2 {
  font-size: 36px;
  margin: 20px 0;
}
article.node h2 a { color: var(--text); }
article.node h2 a:hover { color: var(--link); }
.node__content img { display: block; margin: 12px 0; }

ul.links.inline {
  padding: 0;
  margin: 12px 0 0;
}
ul.links.inline li { list-style: none; }

.btn,
.button-action,
input[type="submit"],
button.button-action {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  margin: 10px 0;
  background-color: var(--accent);
  color: var(--header-text);
  text-decoration: none;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn:hover,
.button-action:hover,
input[type="submit"]:hover,
button.button-action:hover {
  background-color: var(--accent-hover);
  color: var(--header-text);
}

.form-panel {
  max-width: 560px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--link);
  border-color: var(--link);
}

.alert {
  padding: 12px 16px;
  margin: 0 auto 20px;
  max-width: 560px;
  border-radius: 6px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.signature-total {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 24px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 10px 0 40px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-group { margin-bottom: 2rem; }
.resource-group h2 { font-size: 1.6em; }

.faq + .faq { margin-top: 28px; }
.faq h2 { font-size: 1.6em; margin-bottom: 8px; }

.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal img { max-width: 90%; max-height: 90vh; }
.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  cursor: pointer;
}

/* Footer */
.footerwidget {
  background: var(--footer);
  color: var(--footer-text);
  padding: 40px 0 50px;
}
.footerwidget h2,
.footerwidget h3,
.footerwidget h4 { color: var(--footer-text); margin-top: 0; }
.footerwidget a { color: var(--link-hover); }
.footerwidget a:hover { color: var(--footer-text); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col p { margin: 0 0 8px; }

@media (max-width: 1020px) {
  .front-banner h1, .front-banner h2 { font-size: 72px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .header-row { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .animated-pill-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0 0 16px;
  }
  .animated-pill-menu.is-open { display: flex; }
  .front-banner h1, .front-banner h2 { font-size: 48px; padding: 28px 10px 12px; }
  #page-title h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .circle.large { width: 130px; height: 130px; font-size: 17px; }
}
