/* ==========================================================================
   Arizona Horse Lovers Park — Stylesheet
   Palette: Navy #1B2A4A · Bronze #A6874F · White #FFFFFF · Cream #FAF8F4 · Deep Navy #10192E
   Type: Fraunces (display) · Karla (body)
   ========================================================================== */

:root {
  --navy: #16233D;
  --navy-deep: #0A1120;
  --bronze: #C6973F;
  --bronze-light: #E3BE6E;
  --bronze-deep: #8F6C2A;
  --white: #FFFFFF;
  --cream: #F7F2E7;
  --ink: #22293B;
  --ink-soft: #565F76;
  --border: #E2D6BC;
  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.12;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 720px; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

/* --- Utility bar --- */
.utility-bar {
  background: var(--navy-deep);
  color: #B7A67C;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--bronze-deep);
}
.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.utility-bar a { color: #D9C596; }
.utility-bar .socials a { margin-left: 14px; color: var(--bronze-light); }

/* --- Header / nav --- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--bronze);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo img { height: 62px; display: block; }

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--bronze); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* --- Alert banner --- */
.alert-banner {
  background: var(--bronze);
  color: var(--navy-deep);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--navy-deep);
  padding: 0;
  text-align: center;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  padding: 96px 24px 88px;
}
.hero .eyebrow {
  color: var(--bronze-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); }
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  color: #C9CEDA;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--bronze-light); }
.btn-outline-light:hover { background: var(--bronze); border-color: var(--bronze); color: var(--navy-deep); }
.btn-gold { background: var(--bronze); color: var(--navy-deep); }
.btn-gold:hover { background: var(--bronze-light); }

/* --- Feature blocks (arenas / facility features) --- */
.features {
  padding: 60px 0;
  background: var(--white);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.feature-card .feature-media {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--bronze);
}
.feature-card .feature-media svg { width: 54px; height: 54px; opacity: 0.9; stroke: var(--bronze-light); }

/* --- Disciplines section (photo-backed) --- */
.disciplines {
  padding: 64px 0;
  background: var(--navy-deep);
}
.disciplines .section-head h2,
.disciplines .section-head p { color: var(--white); }
.disciplines .section-head p { color: #B7A67C; }
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.discipline-card {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--bronze-deep);
}
.discipline-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.discipline-card .discipline-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10,17,32,0.92) 0%, rgba(10,17,32,0) 100%);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.02rem;
}
.feature-card-body { padding: 22px 24px 26px; }
.feature-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.feature-card li { margin-bottom: 6px; }

/* --- Section heading with centered rule --- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 8px; }

/* --- Events teaser --- */
.events-teaser {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  border-top: 3px solid var(--bronze);
  border-bottom: 3px solid var(--bronze);
}
.events-teaser h2, .events-teaser p { color: var(--white); }
.events-teaser p { color: #C9CEDA; max-width: 600px; margin: 0 auto 26px; }
.events-teaser .btn-outline { color: var(--white); border-color: var(--bronze-light); }
.events-teaser .btn-outline:hover { background: var(--bronze); border-color: var(--bronze); color: var(--navy-deep); }

/* --- Trail teaser (Reach 11 trailhead) --- */
.trail-teaser {
  background: var(--white);
  padding: 64px 0;
  text-align: center;
}
.trail-teaser p { max-width: 640px; margin: 0 auto 26px; }

/* --- Notice / info section --- */
.notice-section {
  padding: 60px 0;
  background: var(--cream);
}
.notice-section .container { max-width: 780px; }

/* --- Page header (interior pages) --- */
.page-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 0 44px;
  text-align: center;
  border-bottom: 3px solid var(--bronze);
}
.page-header h1 { color: var(--white); }
.page-header p { color: #C9CEDA; max-width: 560px; margin: 10px auto 0; }

/* --- Calendar embed --- */
.calendar-section { padding: 56px 0 70px; }
#calendar-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 600px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
}
#calendar-embed iframe { width: 100%; height: 650px; border: 0; display: block; }

.arena-status {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.arena-status h3 { margin-bottom: 8px; }

/* --- Forms --- */
.form-section { padding: 56px 0 70px; }
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-note {
  background: #F3ECDC;
  border-left: 3px solid var(--bronze);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 26px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.field .radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  cursor: pointer;
}
.radio-option input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--bronze);
}
.form-success {
  display: none;
  background: #E8F0E4;
  border-left: 3px solid #5A8A4A;
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: var(--radius);
}

/* --- Map --- */
.map-section { padding: 0 0 70px; }
.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* --- Contact info grid --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
.contact-detail { margin-bottom: 18px; }
.contact-detail h4 {
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--bronze);
  margin-bottom: 4px;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: #B7BECD;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .logo img { height: 54px; margin-bottom: 14px; }
.site-footer p { color: #94A0B5; font-size: 0.92rem; }
.site-footer h4 {
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #B7BECD; }
.site-footer ul a:hover { color: var(--bronze-light); }

.newsletter-form { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid #2C3B5C;
  background: #16213A;
  color: var(--white);
  border-radius: var(--radius);
}
.newsletter-form .btn-primary { background: var(--bronze); }
.newsletter-form .btn-primary:hover { background: var(--bronze-light); color: var(--navy-deep); }

.footer-partner-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}
.footer-partner-logos img {
  height: 42px;
  width: auto;
  display: block;
  opacity: 0.92;
}

.footer-bottom {
  border-top: 1px solid #263250;
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #6E7994;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 10px 0; }
  .utility-bar .container { justify-content: center; text-align: center; }
}
