/**
 * Hot House — Heat Layer (Phase 4)
 * Ember accents + Pavel / trust / service blocks. Toggle via functions.php.
 */

/* ── Tokens (also mirrored in design-system.css) ── */
body.hh-theme {
  --hh-ember: #d8662a;
  --hh-ember-deep: #9e3e1f;
  --hh-fire-glow: rgba(216, 102, 42, 0.16);
}

/* ── Field tip ── */
body.hh-theme .hh-field-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-inline-start: 3px solid var(--hh-ember);
  background: linear-gradient(90deg, var(--hh-fire-glow), transparent 72%);
  border-radius: var(--hh-radius-md);
  font-size: var(--hh-font-size-sm);
  line-height: 1.65;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-field-tip__icon {
  flex-shrink: 0;
  color: var(--hh-ember);
  margin-top: 0.1rem;
}

body.hh-theme .hh-field-tip__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hh-ember-deep);
  margin-bottom: 0.2rem;
}

/* ── Pavel explain ── */
body.hh-theme .hh-pavel-explain {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: linear-gradient(145deg, #fff 0%, #f8f9fb 55%, rgba(216, 102, 42, 0.04) 100%);
  box-shadow: var(--hh-shadow-sm);
  overflow: hidden;
}

body.hh-theme .hh-pavel-explain::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--hh-fire-glow), transparent 70%);
  pointer-events: none;
}

body.hh-theme .hh-pavel-explain__grid {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  body.hh-theme .hh-pavel-explain__grid {
    grid-template-columns: 1fr min(200px, 28%);
  }
}

body.hh-theme .hh-pavel-explain__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-ember-deep);
  border: 1px solid rgba(216, 102, 42, 0.35);
  border-radius: 2px;
}

body.hh-theme .hh-pavel-explain__title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--hh-navy, #061d33);
  line-height: 1.25;
}

body.hh-theme .hh-pavel-explain__body p {
  margin: 0 0 0.65rem;
  line-height: 1.75;
  color: var(--hh-soft-gray, #6b6f76);
}

body.hh-theme .hh-pavel-explain__body p:last-child {
  margin-bottom: 0;
}

body.hh-theme .hh-pavel-explain__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: linear-gradient(168deg, #3d3228 0%, #1a1512 42%, #0a1219 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  border: 1px solid rgba(196, 165, 116, 0.25);
}

body.hh-theme .hh-pavel-explain__portrait-icon {
  color: var(--hh-ember-soft, #e8956a);
  opacity: 0.95;
}

body.hh-theme .hh-pavel-explain__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.hh-theme .hh-btn--ember {
  background: linear-gradient(135deg, var(--hh-ember) 0%, var(--hh-ember-deep) 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 24px var(--hh-fire-glow);
}

body.hh-theme .hh-btn--ember:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* ── Trust cards (fuel / generic) ── */
body.hh-theme .hh-heat-trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.hh-theme .hh-heat-trust-card {
  padding: 1.15rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: #fff;
  box-shadow: 0 4px 20px rgba(6, 29, 51, 0.04);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

body.hh-theme .hh-heat-trust-card:hover {
  border-color: rgba(216, 102, 42, 0.35);
  box-shadow: 0 8px 28px var(--hh-fire-glow);
}

body.hh-theme .hh-heat-trust-card__icon {
  color: var(--hh-navy, #061d33);
  margin-bottom: 0.55rem;
}

body.hh-theme .hh-heat-trust-card__icon .hh-icon-ember-dot {
  fill: var(--hh-ember);
}

body.hh-theme .hh-heat-trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-heat-trust-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--hh-soft-gray, #6b6f76);
}

/* ── Service problem finder ── */
body.hh-theme .hh-service-finder__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

body.hh-theme .hh-service-finder__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 0.9rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.hh-theme .hh-service-finder__card:hover {
  border-color: rgba(216, 102, 42, 0.4);
  box-shadow: 0 6px 22px var(--hh-fire-glow);
  transform: translateY(-2px);
}

body.hh-theme .hh-service-finder__card-icon {
  color: var(--hh-ember);
}

body.hh-theme .hh-service-finder__card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-service-finder__card-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--hh-soft-gray, #6b6f76);
}

/* ── Pavel FAQ (branded title) ── */
body.hh-theme .hh-pavel-faq .hh-h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--hh-ember), transparent);
}

/* ── Video grid ── */
/* ── Featured guides (about — replaces self-hosted reels) ── */
body.hh-theme .hh-featured-guides__lead {
  max-width: 42rem;
  margin-block-end: 1.25rem;
}

body.hh-theme .hh-featured-guides__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  body.hh-theme .hh-featured-guides__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.hh-theme .hh-featured-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  border: 1px solid rgba(6, 29, 51, 0.08);
  border-block-end: 3px solid transparent;
  background: linear-gradient(145deg, #fff 0%, #f8f9fb 100%);
  box-shadow: 0 4px 18px rgba(6, 29, 51, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease,
    border-block-end-color 0.2s ease;
}

body.hh-theme .hh-featured-guide-card:hover {
  border-color: rgba(216, 102, 42, 0.35);
  border-block-end-color: var(--hh-ember, #d8662a);
  box-shadow: 0 8px 26px var(--hh-fire-glow);
  transform: translateY(-2px);
}

body.hh-theme .hh-featured-guide-card__label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-featured-guide-card__desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--hh-soft-gray, #6b6f76);
}

body.hh-theme .hh-featured-guide-card__go {
  margin-block-start: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hh-ember, #d8662a);
}

body.hh-theme .hh-pavel-videos__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.hh-theme .hh-pavel-video-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: #fff;
  box-shadow: var(--hh-shadow-sm);
}

