/*
  Wilkins Welding Joomla-to-static migration.
  Custom CSS stays here on top of Bootstrap 5.3.
*/

:root {
  --site-accent: #ee6230;
  --site-accent-dark: #c94c20;
  --site-ink: #222222;
  --site-muted: #707273;
  --site-border: #e7e7e7;
  --site-header: #333333;
  --site-section-padding: 100px;
}

@font-face {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/fontawesome-webfont.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 89px;
}

body {
  color: var(--site-muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--site-accent);
  text-decoration: none;
}

a:hover {
  color: var(--site-accent-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(238, 98, 48, 0.45);
  outline-offset: 3px;
  box-shadow: none;
}

.skip-link {
  background: #ffffff;
  border: 2px solid var(--site-accent);
  color: var(--site-ink);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--site-header);
  box-shadow: none;
}

.navbar {
  min-height: 89px;
  padding: 0;
}

.site-logo img {
  display: block;
  height: auto;
  max-width: min(347px, 70vw);
}

.navbar-toggler {
  border: 0;
  border-radius: 0;
}

.navbar-nav {
  align-items: center;
  gap: 0;
  min-height: 89px;
}

.navbar .nav-link {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 18px;
  font-weight: 300;
  min-height: 89px;
  letter-spacing: 0;
  padding: 0 20px;
  text-transform: none;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: var(--site-accent);
  color: #111111;
}

.hero-section {
  background: #111111;
  min-height: 100vh;
  padding-top: 89px;
}

.hero-slide {
  background-image: url("../images/fallback/hero/welder-and-sparks.jpg");
  background-image: image-set(
      url("../images/hero/welder-and-sparks.webp") type("image/webp"),
      url("../images/fallback/hero/welder-and-sparks.jpg") type("image/jpeg")
  );
  background-position: center center;
  background-size: cover;
  min-height: calc(100vh - 89px);
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.08);
  inset: 0;
  position: absolute;
}

.site-section {
  padding: var(--site-section-padding) 0;
}

.section-heading {
  margin: 0 auto 48px;
  max-width: 920px;
}

.section-heading h1,
.section-heading h2 {
  color: #000000;
  font-size: 60px;
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
}

.section-heading p {
  color: var(--site-muted);
  font-size: 24px;
  margin: 10px 0 0;
  text-transform: uppercase;
}

.section-heading-light h2,
.section-heading-light p {
  color: #ffffff;
}

.content-narrow {
  max-width: 980px;
}

.about-copy {
  color: #333333;
  font-size: 19px;
  line-height: 1.75;
  margin: 0;
}

.services-section {
  background-image: url("../images/fallback/content/what-we-do.jpg");
  background-image: image-set(
      url("../images/content/what-we-do.webp") type("image/webp"),
      url("../images/fallback/content/what-we-do.jpg") type("image/jpeg")
  );
  background-position: center center;
  background-size: cover;
  color: #ffffff;
  position: relative;
}

.services-overlay {
  background: rgba(0, 0, 0, 0.52);
  inset: 0;
  position: absolute;
}

.service-grid {
  padding-top: 22px;
}

.service-item {
  color: #ffffff;
  min-height: 250px;
  padding: 0 14px;
  text-align: center;
}

.service-icon {
  align-items: center;
  background: var(--site-accent);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  color: #000000;
  display: inline-flex;
  font-size: 52px;
  font-weight: 300;
  height: 160px;
  justify-content: center;
  margin-bottom: 40px;
  width: 160px;
}

.fa-icon {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

.service-item h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
}

.service-item p {
  margin: 0;
}

.portfolio-section {
  color: #000000;
  padding-bottom: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-item {
  aspect-ratio: 4 / 3;
  background: #111111;
  border: 0;
  color: #ffffff;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
}

.portfolio-item img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
  width: 100%;
}

.portfolio-item::after {
  background: rgba(0, 0, 0, 0.5);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.12);
}

.portfolio-item:hover::after,
.portfolio-item:focus-visible::after {
  opacity: 1;
}

.bottom-contact {
  background: #000000;
  color: #ffffff;
  padding: 40px 0 36px;
}

.bottom-contact h2 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.bottom-contact p,
.bottom-contact address {
  color: #d7d7d7;
  margin: 0;
}

.bottom-contact a {
  color: #ffffff;
}

.social-link {
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
  padding: 7px 18px;
  text-transform: uppercase;
}

.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bdbdbd;
  font-size: 13px;
  padding: 20px 0;
}

.site-footer a {
  color: #ffffff;
}

.gallery-modal .modal-content {
  background: #ffffff;
  border: 0;
  border-radius: 0;
}

.gallery-modal .modal-header {
  border-bottom: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.gallery-modal .btn-close {
  background-color: #ffffff;
  opacity: 0.9;
  position: absolute;
  right: 12px;
  top: 12px;
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal img {
  display: block;
  height: auto;
  max-height: calc(100vh - 145px);
  object-fit: contain;
  width: 100%;
}

.back-to-top {
  background: var(--site-accent);
  border: 0;
  bottom: 1rem;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  text-transform: uppercase;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  z-index: 1030;
}

.back-to-top:hover {
  background: var(--site-accent-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 76px;
  }

  .hero-section {
    padding-top: 76px;
  }

  .hero-slide {
    min-height: 62vh;
  }

  .navbar {
    padding: 0.75rem 0;
    min-height: 76px;
  }

  .navbar-nav {
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    gap: 0;
    min-height: 0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .navbar .nav-link {
    min-height: 0;
    padding: 12px 16px;
  }

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

@media (max-width: 767.98px) {
  :root {
    --site-section-padding: 70px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p {
    font-size: 18px;
  }

  .about-copy {
    font-size: 17px;
  }

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