:root {
  --green: #176b3a;
  --green-dark: #10532d;
  --green-light: #eaf5ed;
  --white: #ffffff;
  --background: #f6f9f6;
  --text: #202b23;
  --muted: #68756c;
  --border: #e1e9e2;
  --gold: #d9a441;
  --shadow: 0 5px 22px rgba(20, 70, 40, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

a {
  color: var(--green);
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--green);
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.brand strong {
  color: var(--green);
}

#mainNav {
  display: flex;
  align-items: center;
  gap: 19px;
}

#mainNav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

#mainNav a:hover,
.footer-links a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions button,
.menu-toggle {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--green);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  font-size: 22px;
}

/* BUTTONS */

.btn-primary {
  background: var(--green);
  color: white !important;
  border: 1px solid var(--green);
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

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

button:not(.btn-primary):hover {
  border-color: var(--green);
}

/* HERO */

.hero-section {
  background:
    linear-gradient(120deg, rgba(16, 83, 45, 0.97), rgba(23, 107, 58, 0.90));
  color: white;
  padding: 85px 0 95px;
  text-align: center;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}

.hero-section .eyebrow {
  color: #d7edda;
}

.hero-section h1 {
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.12;
  margin: 12px 0 18px;
}

.hero-section > .container > p,
.hero-content > p {
  color: #e6f3e8;
  font-size: 17px;
}

.search-form {
  background: white;
  color: var(--text);
  padding: 20px;
  border-radius: 15px;
  margin: 35px auto 0;
  text-align: left;
  box-shadow: var(--shadow);
}

.search-form label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

.search-input-row {
  display: flex;
  gap: 10px;
}

.search-input-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 15px;
  outline: none;
}

.search-input-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.search-hint {
  font-size: 13px !important;
  margin-top: 15px;
}

.search-suggestions {
  text-align: left;
  color: var(--text);
}

/* GENERAL SECTIONS */

.content-section {
  padding: 65px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2,
.content-section h2 {
  font-size: clamp(25px, 4vw, 34px);
  margin: 5px 0 10px;
  color: var(--text);
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.counties-section {
  background: #eef5ef;
}

.weekly-section {
  background: var(--green-light);
}

/* CATEGORY AND COUNTY GRIDS */

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

.category-card,
.county-card {
  background: white;
  padding: 22px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.category-card:hover,
.county-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.category-card h3,
.county-card h3 {
  margin: 5px 0;
  color: var(--green-dark);
}

.category-card p,
.county-card p {
  font-size: 13px;
  color: var(--muted);
}

/* PROVIDER CARDS */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.provider-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.provider-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--green-light);
}

.provider-card-content {
  padding: 18px;
}

.provider-card h3 {
  margin: 5px 0;
  color: var(--green-dark);
}

.provider-card p {
  color: var(--muted);
  font-size: 14px;
}

.featured-label {
  display: inline-block;
  background: #fff4d9;
  color: #855900;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.rating {
  color: #b77b00;
  font-weight: 700;
}

/* FORMS */

.account-section {
  background: #eef5ef;
}

.account-section .container,
#providerSection .container {
  max-width: 520px;
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

form label {
  display: block;
  font-weight: 700;
  margin: 15px 0 7px;
}

form input,
form select,
form textarea {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

form textarea {
  min-height: 110px;
  resize: vertical;
}

form .btn-primary {
  width: 100%;
  margin-top: 20px;
}

#forgotPasswordButton {
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: var(--green);
  font-weight: 700;
}

/* SEARCH RESULTS */

#searchResultsSection {
  background: white;
}

#expandSearchButton,
#viewAllCategories {
  display: block;
  margin: 25px auto 0;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: white;
  color: var(--green);
  font-weight: 700;
}

/* FOOTER */

.site-footer {
  background: #103e26;
  color: white;
  padding: 50px 0 25px;
}

.footer-brand h2 {
  margin: 0;
}

.footer-brand p {
  color: #d5e8d9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.footer-links a {
  color: white;
  font-size: 14px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  color: #d5e8d9;
  font-size: 13px;
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* TABLETS */

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  #mainNav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .category-grid,
  .county-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .header-content {
    min-height: 65px;
  }

  .brand {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  #mainNav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 0;
    gap: 0;
  }

  #mainNav.open {
    display: flex;
  }

  #mainNav a {
    padding: 11px 5px;
    border-top: 1px solid var(--border);
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    padding-bottom: 10px;
  }

  .hero-section {
    padding: 60px 0 65px;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section > .container > p,
  .hero-content > p {
    font-size: 15px;
  }

  .search-form {
    padding: 15px;
  }

  .search-input-row {
    flex-direction: column;
  }

  .search-input-row button {
    width: 100%;
  }

  .content-section {
    padding: 45px 0;
  }

  .category-grid,
  .county-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

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

  .provider-card img {
    height: 210px;
  }

  .account-section .container,
  #providerSection .container {
    padding: 22px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
