/* ============================================================
   CCU Outdoor Leadership Program, class sign-up landing page
   Palette pulled directly from the OLP badge logo.
   ============================================================ */

:root {
  --navy: #1A3A58;
  --navy-deep: #12283C;
  --gold: #F6C52D;
  --gold-ink: #6B4F09;
  --sky: #3893BA;
  --sky-light: #84C1D9;

  --paper: #EEF0E7;
  --surface: #FFFFFF;
  --surface-2: #E7F1F5;
  --ink: #1A2733;
  --ink-muted: #55636D;
  --line: #DCE2E2;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 1.75rem;
  }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .logo {
  width: 232px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  margin: 0 0 1.1rem;
  max-width: 18ch;
  text-wrap: balance;
}

.hero .lede {
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0;
  color: #C9D6DF;
}

/* ---------------- How to sign up strip ---------------- */

.howto {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 1.1rem 0;
}

.howto-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.howto code {
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--navy-deep);
  color: var(--gold);
  padding: 0.15em 0.55em;
  border-radius: 5px;
  font-size: 0.88em;
}

/* ---------------- Season sections ---------------- */

.season {
  padding: 4rem 0 1rem;
}

.season.spring {
  background: var(--surface-2);
}

.season-head {
  text-align: center;
  margin-bottom: 0.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 0.6rem;
  font-weight: 500;
}

.season-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

.season.spring .season-head h2 { color: var(--sky); }

.season-head p {
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.55;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

/* ---------------- Course card ---------------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 58, 88, 0.08);
}

.card.cancelled {
  opacity: 0.65;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.badge-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.season.spring .badge-icon {
  background: var(--sky);
}

.card.cancelled .badge-icon {
  background: var(--ink-muted);
}

.badge-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.badge-icon img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.card-head { min-width: 0; }

.code-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--surface-2);
  border-radius: 5px;
  padding: 0.15em 0.5em;
  margin-bottom: 0.35rem;
}

.season.spring .code-chip { background: #DCEBF2; }

.credit-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0 0 0.35rem 0.5rem;
}

.card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 2.73rem;
  margin: 0;
  text-wrap: balance;
}

.cancelled-flag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink-muted);
  border-radius: 5px;
  padding: 0.2em 0.55em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 6px 24px rgba(246, 197, 45, 0.28), 0 2px 10px rgba(26, 58, 88, 0.08);
}

.featured-banner {
  margin: -1.4rem -1.4rem 0;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.inquire-btn {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.inquire-btn:hover {
  background: var(--navy);
  color: #fff;
}

.card-photo {
  display: block;
  width: calc(100% + 2.8rem);
  margin: 0 -1.4rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card p.desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------------- Learn more disclosure ---------------- */

.more { margin-top: -0.1rem; }

.more summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
}

.more summary::-webkit-details-marker { display: none; }

.more summary .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 6px solid currentColor;
  margin-right: 0.5em;
  transition: transform 0.15s ease;
}

.more[open] summary .arrow {
  transform: rotate(90deg);
}

.more .full-desc {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-muted);
  margin: 0.6rem 0 0;
}

.prereq-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0.6rem 0 0;
}

.prereq-note strong {
  font-weight: 700;
}

/* ---------------- Plug cards ---------------- */

/* ---------------- Inquiry form ---------------- */

.inquiry {
  background: var(--surface);
  padding: 4rem 0;
  text-align: center;
}

.inquiry-eyebrow {
  color: var(--sky);
  margin: 0 0 0.6rem;
}

.inquiry-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

.inquiry-sub {
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.inquiry-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row .form-field {
  flex: 1 1 200px;
}

.form-field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
}

.course-checks {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.2rem;
  margin: 0;
}

.course-checks legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0.3rem;
}

.check-group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0.9rem 0 0.5rem;
}

.check-group-label:first-of-type {
  margin-top: 0.3rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.4rem 0.6rem;
}

.check-grid + .check-grid {
  margin-top: 0.6rem;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.check-grid input[type="checkbox"] {
  flex: none;
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy);
}

.inquiry-form .inquire-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  width: fit-content;
  padding: 0.75rem 1.75rem;
}

.plugs {
  background: var(--navy-deep);
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.plugs-eyebrow {
  text-align: center;
  color: var(--sky-light);
  margin: 0 0 1.1rem;
}

.plugs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.plug-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 2.6rem 1.4rem 1.4rem;
  background: var(--surface);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plug-card.plug-card-static {
  padding-right: 1.4rem;
}

a.plug-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

a.plug-card:hover .plug-arrow {
  background: var(--gold);
  color: var(--navy-deep);
}

.plug-card .badge-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gold);
  color: var(--navy-deep);
  flex: none;
  padding: 0.55rem;
}

.plug-card .badge-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.plug-card .badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plug-card .badge-icon.ig-badge {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.plug-card .badge-icon.ikon-badge {
  background: #F7CB14;
  padding: 0.7rem;
}

.plug-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
}

.plug-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

.plug-card .handle {
  color: var(--sky);
  font-weight: 600;
}

.plug-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.plug-arrow svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Footer ---------------- */

footer {
  background: var(--navy-deep);
  color: #C9D6DF;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}

footer img.logo-small {
  width: 56px;
  height: auto;
  margin-bottom: 0.4rem;
}

footer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 50ch;
}

/* ---------------- Focus states ---------------- */

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