/** 
 * Theme Name: D. Joseph Construction
 * Author: Central States Marketing
 * Author URI: https://www.centralstatesmarketing.com/
 * Description: This site was built by Central States Marketing. For more information about the site or this custom WordPress theme, you can contact Central States Marketing at: info@csm.marketing or call us at: 309-693-2345.
 * Version: 1.0.0
 *
 * @package djosephconstruction
 * @charset "UTF-8"
 */

/**
 * Table of Contents
 * -----------------
 * 1. Global Settings
 * 2. Typography
 * 3. Utils
 * 4. Site Header
 * 5. Drawer
 * 6. Hero Section
 * 7. About Section
 * 8. Banner Section
 * 9. We Serve Section
 * 10. Projects Section
 * 11. Projects Slider
 * 12. Legacy Section
 * 13. Trusted Partners
 * 14. Testimonials
 * 15. Contact Us
 * 16. Footer
 * 17. Inside Pages
 */

/* ======================== */
/* 1. Global Settings */
/* ======================== */
:root {
  --gray: #e0e0e0;
  --light-gray: #ebebeb;
  --dark-green: #044d03;
  --green: #1c5a1b;
  --light-green: #7dc468;
  --charcoal: #231f20;
  --white: #ffffff;
  --navy: #2e4159;
  --black: #000000;

  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-hover: rgba(0, 0, 0, 0.4);

  --shadow: 0 0 10px var(--shadow-color);
  --shadow-hover: 0 0 10px var(--shadow-color-hover);
  --shadow-alt: 0 5px 10px var(--shadow-color); /* 5px is the vertical offset */

  --gutter: 2rem;

  --max-w-max: 115.2rem;
  --max-w-content: 80rem;
  --max-w-text: 50rem;

  --border-radius: 2rem;

  --ff-heading: "helvetica", sans-serif;
  --ff-body: "helvetica", sans-serif;

  --fs-xs: clamp(0.55rem, 0.2vw + 0.5rem, 0.8rem);
  --fs-sm: clamp(0.7rem, 0.25vw + 0.6rem, 0.9rem);
  --fs-base: clamp(0.85rem, 0.35vw + 0.7rem, 1.1rem);
  --fs-md: clamp(1rem, 0.5vw + 0.85rem, 1.4rem);
  --fs-lg: clamp(1.2rem, 0.8vw + 1rem, 1.75rem);
  --fs-xl: clamp(1.5rem, 1.1vw + 1.2rem, 2rem);
  --fs-2xl: clamp(1.75rem, 1.5vw + 1.4rem, 2.8rem);
  --fs-3xl: clamp(2rem, 2vw + 1.5rem, 3.6rem);
  --fs-4xl: clamp(3.25rem, 2.5vw + 2rem, 4.5rem);

  --header-height: var(--dynamic-header-height, 120px);
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
}

.container {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 4rem;
}

@media (max-width: 768px) {
  .container {
    padding-block: 3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding-block: 2.5rem;
    padding-inline: 1rem;
  }
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

cite {
  display: inline;
}

b,
strong {
  font-weight: bolder;
}

embed,
iframe,
object,
img {
  display: block;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======================== */
/* 2. Typography */
/* ======================== */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ff-heading);
  line-height: 1;
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.5px;
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-family: var(--ff-body);
}

h5,
h6 {
  font-size: var(--fs-md);
  margin: 0 0 0.5rem 0;
}

p {
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  font-family: var(--ff-body);
}

ul li {
  letter-spacing: 0px;
  font-family: var(--ff-body);
}

a {
  text-decoration: none;
  transition: var(--transition);
  font-size: var(--fs-base);
  cursor: pointer;
}

a:has(svg) {
  display: flex;
}

@media (max-width: 768px) {
  :root {
    --fs-2xl: 2.5rem;
  }
}

/* ======================== */
/* 3. Utils */
/* ======================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

hr {
  display: block;
  height: 1px;
  width: 100%;
  border: none;
  background-color: currentColor; /* matches text color */
  margin-block: 1.5rem;
}

