/*
Theme Name: ServiceManualPDF Vendd Child
Theme URI: https://servicemanualpdf.com/
Description: A lightweight Vendd child theme with a Gutenberg homepage pattern for ServiceManualPDF.com.
Author: ServiceManualPDF.com
Template: vendd
Version: 1.0.0
Text Domain: smp-vendd-child
*/

:root {
  --smp-navy: #183b5b;
  --smp-navy-dark: #112d47;
  --smp-orange: #d99535;
  --smp-text: #293744;
  --smp-muted: #657482;
  --smp-line: #e4e9ee;
  --smp-soft: #f4f6f8;
}

/* Keep Vendd's native layout and EDD templates; style only homepage components. */
body.home .full-width-page-section > .entry-header {
  display: none;
}

body.home #content {
  background: #fff;
}

body.home .full-width-page-section {
  margin: 0;
}

body.home .full-width-page-section > .entry-content {
  margin: 0;
}

.smp-home-banner {
  margin: 0 auto 34px;
  width: 100%;
}

.smp-home-banner .wp-block-image,
.smp-home-banner figure {
  margin: 0;
}

.smp-home-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.smp-home-intro,
.smp-home-products,
.smp-home-trust {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.smp-home-intro {
  padding-top: 12px;
  padding-bottom: 30px;
  text-align: center;
}

.smp-home-intro h1,
.smp-home-intro h2,
.smp-home-products h2 {
  color: var(--smp-navy);
}

.smp-home-intro h1 {
  margin: 0 auto 14px;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  border: 0;
}

.smp-home-intro p {
  max-width: 850px;
  margin: 0 auto 12px;
  color: var(--smp-muted);
  font-size: 1.05rem;
}

.smp-home-products {
  padding-top: 22px;
  padding-bottom: 38px;
}

.smp-home-products > h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* Vendd styles the EDD shortcode grid. These additions refine the cards only. */
.smp-home-products .edd_downloads_list {
  background: transparent;
  border-radius: 0;
}

.smp-home-products .edd_download {
  box-sizing: border-box;
}

.smp-home-products .edd_download_inner {
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--smp-line);
  border-radius: 5px;
  box-shadow: 0 2px 9px rgba(24, 59, 91, .045);
  transition: box-shadow .18s ease, transform .18s ease;
}

.smp-home-products .edd_download_inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(24, 59, 91, .10);
}

.smp-home-products .edd_download_title a {
  color: var(--smp-navy);
  text-decoration: none;
}

.smp-home-products .edd_price,
.smp-home-products .edd_price .edd_price_amount {
  color: var(--smp-text);
  font-weight: 700;
}

.smp-home-products .edd-add-to-cart,
.smp-home-products .edd-submit,
.smp-home-products .edd_go_to_checkout {
  background: var(--smp-orange);
  border-color: var(--smp-orange);
  color: #fff;
  border-radius: 3px;
}

.smp-home-trust {
  max-width: none;
  padding-top: 34px;
  padding-bottom: 34px;
  background: var(--smp-soft);
}

.smp-home-trust-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.smp-home-trust h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  color: var(--smp-navy);
  font-size: 1.05rem;
}

.smp-home-trust p {
  margin-bottom: 0;
  color: var(--smp-muted);
  font-size: .92rem;
}

.smp-home-trust .wp-block-column {
  text-align: center;
}

@media (max-width: 782px) {
  .smp-home-banner {
    margin-bottom: 24px;
  }

  .smp-home-banner img {
    max-height: none;
  }

  .smp-home-intro,
  .smp-home-products {
    padding-left: 16px;
    padding-right: 16px;
  }

  .smp-home-intro {
    padding-bottom: 22px;
  }

  .smp-home-products {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .smp-home-trust {
    padding: 26px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-home-products .edd_download_inner {
    transition: none;
  }
  .smp-home-products .edd_download_inner:hover {
    transform: none;
  }
}
