:root {
  --red: #e03b2d;
  --red-dark: #b92920;
  --green: #80b241;
  --green-dark: #5f8f2f;
  --dark: #202020;
  --deeper: #111;
  --muted: #666;
  --light: #f4f4f4;
  --line: #e5e5e5;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #333;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(128, 178, 65, .55);
  outline-offset: 3px;
}

p {
  margin: 0 0 18px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  color: var(--dark);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 5px 22px rgba(0, 0, 0, .12);
}

.top-bar {
  color: var(--white);
  background: #151515;
  font-size: 15px;
  text-transform: uppercase;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  width: min(1170px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  padding: 7px 0;
}

.top-bar-inner img {
  width: 31px;
  height: auto;
}

.phone-link strong {
  color: var(--green);
}

.quote-link,
.service-card span,
.feature-banner b,
.button,
.quote-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.quote-link {
  background: var(--red);
}

.quote-link:hover,
.quote-phone:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 24px rgba(224, 59, 45, .28);
  transform: translateY(-1px);
}

.service-card span:hover,
.feature-banner b:hover,
.button:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(128, 178, 65, .26);
  transform: translateY(-1px);
}

.button-light {
  background: rgba(255, 255, 255, .95);
  color: #1f1f1f;
}

.button-light:hover {
  background: var(--white);
  color: #111;
}

.nav-shell {
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1170px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  padding: 16px 0;
}

.brand img {
  width: min(318px, 48vw);
  height: auto;
}

.header-tagline {
  max-width: 360px;
  margin: 0;
  color: #383838;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 55vw, 660px);
  overflow: hidden;
  background: #111;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.26) 50%, rgba(0,0,0,.54));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1170px;
  padding: 72px 0;
  color: var(--white);
}

.hero-content .eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  line-height: .98;
  text-transform: uppercase;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.slide-one {
  background-image: url("../images/Best-Termites-Control-termites-protection-bluesheet.jpg");
}

.slide-two {
  background-image: url("../images/Best-Termites-Control-termites-treatment-homeguard.jpg");
  animation-delay: 5s;
}

.slide-three {
  background-image: url("../images/Best-Termites-Control-reticulation-system.jpg");
  animation-delay: 10s;
}

.slide-four {
  background-image: url("../images/Best-Termites-Control-homeguard-bluesheet.jpg");
  animation-delay: 15s;
}

.slide-five {
  background-image: url("../images/Best-Termites-Control-termites-reticulation-system.jpg");
  animation-delay: 20s;
}

@keyframes heroFade {
  0%, 18% { opacity: 1; }
  24%, 100% { opacity: 0; }
}

.services {
  padding: 70px 0 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}

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

.service-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card div {
  flex: 1;
  padding: 30px 24px 24px;
}

.service-card h2 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.partners {
  padding: 24px 0 48px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.logo-strip img {
  max-height: 74px;
  margin: auto;
  object-fit: contain;
}

.solutions {
  padding: 70px 0 100px;
  background: var(--light);
}

.section-title {
  margin-bottom: 36px;
}

.section-title.centered {
  text-align: center;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  color: #222;
  font-size: clamp(31px, 3.2vw, 46px);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}

.section-title p {
  margin-top: 12px;
  color: #777;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  transition: box-shadow .18s ease, transform .18s ease;
}

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

.feature-banner.wide {
  grid-column: span 2;
}

.feature-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.7));
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  color: var(--white);
}