.btn,
.button {
  text-transform: uppercase;
  color: var(--white);
  padding: 0.5rem 1.75rem;
  font-weight: 600;
  background-color: var(--white);
  display: inline-block;
  letter-spacing: 0.25px;
  min-width: 125px;
  width: 100%;
  max-width: max-content;
  text-align: center;
  cursor: pointer;
  height: max-content;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .btn,
  .button {
    font-size: var(--fs-base);
  }
}

.btn-white,
.button {
  background-color: var(--white);
  color: var(--black);
}

.btn-green {
  background-color: var(--dark-green);
}

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

/* Hover */
.btn-green:hover {
  background-color: var(--green);
}

.btn-black:hover {
  background-color: var(--charcoal);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-gray:hover {
  background-color: var(--light-gray);
}

/* Wrapper */
.wrapper-max {
  max-width: var(--max-w-max);
  margin-inline: auto;
}

.wrapper-content {
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrapper-text {
  max-width: var(--max-w-text);
  margin-inline: auto;
}

/* Eyebrow and Titles */
.eyebrow {
  text-transform: uppercase;
  color: var(--dark-gray);
  font-weight: 300;
}

.eyebrow-dash {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
}

.title-dash {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

.eyebrow-dash hr,
.title-dash hr {
  width: 2.5rem;
  height: 2px;
  background-color: var(--light-green);
  margin: 0;
}

h2.title,
h3.title {
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: bold;
}

.subheader {
  font-size: var(--fs-lg);
  font-weight: 600;
  text-transform: initial;
}

/**************************************************
   * 4. === Site Header ===
   **************************************************/
.home .site-header-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.site-header {
  padding-inline: var(--gutter);
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w-content);
  margin-inline: auto;
}

.site-logo img {
  max-width: 10rem;
  width: 100%;
  transition: max-width 0.3s ease;
  object-fit: cover;
}

/* Scrolled */
.site-header-wrapper.scrolled {
  background: var(--charcoal);
  backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 1024px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-branding {
    gap: 1rem;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-logo img {
    max-width: 10rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
  }

  .site-logo img {
    max-width: 8rem!important;
    object-fit: contain;
  }
}

/* === Navigation === */
#primary-menu {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

#primary-menu li {
  list-style: none;
}

#primary-menu li a {
  padding: 1rem 2rem;
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: 0.3s;
  text-transform: uppercase;
}

#primary-menu li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

#primary-menu li a.active {
  color: var(--white);
}

/* Sub-menu */
#primary-menu .sub-menu li a {
  margin-inline-start: 0;
  color: var(--black);
  padding: 0.75rem 2rem;
  font-weight: 600;
}

/* Submenu Container */
.menu-item-has-children ul {
  position: absolute;
  display: block;
  width: auto;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  box-shadow: var(--shadow);
}

/* Reveal submenu on hover */
.menu-item-has-children:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px; /* submenu height */
}

/* Submenu Items */
.menu-item-has-children ul li {
  width: 100%;
}

/* Submenu Links */
.menu-item-has-children ul li a {
  display: block;
  width: 100%;
  padding: 1rem;
  color: var(--black);
  transition: color 0.3s ease;
  background: var(--white);
}

.menu-item-has-children li:nth-child(even) > a {
  background: var(--light-gray);
}

/* Hover effect for submenu links */
.menu-item-has-children ul li a:hover {
  color: var(--dark-green);
}

.main-navigation .menu-item:has(.sub-menu):hover .sub-menu {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1000px) {
  .site-header #site-navigation {
    display: none;
  }

  ul.sub-menu {
    display: none;
  }

  .hamburger-wrapper {
    display: block !important;
  }

  .menu-chevron {
    display: none;
  }

  #careers-btn {
    display: none;
  }
}

