/* Hearts to Homes — Answer Center hub (Phase 3A infrastructure) */
*, *::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; --gold: #C9A84C; --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));
  z-index: 9999; transition: width 0.1s linear;
}

.page-hero {
  min-height: 72vh; display: flex; align-items: center; 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; }
.page-hero-inner {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 72px 32px 80px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.page-breadcrumb {
  font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: #9e5a6a; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.page-breadcrumb a { color: #7a5560; text-decoration: none; }
.hero-kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--rose); margin-bottom: 18px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(38px, 5.5vw, 68px); font-weight: 500; line-height: 1.04; color: #2A2522; margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--rose-dark); }
.hero-divider { height: 1px; width: 80px; margin: 0 0 22px; background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light)); }
.hero-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(18px, 2.1vw, 24px); color: #6b3a4a; line-height: 1.6; margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-stat-card { background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); border: 1px solid rgba(196,120,138,0.22); padding: 28px; position: relative; }
.hero-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light)); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 500; color: var(--rose-dark); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); }
.stat-body { font-size: 13px; color: #4a3038; line-height: 1.7; margin-top: 10px; }
.hero-feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero-feature-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #4a3038; }
.hero-feature-list li::before { content: ''; width: 22px; height: 1px; background: var(--rose); flex-shrink: 0; }

.trust-intro { background: var(--panel); border-bottom: 1px solid var(--border-rose); padding: 56px 0; }
.trust-intro-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.trust-intro-kicker { display: block; font-size: 10px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.trust-intro-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; color: #2A2522; line-height: 1.2; margin-bottom: 20px; }
.trust-intro-body { font-family: 'Cormorant Garamond', serif; font-size: clamp(17px, 2vw, 21px); color: #4a3038; line-height: 1.75; margin-bottom: 16px; }
.trust-intro-body em { font-style: italic; color: var(--rose-dark); }

.ac-search-section { padding: 40px 0 0; }
.ac-search-wrap { max-width: 720px; margin: 0 auto; }
.ac-search-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; text-align: center; }
.ac-search-input {
  width: 100%; font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 400;
  padding: 18px 22px; border: 1px solid var(--border-rose); background: var(--panel);
  color: #2A2522; box-shadow: 0 6px 24px rgba(122,42,58,0.06);
}
.ac-search-input:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.ac-search-input:disabled { opacity: 0.72; cursor: not-allowed; }
.ac-search-note { font-size: 13px; color: #6b5060; text-align: center; margin-top: 12px; line-height: 1.6; }

.category-nav { padding: 40px 0 0; scroll-margin-top: 140px; }
.category-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.category-chip {
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rose-dark); text-decoration: none; padding: 10px 18px;
  background: var(--panel); border: 1px solid var(--border-rose); transition: all 0.3s;
}
.category-chip:hover { background: var(--rose-pale); border-color: var(--rose); transform: translateY(-2px); }

.cat-section { padding: 80px 0; scroll-margin-top: 140px; }
.cat-section.alt { background: var(--panel); border-top: 1px solid var(--border-rose); border-bottom: 1px solid var(--border-rose); }
.cat-header { text-align: center; margin-bottom: 40px; }
.cat-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; }
.cat-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3vw, 44px); font-weight: 500; color: #2A2522; line-height: 1.12; margin-bottom: 14px; }
.cat-title em { font-style: italic; color: var(--rose-dark); }
.cat-divider { height: 1px; width: 60px; margin: 0 auto 16px; background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light), var(--rose), var(--rose-dark)); }
.cat-sub { font-size: 16px; color: #4a3038; max-width: 680px; margin: 0 auto; line-height: 1.8; }

.ac-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.ac-category-card {
  background: var(--panel); border: 1px solid var(--border-rose); padding: 28px 26px 26px;
  text-decoration: none; color: inherit; display: block; position: relative;
  box-shadow: 0 6px 20px rgba(122,42,58,0.06);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.ac-category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose), var(--gold-light));
}
.ac-category-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(122,42,58,0.12); }
.ac-category-name { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 500; color: #2A2522; margin-bottom: 10px; line-height: 1.25; }
.ac-category-desc { font-size: 14px; color: #4a3038; line-height: 1.75; margin-bottom: 16px; }
.ac-category-link { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rose-dark); }

.ac-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; min-height: 48px; }
.ac-empty-state {
  grid-column: 1 / -1; text-align: center; padding: 36px 28px;
  background: rgba(245,236,224,0.35); border: 1px dashed rgba(196,120,138,0.35);
  font-size: 15px; color: #5a4048; line-height: 1.75;
}
.ac-article-card {
  background: var(--panel); border: 1px solid var(--border-rose); padding: 24px 22px;
  box-shadow: 0 6px 20px rgba(122,42,58,0.06);
}
.ac-article-card-tag { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; display: block; }
.ac-article-card-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500; line-height: 1.3; margin-bottom: 10px; }
.ac-article-card-title a { color: inherit; text-decoration: none; }
.ac-article-card-excerpt { font-size: 14px; color: #4a3038; line-height: 1.7; }

.ac-knowledge-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto;
}
.ac-knowledge-link {
  display: block; padding: 20px 18px; background: var(--panel); border: 1px solid var(--border-rose);
  text-decoration: none; color: inherit; text-align: center; transition: border-color 0.3s, transform 0.3s;
}
.ac-knowledge-link:hover { border-color: var(--rose); transform: translateY(-2px); }
.ac-knowledge-link-label { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; display: block; }
.ac-knowledge-link-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 500; color: #2A2522; }

.section-ornament { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 320px; margin: 0 auto; padding: 40px 32px; }
.section-ornament-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--rose-light), transparent); }
.section-ornament-diamond { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

.final-cta { padding: 80px 0; background: linear-gradient(180deg, rgba(253,248,245,0) 0%, rgba(245,236,224,0.35) 100%); text-align: center; }
.final-cta-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.final-cta-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; margin-bottom: 16px; }
.final-cta-title em { font-style: italic; color: var(--rose-dark); }
.final-cta-body { font-size: 15px; color: #4a3038; max-width: 620px; margin: 0 auto 28px; line-height: 1.75; }
.final-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  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); }
.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); }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.1s cubic-bezier(0.22,1,0.36,1), transform 1.1s cubic-bezier(0.22,1,0.36,1); }
.revealed { opacity: 1 !important; transform: none !important; }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }

@media (max-width: 960px) {
  .page-hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .ac-category-grid, .ac-article-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-knowledge-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .ac-category-grid, .ac-article-grid, .ac-knowledge-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
