:root {
  --red: #e31a4c;
  --red-hover: #c3143f;
  --black: #000;
  --dark: #222;
  --light: #f8f8f8;
}

section {
  padding: 100px 30px;
}

.container {
  max-width: 1576px;
  margin: 0 auto;
  padding: 0;
}

.home-hero {
  position: relative;
  height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f8f8f8;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero__content {
  max-width: 575px;
}

.home-hero__image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2 {
  color: #000;
  font-family: Oswald;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 60px !important;
}

h2 {
  font-size: 50px !important;
}

h1 span,
h2 span {
  color: var(--red);
}

p {
  color: #000;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.primary-cta,
.dark-cta {
  display: inline-flex;
  padding: 12px 25px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-cta {
  background: var(--red);
}

.primary-cta:hover {
  background: var(--red-hover);
}

.dark-cta {
  background: #222;
}

.dark-cta:hover {
  background: #000;
}

.primary-cta:hover,
.dark-cta:hover {
  color: #fff;
}

.home-hero {
  padding: 100px 172px;
}

.home-products,
.steel-calculator,
.home-contact {
  background: #fff;
}

.steel-solutions,
.home-blogs {
  background: #f8f8f8;
}

.section-heading {
  margin-bottom: 70px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: 0.97fr 1fr;
  align-items: center;
}

.section-heading--center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.product-card {
  display: flex;
  width: calc((100% - 48px) / 3);
  height: 450px;
  padding: 30px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  overflow: hidden;
  /* box-shadow: 4px 4px 6px 0 rgba(0, 0, 0, 0.25); */
}

.product-card__img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.product-card:hover .product-card__img-wrapper img {
  transform: scale(1.1);
}

.product-card__text,
.product-card__actions {
  position: relative;
  z-index: 2;
}

.product-card:hover .product-link svg {
  transform: translateX(6px);
}

.product-link svg {
  transition: transform 0.3s ease;
}

.product-quote:hover {
  background: #fff;
  color: #e31a4c;
}

.product-card--wide {
  width: calc(((100% - 48px) / 3) * 2 + 24px);
}

.product-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  align-self: stretch;
}

.product-card h3,
.contact-item h3 {
  color: #fff;
  font-family: Oswald;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card p {
  color: #fff;
}

.product-card__actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.product-link,
.blog-link {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Oswald;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

.product-link svg,
.blog-link svg {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}

.product-quote {
  display: flex;
  padding: 7px 10px;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  border: 1px solid #fff;
  color: #fff;
  font-family: Oswald;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.steel-solutions__grid,
.home-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.steel-solutions__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  right: 30px;
}

.steel-solutions__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 1399px) and (min-width: 1200px) {
  .steel-solutions__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  width: 100%;
  height: 130px;
  min-height: 130px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #292929;
  color: #fff;
  font-family: Oswald;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  gap: 5px;
}

.solution-card strong {
  color: var(--red);
  font-size: 32px;
  line-height: normal;
}

.steel-calculator__banner {
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 90px;
  background-size: cover;
  background-position: center;
}

.steel-calculator__content {
  max-width: 600px;
}

.steel-calculator__content h2,
.steel-calculator__content p {
  color: #fff;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  align-self: stretch;
}

.blog-date {
  color: var(--red);
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.blog-card h3 {
  color: #000;
  font-family: Oswald;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-card p {
  color: #000;
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  color: var(--red) !important;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.contact-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.contact-item h3 {
  color: var(--red);
  margin-bottom: 10px;
}

.contact-item p {
  margin: 0;
}

.home-contact__form {
  padding: 50px 30px;
  border: 1px solid #d1d1d1;
  background: #fff;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.home-contact__form h3 {
  color: #242424;
  font-family: Oswald;
  font-size: 25px;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  margin: 0 0 30px;
}

.home-contact__form p {
  margin: 0 0 24px;
}

.home-contact__form label {
  display: block;
  color: #404040;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 10px;
}

.home-contact__form input,
.home-contact__form textarea {
  width: 100%;
  border: 1px solid #8d8d8d;
  background: #fff;
  color: #404040;
  font-family: "Open Sans";
  font-size: 16px;
  box-shadow: none;
  outline: none;
}

.home-contact__form input {
  height: 40px;
  padding: 6px 10px;
}

.home-contact__form textarea {
  min-height: 190px;
  padding: 10px;
  resize: vertical;
}

.home-contact__form input[type="submit"] {
  width: auto;
  height: auto;
  display: inline-flex;
  padding: 12px 25px;
  background: #e31a4c;
  color: #fff;
  border: 0;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

.home-contact__form input[type="submit"]:hover {
  background: #c3143f;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-id-2201 .wpcf7-form input[type="submit"] {
  transform: none !important;
  transition: none !important;
  box-shadow: none;
}

.blog-card__img-wrapper {
  width: 100%;
  overflow: hidden;
  flex-shrink: 1;
}

.blog-card__img-wrapper img {
  width: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s ease;
  height: 368px;
}

.blog-card:hover .blog-card__img-wrapper img {
  transform: scale(1.1);
}

.blog-link svg {
  transition: transform 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}

.blog-card:hover .blog-link svg {
  transform: translateX(6px);
}

@media (max-width: 1199px) and (min-width: 768px) {
  section {
    padding: 70px 30px;
  }

  h1 {
    font-size: 48px !important;
  }

  h2 {
    font-size: 42px !important;
  }

  .home-hero {
    min-height: 650px;
    padding: 70px 30px;
  }

  .product-card,
  .product-card--wide {
    width: calc((100% - 24px) / 2);
  }

  .steel-solutions__grid,
  .home-contact__grid {
    grid-template-columns: 1fr;
  }

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

  .steel-calculator__banner {
    min-height: 550px;
    padding: 60px;
  }

  .steel-solutions__image img {
    margin-bottom: 20px;
    right: 15px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 50px 20px;
  }

  .container {
    padding: 0;
  }

  h1 {
    font-size: 40px !important;
  }

  h2 {
    font-size: 34px !important;
  }

  .home-hero {
    min-height: auto;
    padding: 50px 20px;
    display: flex;
  }

  .home-hero__image {
    position: static;
    width: 100%;
    height: 350px;
    margin-top: 40px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading--split,
  .steel-solutions__grid,
  .home-contact__grid,
  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    gap: 20px;
  }

  .product-card,
  .product-card--wide {
    width: 100%;
    height: auto;
  }

  .product-card__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .steel-solutions__cards {
    grid-template-columns: 1fr;
  }

  .steel-calculator__banner {
    min-height: 450px;
    padding: 30px;
  }

  .blog-card {
    min-height: auto;
  }

  .blog-card__img-wrapper {
    height: 250px;
  }

  .contact-item {
    align-items: flex-start;
    gap: 20px;
  }

  .home-contact__form {
    padding: 35px 20px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .steel-solutions__image img {
    right: 10px;
  }
}

@media (max-width: 1700px) {
  .home-hero {
    background-image: url("/wp-content/themes/metal-exponents/assets/images/homepage-2026/home-hero.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
  }

  .home-hero__image {
    display: none;
  }
}

.wpcf7-not-valid-tip:not(:first-of-type) {
  display: none;
}

/* Hide the inline image on desktop */
.steel-solutions__content .steel-solutions__image {
  display: none;
}

/* Show it and hide the grid image on smaller screens */
@media (max-width: 1199px) {
  .steel-solutions__grid>.steel-solutions__image {
    display: none;
  }

  .steel-solutions__content .steel-solutions__image {
    display: block;
  }
}

@media (max-width: 767px) {

  .product-card,
  .product-card--wide {
    width: 100%;
    height: auto;
  }

}