
/* =========================
   FONT & RESETS
========================= */

* {
  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 & GLOBAL VARS
========================= */

:root {
  --brand-blue: #046f6b;
  --brand-blue-dark: #084a83;
  --accent: #e53935;
  --muted: #666;
  --bg: #fafafa;

  /* Locked topbar height so header doesn't jump */
  --topbar-h: 44px;
}

/* =========================
   WRAPPER
========================= */

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

/* =========================
   TOP BAR (CLS FIXED)
========================= */

.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  padding: 6px 5%;
  display: flex;
  gap: 20px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--topbar-h);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

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

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

/* =========================
   HEADER & NAV (CLS FIXED)
========================= */

.header {
  background: #fff;
  position: sticky;
  top: var(--topbar-h);
  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;
}

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

/* Main nav */

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

.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;
}

/* =========================
   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);
}

/* =========================
   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;
  }

  .nav-phone {
    display: none;
  }

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

  .nav {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================
   HERO SECTION
========================= */

.hero {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background-image: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
}

/* HERO TITLE COLOR & BEHAVIOUR */

.hero .hero-overlay h1 {
  color: #046f6b;
  white-space: nowrap;
  min-height: 1.2em;
}

@media (max-width: 360px) {
  .hero .hero-overlay h1 {
    white-space: normal;
  }
}

.hero .hero-overlay .breadcrumb,
.hero .hero-overlay .meta {
  color: #046f6b;
}

/* =========================
   CONTAINER
========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 4%;
}

/* =========================
   COLUMNS
========================= */

.columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  min-height: 1px;
}

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

/* =========================
   SERVICE GRID 2x2
========================= */

.services-overview h2,
.columns h2,
.testimonials h2 {
  color: var(--brand-blue) !important;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.service-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

/* Tablets: 2 per row */
@media (max-width: 1024px) {
  .service-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: keep 2 per row, but make cards more compact */
@media (max-width: 768px) {
  .service-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card img {
    height: 120px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .service-card .service-overlay {
    padding: 8px 0;
    font-size: 14px;
  }
}


.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 320;
  object-fit: cover;
}

.service-card .service-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(8, 20, 30, 0.09);
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card:hover .service-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* =========================
   SIDEBAR CARD
========================= */

.sidebar-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.06);
}

.contact-phone {
  font-size: 18px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-top: 8px;
}

/* =========================
   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 GENERAL
========================= */

@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;
  }

  .topbar {
    display: flex !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header {
    top: var(--topbar-h);
  }
}

/* =========================
   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;
  }
}

/* =========================
   UTILITIES
========================= */

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

/* =========================
   PEST LIBRARY CALLOUT
========================= */

.pest-library-band {
  background: none;
  padding: 32px 0 40px;
}

.pest-library-section.container {
  max-width: 1100px;
  margin: 0 auto;
}

.pest-library-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 24px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.pest-library-text h2 {
  margin-bottom: 12px;
  color: var(--brand-blue);
}

.pest-library-text p {
  margin-bottom: 10px;
}

.pest-library-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pest-box {
  background: #f1f8f7;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .pest-library-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
  }

  .pest-library-grid {
    margin-top: 0;
    align-self: center;
  }
}

.pest-box h3,
.pest-box h3 a,
.pest-box h3 a:visited,
.pest-box h3 a:hover {
  color: var(--brand-blue) !important;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   HOMEPAGE SECTIONS (INFO, PROCESS, AREAS)
========================= */

.homepage-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.homepage-section h2 {
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.homepage-section ul,
.homepage-section ol {
  margin-top: 10px;
  padding-left: 20px;
}

.homepage-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 24px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.homepage-card h2 {
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.homepage-card p {
  margin-bottom: 10px;
}

.homepage-card.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.section-aside h3 {
  margin-bottom: 8px;
  color: var(--brand-blue);
}

/* Pill-style list (if used) */

.pill-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill-list li {
  background: #f1f8f7;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 14px;
}

.pill-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pill-list a:hover {
  text-decoration: none;
  color: var(--brand-blue);
}

/* Process steps */

.process-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  background: #f1f8f7;
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 14px;
}

.process-step h3 {
  margin: 8px 0 6px;
  font-size: 15px;
  color: var(--brand-blue);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Service map */

.service-map img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 10px;
}

/* Two-column suburb list on desktop */

.two-column-list {
  columns: 2;
  column-gap: 24px;
  padding-left: 18px;
}

.service-areas-list a {
  text-decoration: none;
  color: inherit;
}

.service-areas-list a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.suburbs-note {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.service-areas-list.extra-suburbs {
  margin-top: 0;
  padding-left: 18px;
  font-size: 14px;
}

/* Responsive tweaks for homepage cards */

@media (max-width: 960px) {
  .homepage-card.two-column {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .two-column-list {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FEATURE BOX (TOP INTRO LEFT)
========================= */

.feature-box {
  background: #ffffff;
  padding: 20px 22px 16px;
  border-radius: 10px;
  border: 1px solid #e3e7eb;
}

.feature-list {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.feature-list li {
  margin-bottom: 6px;
}

/* =========================
   PEST GRID SECTION
========================= */

.pest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

/* Button-style pest tiles */

.pest-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fbff;
  border: 1px solid #d5dee6;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #0b2e4a;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: 0.15s ease;
}

.pest-tile:hover {
  background: #ffffff;
  border-color: #0b5a7a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.pest-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pest-tile.last {
  justify-content: space-between;
  background: #edf5ff;
}

.pest-tile.last .arrow {
  font-size: 20px;
}

@media (max-width: 900px) {
  .pest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .pest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pest-grid {
    grid-template-columns: 1fr;
  }
}
/* Intro card over truck photo – force white heading */
.columns .feature-box h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Optional: make all text in that card white */
.columns .feature-box p,
.columns .feature-box li {
  color: #ffffff;
}