.banner-content strong {
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.banner-content em {
  max-width: 560px;
  font-style: normal;
}

.why {
  position: relative;
  min-height: 640px;
  background: #191919;
  color: var(--white);
  overflow: hidden;
}

.why-image {
  position: absolute;
  inset: 0 0 0 50%;
  background-image: linear-gradient(90deg, rgba(25,25,25,.92), rgba(25,25,25,.15)), url("../images/Homeguard-install-best-termites-control-BTC.jpg");
  background-position: center;
  background-size: cover;
}

.why-content {
  position: relative;
  z-index: 1;
  width: min(1170px, calc(100% - 32px));
  padding: 90px 0;
}

.why-content > * {
  max-width: min(560px, calc(50vw - 48px));
}

.why .section-title h2 {
  color: var(--white);
}

.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.resources {
  padding: 80px 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.resource-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.resource-card h2 {
  width: fit-content;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--green);
  color: var(--dark);
  font-size: 21px;
  line-height: 1.2;
  text-transform: uppercase;
}

.resource-card p {
  min-height: 52px;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-card img {
  width: min(190px, 70%);
  margin-top: 26px;
  object-fit: contain;
}

.text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 70px;
}

.service-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

.proof-image {
  min-height: 380px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.proof-copy {
  background: #f8f8f8;
  border-top: 7px solid var(--green);
  border-radius: var(--radius);
  padding: 34px;
}

.proof-copy h2 {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 14px;
  background: var(--green);
  color: var(--white);
  font-size: 19px;
  text-transform: uppercase;
}

.proof-copy h3 {
  margin: 20px 0 8px;
  font-size: 22px;
}

.service-area {
  display: grid;
  grid-template-columns: 34% 66%;
  min-height: 390px;
  background: #171717;
  color: var(--white);
}

.area-copy {
  padding: 58px 52px 54px max(32px, calc((100vw - 1170px) / 2));
}

.area-copy h2,
.quote-panel h2,
.footer-main h2,
.footer-contact h2 {
  margin: 0 0 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.area-map {
  min-height: 390px;
  background-image: url("../images/best-termites-control-service-area.jpg");
  background-position: center;
  background-size: cover;
}

.site-footer {
  background: #171717;
  color: #d6d6d6;
}

.quote-panel {
  padding: 84px 0 54px;
  text-align: center;
}

.quote-panel h2 {
  color: var(--white);
  font-size: clamp(30px, 3vw, 43px);
}

.quote-panel p {
  color: #bcbcbc;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-phone {
  margin-top: 10px;
  background: var(--red);
  font-size: 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 42px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.footer-about img {
  max-width: 210px;
  margin-bottom: 18px;
}

.footer-main h2,
.footer-contact h2 {
  color: var(--white);
  font-size: 18px;
}

.footer-links a,
.footer-about a,
.footer-contact a {
  display: block;
  margin-bottom: 8px;
  color: #d9d9d9;
}

.footer-links a::before {
  content: "> ";
  color: var(--green);
  font-weight: 700;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 34px 0;
}

.call-number {
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.social-links h2 {
  flex: 1 0 100%;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: #2d2d2d;
  color: var(--white);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-icon.instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon.instagram svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.social-icon:hover {
  border-color: var(--green);
  background: var(--green);
  transform: translateY(-2px);
}

.social-icon.instagram:hover {
  background: #c13584;
  border-color: #c13584;
}

.social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-icon.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-icon.twitter:hover {
  background: #111;
  border-color: #555;
}

.social-icon.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.social-icon.pinterest:hover {
  background: #bd081c;
  border-color: #bd081c;
}

.post-footer {
  background: #101010;
  color: #bdbdbd;
}

.post-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 14px;
}

.post-footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .top-bar-inner {
    width: min(100% - 32px, 1170px);
  }

  .nav-inner {
    min-height: 86px;
  }

  .hero {
    min-height: 540px;
  }

  .service-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-content > * {
    max-width: min(520px, calc(50vw - 32px));
  }

  .service-area {
    grid-template-columns: 42% 58%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 10px 16px;
    text-align: center;
  }

  .top-bar-inner img {
    display: none;
  }

  .nav-inner {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .brand img {
    width: 220px;
  }

  .header-tagline {
    max-width: 320px;
    font-size: 14px;
    text-align: center;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 54px 0;
    text-align: center;
  }

  .hero-content h1,
  .hero-content p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .services,
  .solutions,
  .resources {
    padding: 52px 0;
  }

  .service-grid,
  .banner-grid,
  .resource-grid,
  .text-columns,
  .service-proof,
  .service-area,
  .footer-main,
  .footer-contact {
    grid-template-columns: 1fr;
  }

  .feature-banner.wide {
    grid-column: auto;
  }

  .why-image {
    position: static;
    min-height: 300px;
  }

  .why-content {
    padding: 46px 0 56px;
  }

  .why-content > * {
    max-width: none;
  }

  .area-copy {
    padding: 44px 24px;
  }

  .resource-card img {
    width: min(170px, 60%);
  }

  .footer-main,
  .footer-contact {
    gap: 26px;
  }

  .post-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 24px, 1170px);
  }

  .quote-link,
  .phone-link {
    width: auto;
    min-height: 36px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .brand img {
    width: 190px;
  }

  .top-bar-inner {
    gap: 8px;
    padding: 8px 0;
  }

  .nav-inner {
    padding: 12px 0;
  }

  .header-tagline {
    display: none;
  }

  .hero {
    min-height: 410px;
  }

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

  .hero-actions .quote-phone,
  .hero-actions .button {
    width: 100%;
  }

  .service-grid,
  .logo-strip {
    gap: 18px;
  }

  .service-card div,
  .banner-content,
  .proof-copy {
    padding: 22px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h1,
  .section-title h2 {
    font-size: 29px;
  }

  .banner-content strong {
    font-size: 22px;
  }

  .feature-banner,
  .area-map,
  .proof-image {
    min-height: 260px;
  }
}