/* === Hamburger Menu === */
.hamburger-wrapper {
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 11000;
  border-radius: 2px;
  background-color: var(--dark-green);
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.hamburger {
  position: relative;
  width: 2rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  padding: 1rem;
  cursor: pointer;

  /* Hamburger Lines */
  .hamburger-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: all 0.3s ease;

    &::before,
    &::after {
      content: "";
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--white);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    &::before {
      top: -8px;
    }

    &::after {
      top: 8px;
    }
  }

  /* Open (X) State */
  &.on .hamburger-line {
    background-color: transparent;

    &::before {
      transform: rotate(45deg) translate(5px, 5px);
    }

    &::after {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  }
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hamburger-icon {
    max-width: 2rem;
  }
}

/**************************************************
   * 5. === Drawer ===*
   **************************************************/
.drawer {
  padding-block-start: 136px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: var(--white);
  backdrop-filter: blur(20px);
  z-index: 1001;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.drawer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2rem 3rem;
  color: var(--dark-green);
  height: 100dvh;
}

/* Acts as a spacer to space out drawer evenly*/
.drawer-wrapper::before {
  content: "";
  flex: 0; /* acts like a flexible spacer */
}

.drawer #site-navigation {
  width: 100%;
}

.drawer #site-navigation ul li a {
  color: var(--dark-green);
  font-family: var(--ff-body);
  font-weight: 600;
}

.drawer .menu-main-menu-container {
  height: 100%;
}

.drawer .menu {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer .menu-item a {
  display: block;
  font-size: var(--fs-3xl);
  padding-block: 1rem;
  font-weight: 700;
}

.drawer .sub-menu {
  display: none !important;
}

.drawer #primary-menu li a.active {
  color: var(--dark-green);
}

.drawer .sub-menu .menu-item a {
  padding: 0.5rem 0;
  font-size: var(--fs-md);
}

.drawer-credits {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.drawer-credits p {
  margin-bottom: 0;
  font-size: var(--fs-xs);
  color: var(--charcoal);
}

.drawer-details {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  border-top: 0.5px solid var(--light-gray);
}

.drawer-socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.drawer-socials img {
  filter: invert(1);
}

@media (max-width: 1024px) {
  .drawer {
    padding-block-start: 128px;
  }

  .drawer-wrapper {
    padding: var(--gutter);
  }
}

@media (max-width: 768px) {
  .drawer-wrapper {
    padding: var(--gutter);
  }
}

@media (max-width: 500px) {
  .drawer {
    padding-block-start: 112px;
  }

  .drawer-wrapper {
    padding: 2rem;
  }
}

/****************************/
/** == ** Front Page ** == **/
/***************************/

/****************************/
/** 6. == ** Hero Section ** == **/
/***************************/
.hero {
  position: relative;
  aspect-ratio: 2/1;
  max-height: 44rem;
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-wrapper {
  height: 100%;
}

.hero-content {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  z-index: 2;
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 {
  max-width: 24ch;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--white);
}

@media (max-width: 2560px) and (min-width: 1800px) {
  .hero {
    max-height: 46rem;
  }
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 600px) {
  .hero {
    aspect-ratio: 3/4;
  }
}

/****************************/
/* 7. ** About Us **  */
/***************************/

.about {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Bottom Left Image */
.about::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-left.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 0;
}

.about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: #c1c1c1; /* low opacity black */
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.about-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  padding-block: 5rem;
}

.about-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  max-width: 42ch;
  width: 100%;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.about-content::before {
  content: "";
  flex: 0;
}

.about-header h2 {
  color: var(--dark-green);
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    row-gap: 0rem;
    text-align: left;
    flex-direction: column;
  }

  .about::before {
    width: 100%; /* adjust size */
    background-size: contain;
  }

  .about-header {
    max-width: 100%;
  }
}

/****************************/
/* 8. == ** Banner ** == **/
/***************************/
.banner {
  background-color: var(--dark-green);
}

.banner-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.banner-wrapper .card {
  text-align: center;
  color: var(--white);
}

.banner-wrapper .card h2 {
  font-weight: 800;
  font-size: var(--fs-4xl);
  text-align: center;
  color: var(--white);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .banner-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}

