/* CSS Variables */
:root {
  --yellow: #fbb900;
  --grey: #343434;
  --dark-grey: #2a2a2a;
  --light-grey: #929292;
  --red: #ff0000;
}

/* Reset Styles */
* {
  margin: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  margin: 0;
  font-family: Roboto, sans-serif;
  background-color: var(--grey);
  color: white;
}

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

/* Typography */
h1 {
  font-size: 4rem;
  margin: unset;
}

h2 {
  font-size: 3rem;
  margin: unset;
}

h3 {
  font-size: 1.75rem;
  margin: unset;
}

/* Utility Classes */
.cover-image-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.margin-inline-auto {
  margin-inline: auto;
}

.miniTitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
}

.splitBackgroundLeft {
  background-image: linear-gradient(to right, Transparent 25%, black 25% 100%);
}

.splitBackgroundRight {
  background-image: linear-gradient(to left, Transparent 25%, black 25% 100%);
}

@media (max-width: 1024px) {
  .splitBackgroundRight,
  .splitBackgroundLeft {
    background-image: none;
    background-color: black;
  }
}

/* Layout Classes */
.flexRow {
  display: flex;
  flex-direction: row;
}

.flexCol {
  display: flex;
  flex-direction: column;
}

.twoCol {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

.sectionContent {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

/* Section Intro Styling */
.page-intro-block {
  display: grid;
  grid-template-columns: 25% 70%;
  gap: 2rem;
}

.page-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.introBlock {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 2rem;
}

.introBlockCol {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
}

.intro-image-box {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
}

@media (max-width: 500px) {
  .page-intro-block {
    grid-template-columns: unset;
  }
  .introBlock {
    flex-direction: column;
  }
  .introBlockCol {
    width: unset;
  }
  .intro-image-box {
    display: none;
  }
}

/* Button Styles */
.button {
  padding: 13px 30px;
  cursor: pointer;
  width: fit-content;
  border: none;
  font-weight: 600;
}

.borderButton {
  border: 2px solid var(--yellow);
  color: var(--yellow);
  background: transparent;
}

.borderButton:hover {
  background-color: var(--yellow);
  color: black;
}

.yellowButton {
  background-color: var(--yellow);
  color: black;
}

.yellowButton:hover {
  background-color: white;
}

.greyButton {
  background-color: var(--grey);
  color: white;
}

.greyButton:hover {
  background-color: var(--yellow);
  color: black;
}

/* Hover Styles */
.hover-item:hover {
  transform: translateY(-5px);
}
@media (max-width: 1100px) {
  .hover-item:hover {
    transform: none;
  }
}

/* Section Styles */
section {
  padding: clamp(1rem, 5%, 3rem);
  margin-top: 3rem;
}
@media (min-size: 1300px) {
  section {
    padding: clamp(3rem, 10%, 5rem);
    margin-top: 4rem;
  }
}

.service-overview-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pageContent {
  display: flex;
  flex-direction: column;
  padding: 3rem 5%;
  gap: 3rem;
}

/* Header & Navigation */
.header {
  background-color: var(--grey);
  width: 100%;
  position: relative;
}

.headerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  height: 80px;
}

.logo {
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav a:hover {
  color: var(--yellow);
}

.desktop-nav {
  display: flex;
  width: fill-available;
  width: -webkit-fill-available;
}

.desktop-nav-bar {
  margin: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--grey);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mobile-nav a {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.mobile-nav .button {
  margin-top: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* Why Choose Component */
.whyIntro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.whyCol {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.whyItem {
  border-bottom: 2px solid white;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-areas:
    "image title"
    "image copy";
  grid-template-columns: 20% 1fr;
}

.why-item-image {
  grid-area: image;
  margin: 15px;
}
.why-item-image-1 {
  background-image: url("/assets/icons/keys.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.why-item-image-2 {
  background-image: url("/assets/icons/colorSwatch.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.why-item-image-3 {
  background-image: url("/assets/icons/drill.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.whyItem:hover {
  border-bottom: 2px solid var(--yellow);
}

.whyIcon {
  grid-area: image;
  margin: auto;
  width: 40px;
}

.whyItem .miniTitle {
  grid-area: title;
}

.whyCopy {
  grid-area: copy;
  margin: 1rem 0;
}

/* Testimonial Component */
.testimonialRow {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: nowrap;
}
@media (max-width: 500px) {
  .testimonialRow {
    flex-direction: column;
  }
}

.testimonialCard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: black;
  color: white;
  padding: 2rem;
}

.testimonialPerson {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Hero Styles */
.hero {
  display: flex;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  background-image: url("/assets/hero1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: baseline;
  margin-inline: auto;
  gap: 2rem;
  margin-bottom: 10rem;
  text-align: center;
}
.hero-content h1 {
  text-align: center;
  margin-inline: auto;
  font-size: 5rem;
}
.hero-content p {
  text-align: center;
  margin-inline: auto;
  font-size: 1.25rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .hero-content {
    width: unset;
    padding-inline: 20px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.15rem;
  }
}

/* Footer Styles */
footer {
  background-color: #222;
  padding: 3rem;
}

.footerContent {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footerColumns {
  display: flex;
  flex-direction: column;
}

.footerIntro h2 {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footerColumns h3 {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footerColumns ul {
  list-style-type: none;
  padding: 0;
}

.footerColumns li {
  margin-bottom: 0.5rem;
}

.footerColumns a {
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
}

.footerColumns a:hover {
  color: var(--yellow);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .testimonialCard3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .footerContent {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footerColumns {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .testimonialCard {
    padding: 1rem;
  }
}

@media (max-width: 750px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav.active {
    display: flex;
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Scroll Lock */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