body.hh-theme .hh-pavel-video-card__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  background: linear-gradient(180deg, #0b2a45, #040f1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.hh-theme .hh-pavel-video-card__thumb--has-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.hh-theme .hh-pavel-video-card__play {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hh-ember-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

body.hh-theme .hh-pavel-video-card__body {
  padding: 0.9rem 1rem 1rem;
}

body.hh-theme .hh-pavel-video-card__title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-pavel-video-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--hh-soft-gray, #6b6f76);
}

/* ── Product pre-purchase checklist ── */
body.hh-theme .hh-pre-purchase {
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(6, 29, 51, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

body.hh-theme .hh-pre-purchase__title {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--hh-navy, #061d33);
}

body.hh-theme .hh-pre-purchase__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--hh-soft-gray, #6b6f76);
}

body.hh-theme .hh-pre-purchase ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

body.hh-theme .hh-pre-purchase li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.hh-theme .hh-pre-purchase li .hh-icon-svg {
  flex-shrink: 0;
  color: var(--hh-ember);
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
}

body.hh-theme .hh-heat-section {
  padding-block: var(--hh-space-2xl);
}

body.hh-theme .hh-heat-section--alt {
  background: var(--hh-bg-alt, #ece8e1);
}

body.hh-theme .hh-heat-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(216, 102, 42, 0.45), transparent);
}

/* ── Catalog-first hub (heating / service) ── */
/* Full-bleed hero (break out of Elementor boxed shortcode widget) */
body.hh-theme.hh-heating-service-hub .hh-scope.hh-landing > .hh-landing-hero {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  box-sizing: border-box;
}

body.hh-theme.hh-catalog-showcase.hh-heating-service-hub .hh-scope.hh-landing > .hh-landing-hero {
  background: linear-gradient(165deg, var(--hh-sand, #f1f0ec) 0%, var(--hh-white, #fff) 55%, var(--hh-stone, #e8e6e1) 100%);
  border-bottom: 1px solid var(--hh-border, #e3e0d8);
}

body.hh-theme .hh-landing--catalog-first .hh-heat-section--compact {
  padding-block: var(--hh-space-lg);
}

body.hh-theme .hh-landing--catalog-first .hh-h3.hh-heat-section__title,
body.hh-theme .hh-landing--catalog-first .hh-h3.hh-product-preview__title,
body.hh-theme .hh-landing--catalog-first .hh-h3.hh-rich-section__title {
  font-family: var(--hh-font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hh-navy);
  border-bottom: none;
  display: block;
  padding-bottom: 0;
  margin-bottom: var(--hh-space-md);
}

body.hh-theme .hh-landing--catalog-first .hh-product-preview--primary {
  padding-block: var(--hh-space-xl) var(--hh-space-2xl);
  background: var(--hh-white);
  border-bottom: 1px solid var(--hh-border);
}

body.hh-theme .hh-landing--catalog-first .hh-product-preview--primary .hh-eyebrow {
  color: var(--hh-ember-deep);
  margin-bottom: 0.35rem;
}

body.hh-theme .hh-landing--catalog-first .hh-rich-section--compact {
  padding-block: var(--hh-space-lg);
}

body.hh-theme .hh-landing--catalog-first .hh-pavel-explain--compact {
  padding: 1.1rem 1rem;
}

body.hh-theme .hh-landing--catalog-first .hh-heat-trust-card h3 {
  font-size: 0.95rem;
}

/* Product cards — undo .hh-scope h3 giant typography on loop cards */
body.hh-theme.hh-catalog-showcase .hh-scope .hh-product-card__title,
body.hh-theme.hh-heating-service-hub .hh-scope .hh-product-card__title {
  font-family: var(--hh-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
}

body.hh-theme.hh-catalog-showcase .hh-scope .hh-product-card__title a,
body.hh-theme.hh-heating-service-hub .hh-scope .hh-product-card__title a {
  color: var(--hh-ink, #101318);
}

body.hh-theme.hh-catalog-showcase .hh-scope .hh-product-card__title a:hover,
body.hh-theme.hh-heating-service-hub .hh-scope .hh-product-card__title a:hover {
  color: var(--hh-navy);
}

body.hh-theme.hh-heating-service-hub .hh-product-card__body {
  gap: 0.4rem;
}

body.hh-theme.hh-catalog-showcase .hh-product-card__price,
body.hh-theme.hh-heating-service-hub .hh-product-card__price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hh-navy);
  margin: 0;
}

body.hh-theme.hh-catalog-showcase .hh-product-card__price--amount,
body.hh-theme.hh-heating-service-hub .hh-product-card__price--amount {
  font-size: 1rem;
  font-weight: 700;
}

body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn {
  min-height: 2.5rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
}

body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--navy,
body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--primary {
  background: var(--hh-navy) !important;
  border-color: var(--hh-navy) !important;
  color: #fff !important;
}

body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--navy::after,
body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--primary::after {
  display: none !important;
}

body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--navy:hover,
body.hh-theme.hh-heating-service-hub .hh-product-card__actions .hh-btn--primary:hover {
  background: var(--hh-navy-hover, #162b45) !important;
  color: #fff !important;
}

body.hh-theme.hh-heating-service-hub .hh-card-grid--products-preview {
  gap: var(--hh-space-md);
}

/* Less monotony — alternating SEO strips below trust blocks */
body.hh-theme .hh-landing--catalog-first .hh-rich-section--compact:nth-child(even) {
  background: var(--hh-sand, #f1f0ec);
}

body.hh-theme .hh-landing--catalog-first .hh-rich-section--compact {
  border-top: 1px solid var(--hh-border, #e3e0d8);
}

body.hh-theme .hh-landing--catalog-first .hh-rich-section--compact .hh-rich-prose p {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 42rem;
}
