/* ══════════════════════════════════════════
   RenoCalc — Shared Components
   ══════════════════════════════════════════ */


/* ── NAV ── */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 56px; width: auto; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--cyan); color: var(--white) !important;
    padding: 10px 22px; border-radius: 8px;
    font-weight: 700; font-size: 0.875rem;
    text-decoration: none !important; white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-cyan);
}
.nav-cta:hover { background: var(--cyan-dark) !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-drawer {
    position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
    background: var(--white); padding: 80px 32px 32px;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open .mobile-drawer { transform: translateX(0); }
.mobile-drawer ul { list-style: none; }
.mobile-drawer li { border-bottom: 1px solid var(--border); }
.mobile-drawer a { display: block; padding: 16px 0; font-weight: 600; color: var(--text-primary); text-decoration: none; font-size: 1rem; }
.mobile-drawer .mobile-cta { display: block; margin-top: 24px; text-align: center; background: var(--cyan); color: var(--white); padding: 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }

/* ── BUTTONS ── */
.hero-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--cyan); color: var(--white);
    padding: 18px 40px; border-radius: 100px;
    font-size: 1.1rem; font-weight: 700; text-decoration: none;
    min-height: 60px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 32px rgba(22,194,213,0.35);
    margin-bottom: 16px;
}
.hero-cta-btn:hover {
    background: var(--cyan-dark); color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(22,194,213,0.4);
}
.btn-primary-lg {
    padding: 16px 36px; background: var(--cyan);
    color: var(--white) !important; border-radius: 10px;
    font-size: 1rem; font-weight: 700;
    text-decoration: none !important; min-height: 54px;
    display: inline-flex; align-items: center; gap: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-cyan);
}
.btn-primary-lg:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 16px 48px rgba(22,194,213,0.35); }
.btn-secondary-lg {
    padding: 16px 32px; background: rgba(255,255,255,0.08);
    color: var(--white) !important; border-radius: 10px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none !important; min-height: 54px;
    display: inline-flex; align-items: center; gap: 10px;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: background 0.2s, border-color 0.2s;
}
.btn-secondary-lg:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }

/* ── CARDS ── */
.step-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 16px; padding: 32px 28px;
    position: relative; z-index: 1;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.step-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--cyan); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; font-weight: 800;
    margin-bottom: 20px; box-shadow: var(--shadow-cyan);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

.feature-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 16px; padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--cyan-light); display: flex; align-items: center;
    justify-content: center; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }
.feature-tag {
    display: inline-block; margin-top: 14px;
    background: var(--cyan-light); color: var(--cyan-dark);
    padding: 3px 10px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── TESTIMONIAL CARDS ── */
.review-card-light {
    flex-shrink: 0; width: 340px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 16px; padding: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.review-card-light:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); }
.review-card-light .r-stars { color: var(--amber); font-size: 0.85rem; margin-bottom: 12px; }
.review-card-light p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.review-author-light { display: flex; align-items: center; gap: 10px; }
.r-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--cyan); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.r-name { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.r-role { font-size: 0.75rem; color: var(--text-muted); }

/* ── PRICING CARDS ── */
.price-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 16px; padding: 24px 18px;
    text-align: center; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.price-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border-color: var(--cyan); box-shadow: var(--shadow-cyan); position: relative; }
.price-card.featured::before {
    content: 'Most Popular';
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--cyan); color: var(--white);
    padding: 3px 14px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.price-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.price-amount sup { font-size: 1rem; vertical-align: top; margin-top: 6px; display: inline-block; }
.price-period { font-size: 0.78rem; color: var(--text-muted); margin: 6px 0 16px; }
.price-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.price-cta {
    display: flex; align-items: center; justify-content: center;
    padding: 11px; background: var(--surface); color: var(--text-primary);
    border-radius: 8px; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; transition: background 0.2s; min-height: 44px;
}
.price-cta:hover { background: var(--border); color: var(--text-primary); }
.price-card.featured .price-cta { background: var(--cyan); color: var(--white); }
.price-card.featured .price-cta:hover { background: var(--cyan-dark); }

/* ── FAQ ACCORDION ── */
.faq-item {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.faq-q {
    width: 100%; padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 600;
    color: var(--text-primary); text-align: left; gap: 12px;
    transition: background 0.2s;
}
.faq-q:hover { background: var(--surface); }
.faq-q .faq-icon {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--surface); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s, background 0.3s;
    font-size: 1rem; line-height: 1; color: var(--cyan);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--cyan); color: var(--white); }
.faq-a {
    padding: 0 20px; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s;
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 400px; }
.faq-a a { color: var(--cyan); }

/* ── BOTTOM CTA SECTION ── */
.bottom-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2535 100%);
    padding: 80px 5%; text-align: center; position: relative; overflow: hidden;
}
.bottom-cta::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(22,194,213,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.bottom-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: var(--white);
    margin-bottom: 16px; letter-spacing: -0.02em; position: relative;
}
.bottom-cta p { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 36px; position: relative; }
.cta-btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── AUTHOR BIO ── */
.author-bio-block {
    background: var(--surface); border-radius: 16px; padding: 32px;
    display: flex; gap: 24px; align-items: flex-start;
    border: 1.5px solid var(--border); margin-top: 48px;
}
.author-bio-block img {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 3px solid var(--cyan);
}
.author-bio-content h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.author-bio-content .author-title { font-size: 0.82rem; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.author-bio-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ── RELATED ARTICLES ── */
.related-articles { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
    text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.related-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); }
.related-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface); }
.related-card-body { padding: 16px; flex: 1; }
.related-card-body span { font-size: 0.72rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.related-card-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin: 6px 0; line-height: 1.4; }
.related-card-body p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ── BREADCRUMB ── */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--text-muted);
    padding: 12px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--border-dark); }
.breadcrumb .current { color: var(--text-secondary); }

/* ── TRUST STATS ROW ── */
.trust-stats {
    display: flex; gap: 32px; flex-wrap: wrap;
    padding: 20px 0; align-items: center;
}
.trust-stat { display: flex; align-items: center; gap: 10px; }
.trust-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.trust-stat-label { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.3; }

/* ── SNACKBAR / BADGE ── */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
    background: var(--cyan-light); color: var(--cyan-dark);
}
.badge-amber { background: var(--amber-light); color: #92400E; }
.badge-green { background: var(--green-light); color: #065F46; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
