/* ==========================================================================
   Home Sweet Home Holdings, Inc. (homesweethome.eu.com)
   Preset C: Warm-Terracotta Residential Weatherization Studio
   Prefix: hsh-
   ========================================================================== */

:root {
  --hsh-cream-bg: #FFFBEB;
  --hsh-paper-card: #FFFFFF;
  --hsh-amber-wash: #FEF3C7;
  --hsh-amber-rule: #FDE68A;
  --hsh-terracotta: #C2410C;
  --hsh-terracotta-bright: #EA580C;
  --hsh-terracotta-dark: #9A3412;
  --hsh-graphite: #1C1917;
  --hsh-stone-muted: #57534E;
  --hsh-stone-border: #E7E5E4;
  --hsh-serif-head: "Merriweather", Georgia, serif;
  --hsh-sans-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.hsh-page-canvas {
  margin: 0;
  padding: 0;
  background-color: var(--hsh-cream-bg);
  color: var(--hsh-graphite);
  font-family: var(--hsh-sans-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.hsh-wrapper {
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Top Advertorial Disclosure Ribbon */
.hsh-top-disclosure {
  background-color: var(--hsh-graphite);
  color: #FEF3C7;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--hsh-terracotta-bright);
}

.hsh-top-tag {
  display: inline-block;
  background-color: var(--hsh-terracotta);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 8px;
}

/* Header & Visible Language Switcher */
.hsh-header {
  background-color: var(--hsh-paper-card);
  border-bottom: 1px solid var(--hsh-amber-rule);
  box-shadow: 0 2px 10px rgba(194, 65, 12, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.hsh-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.hsh-identity-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hsh-graphite);
}

.hsh-identity-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hsh-terracotta) 0%, var(--hsh-terracotta-bright) 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--hsh-serif-head);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.hsh-identity-copy {
  display: flex;
  flex-direction: column;
}

.hsh-identity-name {
  font-family: var(--hsh-serif-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--hsh-graphite);
  line-height: 1.2;
}

.hsh-identity-meta {
  font-size: 12px;
  color: var(--hsh-stone-muted);
  font-weight: 500;
}

.hsh-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hsh-quick-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hsh-quick-nav a,
.hsh-modal-trigger-link {
  color: var(--hsh-stone-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-family: var(--hsh-sans-body);
}

.hsh-quick-nav a:hover,
.hsh-modal-trigger-link:hover {
  color: var(--hsh-terracotta);
}

/* Language Switcher */
.hsh-lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--hsh-cream-bg);
  border: 1.5px solid var(--hsh-amber-rule);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.hsh-lang-pill {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 6px;
  color: var(--hsh-stone-muted);
  transition: all 0.15s ease;
}

.hsh-lang-pill:hover {
  color: var(--hsh-terracotta);
}

.hsh-lang-pill.hsh-lang-active {
  background-color: var(--hsh-terracotta);
  color: #FFFFFF;
}

/* 2-Column Split Layout */
.hsh-split-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 38px;
  padding: 42px 0 48px 0;
  align-items: start;
}

.hsh-editorial-pane {
  padding-top: 6px;
}

.hsh-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--hsh-amber-wash);
  color: var(--hsh-terracotta-dark);
  border: 1px solid var(--hsh-amber-rule);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hsh-main-heading {
  font-family: var(--hsh-serif-head);
  font-weight: 900;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.18;
  color: var(--hsh-graphite);
  margin: 0 0 18px 0;
}

.hsh-intro-deck {
  font-size: 17px;
  color: var(--hsh-stone-muted);
  margin: 0 0 24px 0;
}

/* Standards Reference Card on Left Column */
.hsh-thermal-ledger {
  background-color: var(--hsh-paper-card);
  border: 1px solid var(--hsh-amber-rule);
  border-left: 5px solid var(--hsh-terracotta);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.04);
}

.hsh-ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hsh-stone-border);
}

.hsh-ledger-title {
  font-family: var(--hsh-serif-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--hsh-graphite);
}

