/*
Theme Name: MCI
Theme URI: https://marianoconstruction.com
Author: Mariano Construction, Inc.
Description: Custom theme for MCI by Justin Kofskie.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Typekit fonts */
@import url('https://use.typekit.net/qfv2eme.css');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.mci-body {
  font-family: instrument-sans-variable, sans-serif;
  font-weight: 300;
  font-style: normal;
  padding: 0;
  margin: calc(45px + 1.5rem) 0 0 0;
  font-size: 1rem;
}

.block-editor-block-list__layout .block-editor-block-list__block [contenteditable],
.block-editor-block-list__layout .block-editor-block-list__block[contenteditable] {
  color: #000 !important;
}

.button-primary {
  padding: 1rem 2rem;
  border: none;
  background-color: #cb1e1e;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.button-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #cb1e1e;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

h1 {
  font-size: 0;
}

h2,
h3,
h4,
h5 {
  font-family: hanken-grotesk, sans-serif;
}

h2 {
  /* font-weight: 600; */
  font-style: normal;
  font-size: 1.75rem;
  color: #fff;
}

.block-editor-block-list__block h2 {
  color: #000;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #cb1e1e;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #cb1e1e;
}

.page-404 {
  height: calc(100vh - 45px - 1.5rem);
  text-align: center;
  padding: 2rem;
  margin-top: 15%;
}

.page-404 h2 {
  font-size: 2rem;
  color: #cb1e1e;
  margin-bottom: 2rem;
}

#wpadminbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  position: fixed;
  z-index: 1000;
  width: 100%;
  top: 0;
  filter: drop-shadow(0px 3px 8px #00000040);

}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  width: 100%;
  max-width: 1450px;
}

body.customize-support header {
  top: 46px;
}

.nav-logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-logo a {
  color: #fff;
  font-size: 0.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-logo img {
  width: 100%;
  height: calc(21px + 1.5rem);
}

.nav-logo__tagline {
  font-size: 0.785rem;
  color: #8a8a8a;
  margin: 0 0 0 0.5rem;
  white-space: pre-wrap;
  width: auto;
  text-align: center;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 100%;
  width: 100%;
  height: calc(100vh - 100%);
  background-color: #fff;
  transition: left 0.3s ease;
  list-style: none;
  padding-top: 2rem;
  z-index: 3;
}

.nav-menu.active {
  left: 0;
  background-color: #f1f1f1;
}

.nav-menu li {
  margin: 1.5rem 0;
  text-align: center;
}

.nav-link {
  color: #cb1e1e;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #cb1e1e;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero-bg--desktop {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.75s ease;
}

.hero-bg-1 {
  opacity: 1;
}

.hero-bg-2 {
  opacity: 0;
}

.hero.is-alt .hero-bg-1 {
  opacity: 0;
}

.hero.is-alt .hero-bg-2 {
  opacity: 1;
}

.hero {
  height: 83vh;
  max-height: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #1e293b;
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  border-bottom: 3px solid #cb1e1e;
  position: relative;
  top: calc(49px + 1.5 rem);
}

.hero-shader {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.80) 100%);
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1450px;
  height: 100%;
}

.hero-shader--mini {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.80) 100%);
  z-index: 1;
}

.hero--mini {
  height: 55vh;
  max-height: 550px;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  position: relative;
  border-bottom: 4px solid #cb1e1e;
}

.hero-content--mini {
  position: relative;
  z-index: 2;
}

.hero-header {
  margin-bottom: 1rem;
  color: #fff;
}

.hero-text {
  color: #fff;
  margin-bottom: 2rem;
}

.hero-content-logos {
  display: flex;
  gap: 9%;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.hero-content-logo {
  height: 15vw;
  width: auto;
}

.home-about-general {
  padding: 2rem 1.5rem;
}

.home-about-header {
  text-align: center;
}

.home-about-text {
  text-align: center;
}

.home-cards-wrapper {
  background-color: #f1f1f1;
}

.home-about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem 1.5rem 3rem 1.5rem;
  margin: 0 auto;
  max-width: 1450px;
}

.home-about-card__image {
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-left: 3px solid #cb1e1e;
}

.home-about-card__text {
  margin-bottom: 2rem;
}

.home-about-divider {
  height: 1px;
  background-color: #dedede;
  margin: 1rem 0;
}

.services {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.services-list {
  list-style: none;
  margin-top: 1rem;
}

.services-image--s {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  /* display: none; */
}

.services-image--l {
  display: none;

}

.services-list-item {
  margin: 0.5rem 0;
  background-color: #cb1e1e;
}

.services-list-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  width: 100%;
  height: 100%;
  transition: padding-right 0.2s ease;
}

.services-list-item__text {
  font-size: 1rem;
}

.home-services-list .services-list-item__link {
  padding: 0.75rem 1rem 0.75rem 1.5rem;
}

