:root {
  --red: #e03b2d;
  --red-dark: #b92920;
  --green: #80b241;
  --green-dark: #5f8f2f;
  --dark: #202020;
  --deeper: #111;
  --muted: #666;
  --light: #f5f6f4;
  --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: "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 {
  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: 18px;
  width: min(1170px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  padding: 7px 0;
}

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

.quote-link,
.button,
.quote-phone,
.service-card span {
  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,
.quote-phone {
  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);
}

.button:hover,
.service-card span: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, .96);
  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(380px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 99px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28) 52%, rgba(0,0,0,.58));
}

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

.slide-one {
  background-image: url("../images/hero-image-01.jpg");
}

.slide-two {
  background-image: url("../images/hero-image-02.jpg");
  animation-delay: 6s;
}

.slide-three {
  background-image: url("../images/hero-image-03.jpg");
  animation-delay: 12s;
}

.slide-four {
  background-image: url("../images/hero-image-04.jpg");
  animation-delay: 18s;
}

@keyframes heroFade {
  0%, 22% { opacity: 1; }
  28%, 100% { opacity: 0; }
}

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

.eyebrow,
.section-title p {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

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

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

.intro,
.services {
  padding: 74px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) 1.15fr;
  gap: 46px;
  align-items: start;
}

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

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

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

.intro-copy {
  color: #4d4d4d;
  font-size: 18px;
}

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

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

.feature-card,
.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;
}

.feature-card {
  padding: 30px 26px;
}

.feature-card h2,
.service-card h3,
.footer-main h2,
.footer-social h2,
.quote-panel h2 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 21px;
  line-height: 1.15;
  text-transform: uppercase;
}

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

.guarantee {
  padding: 76px 0;
}

.guarantee-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #4a4a4a;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #dfeecd;
}

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

.service-card {
  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 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 24px 24px;
}

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

.service-card span {
  margin-top: auto;
  background: var(--green);
  font-size: 14px;
}

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

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

.area-copy h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
}

.area-copy p {
  color: #d6d6d6;
}

.area-image {
  min-height: 420px;
  background-image: linear-gradient(90deg, rgba(23,23,23,.55), rgba(23,23,23,.05)), url("../images/termite-protection-btc.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 {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: #bcbcbc;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-phone {
  margin-top: 10px;
  font-size: 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 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: 240px;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .24));
}

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

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

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

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

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

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

.footer-social {
  padding: 34px 0;
}

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

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  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:hover {
  border-color: var(--green);
  background: var(--green);
  transform: translateY(-2px);
}

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

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

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

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

.social-icon.map:hover {
  background: #5f8f2f;
  border-color: #5f8f2f;
}

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

.post-footer a {
  color: #f0a23b;
}

@media (max-width: 1024px) {
  .brand img {
    width: min(330px, 46vw);
  }

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

  .guarantee-inner,
  .service-area {
    grid-template-columns: 1fr;
  }

  .area-copy {
    padding: 52px 32px;
  }

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

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

  .brand img {
    width: min(300px, 78vw);
  }

  .site-nav {
    justify-content: center;
  }

  .hero {
    min-height: 480px;
  }

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

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

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

  .intro,
  .features,
  .guarantee,
  .services {
    padding: 54px 0;
  }

  .intro-grid,
  .feature-grid,
  .service-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-social {
    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;
  }

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

  .site-nav {
    gap: 6px 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 430px;
  }

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

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

  .feature-card,
  .service-card div {
    padding: 24px 22px;
  }

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

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

  .area-image {
    min-height: 270px;
  }
}
