/* ══════════════════════════════════════════
   RenoCalc — Layout & Structure
   ══════════════════════════════════════════ */

/* ── PAGE PADDING (compensate for fixed nav) ── */
body > *:first-child { padding-top: 68px; }

/* ── SECTIONS ── */
.section { padding: 80px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ── SOCIAL PROOF BAR ── */
.proof-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    text-align: center;
}
.proof-bar-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.proof-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
}
.proof-item svg { flex-shrink: 0; }
.proof-divider { width: 1px; height: 20px; background: var(--border); }

/* ── COMPARISON TABLE ── */
.compare-table {
    width: 100%; border-collapse: collapse;
    margin-top: 48px; border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-md);
}
.compare-table thead th { padding: 20px 28px; font-size: 0.95rem; font-weight: 700; text-align: left; }
.compare-table thead tr { background: var(--navy); color: var(--white); }
.compare-table thead th:first-child { width: 36%; }
.compare-table thead th.col-them { background: #1a2a3a; color: var(--text-muted); }
.compare-table thead th.col-us { background: var(--cyan); color: var(--white); display: table-cell; position: relative; }
.compare-table thead th.col-us::after { content: '★ Recommended'; position: absolute; top: 8px; right: 16px; font-size: 0.7rem; opacity: 0.85; }
.compare-table tbody tr { background: var(--white); }
.compare-table tbody tr:nth-child(even) { background: var(--off-white); }
.compare-table tbody tr:hover { background: var(--cyan-mid); }
.compare-table td { padding: 16px 28px; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }
.compare-table .no { color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.compare-table .yes { color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ── STEP GRID ── */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px; position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute; top: 40px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
    height: 2px; background: linear-gradient(90deg, var(--cyan), var(--amber)); z-index: 0;
}

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }

/* ── PRICING CARDS GRID ── */
.pricing-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }

/* ── FAQ GRID ── */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 48px 5% 32px; }
.footer-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { color: var(--white); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom .author { color: var(--cyan); font-weight: 600; }
.footer-nap { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-nap a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-nap a:hover { color: var(--cyan); }

/* ══════════════════════════════════════════
   ARTICLE PAGE STYLES
   ══════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb { padding: 14px 5%; max-width: 1100px; margin: 0 auto; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--border-dark); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--text-secondary); }

/* ── ARTICLE HEADER ── */
.article-header { max-width: 780px; margin: 0 auto; padding: 32px 5% 24px; }
.article-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--text-primary); margin-bottom: 16px; }
.article-category { display: inline-block; background: var(--cyan-light); color: var(--cyan-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 12px; }
.article-author a { color: var(--text-secondary); font-weight: 600; text-decoration: none; }
.article-author a:hover { color: var(--cyan); }
.article-reading-time::before { content: '·'; margin-right: 6px; }
.article-updated::before { content: '·'; margin-right: 6px; }

/* ── ARTICLE CONTAINER (classless articles and .blog-article) ── */
article:not([class]), .blog-article { max-width: 780px; margin: 0 auto; padding: 0 5% 40px; }

/* ── ANCHOR SCROLL OFFSET (prevents fixed nav hiding targets) ── */
[id] { scroll-margin-top: 88px; }

/* ── ARTICLE HERO IMAGE ── */
figure.article-hero, figure.hero-image { max-width: 780px; margin: 0 auto; padding: 0 5%; }
figure.article-hero img, figure.hero-image img { width: 100%; height: auto; border-radius: 12px; display: block; }
figure, .article-body figure { margin: 2rem 0; }
figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
figcaption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 8px; font-style: italic; line-height: 1.5; }

/* ── TABLE OF CONTENTS ── */
.article-toc, .toc, .table-of-contents { background: var(--off-white); border: 1px solid var(--border); border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 2rem 0; }
.toc-heading, .toc-title, .article-toc h2, .toc h2, .table-of-contents h2 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 14px; }
.article-toc ol, .toc ol, .article-toc ul, .toc ul, .table-of-contents ol, .table-of-contents ul { padding-left: 1.2rem; margin: 0; }
.article-toc li, .toc li, .table-of-contents li { font-size: 0.9rem; margin-bottom: 8px; color: var(--text-secondary); }
.article-toc a, .toc a, .table-of-contents a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.article-toc a:hover, .toc a:hover, .table-of-contents a:hover { color: var(--cyan); text-decoration: underline; }

/* ── ARTICLE INTRO ── */
.article-intro p:first-child { font-size: 1.05rem; color: var(--text-primary); line-height: 1.8; }

