/* ============================================================
   HAVV.IN — FINANCIAL CALCULATORS HUB
   Paste this in: Appearance → Customize → Additional CSS
   ============================================================ */

/* Full bleed override for Astra */
.page-id-financial-calculators .site-content,
body.page-template-default #havv-calc-hub,
#havv-calc-hub {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Force full width on Astra content area */
.ast-page-builder-template #havv-calc-hub,
.ast-full-width-layout #havv-calc-hub,
#content #havv-calc-hub {
  width: 100%;
}

/* ── Reset scoped to our hub ──────────────────────────── */
#havv-calc-hub *, #havv-calc-hub *::before, #havv-calc-hub *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#havv-calc-hub {
  --ink:          #0d0f14;
  --ink-soft:     #4a4f5e;
  --ink-muted:    #8b909f;
  --surface:      #f7f8fc;
  --card:         #ffffff;
  --border:       #e8eaf0;
  --accent:       #1a6bff;
  --accent-dim:   #e8f0ff;
  --green:        #00a76f;
  --green-dim:    #e6f7f2;
  --amber:        #ff8800;
  --amber-dim:    #fff4e6;
  --purple:       #7c3aed;
  --purple-dim:   #f0eaff;
  --radius:       14px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(26,107,255,0.13);

  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: #f7f8fc;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-bottom: 40px !important;
  overflow-x: hidden;
}

/* ── Hero ─────────────────────────────────────────────── */
#havv-calc-hub .hch-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}
#havv-calc-hub .hch-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 18px; letter-spacing: 0.03em;
  text-transform: uppercase;
}
#havv-calc-hub .hch-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: hch-pulse 2s infinite;
}
@keyframes hch-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
#havv-calc-hub .hch-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800 !important; line-height: 1.15;
  letter-spacing: -1.5px; color: var(--ink) !important;
  margin-bottom: 16px !important;
  border: none !important; padding: 0 !important;
}
#havv-calc-hub .hch-hero h1 em { font-style: normal; color: var(--accent); }
#havv-calc-hub .hch-hero > p {
  font-size: clamp(0.93rem, 2vw, 1.08rem);
  color: var(--ink-soft) !important; max-width: 540px;
  margin: 0 auto 32px !important; font-weight: 300;
}

/* ── Search ───────────────────────────────────────────── */
#havv-calc-hub .hch-search-wrap {
  max-width: 500px; margin: 0 auto 40px !important; position: relative;
}
#havv-calc-hub .hch-search-wrap input {
  width: 100%; padding: 13px 46px 13px 18px;
  border: 2px solid var(--border) !important; border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem; background: #fff !important;
  color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}
#havv-calc-hub .hch-search-wrap input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(26,107,255,0.1) !important;
}
#havv-calc-hub .hch-search-wrap input::placeholder { color: var(--ink-muted); }
#havv-calc-hub .hch-search-icon {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted); pointer-events: none; font-size: 1rem;
}

/* ── Popular pills ────────────────────────────────────── */
#havv-calc-hub .hch-popular {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 32px;
  display: flex !important; gap: 10px; flex-wrap: wrap; align-items: center;
}
#havv-calc-hub .hch-popular span {
  font-size: 0.76rem; color: var(--ink-soft); font-weight: 500;
}
#havv-calc-hub .hch-pill {
  display: inline-flex !important; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: #fff; border: 1px solid var(--border) !important;
  border-radius: 100px; font-size: 0.8rem;
  color: var(--ink-soft) !important; text-decoration: none !important;
  font-weight: 500; transition: all 0.2s;
}
#havv-calc-hub .hch-pill:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important; color: var(--accent) !important;
}

/* ── Stats bar ────────────────────────────────────────── */
#havv-calc-hub .hch-stats {
  display: flex !important; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 52px;
}
#havv-calc-hub .hch-stat { text-align: center; }
#havv-calc-hub .hch-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem; font-weight: 800;
  color: var(--ink); display: block;
}
#havv-calc-hub .hch-stat-label {
  font-size: 0.78rem; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Section headers ──────────────────────────────────── */
#havv-calc-hub .hch-section-header {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 18px;
}
#havv-calc-hub .hch-section-header h2 {
  font-family: 'Syne', sans-serif !important;
  font-size: 1.35rem !important; font-weight: 700 !important;
  color: var(--ink) !important; letter-spacing: -0.4px;
  display: flex !important; align-items: center; gap: 10px;
  border: none !important; padding: 0 !important; margin: 0 !important;
}
#havv-calc-hub .hch-section-header h2 .hch-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  background: var(--accent-dim); color: var(--accent);
  padding: 2px 10px; border-radius: 100px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Cards grid ───────────────────────────────────────── */
#havv-calc-hub .hch-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 48px;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

/* ── Card ─────────────────────────────────────────────── */
#havv-calc-hub .hch-card {
  background: #fff;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
#havv-calc-hub .hch-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
#havv-calc-hub .hch-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(26,107,255,0.2) !important;
}
#havv-calc-hub .hch-card:hover::before { transform: scaleX(1); }