.hsh-ledger-badge {
  background-color: var(--hsh-amber-wash);
  color: var(--hsh-terracotta);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
}

.hsh-metric-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hsh-metric-item {
  display: grid;
  grid-template-columns: 155px 1fr auto;
  align-items: center;
  gap: 12px;
  background-color: var(--hsh-cream-bg);
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
}

.hsh-metric-name {
  font-weight: 700;
  color: var(--hsh-graphite);
}

.hsh-meter-rail {
  height: 8px;
  background-color: #E7E5E4;
  border-radius: 99px;
  overflow: hidden;
}

.hsh-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hsh-terracotta) 0%, var(--hsh-terracotta-bright) 100%);
  border-radius: 99px;
}

.hsh-metric-val {
  font-weight: 700;
  color: var(--hsh-terracotta-dark);
  font-variant-numeric: tabular-nums;
}

/* Interactive Quiz Module on Right Column */
.hsh-quiz-widget {
  background-color: var(--hsh-paper-card);
  border: 2px solid var(--hsh-terracotta);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.09);
}

.hsh-zero-pii-notice {
  background-color: var(--hsh-amber-wash);
  border: 1px solid var(--hsh-amber-rule);
  color: var(--hsh-terracotta-dark);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.hsh-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--hsh-terracotta-bright);
  flex-shrink: 0;
}

.hsh-quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hsh-stone-muted);
  margin-bottom: 8px;
}

.hsh-step-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 22px;
}

.hsh-bar-segment {
  height: 6px;
  border-radius: 99px;
  background-color: var(--hsh-stone-border);
  transition: background-color 0.2s ease;
}

.hsh-bar-segment.hsh-seg-active {
  background-color: var(--hsh-terracotta);
}

.hsh-bar-segment.hsh-seg-done {
  background-color: var(--hsh-terracotta-bright);
}

.hsh-step-screen {
  display: none;
}

.hsh-step-screen.hsh-screen-visible {
  display: block;
}

.hsh-question-heading {
  font-family: var(--hsh-serif-head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hsh-graphite);
  margin: 0 0 8px 0;
}

.hsh-question-note {
  font-size: 13.5px;
  color: var(--hsh-stone-muted);
  margin: 0 0 18px 0;
}

.hsh-tiles-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hsh-step-tile {
  appearance: none;
  width: 100%;
  text-align: left;
  background-color: var(--hsh-cream-bg);
  border: 1.5px solid #D6D3D1;
  border-radius: 11px;
  padding: 15px 17px;
  font-family: var(--hsh-sans-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--hsh-graphite);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.hsh-step-tile:hover {
  background-color: var(--hsh-amber-wash);
  border-color: var(--hsh-terracotta);
  transform: translateY(-1px);
}

.hsh-tile-caption {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--hsh-stone-muted);
  margin-top: 3px;
}

.hsh-tile-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--hsh-paper-card);
  border: 1px solid var(--hsh-amber-rule);
  color: var(--hsh-terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hsh-step-footer-nav {
  margin-top: 14px;
}

.hsh-prev-trigger {
  appearance: none;
  background: none;
  border: none;
  color: var(--hsh-stone-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.hsh-prev-trigger:hover {
  color: var(--hsh-graphite);
}

/* Result Screen */
.hsh-outcome-box {
  display: none;
}

.hsh-outcome-box.hsh-screen-visible {
  display: block;
}

.hsh-outcome-tag {
  display: inline-block;
  background-color: var(--hsh-amber-wash);
  color: var(--hsh-terracotta-dark);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.hsh-outcome-heading {
  font-family: var(--hsh-serif-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--hsh-graphite);
  margin: 0 0 10px 0;
}

.hsh-outcome-copy {
  font-size: 14.5px;
  color: var(--hsh-stone-muted);
  margin: 0 0 16px 0;
}

.hsh-recap-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.hsh-recap-cell {
  background-color: var(--hsh-cream-bg);
  border: 1px solid var(--hsh-amber-rule);
  border-radius: 9px;
  padding: 11px 13px;
}

.hsh-recap-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hsh-stone-muted);
  margin-bottom: 3px;
}

.hsh-recap-val {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--hsh-terracotta);
}

.hsh-official-out-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--hsh-terracotta) 0%, var(--hsh-terracotta-bright) 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  padding: 15px 18px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.22);
  transition: filter 0.15s ease;
}

