﻿/* ============================================================
   MIPS GIS Landing Page — styles.css
   Font: Poppins — matching mipscounties.com brand
   ============================================================ */

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

:root {
  --navy:        #12344d;
  --navy-deep:   #0d2035;
  --olive:       #637d26;
  --olive-light: #8aaa3a;
  --teal:        #2e5c70;
  --teal-light:  #e6f0f4;
  --off-white:   #f4f4f4;
  --slate:       #5c5c5c;
  --text-dark:   #12344d;
  --text-mid:    #5c5c5c;
  --text-light:  #a6a6a6;
  --border:      #dde3e8;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;

  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

/* ---------- Scroll offset for fixed nav ---------- */
#counties,
#features {
  scroll-margin-top: var(--nav-height);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy-deep);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--olive);
  font-size: 16px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  /* border: 1.5px solid var(--olive); */
  /* background: rgba(99, 125, 38, 0.07); */
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  background: var(--olive);
  color: #ffffff;
  border-color: var(--olive);
}

.nav-cta {
  background: var(--teal) !important;
  color: #ffffff !important;
  padding: 7px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--teal) !important;
  font-weight: 600 !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #ffffff !important;
}

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 99;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-link {
  padding: 0.75rem 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: color 0.2s;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: var(--teal);
}

.mobile-link--cta {
  color: var(--teal) !important;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--nav-height);
  background-color: var(--navy-deep);
  /* Drop in your Nebraska landscape photo below: */
  background-image:
    linear-gradient(to right, rgba(18, 52, 77, 0.90) 0%, rgba(18, 52, 77, 0.65) 100%),
    url('hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.25px;
  margin-bottom: 1.25rem;
}

.hero-headline--accent {
  color: var(--olive);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--olive);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--olive-light);
  color: #ffffff;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: #fff;
}

/* ---------- Hero Map Card ---------- */
.hero-map-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.375rem;
  backdrop-filter: blur(4px);
}

.map-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ne-map-svg {
  width: 100%;
  border-radius: 8px;
}

.map-card-stats {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.map-stat {
  flex: 1;
  border-radius: 8px;
  padding: 10px 12px;
}

.map-stat--olive {
  background: rgba(99, 125, 38, 0.2);
  border: 1px solid rgba(99, 125, 38, 0.35);
}

a.map-stat--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
a.map-stat--link:hover {
  background: rgba(99, 125, 38, 0.35);
  border-color: rgba(138, 170, 58, 0.6);
}

.map-stat--teal {
  background: rgba(46, 92, 112, 0.25);
  border: 1px solid rgba(46, 92, 112, 0.4);
}

.map-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.map-stat--olive .map-stat-num { color: #8aaa3a; }
.map-stat--teal  .map-stat-num { color: #6fa8c0; }

.map-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--olive);
  padding: 1.25rem 2rem;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 3px;
  line-height: 1.3;
}

/* ---------- Section Shared ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ---------- County Search & Grid ---------- */
.county-search {
  margin-bottom: 1.5rem;
  max-width: 380px;
  position: relative;
}

.county-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.county-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 125, 0.12);
}

.county-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.county-dropdown.is-visible {
  display: block;
}

.county-dropdown-item {
  margin: 0;
}

.county-dropdown-item button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  text-align: left;
  color: var(--text-dark);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
}

.county-dropdown-item button:hover,
.county-dropdown-item button:focus {
  background: rgba(45, 125, 125, 0.08);
  outline: none;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.county-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  text-decoration: none;
  color: var(--text-dark);
}

.county-card:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-1px);
}

.county-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.county-name {
  font-size: 14px;
  font-weight: 600;
}

.county-arrow {
  font-size: 14px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.18s;
}

.county-card:hover .county-arrow {
  opacity: 1;
}

.county-card--soon {
  cursor: default;
  opacity: 0.6;
}

.county-card--soon:hover {
  border-color: var(--border);
  background: #fff;
  transform: none;
}

.county-soon-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.county-empty {
  color: var(--text-light);
  font-size: 14px;
  padding: 1rem 0;
  display: none;
}

.county-empty.is-visible {
  display: block;
}

/* ---------- Features ---------- */
.features-bg {
  background: var(--navy);
  background: #12344d;
  padding: 5rem 0;
}

.features-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.features-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.features-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.features-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 125, 38, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(99, 125, 38, 0.15);
  border: 1px solid rgba(99, 125, 38, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--olive);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: #2a475d;
  border-top: 4px solid var(--navy);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-copy a {
  color: var(--olive);
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--olive-light);
}

.footer-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }

.hero-map-card {
    display: none;
  }

  .hero-headline {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 28px;
  }

  .features-bg {
    padding: 3rem 0;
  }

  .features-section {
    padding: 0 1.5rem;
  }

  .features-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .county-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 32px;
  }

  .stats-bar {
    padding: 1rem;
  }

  .stat-num {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .county-card,
  .feature-card,
  .nav-links a,
  .btn-primary,
  .btn-ghost {
    transition: none;
  }
}
