/* ==========================================================================
   CONTENT PAGES (rebuilt from the Elementor pages, Concept F system)
   Page hero Cover, intro and prose measure, card grids, logo grids, FAQ and
   spec accordions, tables, embed frames, contact band image, news grid.
   ========================================================================== */

/* ---------- page hero: photo Cover under the transparent header ---------- */
.wp-block-cover.htc-page-hero { min-height: clamp(380px, 56vh, 600px); padding: 0 var(--htc-gutter, 24px); align-items: flex-end; }
.htc-page-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1240px); margin-inline: auto; padding-bottom: clamp(40px, 6vw, 72px); }
.htc-page-hero__content { max-width: 880px; }
.htc-page-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; margin: 0 0 16px; color: var(--htc-white); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); max-width: 22ch; }
.htc-page-hero .htc-crumbs { color: rgba(255, 255, 255, 0.78); margin-bottom: 20px; }
.htc-page-hero .htc-crumbs a { color: var(--htc-white); }
.htc-page-hero .is-style-eyebrow { margin-bottom: 14px; color: var(--htc-orange) !important; }
.htc-page-hero .htc-hero__sub { margin-bottom: 8px; }
.htc-page-hero p:not(.is-style-eyebrow):not(.htc-hero__sub):not(.htc-crumbs) { font-size: 1.0625rem; max-width: 62ch; color: rgba(255, 255, 255, 0.92); }
.htc-page-hero .wp-block-buttons { margin-top: 20px; }

/* ---------- intro and prose measure ---------- */
.htc-intro, .htc-prose { max-width: 78ch; }
.htc-intro > * + *, .htc-prose > * + * { margin-top: 1rem; }
.htc-intro .wp-block-buttons, .htc-prose .wp-block-buttons { margin-top: 28px; }
.htc-section h2 { margin-bottom: 0.5em; }
.htc-section .wp-block-column > * + * { margin-top: 1rem; }
.htc-section .wp-block-column > .wp-block-buttons { margin-top: 24px; }
.htc-section .wp-block-column .wp-block-image img { width: 100%; height: auto; }
.htc-section .wp-block-columns + .wp-block-columns { margin-top: clamp(32px, 4vw, 56px); }
.htc-section .wp-block-list { padding-left: 1.2em; }
.htc-section .wp-block-list li + li { margin-top: 0.35em; }

/* ---------- card grids: column count from the builder (2 to 4) ---------- */
.htc-cards.htc-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.htc-cards.htc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.htc-cards.htc-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.htc-section__head + .htc-cards, .htc-section__head + .wp-block-columns { margin-top: 0; }
.htc-card__body h3 a, .htc-card__body h4 a { color: inherit; text-decoration: none; }
.htc-card__body h3 a:hover, .htc-card__body h4 a:hover { text-decoration: underline; text-decoration-color: var(--htc-orange); text-underline-offset: 4px; }
.htc-card__body h4 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.1; margin: 0 0 10px; }
.htc-card__body > * + * { margin-top: 0; }
.htc-card__media img { aspect-ratio: 3 / 2; }

/* ---------- logo grids ---------- */
.htc-logos { display: grid; gap: 16px !important; align-items: center; }
.htc-logos .wp-block-image { margin: 0; background: var(--htc-white); border: 1px solid var(--htc-gray-200); padding: 16px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; }
.htc-logos .wp-block-image img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- FAQ and spec accordions (Details blocks) ---------- */
.htc-faq { border-top: 1px solid var(--htc-gray-300); max-width: 920px; margin-top: 24px; }
.htc-faq .wp-block-details, .wp-block-details.htc-tab { border-bottom: 1px solid var(--htc-gray-300); margin: 0; padding: 0; }
.htc-faq .wp-block-details summary, .wp-block-details.htc-tab summary {
  list-style: none; cursor: pointer; position: relative; padding: 20px 48px 20px 0;
  font-family: var(--htc-font-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; letter-spacing: 0.01em; text-transform: uppercase; color: var(--htc-asphalt);
}
.htc-faq .wp-block-details summary::-webkit-details-marker, .wp-block-details.htc-tab summary::-webkit-details-marker { display: none; }
.htc-faq .wp-block-details summary::after, .wp-block-details.htc-tab summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform var(--htc-dur) var(--htc-ease);
}
.htc-faq .wp-block-details[open] summary::after, .wp-block-details.htc-tab[open] summary::after { transform: rotate(45deg); color: var(--htc-orange); }
.htc-faq .wp-block-details summary:hover, .wp-block-details.htc-tab summary:hover { color: var(--htc-black); }
.htc-faq .wp-block-details > :not(summary), .wp-block-details.htc-tab > :not(summary) { margin: 0 0 20px; max-width: 78ch; color: var(--htc-gray-700); }
.wp-block-details.htc-tab:first-of-type { border-top: 1px solid var(--htc-gray-300); }
.wp-block-details.htc-tab > .wp-block-columns { max-width: none; }

