/* Toolbox Repair Guides — Styles matched to live site */
/* Extracted from www.toolbox.repair deployed index.html */

:root {
    --toolbox-orange: #FF6B4A;
    --toolbox-orange-light: #FF8E53;
    --toolbox-orange-dark: #E5533A;
    --charcoal: #2D3748;
    --light-gray: #F5F5F7;
    --pure-white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border: #E5E5E5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* =============================================
   HEADER — exact match to live site
   ============================================= */
header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    height: 56px;
    width: auto;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.header-nav a:hover {
    color: var(--text-primary);
}
.header-nav a.header-cta {
    color: white;
}
.header-nav a.header-cta:hover {
    color: white;
}
.header-cta {
    background: var(--toolbox-orange);
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.header-cta:hover {
    background: var(--toolbox-orange-dark);
    color: white !important;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--toolbox-orange);
}
.breadcrumb .sep {
    margin: 0 6px;
    color: var(--border);
}

/* =============================================
   RISK BADGES — matching live site .risk-badge
   ============================================= */
.risk-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.risk-badge.low {
    background: #ECFDF5;
    color: #059669;
}
.risk-badge.moderate {
    background: #FEF3C7;
    color: #D97706;
}
.risk-badge.high {
    background: #FEE2E2;
    color: #DC2626;
}

/* =============================================
   GUIDE PAGE — article layout
   ============================================= */
.guide-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}
.guide-article .risk-badge {
    margin-bottom: 14px;
}
.guide-article h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.guide-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.guide-article h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--charcoal);
    margin: 48px 0 16px;
}
.guide-article h2:first-of-type {
    margin-top: 0;
}
.guide-article p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.guide-article ul, .guide-article ol {
    margin: 0 0 20px 20px;
    color: var(--text-primary);
}
.guide-article li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}
.guide-article strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* Numbered Steps — uses orange circles like live site step-number */
.step-list {
    list-style: none;
    margin-left: 0;
    counter-reset: step;
}
.step-list li {
    counter-increment: step;
    padding-left: 48px;
    position: relative;
    margin-bottom: 24px;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--toolbox-orange);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   WARNING BOX — matches safety-section tone
   ============================================= */
.warning-box {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-left: 4px solid #DC2626;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.warning-box h3 {
    color: #DC2626;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.warning-box ul {
    margin: 0 0 0 18px;
}
.warning-box li {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* CAUTION BOX — yellow variant */
.caution-box {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
}
.caution-box h3 {
    color: #D97706;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.caution-box ul {
    margin: 0 0 0 18px;
}
.caution-box li {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* =============================================
   COST BOX — uses stat styling from live site
   ============================================= */
.cost-box {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cost-item { text-align: center; }
.cost-item .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.cost-item .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
}
.cost-item .amount.diy {
    color: #059669;
}

/* =============================================
   CTA BOX — matches .cta-card.featured gradient
   ============================================= */
.cta-box {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8E53 100%);
    border-radius: 16px;
    padding: 36px 32px;
    margin: 40px 0;
    text-align: center;
    color: white;
}
.cta-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.cta-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}
.cta-box .app-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cta-box .app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--toolbox-orange);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.cta-box .app-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.cta-box .app-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =============================================
   RELATED GUIDES
   ============================================= */
.related-guides {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.related-guides h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--charcoal);
}
.related-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.related-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 14px 18px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.related-links a:hover {
    border-color: var(--toolbox-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.1);
}

/* =============================================
   FOOTER — exact match to live site
   ============================================= */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.social-icons a:hover {
    background: var(--toolbox-orange);
    color: white;
}
.social-icons svg {
    width: 20px;
    height: 20px;
}
.footer-links {
    margin-bottom: 16px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 12px;
}
.footer-links a:hover {
    color: var(--toolbox-orange);
}

/* =============================================
   HUB PAGE STYLES
   ============================================= */
.hub-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}
.hub-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.hub-hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
}

.hub-legend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 28px;
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}
.hub-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.green { background: #059669; }
.legend-dot.yellow { background: #D97706; }
.legend-dot.red { background: #DC2626; }

.hub-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
}
.hub-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.hub-section-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hub-section-icon svg {
    width: 22px;
    height: 22px;
}
.hub-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
}
.hub-section-header .count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.guide-card:hover {
    border-color: var(--toolbox-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 74, 0.12);
}
.guide-card .card-badge {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}
.guide-card .card-badge.green { background: #059669; }
.guide-card .card-badge.yellow { background: #D97706; }
.guide-card .card-badge.red { background: #DC2626; }
.guide-card .card-text h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--charcoal);
}
.guide-card .card-text .card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Hub CTA — matches .final-cta from live site */
.hub-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}
.hub-cta-inner {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8E53 100%);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: white;
}
.hub-cta-inner h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.hub-cta-inner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.hub-cta-inner .app-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hub-cta-inner .app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--toolbox-orange);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.hub-cta-inner .app-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.hub-cta-inner .app-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =============================================
   RESPONSIVE — matching live site breakpoints
   ============================================= */
@media (max-width: 768px) {
    .logo-img { height: 44px; }
    .header-cta { font-size: 13px; padding: 8px 16px; }
    .header-nav { gap: 16px; }
    .guide-article h1 { font-size: 28px; }
    .hub-hero h1 { font-size: 28px; }
    .hub-hero .subtitle { font-size: 18px; }
    .guide-grid { grid-template-columns: 1fr; }
    .cost-box { grid-template-columns: 1fr; gap: 16px; }
    .hub-legend { flex-direction: column; gap: 8px; }
    .cta-box { padding: 28px 20px; }
    .cta-box h3 { font-size: 20px; }
    .cta-box .app-buttons { flex-direction: column; align-items: center; }
    .hub-cta-inner { padding: 36px 24px; }
    .hub-cta-inner h2 { font-size: 24px; }
    .hub-cta-inner .app-buttons { flex-direction: column; align-items: center; }
    .safety-items { flex-direction: column; align-items: center; }
}

/* Key Takeaway Summary Box */
.key-takeaway {
    background: #F0F9FF;
    border-left: 4px solid #3B82F6;
    padding: 16px 20px;
    margin: 0 0 28px 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}
.key-takeaway strong {
    color: #1E40AF;
    font-weight: 600;
}

/* Last Updated Date */
.guide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -4px 0 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.guide-meta time {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    margin: 36px 0;
}
.faq-section h2 {
    margin-bottom: 16px;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}
.faq-item p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}
