/* ============================================================
   The Coto Village — Fall Fest
   Shared stylesheet
   Palette pulled from the official Fall Fest flyer artwork
   ============================================================ */

:root {
  /* Warm harvest palette, matched to the 2025 Fall Fest save-the-date art */
  --navy: #3d2a1b;       /* deep coffee brown — replaces the old navy anchor */
  --navy-dark: #2a1c11;  /* espresso — headers/footer */
  --navy-light: #6b4a2e; /* warm brown */
  --orange: #e2672a;     /* pumpkin orange — primary accent */
  --orange-dark: #c1521f;/* rust — hover state */
  --gold: #d9a441;       /* harvest gold — secondary accent */
  --teal: #7c8b4a;       /* sage/olive — tertiary accent (was teal) */
  --teal-dark: #5f6b38;
  --cream: #fbf3e3;      /* warm parchment background */
  --cream-dark: #f1e3c6;
  --ink: #33261a;
  --white: #ffffff;

  --font-display: 'Poppins', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 28, 17, 0.16);
  --shadow-sm: 0 4px 14px rgba(42, 28, 17, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--orange-dark); }
a:hover { color: var(--orange); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand .leaf-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

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

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
}

/* ---------- Hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.page-hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-hero p.lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
}

/* ---------- Section basics ---------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--cream-dark); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 10px;
}
.section-navy .section-head .eyebrow { color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(61,42,27,0.08);
}
.card h3 { font-size: 1.15rem; }
.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

/* ---------- Badges / tags ---------- */
.tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.tag-orange { background: rgba(226,103,42,0.12); color: var(--orange-dark); }
.tag-teal { background: rgba(124,139,74,0.14); color: var(--teal-dark); }

.notice {
  background: rgba(217,164,65,0.16);
  border: 1px solid rgba(217,164,65,0.45);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.95rem;
}
.notice strong { color: var(--orange-dark); }

/* ---------- Quick facts strip ---------- */
.facts-strip {
  background: var(--white);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow-sm);
}
.facts-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 26px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-dark);
}
.fact .dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Rules list ---------- */
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rules-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid rgba(61,42,27,0.1);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 4px;
  transform: rotate(45deg);
}

/* ---------- Judging categories ---------- */
.category-card {
  border-top: 5px solid var(--orange);
}
.category-card.gold { border-top-color: var(--gold); }
.category-card.teal { border-top-color: var(--teal); }
.category-card .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-dark);
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
@media (max-width: 600px) {
  .form-card { padding: 26px 20px; }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: #6b7686;
  margin-top: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(61,42,27,0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}
.checkbox-row input { margin-top: 4px; }

#form-status {
  margin-top: 18px;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 16px;
  display: none;
}
#form-status.show { display: block; }
#form-status.ok { background: rgba(124,139,74,0.16); color: var(--teal-dark); }
#form-status.err { background: rgba(226,103,42,0.14); color: var(--orange-dark); }
#form-status.loading { background: var(--cream-dark); color: var(--navy-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Hero decorative leaves ---------- */
.hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
}

/* ---------- Decorative leaf divider ---------- */
.leaf-divider {
  display: flex;
  justify-content: center;
  padding: 6px 0 0;
}
.leaf-divider svg { width: 40px; height: 40px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.88rem; color: #5c6675; }
