:root {
  --color-primary: hsl(220, 35%, 14%);
  --color-accent: hsl(44, 85%, 52%);
  --color-accent-dk: hsl(44, 85%, 40%);
  --color-bg: hsl(210, 20%, 97%);
  --color-surface: #ffffff;
  --color-text: hsl(220, 15%, 15%);
  --color-muted: hsl(220, 10%, 45%);
  --color-border: hsl(220, 12%, 88%);
  --color-secondary: hsl(205, 44%, 92%);
  --shadow-soft: 0 18px 45px rgba(10, 20, 40, 0.08);
  --shadow-strong: 0 18px 50px rgba(10, 20, 40, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(212, 178, 55, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
  color: var(--color-text);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

iframe {
  width: 100%;
  border: 0;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(19, 29, 48, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand span,
.footer-brand h3,
.section-heading h1,
.section-heading h2,
.hero-copy h1,
.page-hero h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
}

.brand span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.site-nav a.active::after,
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.65rem;
  cursor: pointer;
}

main {
  overflow: clip;
}

section {
  padding: 5rem 0;
}

.hero,
.page-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(19, 29, 48, 0.92) 0%, rgba(37, 60, 100, 0.76) 100%),
    url('../images/t%20(3).jpg') center/cover no-repeat;
}

.hero::after,
.page-hero::after,
.image-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 29, 48, 0.3), rgba(19, 29, 48, 0.65));
  z-index: -1;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 700px;
  animation: fadeInUp 0.85s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 1.1rem;
}

.hero-copy p,
.page-hero p {
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-accent-dk);
  transform: scale(1.03);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}

.section-heading p {
  color: var(--color-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.card-icon {
  width: 3.3rem;
  height: 3.3rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 178, 55, 0.18), rgba(212, 178, 55, 0.05));
  color: var(--color-accent-dk);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.split-layout,
.contact-layout,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.image-frame img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.image-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-strong);
}

.image-banner .banner-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}

.info-strip {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.info-strip .cards-grid {
  gap: 1.25rem;
}

.info-strip .card {
  text-align: center;
  padding: 1.75rem;
}

.highlight-panel,
.registry-box,
.alert,
.map-card,
.schedule-table-wrap,
.faq-list details,
.legal-block,
.resource-list,
.office-hours,
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.highlight-panel {
  padding: 2rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(212, 178, 55, 0.15);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

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

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

thead th {
  background: var(--color-accent);
  color: #fff;
}

tbody tr:nth-child(even) {
  background: rgba(212, 178, 55, 0.08);
}

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

.bullet-list li,
.contact-list li,
.resource-links li,
.hours-list li,
.quick-facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.bullet-list i,
.contact-list i,
.resource-links i,
.hours-list i,
.quick-facts i {
  color: var(--color-accent-dk);
  margin-top: 0.25rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(212, 178, 55, 0.18);
}

.field-error {
  display: none;
  color: #b42318;
  font-size: 0.92rem;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #d92d20;
}

.newsletter-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  border-color: #1f8f4e;
  background: #edf9f0;
  color: #17613a;
}

.alert-error {
  border-color: #d92d20;
  background: #fef3f2;
  color: #912018;
}

.resource-list,
.contact-card,
.office-hours,
.map-card,
.legal-block,
.faq-list details {
  padding: 1.75rem;
}

.resource-links a,
.footer-links a,
.contact-list a,
.legal-links a {
  transition: color 0.25s ease;
}

.resource-links a:hover,
.footer-links a:hover,
.contact-list a:hover,
.legal-links a:hover {
  color: var(--color-accent);
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list details p {
  margin-top: 0.8rem;
  color: var(--color-muted);
}

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

.stat-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.98), rgba(33, 55, 92, 0.88));
  color: #fff;
}

.stat-card strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
}

.registry-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1rem;
}

.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: end;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
}

.page-hero.compact {
  min-height: 30vh;
}

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 2rem;
  padding: 4rem 0 2rem;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.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;
}

:focus-visible {
  outline: 3px solid rgba(212, 178, 55, 0.88);
  outline-offset: 3px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .site-nav ul {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav ul {
    display: grid;
    gap: 0;
    white-space: normal;
    padding: 0.75rem 5%;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  body.nav-open .site-nav {
    max-height: 420px;
  }

  .hero,
  .page-hero,
  section {
    min-height: auto;
  }

  .split-layout,
  .contact-layout,
  .content-grid,
  .footer-grid,
  .stats-grid,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 60px);
  }

  .brand span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(92%, 1200px);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .card,
  .resource-list,
  .contact-card,
  .office-hours,
  .map-card,
  .legal-block,
  .faq-list details {
    padding: 1.35rem;
  }
}
