/* RentPeek — Brand Stylesheet */
/* Option A: Trust & Safety (Navy + Amber) */

:root {
    --primary: #1A3A5C;
    --primary-light: #2E75B6;
    --accent: #E8913A;
    --accent-hover: #D07E2E;
    --bg: #F5F0EB;
    --bg-white: #FFFFFF;
    --text: #2C2C2A;
    --text-muted: #6B6966;
    --text-light: #9A9895;
    --border: #E0DDD8;
    --border-light: #EDEAE5;
    --success: #1D9E75;
    --warning: #E8913A;
    --danger: #D04040;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.nav {
    background: var(--primary);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* HERO */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

/* SEARCH FORM */
.search-form {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}
.search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46,117,182,0.12);
}
.search-input::placeholder { color: var(--text-light); }
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
    background: var(--primary);
    color: #fff;
}
.btn-secondary:hover { background: #153050; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* FEATURES */
.features {
    padding: 60px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* SECTION */
.section { padding: 60px 0; }
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

/* REPORT CARD */
.report-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin: 24px 0;
}
.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.report-address {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.report-borough {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.score-badge {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}
.score-green { background: #E1F5EE; color: #0F6E56; }
.score-amber { background: #FFF3CD; color: #8B6914; }
.score-red { background: #FCE8E8; color: #A32D2D; }

/* SECTION HEADING (consistent report headings) */
.section-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 12px;
}

.report-summary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-light);
}

/* BUILDING INFO SECTION (NEW) */
.building-info-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.building-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.building-info-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.info-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.stat-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-detail {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CATEGORY LIST */
.category-list {
    margin: 16px 0;
}
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.category-item:last-child { border-bottom: none; }
.category-name { color: var(--text); }
.category-count {
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* PREVIEW PAGE */
.preview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 40px auto;
    text-align: center;
}
.preview-address {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.preview-borough {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.pricing-unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.pricing-per {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ERROR */
.error-msg {
    background: #FCE8E8;
    border: 1px solid #F0C0C0;
    color: #A32D2D;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* DISCLAIMER */
.disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    margin-top: 60px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .nav-brand { color: #fff; }
.footer-tagline { font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.footer-legal p + p { margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .search-form { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-grid-3 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .report-header { flex-direction: column; gap: 12px; }
    .building-info-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* PRINT STYLES */
@media print {
    .nav, .footer, .btn, .disclaimer { display: none !important; }
    .section { padding: 0; }
    .report-card { box-shadow: none; border: none; padding: 0; }
    body { background: #fff; }
    .stat-card { border: 1px solid #ddd; }
    @page { margin: 1.5cm; }
}
