/* ============================================
   Intermountain CF Parents' Advisory Council
   Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --purple:      #5C4A8A;
  --purple-dark: #3E3060;
  --purple-light:#7B63B5;
  --teal:        #2A9D8F;
  --teal-light:  #4ECDC4;
  --orange:      #E07A2F;
  --cream:       #FAF7F2;
  --cream-dark:  #F0EBE0;
  --text:        #2C2C2C;
  --text-light:  #5A5A5A;
  --white:       #FFFFFF;
  --border:      #DDD5C8;
  --shadow:      0 2px 12px rgba(0,0,0,0.09);
  --radius:      10px;
  --font-main:   'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--purple-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

/* --- Navigation --- */
.site-header {
  background: var(--purple-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-img {
  height: 52px;
  width: auto;
}
.nav-logo .logo-abbr {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--teal-light);
}
.nav-logo .logo-full {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* --- Hero Logo --- */
.hero-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1rem;
}

/* --- Footer Logo --- */
.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 0.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--teal) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #c8681f; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #228B7E; }

/* --- Section Labels --- */
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 1rem; }
.section-intro { color: var(--text-light); max-width: 640px; margin-bottom: 2.5rem; }
.section-centered { text-align: center; }
.section-centered .section-intro { margin-left: auto; margin-right: auto; }

/* --- Cards --- */
.cards {
  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(--purple-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.5rem; color: var(--purple-dark); }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Mission Strip --- */
.mission-strip {
  background: var(--teal);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.mission-strip h2 { color: var(--white); margin-bottom: 1rem; }
.mission-strip p { color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* --- About Sections --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.goals-list {
  list-style: none;
  padding: 0;
}
.goals-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.goals-list li:last-child { border-bottom: none; }
.goals-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* --- Leadership Grid --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--purple-light);
}
.role-card h3 { font-size: 1rem; color: var(--purple-dark); margin-bottom: 0.4rem; }
.role-card p { font-size: 0.875rem; color: var(--text-light); }

/* --- Events --- */
.events-list { display: flex; flex-direction: column; gap: 1.25rem; }

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: transform 0.2s;
}
.event-card:hover { transform: translateX(4px); }

.event-date {
  background: var(--purple-dark);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  min-width: 80px;
}
.event-date .month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  font-weight: 600;
}
.event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-info h3 { color: var(--purple-dark); margin-bottom: 0.25rem; }
.event-info p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.event-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.event-tag {
  background: var(--cream-dark);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.event-action { text-align: right; }

@media (max-width: 600px) {
  .event-card {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .event-action {
    grid-column: 2;
    text-align: left;
  }
}

/* --- Contact Form --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); }

.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.contact-detail-icon { font-size: 1.25rem; margin-top: 0.1rem; }
.contact-detail-text strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.contact-detail-text span { color: var(--text); }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(92, 74, 138, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* --- Alternating section bg --- */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-purple { background: var(--purple-dark); }
.bg-purple h2, .bg-purple p { color: var(--white); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo-abbr { font-size: 1.5rem; font-weight: 800; color: var(--teal-light); }
.footer-brand .logo-full { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.footer-brand p { margin-top: 0.75rem; color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* --- Responsive Nav --- */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-dark);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .site-header { position: relative; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
