/* ==========================================================
   css/audit.css — Apensia Free SEO Audit tool
   Matches the site's navy (#002b64) / accent-blue (#60A5FA)
   theme already used elsewhere (footer, SEO pages).
   ========================================================== */

.audit-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1a2332;
    background: #f7f9fc;
}

/* ---------------- HERO / FORM ---------------- */

.audit-hero {
    background: linear-gradient(135deg, #002b64 0%, #013b82 100%);
    color: #fff;
    padding: 64px 24px 56px;
    text-align: center;
}

.audit-hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #60A5FA;
    margin-bottom: 14px;
}

.audit-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin: 0 0 14px;
}

.audit-hero > p {
    max-width: 560px;
    margin: 0 auto 32px;
    color: #cfd8e6;
    font-size: 16px;
    line-height: 1.6;
}

.audit-form {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.audit-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #1a2332;
    font-size: 15px;
    margin-bottom: 12px;
}

.audit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.audit-form button {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: #60A5FA;
    color: #002b64;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.audit-form button:hover {
    background: #7fb6ff;
    transform: translateY(-2px);
}

.audit-error {
    margin-top: 14px;
    color: #ffb4b4;
    font-size: 14px;
}

@media (max-width: 600px) {
    .audit-form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------- REPORT ---------------- */

.audit-report {
    max-width: 780px;
    margin: -30px auto 60px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 43, 100, 0.12);
    padding: 36px 32px;
    position: relative;
    z-index: 2;
}

.audit-report-error {
    text-align: center;
    padding: 48px 32px;
}

.audit-report-error h2 {
    color: #c0392b;
}

.audit-score-summary {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef1f6;
}

.audit-score-circle {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    background: #c0392b; /* overridden below by data-score bands */
}

.audit-score-circle[data-score] {
    background: #c0392b;
}

/* Score color bands via attribute selectors — no JS needed */
.audit-score-circle[data-score^="9"],
.audit-score-circle[data-score="100"],
.audit-score-circle[data-score^="8"] {
    background: #1a9e5c;
}

.audit-score-circle[data-score^="7"],
.audit-score-circle[data-score^="6"],
.audit-score-circle[data-score^="5"] {
    background: #d68c1a;
}

.audit-score-summary h2 {
    margin: 0 0 4px;
    font-size: 19px;
    color: #002b64;
    word-break: break-word;
}

.audit-score-summary p {
    margin: 0;
    color: #6b7684;
    font-size: 14px;
}

.audit-category {
    margin-bottom: 26px;
}

.audit-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.audit-category-header h3 {
    margin: 0;
    font-size: 16px;
    color: #002b64;
}

.audit-category-score {
    font-size: 14px;
    font-weight: 700;
    color: #60A5FA;
    background: #eef4ff;
    padding: 4px 12px;
    border-radius: 20px;
}

.audit-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.audit-check {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f4f8;
}

.audit-check:last-child {
    border-bottom: none;
}

.audit-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.audit-check-pass .audit-check-icon { background: #1a9e5c; }
.audit-check-fail .audit-check-icon { background: #c0392b; }
.audit-check-manual .audit-check-icon { background: #9aa5b1; }

.audit-check strong {
    display: block;
    font-size: 14px;
    color: #1a2332;
    margin-bottom: 2px;
}

.audit-check p {
    margin: 0;
    font-size: 13px;
    color: #6b7684;
    line-height: 1.5;
}

/* ---------------- TIER RECOMMENDATION ---------------- */

.audit-tier-recommendation {
    background: #f4f7fb;
    border: 1px solid #dbe6f5;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 28px 0;
}

.audit-tier-recommendation h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #002b64;
}

.audit-tier-price {
    font-size: 15px;
    font-weight: 700;
    color: #d68c1a;
    margin: 0 0 8px;
}

.audit-tier-recommendation p:last-child {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* ---------------- SUGGESTIONS ---------------- */

.audit-suggestions h3 {
    font-size: 16px;
    color: #002b64;
    margin: 0 0 14px;
}

.audit-suggestion {
    border: 1px solid #eef1f6;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.audit-suggestion strong {
    font-size: 14px;
    color: #1a2332;
    margin-left: 6px;
}

.audit-suggestion p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.audit-suggestion-service {
    color: #9aa5b1 !important;
    font-size: 12px !important;
}

.audit-priority-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 10px;
    color: #fff;
}

.audit-suggestion-critical .audit-priority-badge { background: #c0392b; }
.audit-suggestion-important .audit-priority-badge { background: #d68c1a; }
.audit-suggestion-minor .audit-priority-badge { background: #9aa5b1; }

/* ---------------- PDF / LEAD CONFIRMATION ---------------- */

.audit-pdf-download {
    text-align: center;
    margin: 30px 0 10px;
    padding: 24px;
    background: #f4f7fb;
    border-radius: 12px;
}

.audit-pdf-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #002b64;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.audit-pdf-btn:hover {
    background: #013b82;
}

.audit-pdf-download p {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7684;
}

.audit-lead-confirmation {
    text-align: center;
    color: #1a9e5c;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
}
