/* =========================
   FONT & RESETS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #222;
  background: #fafafa;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   COLOUR SYSTEM
========================= */
:root {
  --brand-blue: #046f6b;
  --brand-blue-dark: #084a83;
  --accent: #e53935;
  --muted: #666;
  --bg: #fafafa;
}

/* =========================
   WRAPPER
========================= */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* =========================
   TOP BAR
========================= */
.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  padding: 6px 5%;
  display: flex;
  gap: 20px;
  align-items: center;

  /* Make it stick */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar a {
  color: var(--brand-blue);
  font-weight: 500;
  transition: 0.2s;
}

.topbar a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER & NAV
========================= */
.header {
  background: #fff;
  position: sticky;
  top: 32px; /* sits directly under the topbar */
  z-index: 999;
  box-shadow: 0 1px 6px rgba(8,20,30,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Keep nav on one line */
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap; /* prevents About/Contact/FAQs from breaking */
}

.logo img {
  height: 56px;
  display: block;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  width: 32px;
  height: 26px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 999;
}

.hamburger span {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #000;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* =========================
   NAVIGATION
========================= */
.nav a {
  color: #333;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
}

.nav a.active {
  color: var(--brand-blue);
}

.nav a:hover {
  background: rgba(11,97,169,0.06);
}

.nav-contact-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-contact-wrapper .nav-phone {
  font-weight: 700;
  color: var(--brand-blue-dark);
}

.nav-contact-wrapper .btn {
  padding: 8px 12px;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand-blue);
  cursor: pointer;
  text-decoration: none;
  transition: none;
}

.nav-contact-wrapper .btn:hover {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: none;
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    display: none;
    padding: 20px 0;
    border-top: 1px solid #eee;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    text-align: left;
  }

  .mobile-phone {
    display: block;
    font-weight: 700;
    color: var(--brand-blue-dark);
    margin-left: 12px;
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background-image: url('/banner.svg?v=2');
  background-size: cover;
  background-position: center;
  min-height: 200px;       /* Desktop height */
  display: flex;
  align-items: center;
  justify-content: center;  /* centers text horizontally */
  color: #fff;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3); /* slightly dark overlay for readability */
  padding: 60px 5%;
  text-align: left;
  width: 100%;
}

/* Hero text styling */
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #34FFFC;
}

.hero .breadcrumb,
.hero p.meta {
  color: #fff;
}

/* =========================
   TABLET HERO HEIGHT
========================= */
@media (max-width: 1024px) {
  .hero {
    min-height: 400px; /* slightly shorter for tablets */
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* =========================
   MOBILE HERO HEIGHT
========================= */
@media (max-width: 768px) {
  .hero {
    min-height: 300px;  /* mobile height */
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-overlay {
    padding: 40px 5%;
  }
}

/* SMALLER PHONES */
@media (max-width: 480px) {
  .hero {
    min-height: 250px;  /* smaller phones */
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-overlay {
    padding: 30px 5%;
  }
}
/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 4%;
}

/* =========================
   COLUMNS
========================= */
.columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

@media (max-width: 960px) {
  .columns {
    grid-template-columns: 1fr;
  }
}
/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--brand-blue);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(11,97,169,0.12);
  color: var(--brand-blue);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #0f1720;
  color: #d7dfe8;
  padding: 28px 4%;
  margin-top: auto;
}

.footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.modal h2 {
  text-align: center;
  color: var(--brand-blue);
  margin-bottom: 24px;
}

.modal label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.modal input, .modal select, .modal textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.modal textarea {
  min-height: 100px;
  resize: vertical;
}

.modal .btn-submit {
  width: 100%;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.modal .btn-submit:hover {
  background: var(--brand-blue-dark);
}

.modal .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.modal .success-message,
.modal .error-message {
  display: none;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

.modal .success-message {
  color: green;
}

.modal .error-message {
  color: red;
}

/* =========================
   SMALL SCREENS
========================= */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .header-inner { padding: 12px; }
  .logo img { height: 48px; }
  .nav-contact-wrapper { flex-direction: column; gap: 4px; }

  /* Keep topbar visible and sticky */
  .topbar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Adjust header to sit below topbar */
  .header {
    top: 32px; /* or adjust if needed */
  }
}

/* =========================
   MOBILE PHONE NUMBER
========================= */
.mobile-phone {
  display: none;
  font-weight: 700;
  color: var(--brand-blue-dark);
  white-space: nowrap;
  font-size: 16px;
  margin-left: 12px;
}

@media (max-width: 900px) {
  .mobile-phone {
    display: inline-block;
  }

  .nav-phone {
    display: none;
  }

  .nav-contact-wrapper {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================
   MOBILE NAV SCROLLABLE
========================= */
@media (max-width: 900px) {
  .nav {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.no-wrap {
  white-space: nowrap;
}

/*  MAIN CONTENT LAYOUT  */
/* CSS */
.content-sections {
  margin-top: 60px; /* spacing below hero */
}

.row {
  display: flex;
  align-items: flex-start;   /* align items to top of row initially */
  gap: 2cm;                  
  margin-bottom: 80px;       
  max-width: 1200px;         
  margin-left: auto;         
  margin-right: auto;        
  padding-top: 20px;         /* add space at top of each row */
}

.row.reverse {
  flex-direction: row-reverse; 
}

.text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* keeps paragraph slightly lower if needed */
  padding-top: 10px;           /* optional extra spacing for paragraph */
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;            /* optional extra spacing for image */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .row, .row.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;               
    padding-top: 10px;       /* less top padding on mobile */
  }
  .image {
    flex: 1 !important;
  }
}

/* Two-column layout for content pages */
.columns { display:grid; grid-template-columns: 1fr 320px; gap:32px; align-items:start; }
@media (max-width:960px) { 
  .columns{ grid-template-columns: 1fr; } 
  .nav { display:none; } 
  .header-inner{ justify-content:space-between; } 
}

/* Card grid for Pest Library */
.pest-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:18px; margin-top:18px; }
.pest-card { background:#fff; border-radius:6px; overflow:hidden; box-shadow:0 6px 18px rgba(10,20,30,0.06); cursor:pointer; transition: transform .18s ease, box-shadow .18s ease; }
.pest-card:hover { transform:translateY(-6px); box-shadow:0 16px 30px rgba(8,20,30,0.09); }
.pest-card img { width:100%; height:140px; object-fit:cover; display:block; }
.pest-card h3 { margin:12px; font-size:16px; }