.home-services-list .services-list-item__text {
  font-size: 1.125rem;
}

.home-services-list .services-list-item__icon {
  scale: 60%;
}

.services-list-item__icon {
  scale: 50%;
}

.about-general {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.about-general-details-left ul {
  list-style: disc;
  margin-top: 1.25rem;
}

.about-general-details-left ul li {
  margin-bottom: 0.25rem;
  box-sizing: border-box;
  list-style-position: inside;
  font-weight: 600;
  color: #cb1e1e;
}

.about-general-details-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-general-details-cta__text {
  margin-bottom: 1rem;
  display: none;
}

.about-general-image--s {
  width: 100%;
  height: auto;
  margin: 0.25rem 0 1rem 0;
}

.about-general-image--l {
  display: none;
}

.about-reasons {
  background-color: #f1f1f1;
}

.about-reasons-top {
  background-image: url('assets/about-section-background.png');
  background-size: cover;
  background-position: center;
  padding: 3rem 2rem;
}

.about-reasons-header {
  text-align: center;
  color: #fff;
}

.about-reasons-text {
  text-align: center;
  color: #fff;
}

.about-reasons-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem 2rem;
}

.about-reasons-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  justify-content: center;
  align-items: flex-start;
}

.about-reasons-separator {
  height: 1px;
  background-color: #dbdbdb;
}

.service-list {
  list-style: none;
}

.service-left p {
  color: #fff;
  margin-bottom: 2rem;
}

