/* Kimball Area — Community Guide for Central Minnesota */
/* Design: Earthy green/wheat palette evoking Minnesota farmland, warm editorial feel */

:root {
  --primary: #5a7a2e;
  --primary-dark: #3e5620;
  --primary-light: #7da842;
  --accent: #c4822a;
  --accent-light: #e09a44;
  --bg: #faf9f6;
  --bg-alt: #f2f0e8;
  --bg-dark: #1a2410;
  --text: #2c2c1e;
  --text-muted: #6b6650;
  --text-light: #9a937a;
  --border: #d9d4c0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-lg: 8px;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

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

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bg-dark);
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin: 2rem 0 0.75rem; color: var(--primary-dark); }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; color: var(--bg-dark); }

/* ===================== SITE HEADER ===================== */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.03em;
}

.logo-tagline {
  font-size: 0.65rem;
  color: #8fa87a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================== NAVIGATION ===================== */
.main-nav { display: flex; gap: 0; }

.main-nav a {
  display: block;
  padding: 0 1rem;
  height: 64px;
  line-height: 64px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8d4b0;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--primary);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 36, 16, 0.75) 0%,
    rgba(90, 122, 46, 0.4) 60%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: #e8f0d8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: var(--bg-dark);
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 1rem;
  border-radius: 2px;
}

/* ===================== TOPIC CARDS ===================== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.topic-card-img {
  height: 190px;
  overflow: hidden;
}

.topic-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.topic-card:hover .topic-card-img img {
  transform: scale(1.04);
}

.topic-card-body {
  padding: 1.25rem;
}

.topic-tag {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.topic-card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--bg-dark);
}

.topic-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===================== COMMUNITY BANNER ===================== */
.community-banner {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.community-banner h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.community-banner p {
  color: #c8daa8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ===================== QUICK LINKS ===================== */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.quick-link:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
  text-decoration: none;
}

/* ===================== HIGHLIGHTS ===================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.highlights-grid.reverse { direction: rtl; }
.highlights-grid.reverse > * { direction: ltr; }

.highlights-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.highlights-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.highlights-text h2 { margin-top: 0; }
.highlights-text .btn { margin-top: 0.75rem; display: inline-block; }

/* ===================== INNER PAGE LAYOUT ===================== */
.page-hero {
  background: var(--primary-dark);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #c8daa8;
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
}

.breadcrumb {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa87a;
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: #8fa87a; }
.breadcrumb a:hover { color: var(--white); }

.page-content {
  padding: 3rem 1.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.content-main img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* ===================== SIDEBAR ===================== */
.sidebar-widget {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
}

.sidebar-widget h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}
.sidebar-links a:hover { color: var(--primary); }

/* ===================== CONTACT FORM ===================== */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.btn-green {
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 2rem;
}

.btn-green:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-dark);
  color: #8fa87a;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-about .footer-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.85rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: #8fa87a;
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #5a7040;
}

/* ===================== STATES CALLOUT ===================== */
.states-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.state-stat {
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--primary);
}

.state-stat .number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.state-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .highlights-grid.reverse { direction: ltr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-dark); padding: 0.5rem 0; }
  .main-nav.open { display: flex; }
  .main-nav a { height: auto; line-height: 1; padding: 0.85rem 1.5rem; }
  .nav-hamburger { display: flex; }
  .header-inner { position: relative; }

  h1 { font-size: 1.8rem; }
  .hero { height: 420px; }
  .hero-title { font-size: 1.9rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .states-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
