/* =========================================================
   Marana FC — Stylesheet
   Colors pulled directly from the team logo:
     burgundy body, dark teal, sunset gold, cream
   ========================================================= */

:root {
  --burgundy: #863520;        /* shield body — primary brand color */
  --burgundy-dark: #6a2818;
  --burgundy-light: #a04428;
  --teal: #1d3132;            /* shield border / cactus / mountain */
  --teal-dark: #122021;
  --gold: #e18e18;            /* warm sunset accent */
  --gold-deep: #d87c17;       /* bold orange stripe */
  --cream: #f5e4c8;           /* logo background — site warm tone */
  --cream-light: #fbf3e2;     /* lighter cream for cards */
  --dark: #1d3132;            /* same as teal — dark text/elements */
  --light: #fbf3e2;           /* page background */
  --gray: #6b5d4e;            /* warm-toned gray for muted text */
  --gray-light: #e6d6bf;      /* cream-leaning gray for borders */
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(29,49,50,0.10);
  --shadow-lg: 0 10px 30px rgba(29,49,50,0.18);
  --radius: 8px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--burgundy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-area { display: flex; align-items: center; gap: 0.85rem; color: var(--cream); }
.logo-area:hover { color: var(--cream); }
.logo-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .name { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.5px; color: var(--cream); }
.logo-text .tag { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }

.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--burgundy-dark);
  color: var(--gold);
}

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

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--burgundy);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(134,53,32,0.92) 0%, rgba(134,53,32,0.85) 40%, rgba(216,124,23,0.75) 80%, rgba(225,142,24,0.65) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'><rect fill='%23863520' width='1200' height='600'/><rect fill='%23d87c17' y='280' width='1200' height='30'/><rect fill='%23e18e18' y='320' width='1200' height='25'/><rect fill='%23d87c17' y='360' width='1200' height='40'/><polygon fill='%231d3132' points='950,400 1050,250 1150,400'/><polygon fill='%231d3132' points='100,400 90,330 80,330 80,310 75,310 75,290 80,290 80,260 100,260 100,290 105,290 105,310 100,310 100,330 90,330 100,400'/></svg>");
  background-size: cover;
  background-position: center bottom;
  color: var(--cream);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--gold);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(29,49,50,0.4);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.97;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
  background: var(--cream);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(29,49,50,0.4);
  border: 4px solid var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gold); color: var(--teal); }
.btn-primary:hover { background: var(--gold-deep); color: var(--teal); }
.btn-outline { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--burgundy); }
.btn-secondary { background: var(--burgundy); color: var(--cream); }
.btn-secondary:hover { background: var(--burgundy-dark); color: var(--gold); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-narrow { max-width: 900px; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--burgundy);
}
.section .lead {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--burgundy);
}
.section p { margin-bottom: 1rem; }

.section-alt { background: var(--cream); }

/* Mission callout — the "Growth over winning" statement on the home page */
.mission-callout {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border-left: 6px solid var(--gold);
  text-align: center;
  box-shadow: var(--shadow);
}
.mission-callout h3 {
  color: var(--gold);
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.mission-callout .big-statement {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--cream);
}
.mission-callout .signature {
  font-style: italic;
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card h3 { margin-top: 0; color: var(--burgundy); }

/* ---------- Schedule / Game cards ---------- */
.game-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  border-left: 5px solid var(--burgundy);
  margin-bottom: 1rem;
}
.game-card.next-game {
  border-left-color: var(--gold);
  background: linear-gradient(to right, #fef6e4, #ffffff);
}
.date-block {
  text-align: center;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 0.6rem 0.4rem;
}
.date-block .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.date-block .day { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.date-block .weekday { font-size: 0.7rem; opacity: 0.85; }
.next-game .date-block { background: var(--gold); color: var(--teal); }

.game-info .matchup { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.game-info .meta { color: var(--gray); font-size: 0.9rem; margin-top: 0.25rem; }
.game-info .location { color: var(--burgundy); font-size: 0.9rem; margin-top: 0.25rem; }
.game-info .location a { font-weight: 600; }

.game-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-home { background: #fef0d8; color: var(--burgundy); border: 1.5px solid var(--gold); }
.badge-away { background: #e6d6bf; color: var(--teal); border: 1.5px solid var(--teal); }
.badge-tournament { background: var(--gold); color: var(--teal); }

@media (max-width: 600px) {
  .game-card { grid-template-columns: 70px 1fr; }
  .game-actions { grid-column: 1 / -1; flex-direction: row; }
}

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(134,53,32,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.alt-contact {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

/* ---------- Update / blog post styling ---------- */
.update-post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border-top: 4px solid var(--burgundy);
}
.update-post .meta {
  display: flex; gap: 1rem; color: var(--gray); font-size: 0.85rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.update-post h2 { margin-bottom: 0.75rem; font-size: 1.6rem; }
.update-post h3 { margin-top: 1.5rem; }
.update-post ul, .update-post ol { margin: 0.75rem 0 1rem 1.5rem; }
.update-post li { margin-bottom: 0.4rem; }

/* ---------- Info cards (general info / commitments pages) ---------- */
.info-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold);
}
.info-section h3 {
  margin-top: 0;
  color: var(--burgundy);
  display: flex; align-items: center; gap: 0.5rem;
}
.info-section ul { margin: 0.5rem 0 0 1.25rem; }
.info-section li { margin-bottom: 0.4rem; }

/* ---------- Commitment cards (signed contracts) ---------- */
.commitment {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.commitment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold);
}
.commitment-icon {
  font-size: 2.5rem;
  background: var(--cream);
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.commitment-header h2 { margin: 0; color: var(--burgundy); font-size: 1.5rem; }
.commitment-header .subtitle { color: var(--gray); font-size: 0.9rem; }
.commitment ol { margin: 0 0 1rem 1.5rem; }
.commitment ol li { margin-bottom: 0.85rem; padding-left: 0.25rem; }
.commitment ol li strong { color: var(--burgundy); }
.commitment .signature-line {
  border-top: 1px dashed var(--gray-light);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-style: italic;
  color: var(--gray);
  font-size: 0.95rem;
}

/* Philosophy/principles callout */
.principle-banner {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--cream);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.principle-banner h2 { color: var(--gold); margin-bottom: 0.75rem; }
.principle-banner p { font-size: 1.1rem; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.principle-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.principle-card h4 {
  color: var(--burgundy);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.principle-card p { color: var(--dark); font-size: 0.95rem; margin-bottom: 0; }
.principle-card .note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal);
  color: var(--cream);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,228,200,0.15);
}
.footer-grid h4 { color: var(--gold); margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid a { color: rgba(245,228,200,0.85); display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--cream);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(29,49,50,0.3);
}
.page-header p { opacity: 0.9; max-width: 700px; margin: 0 auto; color: var(--cream); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.success-message {
  background: #d8e8c4;
  color: #2d4015;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
  border-left: 4px solid #6a8c2f;
}
.success-message.show { display: block; }