/* ── TABLES ── */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; box-shadow: var(--shadow-sm); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.article-body caption { font-size: 0.8rem; color: var(--text-muted); text-align: left; padding: 0 0 8px; font-style: italic; }
.article-body thead th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; }
.article-body tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:nth-child(even) td { background: var(--off-white); }
.article-body tbody tr:hover td { background: var(--cyan-mid); }

/* ── FAQ BLOCK ── */
.article-faqs, .faq-block { margin: 2.5rem 0; }
.article-faqs h2, .faq-block h2 { margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.faq-question svg, .faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); transition: transform 0.3s; font-style: normal; font-size: 1.4rem; line-height: 1; }
.faq-item.open .faq-question svg, .faq-item.open .faq-icon { transform: rotate(45deg); color: var(--cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p { padding-bottom: 18px; }

/* ── AUTHOR BIO ── */
.author-bio { background: var(--off-white); border-radius: 16px; padding: 28px; margin: 3rem 0; }
.author-bio-inner { display: flex; gap: 20px; align-items: flex-start; }
.author-bio img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--cyan); }
.author-bio-content .author { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-primary); display: block; margin-bottom: 4px; }
.author-bio-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ── RELATED ARTICLES ── */
.related-articles { margin: 3rem 0; }
.related-articles h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s; display: block; }
.related-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); }
.related-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.related-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── ARTICLE CTA BLOCK ── */
.cta-block { background: linear-gradient(135deg, var(--navy) 0%, #0e2d3a 100%); border-radius: 20px; padding: 48px 40px; text-align: center; margin: 3rem 0; }
.cta-block h2 { color: var(--white); font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 12px; }
.cta-block p, .cta-sub { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-button { display: inline-flex; align-items: center; gap: 8px; background: var(--cyan); color: var(--white); padding: 16px 36px; border-radius: 100px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background 0.2s, transform 0.15s; box-shadow: 0 8px 32px rgba(22,194,213,0.35); }
.cta-button:hover { background: var(--cyan-dark); color: var(--white); transform: translateY(-2px); }

/* ── BOTTOM CTA (shared across pages) ── */
.bottom-cta { background: var(--navy); padding: 80px 5%; text-align: center; }
.bottom-cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.02em; }
.bottom-cta p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }
.btn-primary-lg { display: inline-flex; align-items: center; gap: 10px; background: var(--cyan); color: var(--white); padding: 18px 44px; border-radius: 100px; font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.15s; box-shadow: 0 8px 32px rgba(22,194,213,0.35); }
.btn-primary-lg:hover { background: var(--cyan-dark); color: var(--white); transform: translateY(-2px); }
.btn-secondary-lg { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.3); padding: 16px 36px; border-radius: 100px; font-size: 1rem; font-weight: 600; text-decoration: none; margin-left: 12px; transition: border-color 0.2s, color 0.2s; }
.btn-secondary-lg:hover { border-color: var(--cyan); color: var(--cyan); }
.cta-btn-group { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── ARTICLE CONCLUSION ── */
.article-conclusion { border-top: 2px solid var(--border); padding-top: 2rem; margin-top: 2rem; }

/* ── PROSE CONTENT LAYOUT ── */
.prose-wrap { max-width: 780px; margin: 0 auto; padding: 60px 5% 80px; }
.prose-wrap.wide { max-width: 940px; }

/* ── BLOG / ARTICLE PAGE ── */
.article-main, .main-content, main:not([class]) { padding-top: 68px; }
.article-hero { padding: 80px 5% 48px; background: var(--off-white); border-bottom: 1px solid var(--border); }
.article-hero-inner { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-top: 16px; flex-wrap: wrap; }
.article-body { max-width: 780px; margin: 0 auto; padding: 48px 5% 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .pricing-cards { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    #navbar { padding: 0 4%; }
    .nav-links { display: none; }
    .nav-cta.desktop-only { display: none; }
    .hamburger { display: block; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .compare-table { font-size: 0.82rem; }
    .compare-table td, .compare-table th { padding: 12px 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .pricing-cards { grid-template-columns: 1fr 1fr; }
    .section { padding: 56px 4%; }
    .bottom-cta { padding: 60px 4%; }
    .related-grid { grid-template-columns: 1fr; }
    .author-bio-block { flex-direction: column; }
    .trust-stats { gap: 20px; }
}
@media (max-width: 480px) {
    .pricing-cards { grid-template-columns: 1fr; }
    .proof-bar-inner { gap: 16px; }
    .proof-divider { display: none; }
}
