/* =============================================================
   MortgageWire — tools.css
   Tools landing page styles
============================================================= */


/* --- PAGE WRAPPER --- */
.tools-wrap {
  padding: 24px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}


/* --- HERO ROW --- */
.tools-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
}

.tools-hero-hed {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #1A1A1A;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.tools-hero-sub {
  font-size: 14px;
  color: #666660;
}

.tools-hero-rate {
  text-align: right;
  flex-shrink: 0;
}

.thr-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999490;
  margin-bottom: 4px;
}

.thr-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #0C2340;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.thr-src {
  font-size: 11px;
  color: #999490;
}


/* --- TOOLS GRID --- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}


/* --- TOOL CARD --- */
.tool-card {
  background: #ffffff;
  border-radius: 10px;
  border: 0.5px solid #E0DDD6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.tool-card--featured {
  border-color: #2176C7;
  grid-column: span 1;
}

.tool-card--featured:hover {
  border-color: #1A5FA0;
}

.tool-card--coming {
  opacity: 0.8;
}

.tool-card--coming:hover {
  border-color: #C8C4BE;
}


/* --- CARD ICON --- */
.tc-icon {
  padding: 18px 18px 0;
}

.tc-icon svg {
  width: 28px;
  height: 28px;
}

.tc-icon--calc   svg { color: #2176C7; }
.tc-icon--rates  svg { color: #2E6B1A; }
.tc-icon--afford svg { color: #8A5200; }
.tc-icon--refi   svg { color: #4A42A8; }
.tc-icon--extra  svg { color: #0D6B4F; }
.tc-icon--points svg { color: #A03020; }


/* --- CARD BODY --- */
.tc-body {
  padding: 12px 18px 14px;
  flex: 1;
}

.tc-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999490;
  margin-bottom: 4px;
}

.tc-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.tc-desc {
  font-size: 13px;
  color: #666660;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tc-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 0.5px solid #D0CCC4;
  color: #888880;
  background: #F7F5F0;
}


/* --- CARD CTA --- */
.tc-cta {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  border-top: 0.5px solid #E0DDD6;
  color: #2176C7;
  background: #F7F5F0;
  transition: background 0.15s;
}

.tool-card--featured:hover .tc-cta {
  background: #EAF2FC;
}

.tc-cta--coming {
  color: #999490;
  font-weight: 400;
  font-style: italic;
}


/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .tools-wrap {
    padding: 18px 16px 32px;
  }
  .tools-hero {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .tools-hero-rate {
    text-align: left;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-hero-hed {
    font-size: 22px;
  }
  .thr-val {
    font-size: 24px;
  }
}
