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

:root {
  --charcoal: #2c2c2c;
  --charcoal-light: #3a3a3a;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --accent: #4a7c59;
  --accent-light: #5d9b6e;
  --accent-dark: #3a6347;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #e0e0e0;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 960px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--charcoal);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--accent-light);
}

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

/* ===== Layout Shell ===== */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--accent);
}

/* ===== Navigation ===== */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--off-white);
  color: var(--charcoal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-with-photo {
  padding: 0;
  text-align: left;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-text {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.hero-photo {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--charcoal-light), transparent);
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-with-photo .hero-text p {
  margin: 0 auto 2rem;
}

.hero .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

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

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  padding: 3rem 2rem;
}

/* ===== Section Styles ===== */
.section {
  margin-bottom: 3rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.divider {
  height: 3px;
  width: 40px;
  background: var(--accent);
  border: none;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ===== Feature Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== Pest List ===== */
.pest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pest-item {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pest-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pest-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pest-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== Timeline (History) ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== Contact Info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contact-card a {
  font-weight: 500;
}

/* ===== Highlight Box ===== */
.highlight-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.highlight-box h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.highlight-box .btn {
  background: var(--white);
  color: var(--accent-dark);
}

.highlight-box .btn:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

/* ===== Membership Badge ===== */
.membership {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.membership-icon {
  font-size: 1rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer p {
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero-photo img {
    height: 280px;
  }

  .hero-photo {
    max-height: 280px;
  }

  .hero-text {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .main-content {
    padding: 2rem 1.25rem;
  }

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

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

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

@media (max-width: 480px) {
  .pest-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