/****************************/
/* 9. ** We Serve **  */
/***************************/

.we-serve {
  position: relative;
  overflow: hidden;
}

/* Bottom Left Image */
.we-serve::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-left.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 0;
}

.we-serve::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: #c1c1c1;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.we-serve-wrapper {
  position: relative;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.we-serve-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.we-serve-header .eyebrow {
  font-weight: 500;
  margin-bottom: 0;
}

.we-serve-header hr {
  background: var(--green);
}

.we-serve-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.we-serve-cards .card {
  position: relative;
  padding-bottom: 1rem; /* room for arrow outside the shape */
  height: 100%;
}

.we-serve-cards .card-shape {
  height: 100%;
  position: relative;
  background: var(--light-green);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  padding: 1px; /* border thickness */
}

.we-serve-cards .card-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  padding: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  min-height: 100%;
  position: relative;
  padding-bottom: 3rem;
}

.we-serve-cards .card-arrow {
  position: absolute;
  right: 0.25rem;
  bottom: 0.65rem;
  object-fit: contain;
}

.we-serve-cards .card-arrow {
  position: absolute;
  right: 0.25rem;
  bottom: 0.65rem;
  object-fit: contain;

  transform: translateX(0);
  transition: transform 0.3s ease;
}

/* Animate on hover */
.card-link:hover .card-arrow,
.card-link:focus-visible .card-arrow {
  transform: translateX(0.4rem);
}

.we-serve-cards .card .icon {
  max-width: 6rem;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--black);
}

.card-info .industry {
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-base);
  margin-bottom: 0;
}

.card-info .content {
  font-size: var(--fs-sm);
  /* margin-bottom: 1.25rem; */
}

@media (max-width: 900px) {
  .we-serve-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .we-serve-wrapper {
    text-align: left;
  }

  .we-serve::before {
    width: 100%;
  }
	
  .we-serve-cards .card-inner {
    padding-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .we-serve-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .we-serve-cards .card {
    flex-direction: row;
    align-items: center;
  }

  .we-serve-cards .card-inner {
    align-items: center;
    flex-direction: row;
	padding-bottom: 1rem;
  }

  .we-serve-cards .card-arrow {
    bottom: 0rem;
  }

  .card-info .content {
    margin-bottom: 0;
  }

  .card-info {
    gap: 0.5rem;
  }
}

/****************************/
/** 10. Projects  **/
/***************************/
.projects {
  background-color: var(--black);
  position: relative;
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  color: var(--white);
  gap: 4rem;
  padding-bottom: 2rem;
}

.projects-header {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

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

.projects-content p {
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .projects-image {
    aspect-ratio: 5/2;
  }
}

@media (max-width: 600px) {
  .projects-image {
    aspect-ratio: 3/2;
  }

  .projects-content p {
    margin-bottom: 2rem;
  }
}

/****************************/
/** 11. Projects Slider   **/
/***************************/
.projects-slider {
  width: 100%;
  background-color: var(--dark-green);
  position: relative;
}

.projects-slider::after {
  content: "";
  position: absolute;
  top: -1px; /* removing small line */
  left: 0;
  width: 100%;
  height: 4rem;
  background: var(--black);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.projects-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 4rem;
  position: relative;
  z-index: 1;
}

/* arrows row */
.projects-slider .arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.projects-slider .arrows button {
  width: 3rem;
  height: 2rem;
  border: none;
  background: white;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
}

.projects-slider .arrows button:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--dark-green);
  transform: translateY(-2px);
}

.projects-slider .arrows button img {
  fill: var(--dark-green);
  width: 1.5rem;
}

/* splide spacing */
.projects-splide {
  width: 100%;
  margin-bottom: 1rem;
}

.projects-splide .splide__track {
  overflow: hidden;
}

.projects-splide .splide__slide {
  height: auto;
}

.projects-slider .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.projects-slider .card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 15rem;
  object-position: top;
  object-fit: cover;
  display: block;
}

