:root {
  --bg: #f8fbff;
  --text: #1d2a3a;
  --primary: #0a66c2;
  --secondary: #00a878;
  --surface: #ffffff;
  --muted: #6b7787;
  --border: #dbe4ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
}

.logo {
  width: 44px;
  height: 44px;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  background: #eaf3ff;
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.2rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

.hero {
  min-height: 65vh;
  position: relative;
  display: grid;
  place-items: center;
  background-image: url("assets/pest-hero.svg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 102, 194, 0.84), rgba(0, 168, 120, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
}

.hero p {
  max-width: 780px;
  margin: 1rem auto 1.5rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 3.2rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-alt {
  background: #eef5fc;
  border-block: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(18, 46, 74, 0.06);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.feature-image {
  border-radius: 18px;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-right: 1.4rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--secondary);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.gallery-grid img {
  border-radius: 14px;
  height: 220px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.page-main {
  min-height: calc(100vh - 160px);
}

.page-hero {
  padding: 2.3rem 0 0.8rem;
}

.page-hero p {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #cfe5ff;
  border-color: var(--primary);
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-content {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 74px;
    right: 4%;
    left: 4%;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(18, 46, 74, 0.12);
  }

  .nav.open {
    display: flex;
  }
}