/* Shared styles for individual blog post / article pages.
   Used by /snagging-inspection-dublin.html and all /blog/*.html pages. */

:root {
    --primary: #03AC13;
    --primary-dark: #028A0F;
    --primary-muted: rgba(3, 172, 19, 0.1);
    --primary-subtle: #E8F9E9;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-green: 0 8px 24px rgba(3,172,19,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.7; color: var(--text-primary); background: var(--white); }

/* ── Header / Nav ── */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.nav {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.logo { display: flex; align-items: center; gap: 0.25rem; text-decoration: none; flex-shrink: 0; }
.logo img { height: 56px; width: auto; max-width: 200px; border-radius: var(--radius-sm); object-fit: contain; }
.logo-fallback {
    width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem;
}
.nav-links { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.925rem;
    padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active-link { color: var(--primary); background: var(--primary-muted); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
    display: flex; align-items: center; gap: 0.5rem; color: var(--text-primary); font-weight: 600; font-size: 0.925rem;
    text-decoration: none; padding: 0.5rem 1rem; border-radius: var(--radius-full); border: 1.5px solid var(--border); transition: var(--transition);
}
.nav-phone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-muted); }
.nav-phone i { color: var(--primary); font-size: 0.85rem; }
.btn-nav {
    background: var(--primary); color: white !important; padding: 0.625rem 1.5rem; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.925rem; text-decoration: none; transition: var(--transition);
    box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-nav:hover { background: var(--primary-dark); box-shadow: var(--shadow-green); transform: translateY(-1px); }
.mobile-toggle { display: none; flex-direction: column; cursor: pointer; padding: 0.5rem; gap: 5px; }
.mobile-toggle span { width: 24px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── Article page header (the green hero strip with title) ── */
.article-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 130px 0 70px; text-align: center;
}
.article-header .container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.article-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; line-height: 1.2; }
.article-header .article-meta { opacity: 0.9; font-size: 0.95rem; }
.article-header .article-meta a { color: white; text-decoration: underline; }

/* ── Article body ── */
.article-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 1rem; }
.article-body h2 {
    font-size: 1.6rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--text-primary);
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-subtle);
}
.article-body h3 {
    font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 0.75rem; color: var(--text-primary);
}
.article-body p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.25rem; line-height: 1.8; }
.article-body ul, .article-body ol { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body strong { color: var(--text-primary); }
.article-body a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.article-body a:hover { color: var(--primary-dark); }

/* FAQ section (collapsible) */
.faq-list { margin-top: 1rem; }
.faq-list details {
    background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; transition: var(--transition);
}
.faq-list details[open] { background: var(--white); border-color: var(--primary-muted); box-shadow: var(--shadow-sm); }
.faq-list summary {
    font-weight: 700; color: var(--text-primary); cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: var(--transition);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 1rem 0 0; color: var(--text-secondary); }

/* CTA box */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 2.5rem 2rem; border-radius: 16px; text-align: center;
    margin: 3rem 0 1rem; box-shadow: var(--shadow-green);
}
.cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-box p { color: white; opacity: 0.92; margin-bottom: 1.5rem; font-size: 1rem; }
.cta-box a {
    display: inline-block; background: white; color: var(--primary); padding: 0.85rem 2rem;
    border-radius: var(--radius-full); text-decoration: none; font-weight: 700; transition: var(--transition);
}
.cta-box a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* Back-to-blog link */
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary);
    text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-bottom: 1.5rem;
    padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.back-link:hover { color: var(--primary); background: var(--primary-muted); }

/* ── Footer ── */
.footer { background: var(--text-primary); color: white; padding: 2rem; text-align: center; font-size: 0.85rem; opacity: 0.8; }
.footer a { color: white; text-decoration: underline; opacity: 0.85; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
        background: white; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
    }
    .nav-links.active ~ .nav-cta {
        display: flex; flex-direction: column; position: absolute; top: auto; left: 0; right: 0;
        background: white; padding: 1rem; border-bottom: 1px solid var(--border);
    }
    .mobile-toggle { display: flex; }
    .article-header { padding: 110px 0 50px; }
    .article-header h1 { font-size: 1.75rem; }
    .article-body { padding: 2.5rem 1.25rem 1rem; }
    .article-body h2 { font-size: 1.35rem; }
    .article-body h3 { font-size: 1.1rem; }
    .cta-box { padding: 2rem 1.5rem; }
}

/* Real-inspection photo figures (from SnagSafe inspection app) */
.snag-figure {
    margin: 2.25rem auto;
    max-width: 640px;
    text-align: center;
}
.snag-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.12);
    border: 1px solid rgba(17, 24, 39, 0.06);
}
.snag-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary, #4B5563);
    font-style: italic;
}
.snag-figure figcaption strong {
    color: var(--text-primary, #111827);
    font-style: normal;
}
.snag-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.snag-gallery .snag-figure { margin: 0; max-width: none; }
@media (max-width: 640px) {
    .snag-gallery { grid-template-columns: 1fr; }
}
