:root {
  --red: #df271f;
  --red-dark: #b8211b;
  --green: #15592a;
  --green-bright: #80b241;
  --dark: #202020;
  --deeper: #111;
  --muted: #626262;
  --light: #f5f6f3;
  --line: #e4e4de;
  --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-bright);
}

.quote-link,
.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,
.quote-phone {
  background: var(--red);
}

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

.button:hover {
  background: #0f4420;
  box-shadow: 0 12px 24px rgba(21, 89, 42, .26);
  transform: translateY(-1px);
}

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

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

.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, 52vw);
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #292929;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background-color .18s ease, color .18s ease;
}

.main-nav a:hover {
  background: var(--green);
  color: var(--white);
}

.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,.24) 52%, rgba(0,0,0,.56));
}

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

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

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

@keyframes heroFade {
  0%, 42% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

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

.hero-content h1 {
  max-width: 790px;
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 70px);
  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;
}

.services,
.solutions {
  padding: 70px 0;
}

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

.section-title.centered {
  max-width: 840px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.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: #666;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

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

.service-card div {
  padding: 28px 24px 26px;
}

.service-card h3,
.solution-card h3,
.contact-card h3 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}

.service-card h3 a:hover,
.solution-card h3 a:hover,
.footer-links a:hover,
.post-footer a:hover {
  color: var(--red);
}

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

.about {
  padding: 78px 0;
  background: #191919;
  color: #ededed;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 48px;
  align-items: start;
}

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

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

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

.value-panel {
  display: grid;
  gap: 18px;
}

.value-panel div {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border-left: 5px solid var(--green-bright);
}

.value-panel h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 20px;
  text-transform: uppercase;
}

.value-panel p {
  margin: 0;
  color: #dcdcdc;
}

.solutions {
  background: var(--light);
}

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

.solution-card {
  display: grid;
  grid-template-rows: auto 1fr;
  transition: box-shadow .18s ease, transform .18s ease;
}

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

.solution-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.solution-card div {
  padding: 24px;
}

.solution-card.wide {
  grid-column: span 2;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: auto;
}

.solution-card.wide img {
  height: 100%;
}

.contact {
  padding: 78px 0;
  background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.52)), url("../images/slide2.jpg") center / cover;
  color: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 42px;
  align-items: center;
}

.contact h2 {
  max-width: 650px;
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
}

.contact p {
  max-width: 690px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.contact-card {
  padding: 30px;
  color: #333;
}

.contact-card p {
  color: #444;
  font-size: 16px;
}

.contact-card a:not(.quote-phone) {
  color: var(--green);
  font-weight: 700;
}

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

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 38px;
  padding: 50px 0;
}

.footer-about img {
  width: min(300px, 100%);
  margin-bottom: 20px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--white);
}

.footer-main h2,
.footer-contact h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

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

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

.call-number {
  display: block;
  margin-bottom: 18px;
  color: var(--green-bright);
  font-size: 20px;
  font-weight: 700;
}

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

.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:hover {
  border-color: var(--green-bright);
  background: var(--green-bright);
  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;
}

.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) {
  .nav-inner {
    min-height: 86px;
  }

  .hero {
    min-height: 540px;
  }

  .service-grid {
    gap: 20px;
  }

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

  .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;
    padding: 18px 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .brand img {
    width: min(320px, 82vw);
  }

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

  .hero {
    min-height: 450px;
  }

  .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,
  .about,
  .contact {
    padding: 54px 0;
  }

  .service-grid,
  .about-grid,
  .contact-panel,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .solution-card.wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .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: 260px;
  }

  .main-nav a {
    padding: 8px 9px;
  }

  .hero {
    min-height: 430px;
  }

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

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

  .service-card div,
  .solution-card div,
  .contact-card,
  .value-panel div {
    padding: 22px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

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