.projects-slider .card p {
  color: var(--white);
  font-weight: 600;
  margin: 0;
}

.projects-slider-wrapper a {
  margin-inline: auto;
}

/* optional: hide default splide arrows/pagination */
.projects-splide .splide__arrows,
.projects-splide .splide__pagination {
  display: none;
}

@media (max-width: 600px) {
  .projects-slider::after {
  content: "";
  position: absolute;
  top: -1px; /* removing small line */
  left: 0;
  width: 100%;
  height: 2rem;
  background: var(--black);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

}

/****************************/
/** 12. Legacy  **/
/***************************/
.legacy {
  background-color: transparent;
  overflow: hidden;
  position: relative; /* Required for absolute positioning */
}

/* Bottom Left Image */
.legacy::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-left.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 0;
}

/* Top Right Image */
.legacy::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-right.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 0;
}

.legacy-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.legacy-header {
  text-align: center;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 3rem;
  padding-inline: 4rem;
}

.legacy-image img {
/*   aspect-ratio: 5/4; */
  object-fit: cover;
  object-position: top;
  height: 100%;
  max-height: 20.5rem;
}

.legacy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legacy-content .subheader {
  color: var(--dark-green);
}

.legacy-content blockquote {
  font-weight: 200 !important;
}

.quote cite::before {
  content: " — ";
  color: var(--light-green);
}

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

@media (max-width: 768px) {
  .legacy-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .legacy::before {
    width: 100%;
  }

  .legacy::after {
    width: 100%;
  }

  .legacy-image img {
    aspect-ratio: 2/1;
    object-position: 50% 10%;
  }
}

@media (max-width: 600px) {
  .legacy-grid {
    padding-inline: 0rem;
  }

  .legacy-image img {
    aspect-ratio: 1;
    object-position: center;
  }
}

/****************************/
/** 13. Trusted Partners  **/
/***************************/
.partners {
  max-width: var(--max-w-text);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.partners-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.partners-header {
  max-width: max-content;
  border-bottom: 3px solid var(--light-green);
  margin-inline: auto;
  padding-bottom: 4px;
}

.partners-slider {
  position: relative;
}

.partners-prev,
.partners-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
}

.partners-prev {
  left: -6%;
}

.partners-next {
  right: -6%;
}

.partners-prev img,
.partners-next img {
  width: 2rem;
  height: auto;
}

.partners-splide {
  width: 100%;
}

.partners-splide .splide__track {
  overflow: hidden;
}

.partners-splide .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-splide .splide__slide img {
  width: 100%;
  max-width: 10rem;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  display: block;
}

.partners-wrapper .quote span {
  font-weight: 600;
  color: var(--dark-green);
}

.partners-splide .splide__arrows,
.partners-splide .splide__pagination {
  display: none;
}

@media (max-width: 768px) {
  .partners-slider {
    position: relative;
    padding-inline: 2rem;
  }
	
   .partners-prev {
	  left: -3%;
   }

  .partners-next {
  	 right: -3%;
   }
}

@media (max-width: 600px) {
  .partners-splide .splide__slide img {
    max-width: 8rem;
  }

  .partners-header {
    max-width: min-content;
  }
}

/****************************/
/** 14. Testimonials Section  **/
/***************************/

.testimonials {
  background-color: var(--dark-green);
  color: var(--white);
}

.testimonials-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonials-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* arrows */

.testimonials-header .arrows {
  display: flex;
  gap: 0.75rem;
}

.testimonials-header button {
  width: 3rem;
  height: 2rem;
  border: none;
  background: #1c5a1b;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
}

.testimonials-header .arrows button:hover {
  transform: translateY(-2px);
}

.testimonials-header img {
  width: 1.5rem;
}

/* splide */

.testimonials-splide {
  width: 100%;
}

.testimonials-splide .splide__slide {
  height: auto;
}

.testimonials-splide .card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #1c5a1b;
  padding: 1rem;
  height: 100%;
}

.card .stars {
  max-width: 6.25rem;
}

