:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #334155;
  --accent: #0ea5a8;
  --accent-dark: #0f766e;
  --ring: #22d3ee;
  --border: #cbd5e1;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --space: clamp(1rem, 1.5vw + 0.7rem, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 168, 0.14), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.1), transparent 34%),
    var(--bg);
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: clamp(1.8rem, 2.6vw, 2.9rem) 0;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 2.4vw + 1.2rem, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.15rem);
}

p,
ul,
li,
label,
summary,
input,
select,
textarea,
button {
  font-size: 1rem;
}

a {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  background: var(--surface);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(203, 213, 225, 0.22);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.38));
}

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

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f8fafc;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  overflow: visible;
  white-space: normal;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.28rem 0.5rem;
  border-radius: 7px;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero {
  position: relative;
  margin-bottom: 0.5rem;
}

.hero-media {
  position: relative;
  min-height: min(100svh, 900px);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(15deg, rgba(2, 6, 23, 0.9) 8%, rgba(2, 6, 23, 0.26) 56%, rgba(2, 6, 23, 0.58) 100%),
    radial-gradient(circle at 78% 18%, rgba(14, 165, 168, 0.3), transparent 40%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(100svh, 900px);
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(1.25rem, 3vw, 2.2rem);
}

.hero-content {
  color: #f8fafc;
  max-width: min(760px, 95%);
}

#hero-headline {
  font-size: clamp(2.2rem, 6.1vw, 5.35rem);
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 22px rgba(2, 6, 23, 0.65);
}

.eyebrow {
  margin-bottom: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.76rem;
}

.hero-brand {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  color: #e2e8f0;
}

.hero-local-line {
  color: #e2e8f0;
  font-weight: 600;
}

.local-line-strong {
  color: #5eead4;
  font-weight: 700;
}

.tagline {
  color: #cbd5e1;
  max-width: 56ch;
}

#hero-subheadline {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  color: #e2e8f0;
  text-shadow: 0 2px 16px rgba(2, 6, 23, 0.6);
}

.hero-local-line,
.tagline {
  text-shadow: 0 2px 14px rgba(2, 6, 23, 0.55);
}

.hero-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.78));
  color: #e2e8f0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(5px);
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 35px rgba(2, 6, 23, 0.46);
  margin-top: 0;
  width: min(430px, 100%);
}

.hero-card h2 {
  font-size: 1.34rem;
  margin-bottom: 0.7rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.12rem;
  display: grid;
  gap: 0.22rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(140deg, #0f766e, #155e75);
  color: #ecfeff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(140deg, #115e59, #164e63);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary:hover {
  background: rgba(15, 118, 110, 0.08);
}

.section-intro {
  max-width: 65ch;
  color: #334155;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.programs-grid .card h3 {
  margin-bottom: 0.65rem;
}

.programs-grid .card ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.3rem;
}

.programs-grid .card ul + ul {
  margin-top: 0.3rem;
}

.inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.inline-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
}

.quote p {
  font-style: italic;
}

cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  color: #334155;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label,
legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  padding: 0.65rem;
  background: #fff;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 1rem 0;
  padding: 0.8rem;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem;
}

.checkbox-grid label {
  font-weight: 600;
}

.checkbox-grid input {
  width: auto;
  margin-right: 0.45rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.status {
  min-height: 1.2em;
  color: #0f766e;
  font-weight: 600;
}

.status.success {
  color: #0f766e;
}

.status.error {
  color: #b91c1c;
}

.direct-contact {
  margin-top: 0.8rem;
}

.site-footer {
  padding: 0.85rem 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-grid p {
  margin: 0;
}

@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 0.72rem 0;
    gap: 0.42rem;
  }

  .header-inner nav {
    width: 100%;
  }

  .brand {
    font-size: 0.8rem;
    letter-spacing: 0.065em;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0.16rem;
    overflow: visible;
  }

  .nav-list a {
    font-size: 0.9rem;
    text-align: center;
    padding: 0.2rem 0.2rem;
  }

  .hero-overlay {
    padding: clamp(4.8rem, 18vh, 6.6rem) 0 1rem;
    gap: 0.75rem;
  }

  #hero-headline {
    font-size: clamp(1.74rem, 9.9vw, 2.24rem);
    line-height: 1.03;
    max-width: 11.5ch;
  }

  #hero-subheadline {
    font-size: clamp(0.93rem, 4.3vw, 1.03rem);
    line-height: 1.42;
  }

  .hero-local-line,
  .tagline {
    font-size: 0.89rem;
  }

  .hero-card h2 {
    font-size: 1.12rem;
  }

  .hero-card ul {
    gap: 0.16rem;
  }
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-overlay {
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    align-items: end;
    gap: clamp(1rem, 2.4vw, 2rem);
  }

  .hero-card {
    justify-self: end;
  }

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid p {
    white-space: nowrap;
  }
}
