/* Shared styles for the service pages and 404 (generated by tools/build_pages.py).
   Nav, buttons and footer mirror the homepage's inline CSS in index.html - keep them in step. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }

/* Navigation (matches homepage) */
nav#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    padding: 2px 0;
    transition: all 0.3s;
}
nav#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
.nav-logo { display: flex; align-items: center; }
.nav-full-logo { height: 105px; width: auto; transition: transform 0.3s; }
.nav-full-logo:hover { transform: scale(1.05); }
.nav-menu { display: flex; list-style: none; gap: 3rem; }
.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0077CC;
    transition: width 0.3s;
}
.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after { width: 100%; }
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: 0;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 999;
}
.mobile-menu.active { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid #f0f0f0; }
.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.mobile-menu a:hover { background: #f8f9fa; color: #0077CC; }

/* Buttons (matches homepage) */
.cta-group { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.btn {
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary { background: #0077CC; color: white; }
.btn-primary:hover { background: #005fa3; transform: translateY(-2px); }
.btn-secondary { border: 2px solid #0077CC; color: #0077CC; }
.btn-secondary:hover { background: #0077CC; color: white; }
.btn-light { background: white; color: #0077CC; }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.8); color: white; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* Page header */
.page-hero {
    background: #fafafa;
    padding: 170px 0 70px;
}
.page-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.breadcrumb { font-size: 0.9rem; color: #666; margin-bottom: 1.25rem; }
.breadcrumb a { color: #0077CC; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.page-hero .lead { font-size: 1.25rem; color: #555; margin-bottom: 2rem; }

/* Article copy */
.article { max-width: 860px; margin: 0 auto; padding: 60px 40px 80px; font-size: 1.08rem; color: #222; }
.article h2 { font-size: 1.8rem; line-height: 1.25; margin: 2.6rem 0 1rem; color: #000; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; color: #000; }
.article p { margin-bottom: 1.1rem; }
.article ul, .article ol { margin: 0 0 1.3rem 1.4rem; }
.article li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.article a { color: #0077CC; text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: #005fa3; }
.faq { margin-top: 3rem; padding-top: 2.4rem; border-top: 2px solid #eee; }

/* Related services */
.related { background: #fafafa; padding: 70px 0; }
.related-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.related h2 { font-size: 2rem; margin-bottom: 1.8rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.related-card {
    display: block;
    padding: 2rem;
    background: white;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid #0077CC;
    transition: all 0.3s;
}
.related-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateX(6px); }
.related-title { display: block; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; color: #000; }
.related-text { display: block; color: #666; }

/* Call-to-action band */
.cta-band { background: #0077CC; color: white; padding: 80px 0; }
.cta-band-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; text-align: center; }
.cta-band h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.cta-band p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 2rem; }
.cta-band .cta-group { justify-content: center; }

/* Footer (matches homepage) */
footer { background: #000; color: white; padding: 40px 20px; text-align: center; }
footer a { color: white; }
.footer-emblem { height: 50px; width: auto; margin-bottom: 1rem; opacity: 0.8; }
.footer-links { margin-bottom: 0.8rem; }
.footer-links a { display: inline-block; margin: 0.2rem 0.8rem; text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 1100px) {
    .nav-menu { gap: 1.5rem; }
    .nav-container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-full-logo { height: 75px; }
    .page-hero { padding: 130px 0 50px; }
    .page-hero-inner, .article, .related-inner, .cta-band-inner { padding-left: 20px; padding-right: 20px; }
    .page-hero .lead { font-size: 1.1rem; }
    .btn { padding: 12px 25px; font-size: 15px; font-weight: 700; }
    .article { padding-top: 40px; font-size: 1.02rem; }
    .article h2 { font-size: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .cta-band h2 { font-size: 1.9rem; }
}