/* ---------- tables ---------- */
.htc-section .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.htc-section .wp-block-table :is(td, th) { border: 0; border-bottom: 1px solid var(--htc-gray-300); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.htc-section .wp-block-table th { font-family: var(--htc-font-text); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- embed frame (htc/embed-frame) ---------- */
.htc-embed-frame { margin: 0; }
.htc-embed-frame iframe { display: block; width: 100%; border: 0; background: var(--htc-gray-100); }

/* ---------- contact band banner image, gallery, news grid ---------- */
.htc-ad-image { margin: 0; }
.htc-ad-image img { width: 100%; height: auto; display: block; }
.htc-section .wp-block-gallery { margin-top: 24px; }
.htc-news-grid { gap: 24px !important; }

/* ---------- in-page newsletter band (same look as the footer band) ---------- */
.htc-section.htc-signup h2 { color: var(--htc-white); }

/* ---------- responsive ---------- */
@media (max-width: 1099.98px) {
  .htc-cards.htc-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .htc-logos { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 781.98px) {
  .htc-cards.htc-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .htc-logos { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .htc-news-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 639.98px) {
  .htc-cards.htc-cards--2, .htc-cards.htc-cards--3, .htc-cards.htc-cards--4 { grid-template-columns: 1fr !important; }
  .htc-logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .wp-block-cover.htc-page-hero { min-height: 420px; }
}

/* editor: accordions open for editing */
.editor-styles-wrapper .htc-faq .wp-block-details > :not(summary) { display: block; }

/* ==========================================================================
   SPECIALS: promotion head, banner, product cards, flyer promos, contact band
   ========================================================================== */
.htc-promo-head { align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.htc-promo-head h2 { margin-bottom: 12px; }
.htc-promo-head .is-style-lead { margin: 0; }
.htc-promo-head__actions { justify-content: flex-end; }
.htc-promo-banner { margin: 0; }
.htc-promo-banner img { display: block; width: 100%; height: auto; border: 1px solid var(--htc-gray-200); transition: box-shadow var(--htc-dur) var(--htc-ease); }
.htc-promo-banner a:hover img { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1); }

/* product cards: the whole part visible on white, price as the headline number */
.htc-card--product .htc-card__media { aspect-ratio: 1 / 1; background: var(--htc-white); padding: 24px; border-bottom: 1px solid var(--htc-gray-200); }
.htc-card--product .htc-card__media img { object-fit: contain; aspect-ratio: auto; }
.htc-card--product:hover .htc-card__media img { transform: scale(1.03); }
.htc-card--product .htc-card__body h3 { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.15; margin-bottom: 8px; }
.htc-card--product .htc-card__body .is-style-meta { font-size: 0.7rem !important; margin: 0 0 12px; flex: 0 0 auto; }
.htc-card--product .htc-price-note { font-size: 0.78rem !important; line-height: 1.4 !important; color: var(--htc-gray-700); margin: 0 0 12px; flex: 0 0 auto; }
.htc-card--product .htc-price { margin: auto 0 0 !important; padding-top: 12px; border-top: 1px solid var(--htc-gray-200); flex: 0 0 auto;
  font-family: var(--htc-font-display); font-weight: 700; font-size: clamp(1.75rem, 2.4vw, 2.25rem) !important; line-height: 1 !important; letter-spacing: 0.01em; color: var(--wp--preset--color--orange-dark) !important; }

/* flyer promotions: two panels with orange rule and check lists */
.htc-promos { gap: 24px !important; align-items: stretch; }
.htc-promos > .wp-block-column { display: flex; }
.htc-promo { flex: 1 1 auto; display: flex; flex-direction: column; background: var(--htc-gray-100); border-top: 3px solid var(--htc-orange); padding: clamp(28px, 3.5vw, 44px); }
.htc-promo h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; margin: 0 0 8px; }
.htc-promo .htc-promo__sub { font-size: 1.0625rem; margin: 0 0 20px; color: var(--htc-asphalt); }
.htc-promo > p { margin: 0 0 12px; }
.htc-promo .wp-block-buttons { margin-top: auto; padding-top: 16px; }
.htc-checks { list-style: none; padding: 0 !important; margin: 0 0 20px; display: grid; gap: 10px; }
.htc-checks li { position: relative; padding-left: 30px; margin: 0 !important; }
.htc-checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background: var(--htc-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

.htc-specials-band h2 { font-size: clamp(2.5rem, 5vw, 4rem) !important; margin: 0 0 8px; color: var(--htc-white); }
.htc-specials-band p:not(.is-style-eyebrow) { letter-spacing: 0.04em; }

@media (max-width: 899.98px) {
  .htc-promo-head.wp-block-columns, .htc-promos.wp-block-columns { flex-wrap: wrap !important; }
  .htc-promo-head .wp-block-column, .htc-promos .wp-block-column { flex-basis: 100% !important; }
  .htc-promo-head__actions { justify-content: flex-start; }
}
@media (max-width: 639.98px) {
  .htc-products.htc-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .htc-card--product .htc-card__media { padding: 12px; }
  .htc-card--product .htc-card__body { padding: 14px; }
}

/* page heroes: darken the photo so white type reads over bright shots (Specials parts store) */
.wp-block-cover.htc-page-hero .wp-block-cover__image-background { filter: brightness(0.62) saturate(0.8) contrast(1.04); }
.htc-page-hero .wp-block-cover__background { opacity: 1; }
.htc-specials-band .wp-block-buttons { flex-wrap: wrap; row-gap: 16px; }
.htc-promo-head__actions { flex-wrap: wrap; }
