:root {
  --color-orange: #ee5822;
  --color-navy: #38458a;
  --color-teal: #7ebec5;
  --color-blue-light: #9db4f3;
  --color-text: #1c1b1f;
  --color-muted: #5c5c62;
  --color-header-bg: #f5f5f5;
  --color-white: #fff;
  --color-border: #e2e5ed;
  --font: "Inter", system-ui, sans-serif;
  --container: 1080px;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(28, 27, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  background: var(--color-white);
}

.site-main {
  padding-top: var(--header-h);
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
}

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

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  clip: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-header-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item > a,
.site-nav__label {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
}

.site-nav__item > a.is-active {
  color: var(--color-orange);
}

.site-nav__item--has-sub {
  position: relative;
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-white);
  border-top: 3px solid var(--color-teal);
  box-shadow: var(--shadow);
}

.site-nav__item--has-sub:hover .site-nav__sub,
.site-nav__item--has-sub:focus-within .site-nav__sub {
  display: block;
}

.site-nav__sub a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  color: var(--color-white);
  min-height: clamp(360px, 55vh, 520px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-navy) center/cover no-repeat;
  z-index: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(56, 69, 138, 0.88) 0%, rgba(56, 69, 138, 0.45) 55%, rgba(56, 69, 138, 0.25) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__subtitle {
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-header-bg);
}

.section__title {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.section__lead {
  font-size: 1.125rem;
  max-width: 65ch;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 2rem;
}

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

.card h3 {
  margin-top: 0;
}

/* API placeholders (admin will fill) */
.data-slot {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  background: rgba(157, 180, 243, 0.08);
}

.data-slot[data-ready="true"] {
  border-style: solid;
  background: transparent;
}

/* Calendar legend preview */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-swatch--course { background: var(--color-teal); }
.legend-swatch--camp { background: var(--color-navy); }
.legend-swatch--full { background: var(--color-orange); }

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--color-white);
}

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

.site-footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.contact-list,
.social-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li,
.social-list li,
.footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  text-align: center;
}

.map-embed {
  border: 0;
  width: 100%;
  height: min(40vh, 360px);
  border-radius: var(--radius);
}

/* Migrated Divi HTML (Simply Static export) */
.migrated-content {
  color: var(--color-muted);
  line-height: 1.7;
}

.migrated-content img {
  max-width: 100%;
  height: auto;
}

.migrated-content .et_pb_section {
  padding: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
}

.migrated-content .et_pb_row {
  width: min(100% - 10vw, var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
}

.migrated-content .et_pb_column {
  flex: 1 1 220px;
  min-width: 0;
}

.migrated-content .et_pb_column_4_4 {
  flex: 1 1 100%;
}

.migrated-content .et_pb_button {
  display: inline-block;
  padding: 0.5em 1.25em;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius);
  color: var(--color-navy);
  font-weight: 600;
}

.migrated-content .et_pb_button:hover {
  background: rgba(238, 88, 34, 0.08);
  text-decoration: none;
}

.migrated-content h1,
.migrated-content h2,
.migrated-content h3 {
  color: var(--color-text);
}

.migrated-content .et_pb_newsletter_form input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}

.migrated-content iframe {
  max-width: 100%;
}

.migrated-content #Calendar,
.migrated-content #Things,
.migrated-content #Vau {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__sub {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
  }
}
