/* LandComply.com — Main Stylesheet */
/* Knomatic Design System: Forest Green / Gold / Cream */

:root {
  --dark-green: #1A3A2A;
  --med-green: #234D38;
  --green-acc: #2D6A4F;
  --teal: #52796F;
  --soft-green: #A7C4A0;
  --gold: #D4A84B;
  --rust: #B85C38;
  --body: #3A3A3A;
  --off-white: #FAF9F6;
  --cream: #F4F1EB;
  --white: #FFFFFF;
  --red: #C0392B;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Calibri, 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --section-pad: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-acc); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ══ HEADER / NAV ══ */
.site-header {
  background: var(--dark-green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand svg { width: 28px; height: 28px; }

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--soft-green);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark-green) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: #c9982f !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ══ HERO ══ */
.hero {
  background: var(--dark-green);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold);
  z-index: 2;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }
.hero-visual { flex: 0 0 380px; text-align: center; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 20px;
  color: var(--soft-green);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-badge {
  background: rgba(45, 106, 79, 0.3);
  color: var(--soft-green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--dark-green);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover { background: #c9982f; color: var(--dark-green); transform: translateY(-1px); }

.btn-secondary {
  color: var(--white);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ══ SECTIONS ══ */
.section {
  padding: var(--section-pad) 0;
}

.section-light { background: var(--off-white); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark-green); color: var(--white); }

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--med-green);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-dark .section-title { color: var(--white); }

.section-desc {
  font-size: 18px;
  color: var(--teal);
  max-width: 700px;
  margin-bottom: 40px;
}

.section-dark .section-desc { color: var(--soft-green); }

/* ══ CARDS ══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--cream);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }

.card-accent {
  border-top: 4px solid var(--soft-green);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(212, 168, 75, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 20px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--med-green);
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: var(--teal);
  line-height: 1.5;
}

/* ══ STATS ══ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(167, 196, 160, 0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--soft-green);
}

/* ══ COUNTY DIRECTORY ══ */
.county-search {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.county-search input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 2px solid var(--cream);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
  transition: border-color 0.2s;
}

.county-search input:focus {
  outline: none;
  border-color: var(--gold);
}

.county-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.county-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--med-green);
  border-radius: 6px;
  transition: background 0.15s;
}

.county-link:hover {
  background: var(--cream);
  color: var(--gold);
}

.ecoregion-group {
  margin-bottom: 40px;
}

.ecoregion-group h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--med-green);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--soft-green);
}

/* ══ COUNTY PAGE ══ */
.page-hero {
  background: var(--dark-green);
  padding: 40px 0;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.breadcrumb {
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--soft-green); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--teal); margin: 0 6px; }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 18px;
  color: var(--soft-green);
  max-width: 700px;
}

.ecoregion-badge {
  display: inline-block;
  background: rgba(45, 106, 79, 0.4);
  color: var(--soft-green);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

.content-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--cream);
}

.content-section:last-of-type { border-bottom: none; }

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--med-green);
  margin-bottom: 16px;
}

.content-section p {
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 16px;
}

.content-section ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.content-section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.content-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--soft-green);
  font-weight: 700;
  font-size: 16px;
}

.warning-list li::before { content: '✗'; color: var(--rust); }

.cad-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid var(--soft-green);
}

.cad-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--med-green);
  margin-bottom: 12px;
}

.cad-card .cad-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--body);
}

.cad-card .cad-detail svg { color: var(--gold); flex-shrink: 0; }

.cad-card .cad-note {
  font-size: 12px;
  color: var(--teal);
  margin-top: 12px;
  font-style: italic;
}

.warning-box {
  background: #FEF9E7;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}

.warning-box h3 {
  font-family: var(--font-heading);
  color: var(--rust);
  font-size: 16px;
  margin-bottom: 8px;
}

.warning-box p { font-size: 14px; }

.cta-box {
  background: var(--dark-green);
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  margin: 32px 0;
}

.cta-box h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--soft-green);
  margin-bottom: 20px;
  font-size: 15px;
}

.cad-partner-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 28px;
  margin: 24px 0;
  border-left: 4px solid var(--gold);
}

.cad-partner-box h3 {
  font-family: var(--font-heading);
  color: var(--med-green);
  font-size: 16px;
  margin-bottom: 8px;
}

.cad-partner-box p { font-size: 14px; color: var(--teal); }

.related-counties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.related-counties a {
  background: var(--white);
  border: 1px solid var(--cream);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--med-green);
  transition: all 0.15s;
}

.related-counties a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ══ FAQ ══ */
.faq-item {
  border-bottom: 1px solid var(--cream);
  padding: 20px 0;
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--med-green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: '+';
  font-size: 22px;
  color: var(--gold);
  font-family: var(--font-body);
}

.faq-item.open h3::after { content: '−'; }

.faq-answer {
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal);
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* FAQ on dark backgrounds */
.section-dark .faq-item { border-bottom-color: rgba(167, 196, 160, 0.2); }
.section-dark .faq-item h3 { color: var(--white); }
.section-dark .faq-answer { color: var(--soft-green); }
.section-dark .faq-answer a { color: var(--gold); }

/* ══ FEATURE BLOCKS (screenshot-driven) ══ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-block-reverse { direction: rtl; }
.feature-block-reverse > * { direction: ltr; }

.feature-image img {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .feature-block,
  .feature-block-reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-block-reverse > * { direction: ltr; }
}

/* ══ FOOTER ══ */
.site-footer {
  background: var(--dark-green);
  padding: 60px 0 30px;
  color: var(--soft-green);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--teal);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--soft-green);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(167, 196, 160, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--teal);
}

.footer-bottom a { color: var(--teal); }
.footer-bottom a:hover { color: var(--gold); }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(167,196,160,0.2); }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-green);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
