/* Outlined text for AllElectricLawn brand */
.outline-title {
  color: #5cb85c; /* A lighter green */
  font-weight: 900;
  letter-spacing: 0.01em;
  padding-right: 0.18em;
}
/* Deemphasized subtitle in header */
.subtitle {
	font-size: 0.95em;
	font-weight: 400;
	opacity: 0.5;
}
a.back-btn {
	display: inline-block;
	background: #e6f4ea;
	color: #1b7a3b;
	border: 1px solid #b7e2c3;
	border-radius: 6px;
	padding: 0.45em 1.1em;
	font-weight: 600;
	text-decoration: none;
	font-size: 1rem;
	margin-top: 2.2em;
	transition: background 0.15s, box-shadow 0.15s;
	box-shadow: 0 2px 8px rgba(35,41,38,0.06);
}
a.back-btn:hover, a.back-btn:focus {
	background: #d2f0db;
	color: #145c2a;
	box-shadow: 0 4px 16px rgba(35,41,38,0.10);
	outline: none;
}
/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; line-height: 1.6; color: #21312a; background: #f7faf7; }

.site-header { background: linear-gradient(180deg, #2b6b3a 0%, #2e7a47 100%); color: #fff; padding: 2rem 1rem; text-align: center; }
.site-header { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 1.25rem; flex-wrap: nowrap; }
.site-header > .header-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.site-header .logo img { display: block; width: 48px; height: 48px; flex-shrink: 0; }
.site-header .site-title-wrap, .site-header > .header-link .site-title-wrap { text-align: left; min-width: 0; }
.site-header h1 { font-size: 1.4rem; margin: 0; }
.site-header .tagline { margin-top: 0.125rem; font-size: 0.95rem; opacity: 0.95; }

.site-nav {
  position: relative;
  flex-shrink: 0;
}

.menu-container {
  position: relative;
}

/* Hamburger Menu Button */
.menu-button {
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  position: relative;
}

.menu-button:hover,
.menu-button:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Hamburger Icon Lines */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* Hamburger Animation - Active State */
.menu-button[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.menu-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(45, 72, 54, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
}

.menu-dropdown a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-align: center;
  min-width: 280px;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  outline: none;
}

/* Close button in mobile menu */
.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.menu-close:hover,
.menu-close:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Desktop Responsive - Keep hamburger menu on all screen sizes */
@media (min-width: 768px) {
  .menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    max-width: calc(100vw - 2rem);
    height: auto;
    background: #fff;
    backdrop-filter: none;
    border: 1px solid #e8f5ea;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(35,41,38,0.15);
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1000;
  }
  
  /* Ensure dropdown doesn't go off right edge */
  .site-nav {
    position: relative;
  }
  
  .menu-container {
    position: relative;
  }
  
  .menu-dropdown.show {
    transform: translateY(0);
  }
  
  .menu-dropdown a {
    color: #2d4836;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f1f8f3;
    min-width: auto;
    display: block;
    white-space: nowrap;
  }
  
  .menu-dropdown a:last-child {
    border-bottom: none;
  }
  
  .menu-dropdown a:hover,
  .menu-dropdown a:focus {
    background: #f8fdf9;
    transform: none;
  }
  
  .menu-close {
    display: none;
  }
}

/* Mobile-specific menu fixes */
@media (max-width: 767px) {
  .menu-dropdown {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(45, 72, 54, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    z-index: 9999 !important;
  }
  
  .menu-dropdown.show {
    transform: none !important;
  }
  
  .menu-dropdown a {
    color: #fff !important;
    font-size: 1.5rem !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 8px !important;
    min-width: 280px !important;
    display: block !important;
    text-align: center !important;
    white-space: normal !important;
  }
  
  .menu-dropdown a:hover,
  .menu-dropdown a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
  }
  
  .menu-close {
    display: flex !important;
  }
}

.menu-dropdown a:hover,
.menu-dropdown a:focus {
  background: #f1fbf6;
  color: #1b7a3b;
  outline: none;
}

.menu-dropdown a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.menu-dropdown a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

.welcome { background: #fff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(35,41,38,0.06); }
.welcome h2 { margin-bottom: .5rem; }
.welcome p { margin-bottom: .75rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card { background: #fff; padding: 1rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(35,41,38,0.05); }

/* Per-state provider list: stack provider cards vertically, full width */
.providers-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.providers-list .card { width: 100%; }
.card h3 { margin-bottom: .5rem; }

/* State list (one-per-line) */
.state-list { list-style: none; margin-top: 1rem; padding: 0; }
.state-row { display: flex; align-items: center; margin-bottom: 0.6rem; /* structure only - visuals moved to anchor so the padded area is clickable */ }
.state-row .state-link { display: flex; align-items: center; width: 100%; text-decoration: none; color: inherit; background: #fff; padding: 0.75rem 1rem; border-radius: 10px; box-shadow: 0 6px 18px rgba(35,41,38,0.06); transition: transform 160ms ease, box-shadow 160ms ease; }
.state-row .state-link:hover, .state-row .state-link:focus, .state-row:focus-within .state-link { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(35,41,38,0.09); }
.state-icon { width: 44px; height: 44px; flex: 0 0 44px; margin-right: 14px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border-radius: 8px; overflow: hidden; }
.tinted { background: #eaf8ef; }
.state-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.state-row .state-link .state-title { font-size: 1.06rem; font-weight: 700; color: #123a2a; margin-right: 8px; }
.state-row .state-link:focus { outline: 3px solid rgba(27,122,59,0.15); outline-offset: 3px; border-radius: 6px; }

/* Count badge on the right */
.state-count { margin-left: auto; background: #f1fbf6; color: #1b7a3b; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02); }

/* Focus styles for accessibility */
.state-row a:focus { outline: 3px solid rgba(27,122,59,0.15); outline-offset: 3px; border-radius: 6px; }

.site-footer { text-align: center; padding: 1rem; color: #65786e; }
.site-footer a { color: inherit; text-decoration: underline; }

a { color: #1b7a3b; }

/* Electric blue class */
.electric-blue {
  color: #00BFFF; /* DeepSkyBlue, a vibrant electric blue */
}

/* Main page sections */
.main-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.section-card {
  background: #fff;
  border: 1px solid #e8f5ea;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(35,41,38,0.08);
}

.section-card h3 {
  color: #1b7a3b;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-card p {
  margin-bottom: 1rem;
  color: #2d4836;
}

.section-card ul {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  color: #3a5a47;
}

.section-card li {
  margin-bottom: 0.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1b7a3b 0%, #2e7a47 100%);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(27, 122, 59, 0.3);
  margin-top: 0.5rem;
}

.cta-button:hover {
  background: linear-gradient(135deg, #145c2a 0%, #2e7a47 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 122, 59, 0.4);
  color: #fff;
}

.site-stats {
  background: #f1fbf6;
  border: 1px solid #b7e2c3;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 2.5rem;
}

.site-stats p {
  margin: 0;
  color: #1b7a3b;
  font-weight: 600;
}

@media (max-width: 620px) {
  .subtitle {
    display: block;
    line-height: 1.2;
  }
  .site-header .tagline {
    display: none;
  }
  
  .site-header h1 {
    font-size: 1.2rem;
  }
  
  .site-header .site-title-wrap {
    overflow: hidden;
  }
  
  .main-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .section-card {
    padding: 1.5rem;
  }
}

/* Only on very small screens, allow header to stack */
@media (max-width: 420px) {
  .site-header h1 {
    font-size: 1.1rem;
  }
  
  .site-header {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .site-header .logo img {
    width: 40px;
    height: 40px;
  }
  
  .menu-button {
    width: 40px;
    height: 40px;
  }
  
  .hamburger {
    width: 20px;
    height: 15px;
  }
}

/* Additional responsive adjustments for title wrapping */
@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  
  .outline-title {
    letter-spacing: 0;
  }
}

/* Extra small screens - aggressive space saving */
@media (max-width: 360px) {
  .site-header {
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .site-header h1 {
    font-size: 1rem;
  }
  
  .site-header .logo img {
    width: 36px;
    height: 36px;
  }
  
  .menu-button {
    width: 36px;
    height: 36px;
  }
  
  .hamburger {
    width: 18px;
    height: 14px;
  }
  
  .subtitle {
    font-size: 0.8rem;
  }
}