.card .quote {
  font-size: var(--fs-sm);
  height: 100%;
}

.card .name {
  font-weight: 600;
}

@media (max-width: 700px) {
  .testimonials-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/****************************/
/** 15. Contact Us  **/
/***************************/

.contact-us {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Bottom Left Image */
.contact-us::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-left.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
  z-index: 0;
}

/* Top Right Image */
.contact-us::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%; /* adjust size */
  height: 100%; /* adjust size */
  background-image: url("/wp-content/themes/djosephconstruction/assets/images/grid-background-right.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 0;
}

.contact-us-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-w-text);
  background: transparent;
  position: relative;
  z-index: 1;
}

.contact-us-wrapper .content {
  max-width: 54ch;
}

@media (max-width: 650px) {
  .contact-us-wrapper {
    flex-direction: column;
  }
}

/****************************/
/** 16. Footer  **/
/***************************/
.site-footer-wrapper {
  background-color: var(--charcoal);
}

.site-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  row-gap: 2rem;
  height: 100%;
  padding-block: 3rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-branding .site-logo {
  max-width: 12rem;
}

.affiliated {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--white);
}

.affiliated p {
  font-weight: 500;
}

.affiliated .logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.affiliated .logos img {
  max-width: 10rem;
  object-fit: contain;
}

.affiliated hr {
  height: 3px;
  background-color: var(--light-green);
  margin: 0.5rem 0;
}

.footer-branding .info {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  color: var(--white);
}

.info p {
  font-weight: 500;
}

.info a {
  color: var(--white);
}

.menu-social {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.menu-social #primary-menu .sub-menu {
  display: none;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.footer-socials img {
  aspect-ratio: 1;
  max-width: 2.5rem;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-footer {
    row-gap: 2rem;
  }

  .menu-social {
    flex-direction: column;
  }

  .menu-social #primary-menu {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .footer-credits {
    flex-direction: column;
  }
}

/****************************/
/** 17. Inside Pages  **/
/***************************/

.site-header-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  background: linear-gradient(
  to bottom,
  rgba(0,0,0,1) 0%,
  rgba(0,0,0,0.9) 40%,
  rgba(0,0,0,0) 100%
);
}

.default-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.default-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.default-hero::after {
  content: "";
  position: absolute;
  bottom: -0.5px; /* removing small line */
  left: 0;
  width: 100%;
  height: 4rem;
  z-index: 3;
  background: var(--white); /* low opacity black */
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.default-hero-wrapper {
  height: 100%;
  min-height: 425px;
  max-height: 40rem;
  flex-direction: row;
  display: flex;
  /* justify-content: center; */
  align-items: center;
}

.default-hero-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.default-hero-content p {
  max-width: 50ch;
  width: 100%;
}

.inner-container p {
  color: var(--black);
  padding: 0;
  margin: 0 0 1rem 0;
}

.inner-container {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 3rem;
}

.entry-header {
  display: none;
}

@media (max-width: 768px) {
  .inner-container {
    padding: 2rem;
  }
	
  .default-hero::after {
    content: "";
    position: absolute;
    bottom: -0.5px;
    left: 0;
    width: 100%;
    height: 2rem;
    z-index: 3;
    background: var(--white);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }
	
}

@media (max-width: 500px) {
  .inner-container {
    padding: 2rem;
  }
}

/* Kadence */
.wp-block-kadence-spacer {
	width: fit-content !important;
}
.kt-block-spacer {
	width: 2.5rem;
}

/* Edit Button */
.post-edit-link {
  color: var(--white) !important;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: fit-content;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  margin: 1em;
  text-decoration: none !important;
  background-color: var(--green);
  transition: 0.3s ease-in-out;
  z-index: 2;
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Make it visible when focused (for skip links) */
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* === 404 Error Page === */
.error-page {
  text-align: center;
}

/* === Keyframes === */
/* Fade Up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Live Fixes === */

/* === Testimonials ===  */

/* === Gravity Forms === */
