/* ==========================================================================
   Driving Awareness Brand Stylesheet
   Palette + type pulled from the "Come Back to the Body" flyer:
   near-black ground, antique gold accents, cream body copy,
   serif display headings, script wordmark, tracked-caps labels.
   ========================================================================== */

:root {
  --bg: #0b0906;
  --bg-alt: #141110;
  --bg-panel: #17130f;
  --gold: #c9a24d;
  --gold-light: #e3c98a;
  --gold-dim: #8a6d2f;
  --cream: #ece6d6;
  --muted: #a89f8c;
  --line: rgba(201, 162, 77, 0.28);
  --max-width: 1120px;

  --font-display: "Dancing Script", "Brush Script MT", cursive;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-body: "El Messiri", "Georgia", serif;
  --font-label: "El Messiri", "Georgia", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--gold);
}

.script {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.divider-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--gold-dim);
}
.divider-diamond::before,
.divider-diamond::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  padding: 0.95em 2.1em;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--gold);
  color: #100d09;
}
.btn-solid {
  background: var(--gold);
  color: #100d09;
}
.btn-solid:hover {
  background: var(--gold-light);
  color: #100d09;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 6, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.logo-word {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.main-nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--cream);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
}

nav.main-nav a.nav-donate {
  color: var(--bg);
  background: var(--gold);
  padding: 0.45em 1.1em;
  border-radius: 2px;
}
nav.main-nav a.nav-donate:hover {
  background: var(--gold-light);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 1.3rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 24px 1.5rem;
    gap: 1.1rem;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,162,77,0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-icon {
  width: 84px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.hero .script { margin-bottom: 0.3rem; }

.hero .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
}

.hero h1 { margin-bottom: 0.4rem; }
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-sub {
  max-width: 640px;
  margin: 1.6rem auto 2.2rem;
  color: var(--cream);
  font-size: 1.15rem;
}

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

/* ---------- Three tenets ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tenet {
  padding: 2.6rem 2rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.tenet:first-child { border-left: none; }

.tenet h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
}

.tenet p {
  color: var(--muted);
  font-size: 1.02rem;
}

@media (max-width: 720px) {
  .tenets { grid-template-columns: 1fr; }
  .tenet { border-left: none; border-top: 1px solid var(--line); }
  .tenet:first-child { border-top: none; }
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 2rem;
}

/* ---------- Coach / bio ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  border: 1px solid var(--line);
  padding: 10px;
}
.bio-photo img { width: 100%; }

.bio-name {
  margin-top: 1.2rem;
  text-align: center;
}
.bio-role {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

@media (max-width: 820px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Event highlight ---------- */
.event-highlight {
  border: 1px solid var(--gold);
  background: var(--bg-panel);
  padding: 2.5rem;
  text-align: center;
}
.event-highlight .eyebrow { display: block; margin-bottom: 0.6rem; }
.event-meta {
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.2rem 0 1.6rem;
}
.event-meta strong { color: var(--cream); }

/* ---------- Events list (Events page) ---------- */
.event-card {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.event-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
  font-family: var(--font-label);
}
.event-date .day {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold-light);
  line-height: 1;
}
.event-date .month {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
}
.event-date .year {
  color: var(--muted);
  font-size: 0.78rem;
}

.event-info h3 { margin-bottom: 0.3rem; }
.event-info .event-when {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.event-info .badge {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.2em 0.6em;
  margin-bottom: 0.6rem;
}

@media (max-width: 700px) {
  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .event-date {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.85em 1em;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hubspot-shell {
  border: 1px dashed var(--line);
  padding: 2rem;
  background: var(--bg-panel);
}

/* ---------- Contact info blocks ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
.contact-info div {
  border: 1px solid var(--line);
  padding: 1.75rem 1rem;
}
.contact-info .eyebrow { display: block; margin-bottom: 0.5rem; }
@media (max-width: 700px) {
  .contact-info { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.85rem;
}
.site-footer .logo-word { display: block; margin-bottom: 0.8rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.footer-fine {
  margin-top: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold-dim);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
