/* Hearts to Homes — Calculator resource pages
   Mirrors Resource Center tokens, type, buttons, and chrome. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #fdf8f5;
  color: #2A2522;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:root {
  --rose: #C4788A;
  --rose-light: #dba0af;
  --rose-dark: #9e5a6a;
  --rose-pale: rgba(196,120,138,0.12);
  --cream: #F5ECE0;
  --ivory: #fffcfa;
  --blush: #f5e0e6;
  --blush-soft: #e8c0cb;
  --gold-light: #dfc070;
  --panel: #ffffff;
  --border-rose: rgba(196,120,138,0.22);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light));
  z-index: 9999; transition: width 0.1s linear;
}

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 8px;
  background: var(--h2h-primary, #b5687c); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 14px 28px; text-decoration: none;
  border: 1.5px solid var(--h2h-primary, #b5687c);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-pill:hover {
  background: var(--h2h-primary-hover, #9e5a6a);
  border-color: var(--h2h-primary-hover, #9e5a6a);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(68, 38, 48, 0.06);
}
.btn-pill.outline { background: transparent; color: var(--rose-dark); border-color: rgba(158,90,106,0.4); }
.btn-pill.outline:hover { background: var(--h2h-primary, #b5687c); color: #fff; border-color: var(--h2h-primary, #b5687c); }

.calc-hero {
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,252,248,1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(196,120,138,0.55) 0%, transparent 52%),
    radial-gradient(ellipse at 55% 40%, rgba(201,168,76,0.16) 0%, transparent 45%),
    linear-gradient(150deg, #fdf6f8 0%, #f4dde4 30%, #e8bfc9 58%, #c4788a 100%);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.2s ease;
}
.calc-hero-inner {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  padding: 72px 32px 56px;
}
.calc-hero .page-breadcrumb { margin-bottom: 18px; }
.calc-kicker {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 5px;
  text-transform: uppercase; color: var(--rose); margin-bottom: 18px;
}
.calc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500; line-height: 1.08; color: #2A2522; margin-bottom: 20px;
}
.calc-title em { font-style: italic; color: var(--rose-dark); }
.calc-divider {
  height: 1px; width: 80px; margin: 0 0 22px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light));
}
.calc-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(18px, 2.1vw, 24px); color: #6b3a4a; line-height: 1.6;
  max-width: 720px;
}

.calc-widget-section {
  padding: 48px 0 88px;
  background: #fdf8f5;
}
.calc-widget-frame {
  background: var(--panel);
  border: 1px solid var(--border-rose);
  box-shadow: 0 12px 40px rgba(122,42,58,0.08);
  padding: 36px 32px 40px;
  min-height: 520px;
  position: relative;
  scroll-margin-top: 96px;
}
.calc-widget-frame::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light));
}
fello-mortgage-calculator-widget,
fello-affordability-calculator-widget,
fello-home-sale-calculator-widget {
  display: block;
  width: 100%;
  min-height: 480px;
}

.calc-related {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px;
  justify-content: flex-start;
}
.calc-note {
  margin-top: 28px;
  font-size: 13px; color: #6b5060; line-height: 1.7; max-width: 720px;
}

@media (max-width: 960px) {
  .calc-hero-inner { padding: 56px 24px 44px; }
  .calc-widget-section { padding: 32px 0 64px; }
  .calc-widget-frame { padding: 24px 18px 28px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .calc-related { flex-direction: column; align-items: stretch; }
  .calc-related .btn-pill { text-align: center; width: 100%; }
}
