/* ==========================================================================
   dm-pages.css — unified page chrome for DealMate.ai content pages
   (careers, hoa, realestate, partnerships, press, privacy, terms, tools…)

   North star: the homepage. Blue gradient language (#4A90E2 → #336699, same
   lockup as the header brand badge), Inter typography, white cards, soft
   shadows. Pages opt in by linking this sheet and putting `dm-hero` on
   their top header block — everything else is intentionally low-specificity
   so existing page styles keep working.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #2d3748;
}

/* ── Hero band ─────────────────────────────────────────────────────────── */
/* !important throughout: pages carry their own later-loading <style> blocks
   (white .page-header cards etc.) and this band must win over all of them. */
.dm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90E2 0%, #336699 100%) !important;
    border: 0 !important;
    border-radius: 24px !important;
    max-width: 1000px;
    margin: 28px auto 44px;
    padding: 60px 36px 56px !important;
    text-align: center;
    color: #ffffff !important;
    box-shadow: 0 18px 44px rgba(51, 102, 153, 0.28) !important;
}
.dm-hero h2, .dm-hero h3 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* soft highlights, echoes the homepage hero photo glow */
.dm-hero::before,
.dm-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.dm-hero::before {
    width: 420px; height: 420px;
    top: -220px; right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}
.dm-hero::after {
    width: 360px; height: 360px;
    bottom: -200px; left: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
}
.dm-hero > * { position: relative; z-index: 1; }

.dm-hero h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: initial !important;
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px;
}
.dm-hero p,
.dm-hero .subtitle {
    color: rgba(255, 255, 255, 0.93) !important;
    font-size: 1.18rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}
/* page icons drawn in brand blue disappear on the gradient — flip to white */
.dm-hero svg { filter: brightness(0) invert(1); opacity: 0.95; }
.dm-hero img.hero-icon { filter: brightness(0) invert(1); opacity: 0.95; }

@media (max-width: 640px) {
    .dm-hero {
        margin: 14px 14px 30px;
        padding: 42px 20px 40px;
        border-radius: 18px;
    }
    .dm-hero h1 { font-size: 1.9rem; }
    .dm-hero p, .dm-hero .subtitle { font-size: 1.02rem; }
}

/* ── Primary action buttons (match the homepage CTA pill) ─────────────── */
.dm-btn,
.dm-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4A90E2 0%, #336699 100%);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(51, 102, 153, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(51, 102, 153, 0.45);
}
/* inverse pill for use ON the hero gradient */
.dm-hero .dm-btn {
    background: #ffffff;
    color: #336699;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ── Content cards (the careers-family card look, standardized) ───────── */
.dm-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.06);
}
