/*
 * ms-repair-cpt.css
 * Styles for single-repair-cpt.php
 * Microsmith design spec: navy #0E3441, accent #00B4D8, white, body #1a2332
 */

/* ── Reset & base ──────────────────────────────────────────── */
.ms-rcpt *, .ms-rcpt *::before, .ms-rcpt *::after { box-sizing: border-box; }
.ms-rcpt { font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; color: #1a2332; background: #f0f4f6; }
.ms-rcpt-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ──────────────────────────────────────────────────── */
.ms-rcpt-hero { background: #0E3441; border-top: 4px solid #00B4D8; padding: 52px 0 48px; }
.ms-rcpt-hero-inner { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
.ms-rcpt-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 18px; flex-wrap: wrap; }
.ms-rcpt-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.ms-rcpt-breadcrumb a:hover { color: #fff; }
.ms-rcpt-breadcrumb span { color: rgba(255,255,255,0.35); }
.ms-rcpt-breadcrumb span:last-child { color: rgba(255,255,255,0.55); }

.ms-rcpt-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: 50px; padding: 6px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 18px; }

.ms-rcpt-h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; color: #fff !important; margin: 0 0 14px; line-height: 1.1; font-family: 'Oswald', 'Arial Black', sans-serif; letter-spacing: -0.01em; }
.ms-rcpt-intro { font-size: 17px; color: rgba(255,255,255,0.78); margin: 0 0 28px; max-width: 500px; line-height: 1.6; }

.ms-rcpt-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ms-rcpt-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #00B4D8; color: #fff !important; padding: 13px 24px; border-radius: 9px; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: background .18s; }
.ms-rcpt-btn-primary:hover { background: #009ab8; color: #fff !important; }
.ms-rcpt-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 2px solid rgba(255,255,255,0.28); color: #fff !important; padding: 11px 22px; border-radius: 9px; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: background .18s; }
.ms-rcpt-btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff !important; }

.ms-rcpt-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.ms-rcpt-trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,0.68); font-weight: 500; }
.ms-rcpt-dot { width: 6px; height: 6px; border-radius: 50%; background: #00B4D8; flex-shrink: 0; }

/* Hero image panel */
.ms-rcpt-hero-img { border-radius: 18px; overflow: hidden; background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 64px rgba(0,0,0,0.45); }
.ms-rcpt-hero-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.ms-rcpt-hero-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #0E3441; padding: 24px; }

/* ── STATS BAR ─────────────────────────────────────────────── */
.ms-rcpt-stats { background: #0E3441; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 3px solid #00B4D8; }
.ms-rcpt-stats-inner { display: flex; justify-content: space-between; flex-wrap: wrap; }
.ms-rcpt-stat { display: flex; flex-direction: column; align-items: center; padding: 16px 20px; border-right: 1px solid rgba(255,255,255,0.08); flex: 1; }
.ms-rcpt-stat:last-child { border-right: none; }
.ms-rcpt-stat-val { font-size: 20px; font-weight: 900; color: #fff; white-space: nowrap; }
.ms-rcpt-stat-lbl { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ── BODY ──────────────────────────────────────────────────── */
.ms-rcpt-body { padding: 44px 0 64px; }
.ms-rcpt-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* ── REPAIR CARD ───────────────────────────────────────────── */
.ms-rcpt-repair-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; overflow: hidden; margin-bottom: 28px; box-shadow: 0 2px 12px rgba(14,52,65,0.05); }
.ms-rcpt-repair-card-hdr { background: #0E3441; padding: 14px 22px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.82); text-transform: uppercase; letter-spacing: 0.1em; }
.ms-rcpt-repair-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ms-rcpt-repair-cell { padding: 18px 22px; border-bottom: 1px solid #f0f2f5; border-right: 1px solid #f0f2f5; }
.ms-rcpt-repair-cell:nth-child(2n) { border-right: none; }
.ms-rcpt-repair-cell:nth-last-child(-n+2) { border-bottom: none; }
.ms-rcpt-cell-lbl { font-size: 11px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 5px; }
.ms-rcpt-cell-val { font-size: 17px; font-weight: 700; color: #0E3441; }
.ms-rcpt-price { font-size: 20px; font-weight: 900; }
.ms-rcpt-parts { padding: 14px 22px; background: #f8fafc; border-top: 1px solid #f0f2f5; font-size: 14px; color: #4b5563; }
.ms-rcpt-parts-lbl { font-weight: 700; color: #0E3441; margin-right: 6px; }

/* ── POST CONTENT ──────────────────────────────────────────── */
.ms-rcpt-content { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 32px 36px; margin-bottom: 28px; font-size: 17px; line-height: 1.75; color: #1a2332; }
.ms-rcpt-content h2, .ms-rcpt-content h3 { color: #0E3441; font-family: 'Oswald','Arial Black',sans-serif; font-weight: 800; margin: 1.6em 0 0.5em; line-height: 1.2; }
.ms-rcpt-content h2:first-child, .ms-rcpt-content h3:first-child { margin-top: 0; }
.ms-rcpt-content h2 { font-size: 22px; }
.ms-rcpt-content h3 { font-size: 18px; }
.ms-rcpt-content p { margin: 0 0 1.1em; }
.ms-rcpt-content ul, .ms-rcpt-content ol { margin: 0 0 1.2em 1.4em; }
.ms-rcpt-content li { margin-bottom: 0.4em; }
.ms-rcpt-content a { color: #00B4D8; }
.ms-rcpt-content strong { color: #0E3441; font-weight: 700; }

/* ── SECTION HEADERS ───────────────────────────────────────── */
.ms-rcpt-section-hdr { font-size: 20px; font-weight: 800; color: #0E3441; font-family: 'Oswald','Arial Black',sans-serif; margin: 0 0 20px; }

/* ── REVIEWS ───────────────────────────────────────────────── */
.ms-rcpt-reviews { margin-bottom: 28px; }
.ms-rcpt-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 14px; }
.ms-rcpt-review { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px 22px; }
.ms-rcpt-review-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ms-rcpt-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; }
.ms-rcpt-review-date { font-size: 12px; color: #9ca3af; }
.ms-rcpt-review-text { font-size: 15px; color: #374151; line-height: 1.6; margin-bottom: 10px; font-style: italic; }
.ms-rcpt-review-author { font-size: 13px; font-weight: 700; color: #0E3441; }
.ms-rcpt-reviews-footer { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6b7280; }
.ms-rcpt-reviews-footer a { color: #00B4D8; }
.ms-rcpt-reviews-footer svg { color: #f59e0b; flex-shrink: 0; }

/* ── RELATED ───────────────────────────────────────────────── */
.ms-rcpt-related { margin-bottom: 28px; }
.ms-rcpt-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ms-rcpt-related-card { display: block; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.ms-rcpt-related-card:hover { border-color: #00B4D8; box-shadow: 0 4px 16px rgba(0,180,216,0.10); }
.ms-rcpt-related-img { aspect-ratio: 3/2; overflow: hidden; background: #f0f4f6; }
.ms-rcpt-related-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-rcpt-related-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.ms-rcpt-related-body { padding: 14px 16px; }
.ms-rcpt-related-type { font-size: 11px; font-weight: 700; color: #00B4D8; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.ms-rcpt-related-title { font-size: 14px; font-weight: 700; color: #0E3441; line-height: 1.3; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.ms-rcpt-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }

.ms-rcpt-quote-card { background: #0E3441; border-radius: 14px; padding: 26px; }
.ms-rcpt-quote-card h3 { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 8px; font-family: 'Oswald','Arial Black',sans-serif; }
.ms-rcpt-quote-card p { font-size: 14px; color: rgba(255,255,255,0.70); margin: 0 0 18px; line-height: 1.5; }
.ms-rcpt-quote-btn { display: flex; align-items: center; gap: 8px; background: #00B4D8; color: #fff !important; padding: 13px 18px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none !important; margin-bottom: 10px; transition: background .18s; }
.ms-rcpt-quote-btn:hover { background: #009ab8; color: #fff !important; }
.ms-rcpt-call-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); color: #fff !important; padding: 11px 18px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none !important; margin-bottom: 16px; transition: background .18s; }
.ms-rcpt-call-btn:hover { background: rgba(255,255,255,0.18); color: #fff !important; }
.ms-rcpt-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; }
.ms-rcpt-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.68); }

.ms-rcpt-warranty { background: #fff; border: 1.5px solid #d1d5db; border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.ms-rcpt-warranty svg { color: #00B4D8; flex-shrink: 0; }
.ms-rcpt-warranty strong { display: block; font-size: 15px; font-weight: 800; color: #0E3441; }
.ms-rcpt-warranty span { font-size: 13px; color: #6b7280; }

.ms-rcpt-nav-card { background: #fff; border: 1.5px solid #d1d5db; border-radius: 12px; overflow: hidden; }
.ms-rcpt-nav-hdr { background: #0E3441; padding: 12px 18px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.1em; }
.ms-rcpt-nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid #f0f4f6; text-decoration: none; transition: background .15s; }
.ms-rcpt-nav-link:last-child { border-bottom: none; }
.ms-rcpt-nav-link:hover { background: #f8fafc; }
.ms-rcpt-nav-icon { color: #00B4D8; flex-shrink: 0; display: flex; }
.ms-rcpt-nav-label { flex: 1; font-size: 14px; font-weight: 600; color: #0E3441; }
.ms-rcpt-nav-arrow { font-size: 13px; color: #9ca3af; }

/* ── ALSO REPAIR ───────────────────────────────────────────── */
.ms-rcpt-also { background: #0E3441; padding: 52px 0; }
.ms-rcpt-also-eyebrow { font-size: 12px; font-weight: 700; color: #00B4D8; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px; }
.ms-rcpt-also-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff !important; margin: 0 0 32px; font-family: 'Oswald','Arial Black',sans-serif; }
.ms-rcpt-also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ms-rcpt-also-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 22px 14px; text-decoration: none !important; color: #fff !important; transition: background .18s, border-color .18s; }
.ms-rcpt-also-card:hover { background: rgba(255,255,255,0.13); border-color: rgba(0,180,216,0.5); }
.ms-rcpt-also-icon { color: #fff !important; display: flex; }
.ms-rcpt-also-label { font-size: 13px; font-weight: 700; color: #fff !important; text-align: center; line-height: 1.3; }
.ms-rcpt-also-arrow { font-size: 11px; color: rgba(0,180,216,0.8); font-weight: 600; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
    .ms-rcpt-hero-inner { grid-template-columns: 1fr; }
    .ms-rcpt-hero-img { display: none; }
    .ms-rcpt-layout { grid-template-columns: 1fr; }
    .ms-rcpt-sidebar { position: static; }
    .ms-rcpt-repair-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .ms-rcpt-also-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ms-rcpt-hero { padding: 36px 0 32px; }
    .ms-rcpt-repair-grid { grid-template-columns: 1fr; }
    .ms-rcpt-content { padding: 22px 18px; }
    .ms-rcpt-stat { padding: 12px 8px; }
    .ms-rcpt-stat-val { font-size: 16px; }
    .ms-rcpt-also-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-rcpt-also-card { padding: 16px 10px; }
}