.hsh-official-out-cta:hover {
  filter: brightness(1.06);
}

.hsh-restart-trigger {
  margin-top: 11px;
  width: 100%;
  appearance: none;
  background: transparent;
  border: 1px solid #D6D3D1;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--hsh-sans-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--hsh-stone-muted);
  cursor: pointer;
}

.hsh-restart-trigger:hover {
  color: var(--hsh-graphite);
  border-color: var(--hsh-graphite);
}

/* Editorial Longform Article Under Quiz (~350-400 words) */
.hsh-article-band {
  background-color: var(--hsh-paper-card);
  border-top: 1px solid var(--hsh-amber-rule);
  border-bottom: 1px solid var(--hsh-amber-rule);
  padding: 46px 0;
}

.hsh-article-frame {
  max-width: 940px;
  margin: 0 auto;
}

.hsh-article-h2 {
  font-family: var(--hsh-serif-head);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--hsh-graphite);
  margin: 0 0 16px 0;
}

.hsh-article-prose p {
  font-size: 16px;
  color: #292524;
  margin: 0 0 16px 0;
}

.hsh-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.hsh-pillar-box {
  background-color: var(--hsh-cream-bg);
  border: 1px solid var(--hsh-amber-rule);
  border-radius: 12px;
  padding: 18px 20px;
}

.hsh-pillar-box h3 {
  font-family: var(--hsh-serif-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--hsh-terracotta-dark);
  margin: 0 0 8px 0;
}

.hsh-pillar-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--hsh-stone-muted);
}

/* Footer */
.hsh-footer {
  background-color: var(--hsh-graphite);
  color: #E7E5E4;
  padding: 44px 0 34px 0;
  font-size: 14px;
}

.hsh-footer-columns {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hsh-footer-heading {
  font-family: var(--hsh-serif-head);
  font-size: 16px;
  font-weight: 700;
  color: #FEF3C7;
  margin: 0 0 12px 0;
}

.hsh-footer p,
.hsh-footer address {
  font-style: normal;
  margin: 0 0 8px 0;
  color: #D6D3D1;
  line-height: 1.55;
}

.hsh-footer a,
.hsh-footer-modal-btn {
  color: #FDE68A;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.hsh-footer a:hover,
.hsh-footer-modal-btn:hover {
  color: #FFFFFF;
}

.hsh-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsh-footer-legal-note {
  padding-top: 20px;
  font-size: 12.5px;
  color: #A8A29E;
  line-height: 1.6;
}

/* Legal Modal Dialogs */
.hsh-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(28, 25, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.hsh-modal-backdrop.hsh-modal-open {
  display: flex;
}

.hsh-modal-window {
  background-color: var(--hsh-paper-card);
  border: 2px solid var(--hsh-terracotta);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px 28px;
  color: var(--hsh-graphite);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.hsh-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hsh-stone-border);
  margin-bottom: 16px;
}

.hsh-modal-title {
  font-family: var(--hsh-serif-head);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.hsh-modal-close {
  appearance: none;
  background-color: var(--hsh-amber-wash);
  border: 1px solid var(--hsh-amber-rule);
  color: var(--hsh-terracotta-dark);
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.hsh-modal-body h3 {
  font-family: var(--hsh-serif-head);
  font-size: 16px;
  margin: 16px 0 6px 0;
}

.hsh-modal-body p,
.hsh-modal-body li {
  font-size: 14px;
  color: var(--hsh-stone-muted);
  line-height: 1.6;
}

@media (max-width: 920px) {
  .hsh-split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hsh-pillars-row,
  .hsh-footer-columns {
    grid-template-columns: 1fr;
  }

  .hsh-metric-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
