/* Ouray School PATT site styles
   Palette borrowed from ourayschool.org: charcoal + Spartan gold */

:root {
  --gold: #fca311;
  --gold-dark: #d98a0c;
  --charcoal: #2b2b2b;
  --charcoal-soft: #3a3a3a;
  --cream: #faf8f4;
  --white: #ffffff;
  --line: #e6e1d8;
  --text: #262421;
  --text-muted: #6b665f;
  --success-bg: #eef7ee;
  --success-text: #1e5c2a;
  --error-bg: #fdecec;
  --error-text: #9c2b2b;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 43, 43, 0.08);
  --max-width: 1100px;
  --font: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text .patt-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--white);
}

.brand-text .patt-sub {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: var(--white);
  font-size: 1.3rem;
  padding: 6px 10px;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 11px;
  border-radius: 6px;
  display: block;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(252,163,17,0.15);
  color: var(--gold);
  text-decoration: none;
}

.main-nav .nav-cta {
  background: var(--gold);
  color: var(--charcoal);
  padding: 9px 16px;
  border-radius: 6px;
}
.main-nav .nav-cta:hover {
  background: #fff;
  color: var(--charcoal);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 16px;
    gap: 2px;
  }
  .main-nav .nav-cta { display: inline-block; margin-top: 6px; }
}

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

.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #4a4238 100%);
  color: var(--white);
  padding: 64px 0 56px;
}

.hero.hero-compact { padding: 44px 0 40px; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 14px;
  line-height: 1.1;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  color: #ece7dd;
  margin: 0 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: var(--gold-dark); text-decoration: none; color: var(--charcoal); }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.tight { padding: 32px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2.section-title {
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: var(--charcoal);
}

p.section-lead {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 32px;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

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

.card h3 {
  margin-top: 0;
  color: var(--charcoal);
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-dark);
  display: block;
}
.stat-strip .stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Forms ---------- */

form.stack { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--charcoal); }
.field .hint { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  border: 1px solid #cfc9bc;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 200px; }

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-field input { margin-top: 4px; }
.checkbox-field label { font-weight: 400; font-size: 0.92rem; }

.form-note {
  background: #fff7e8;
  border: 1px solid #f1d9a3;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #6b4d0c;
}

.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 600;
}
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #bfe3c1; }
.alert-error { background: var(--error-bg); color: var(--error-text); border: 1px solid #f0bcbc; }

/* ---------- Course / details list ---------- */

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.detail-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.detail-list .dt {
  min-width: 130px;
  font-weight: 700;
  color: var(--gold-dark);
}

.trail-tag {
  display: inline-block;
  background: var(--charcoal);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 2px 6px 2px 0;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#course-map {
  height: 420px;
  width: 100%;
  background: var(--line);
}
@media (max-width: 700px) {
  #course-map { height: 320px; }
}

.map-placeholder {
  background: repeating-linear-gradient(45deg, #eee3cd, #eee3cd 10px, #f5ecd9 10px, #f5ecd9 20px);
  color: var(--text-muted);
  padding: 60px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 2px dashed #d8caa5;
  font-size: 0.95rem;
}

/* ---------- Donate ---------- */

.donate-box {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.donate-box img.qr {
  width: 180px;
  height: 180px;
  border: 8px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 8px;
}

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

.site-footer {
  background: var(--charcoal);
  color: #d8d3c8;
  padding: 44px 0 28px;
  margin-top: 40px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #a9a396;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Misc ---------- */

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 850px) {
  .two-col { grid-template-columns: 1fr; }
}

blockquote {
  border-left: 4px solid var(--gold);
  margin: 0;
  padding: 4px 0 4px 18px;
  color: var(--text-muted);
  font-style: italic;
}

table.newsletter-table {
  width: 100%;
  border-collapse: collapse;
}
table.newsletter-table th, table.newsletter-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
table.newsletter-table th {
  color: var(--charcoal);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