.service-gallery {
  padding: 1rem;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-gallery-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.service-left {
  z-index: 2;
  position: relative;
  padding: 2rem 1.75rem 0 1.75rem;
}

.service-left h2 {
  margin-bottom: 2rem;
  font-size: 2.25rem;
}

.service-list {
  z-index: 2;
  position: relative;
  padding: 2rem 1.75rem;
}

.services-button {
  display: none;
}

.service-gallery-item:hover .service-gallery-thumbnail {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition:opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-image {
  display: block;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: white;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

.contact {
  padding: 2rem 1.5rem 2.5rem 1.5rem;
}

.contact-info-main {
  margin-bottom: 2rem;
}

.contact-info-header {
  color: #cb1e1e;
  margin-bottom: 1rem;
}

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

.contact-info__details {
  margin: 0.25rem 0 0.5rem 0;
}

.contact-image {
  width: 100%;
  height: auto;
  border-left: 4px solid #cb1e1e;
}

.contact-staff-header {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.staff-members {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.staff-member__name {
  color: #000;
  margin-bottom: 0;
}

.staff-member__role {
  color: #cb1e1e;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

footer {
  background-color: #cb1e1e;
}

.footer-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #cb1e1e;
  padding: 1.5rem 2rem;
}

.footer-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: calc(58% - 1px);
}

.footer-main-info__phone {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.footer-main-info__email {
  text-decoration: none;
  color: #000;
}

.footer-main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  width: calc(42% - 1px);
  padding-left: 2rem;
}

.footer-main-nav-item__link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-main-nav-item__link:hover {
  text-decoration: underline;
}

.footer-main-info__email {
  color: #fff;
}

.footer-main-info__phone {
  color: #fff;
}

.footer-main-info__logo {
  width: 150px;
  height: auto;
}

.footer-main-divider {
  display: block;
  padding-top: 40%;
  width: 2px;
  background-color: #dedede;
  margin: 1rem 0;
}

.footer-location {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #fff;
  justify-content: center;
  align-items: center;
  background-color:#9e1515;
  padding: 1rem;
  text-align: center;
}

.footer-location__header {
  margin-bottom: 0.25rem;
  color: #fff;
}

.footer-copy {
  text-align: center;
  padding: 0.375rem;
  background-color: #f1f1f1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-copy__text {
  color: #000;
  text-align: center;
}


/* Desktop */
@media screen and (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-logo img {
    width: 100%;
    height: calc(21px + 2rem);
    padding-left: 1.25rem;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    padding-top: 0;
  }

  body.customize-support header {
    top: 32px;
  }

  .nav-menu li {
    margin: 0 1rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-logo__tagline {
    font-size: 0.875rem;
    line-height: 115%;
    color: #a1a1a1;
    margin: 0 0 0 0.75rem;
    white-space: pre-wrap;
    width: auto;
    text-align: left;
    /* font-weight: 600; */
  }

  h2 {
    font-size: 2.75rem;
  }

  h3 {
    font-size: 2rem;
  }

  .hero {
    align-items: center;
    padding: 2rem;
  }

  .hero-bg--desktop {
    display: block;
  }

  .hero-bg--mobile {
    display: none !important;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem 2rem 3rem 2rem;
  }

  .hero-content--mini {
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem;
  }

  .hero-content-logos {
    flex-direction: column;
    gap: 5vh;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }

  .hero-header {
    font-size: 3rem;
  }

  .hero-content-logo {
    height: 95px;
    width: auto;
  }

  .hero-text {
    max-width: 575px;
    margin-bottom: 3rem;
  }

  .home-about-general {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 2.5rem 2rem;
  }

  .home-about-text {
    max-width: 575px;
    text-align: center;
  }

  .home-about-cards {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 2rem;
    gap: 0;
  }

  .home-about-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .home-about-card .button-secondary {
    margin-top: auto;
  }

  .home-about-divider {
    height: unset;
    width: 2px;
    background-color: #dedede;
    padding: 1rem 0;
    background-clip: content-box;
  }

  .home-about-card__image {
    width: 100%;
    height: 225px;
  }

  .home-about-card__text {
    margin-bottom: 1rem;
  }

  .services {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10%;
    padding: 4rem;
  }

  .services-list {
    margin-top: 2rem;
  }

  .services-list-item__link:hover {
    padding-right: 0;
  }

  .services-right {
    width: 50%;
    max-width: 550px;
  }

  .services-image--s {
    display: none;
  }

  .services-image--l {
    display: block;
    width: 42%;
    max-width: 550px;
    margin-top: 3rem;
  }

  .about-general {
    max-width: 1450px;
    margin: 0 auto;
    padding: 4rem 2rem;
  }

  .about-reasons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem 6rem 2rem;
  }

  .about-reasons-top {
    background-image: none;
    padding: 0;
  }

  .about-reasons-header {
    color: #cb1e1e;
  }

  .about-reasons-text {
    max-width: 575px;
    color: #000;
  }

  .about-reasons-cards {
    margin-top: 3rem;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 1450px;
    padding: 0 2rem;
  }

  .about-reasons-card {
    padding-left: 1rem;
    gap: 0.5rem;
  }

  .about-reasons-separator {
    width: 2px;
    background-color: #cb1e1e;
    height: unset;
    padding: 1rem 0;
    background-clip: content-box;
  }

  .about-reasons-card-header {
    color: #000;
  }

  .about-reasons-card-text {
    max-width: 375px;
  }

  .about-general-image--s {
    display: none;
  }

  .about-general-image--l {
    display: block;
    width: 55%;
    max-width: 750px;
  }

  .about-general-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .about-general-details-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
  }

  .about-general-text {
    max-width: 575px;
  }

  .about-general-image--mobile {
    display: none;
  }

  .about-general-details-cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
  }

  .about-general-details-cta__text {
    display: block;
  }

  .wp-block-list {
    padding-left: 1rem;
    font-size: 1.125rem;
  }

  .services {
    max-width: 1450px;
    margin: 0 auto;
  }

  .service {
    padding: 2rem;
    background-size: cover;
    background-position: center;
    height: 75vh;
    position: relative;
    border-bottom: 4px solid #cb1e1e;
  }

  .service-left h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .service.service--full {
    height: calc(100vh - 45px - 1.5rem);
    border-bottom: none;
  }

  .service-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem;
  }

  .service-left {
    width: 66%;
    z-index: 2;
    padding: 2rem;
  }

  .service-left p {
    max-width: 575px;
    margin-top: 1rem;
  }

  .service-list {
    width: 33%;
    z-index: 2;
  }

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

  .contact {
    padding: 4rem 2rem 2rem 2rem;
    max-width: 1450px;
    margin: 0 auto;
    height: calc(100vh - 45px - 1.5rem);
  }

  .contact-general {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-info-main {
    margin-bottom: 2rem;
  }

  .contact-info-header {
    color: #cb1e1e;
    margin-bottom: 1rem;
  }

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

  .contact-info__details {
    margin: 0.25rem 0 0.5rem 0;
  }

  .contact-image {
    width: 50%;
    max-width: 750px;
    height: auto;
    border-left: 4px solid #cb1e1e;
  }

  .contact-staff-header {
    margin-bottom: 0.5rem;
    margin-top: 4rem;
  }

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

  .staff-member__name {
    color: #000;
    margin-bottom: 0;
  }

  .staff-member__role {
    color: #cb1e1e;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  footer {
    background-color: #cb1e1e;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-primary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1450px;
  }

  .footer-main {
    width: 100%;
    justify-content: space-between;
    padding: 1.5rem 3rem;
  }

  .footer-main-nav {
    width: unset;
  }

  .footer-main-divider {
    display: none;
  }

  .footer-location {
    background-color: #cb1e1e;
    color: #000;
    align-items: flex-start;
    padding: 1rem 2.5rem;
  }

  .footer-location__header {
    color: #fff;
  }

  .footer-location p {
    text-align: left;
    color: #fff;
  }

  .footer-copy {
    width: 100%;
    background-color:#9e1515;
  }

  .footer-copy p {
    color: #fff;
  }
}