#havv-calc-hub .hch-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 12px;
  background: var(--icon-bg, var(--accent-dim));
  flex-shrink: 0;
}
#havv-calc-hub .hch-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-size: 0.93rem !important; font-weight: 700 !important;
  color: var(--ink) !important; margin-bottom: 6px !important;
  letter-spacing: -0.2px;
  border: none !important; padding: 0 !important;
}
#havv-calc-hub .hch-card p {
  font-size: 0.81rem !important; color: var(--ink-soft) !important;
  line-height: 1.55; flex: 1; margin: 0 !important;
}
#havv-calc-hub .hch-card-arrow {
  margin-top: 14px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  display: flex !important; align-items: center; gap: 4px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
#havv-calc-hub .hch-card:hover .hch-card-arrow {
  opacity: 1; transform: translateX(0);
}

/* Color themes */
#havv-calc-hub .hch-card.loan   { --card-accent: #1a6bff; --icon-bg: #e8f0ff; }
#havv-calc-hub .hch-card.invest { --card-accent: #00a76f; --icon-bg: #e6f7f2; }
#havv-calc-hub .hch-card.tax    { --card-accent: #ff8800; --icon-bg: #fff4e6; }
#havv-calc-hub .hch-card.adv    { --card-accent: #7c3aed; --icon-bg: #f0eaff; }

/* ── Why section ──────────────────────────────────────── */
#havv-calc-hub .hch-why {
  background: #0d0f14;
  padding: 64px 24px;
  margin: 16px 0;
}
#havv-calc-hub .hch-why-inner { max-width: 1200px; margin: auto; }
#havv-calc-hub .hch-why h2 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 800 !important; color: #fff !important;
  text-align: center; margin-bottom: 10px !important;
  letter-spacing: -1px; border: none !important; padding: 0 !important;
}
#havv-calc-hub .hch-why-sub {
  text-align: center; color: #9098af;
  font-size: 0.93rem; margin-bottom: 44px;
}
#havv-calc-hub .hch-why-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
#havv-calc-hub .hch-why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 24px 20px;
}
#havv-calc-hub .hch-why-card .hch-icon { font-size: 1.7rem; margin-bottom: 12px; display: block; }
#havv-calc-hub .hch-why-card h4 {
  font-family: 'Syne', sans-serif !important;
  font-size: 0.93rem !important; color: #fff !important; font-weight: 700 !important;
  margin-bottom: 7px !important; border: none !important; padding: 0 !important;
}
#havv-calc-hub .hch-why-card p {
  font-size: 0.82rem !important; color: #7c849a !important;
  line-height: 1.6; margin: 0 !important;
}

/* ── FAQ ──────────────────────────────────────────────── */
#havv-calc-hub .hch-faq {
  max-width: 780px; margin: 0 auto !important; padding: 52px 24px;
}
#havv-calc-hub .hch-faq-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 1.5rem !important; font-weight: 800 !important;
  color: var(--ink) !important; text-align: center;
  margin-bottom: 32px !important; letter-spacing: -0.5px;
  border: none !important; padding: 0 !important;
}
#havv-calc-hub .hch-faq-item {
  border: 1px solid var(--border) !important; border-radius: 14px;
  margin-bottom: 10px; overflow: hidden; background: #fff;
}
#havv-calc-hub .hch-faq-q {
  width: 100%; background: none; border: none !important;
  padding: 16px 20px;
  display: flex !important; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  transition: background 0.2s;
}
#havv-calc-hub .hch-faq-q:hover { background: #f7f8fc; }
#havv-calc-hub .hch-faq-chevron {
  transition: transform 0.3s; color: #8b909f;
  flex-shrink: 0; margin-left: 12px;
}
#havv-calc-hub .hch-faq-item.open .hch-faq-chevron { transform: rotate(180deg); }
#havv-calc-hub .hch-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.87rem; color: var(--ink-soft);
  line-height: 1.7; padding: 0 20px;
}
#havv-calc-hub .hch-faq-item.open .hch-faq-a {
  max-height: 300px; padding: 0 20px 16px;
}

/* ── No results ───────────────────────────────────────── */
#havv-calc-hub .hch-no-results {
  display: none; text-align: center;
  padding: 40px 24px; color: #8b909f; font-size: 0.93rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  #havv-calc-hub .hch-stats { gap: 20px; }
  #havv-calc-hub .hch-grid {
    grid-template-columns: 1fr 1fr !important; gap: 12px;
  }
  #havv-calc-hub .hch-card { padding: 16px; }
}
@media (max-width: 400px) {
  #havv-calc-hub .hch-grid { grid-template-columns: 1fr !important; }
}
/* Full width fix for Financial Calculators page - ID 83 */
.page-id-83 .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.page-id-83 .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
}

.page-id-83 #primary {
  width: 100% !important;
  max-width: 100% !important;
}

.page-id-83 .ast-article-single {
  max-width: 100% !important;
  padding: 0 !important;
}

.page-id-83 .site-content {
  padding: 0 !important;
}

.page-id-83 h1.entry-title {
  display: none !important;
}.site-description {
  font-size: 0.85rem;
  color: #4a4f5e;
  font-style: italic;
  letter-spacing: 0.03em;
  margin-top: 4px;
}