:root{--blue:#0d47a1;--black:#111111;--yellow:#ffcc00;--white:#ffffff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.6;color:#222;background:#fff}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.site-header{position:sticky;top:0;z-index:1000;color:#fff}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.site-title{color:#fff;font-weight:700}
.primary-nav .menu{list-style:none;margin:0;padding:0;display:flex;gap:16px}
.primary-nav .menu a{color:#fff;padding:8px}
.header-cta .btn{background:var(--yellow);color:#000;padding:10px 16px;border-radius:6px;display:inline-block}
.btn{display:inline-block;border:0;border-radius:10px;padding:12px 18px;cursor:pointer;transition:box-shadow .2s ease,transform .2s ease}
.btn-primary{background:var(--blue);color:#fff}
.btn-outline{border:2px solid var(--blue);color:var(--blue);background:transparent}
.btn-contrast{background:var(--yellow);color:#000}
.btn-contrast:hover{background:#e6b800}
.btn:focus-visible{outline:3px solid rgba(13,71,161,.35);outline-offset:2px}
.section{padding:56px 0}
.section h2{margin-top:0;margin-bottom:24px;font-size:32px;letter-spacing:.2px}
.lead{font-size:18px;max-width:700px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.stat{background:#f7f7f7;padding:18px;border-radius:18px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.stat-value{font-size:30px;font-weight:800}
.stats-blue .stat-value,.stats-blue .stat-label{color:var(--blue)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cards .card{border:1px solid #eaeaea;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.06);background:#fff;transition:transform .2s ease,box-shadow .2s ease}
.cards .card h3{margin-top:0;font-size:20px;font-weight:800;line-height:1.25}
.cards .card p{margin:8px 0;line-height:1.65;color:#444}
.cards .card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.gallery .gallery-item{border:1px solid #eaeaea;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06);transition:transform .2s ease,box-shadow .2s ease}
.gallery .gallery-item:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,0,0,.10)}
.gallery .gallery-item img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transform-origin:center;transition:transform .25s ease}
.gallery .gallery-item:hover img{transform:scale(1.02)}
.gallery figcaption{padding:8px;background:#fafafa}
.section-actions{margin-bottom:12px;display:flex;gap:8px;flex-wrap:wrap}
.hero{background:linear-gradient(135deg,var(--blue),#0b3a86);color:#fff;position:relative}
.hero .hero-content{position:relative;z-index:1}
.hero .cta{margin-top:24px}
.hero-bg{position:absolute;inset:0;opacity:.05;pointer-events:none;background:radial-gradient(circle at 20% 20%,var(--yellow),transparent 40%),radial-gradient(circle at 80% 60%,#fff,transparent 40%)}
.site-footer{color:#fff;padding:40px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px}
.footer-col h3{margin-top:0;color:#fff}
.footer-desc{margin:12px 0}
.footer-social a{margin-right:8px;display:inline-flex;align-items:center}
.footer-logo-desc{margin:8px 0;line-height:1.6;opacity:.9}
.footer-copy{margin-top:12px;font-size:14px;opacity:.8}
.thumb{overflow:hidden;border-radius:14px;background:#f8f8f8;width:100%;aspect-ratio:16/9}
.thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.card a:hover .thumb img{transform:scale(1.02)}
/* Services cards layout fixes */
.cards-services .card-service{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:280px}
.cards-services .card-title{display:flex;align-items:center;gap:8px;justify-content:center}
.cards-services .card-desc{flex-grow:1}
.cards-services .card-actions{margin-top:12px;align-self:center}
.category-block{margin-bottom:28px}
.category-title{font-size:22px;font-weight:800;margin:0 0 12px}
.category-details{margin-top:16px}
.service-detail{border:1px solid #eaeaea;border-radius:12px;padding:16px;margin:12px 0;background:#fafafa}
.service-detail-title{margin:0 0 8px;font-size:18px;font-weight:700}
.service-detail-desc{margin:0;line-height:1.65}
/* Reviews buttons layout */
.buttons-reviews{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.reviews .stars{font-size:18px}
.abs-review-stars{color:var(--yellow)}
.abs-review-stars svg{fill:var(--yellow);stroke:var(--yellow)}
.section-title{display:flex;align-items:center}
.section-title .icon{display:inline-flex;margin-right:8px}
.section-title .icon svg{width:20px;height:20px}
.verified-badge{color:var(--blue);display:inline-flex;align-items:center}
.related-articles{margin-top:24px}
.related-articles h2{margin:0 0 12px;font-size:22px;font-weight:800}
.related-grid .card p{color:#555}
.service-link-box{margin-top:12px;padding:10px 12px;border:1px solid #eaeaea;border-radius:10px;background:#fafafa}
.faq-list{max-width:900px;margin:0 auto}
.faq-item{border:1px solid #eaeaea;border-radius:12px;margin-bottom:12px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.05)}
.faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:transparent;border:0;cursor:pointer;font-size:16px;font-weight:700}
.faq-toggle{display:inline-flex;align-items:center}
.faq-toggle .icon-minus{display:none}
.faq-item.open .faq-toggle .icon-plus{display:none}
.faq-item.open .faq-toggle .icon-minus{display:inline}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .22s ease}
.faq-answer-inner{padding:0 16px 16px 16px;color:#444}
.faq-item.open .faq-answer{max-height:400px}

/* Pagination */
.pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:40px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid #ddd;border-radius:8px;color:var(--black);font-weight:600;transition:all .2s}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:var(--blue);color:#fff;border-color:var(--blue);text-decoration:none}
.pagination .page-numbers.dots{border:none;background:transparent}

@media (max-width:900px){
.grid{grid-template-columns:repeat(2,1fr)}
.stats{grid-template-columns:repeat(2,1fr)}
.footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
.grid{grid-template-columns:1fr}
.stats{grid-template-columns:1fr}
}

/* Mobile Header & Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.menu-toggle span:last-child { margin-bottom: 0; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Desktop Adjustment */
@media (min-width: 769px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .primary-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    .primary-nav .menu {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 20px;
    }
    .header-cta {
        margin-left: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 12px 16px;
    }
    
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        /* background color set in header.php inline style */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        padding: 80px 20px 40px;
    }
    
    .primary-nav.active { right: 0; }
    
    .primary-nav .menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
        display: flex;
    }
    
    .primary-nav .menu li {
        width: 100%;
    }
    
    .primary-nav .menu a {
        display: block;
        padding: 12px;
        font-size: 18px;
        color: #fff;
    }
    
    .header-cta {
        margin: 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .header-cta .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    body.menu-open { overflow: hidden; }
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--blue), #0b3a86);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.blog-hero-desc {
    font-size: 1.25rem;
    margin: 0 0 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.blog-search-form {
    max-width: 60%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

/* Ensure content below hero is layered correctly */
.site-main {
    position: relative;
    z-index: 1;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #999;
}

.search-icon svg {
    width: 24px;
    height: 24px;
}

.search-field {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    padding: 12px 0;
    -webkit-appearance: none;
}

.search-submit {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.search-submit:hover {
    background: #003c8f;
    transform: scale(1.05);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 50px 0;
    }

    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-desc {
        font-size: 1.1rem;
    }

    .blog-search-form {
        max-width: 100%;
    }
    
    .search-input-wrapper {
        padding: 6px;
    }
    
    .search-icon {
        padding: 0 12px;
    }
    
    .search-submit {
        width: 40px;
        height: 40px;
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-align: left;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    
    /* Animation State: Hidden */
    opacity: 0;
    transform: translateY(-5px);
    visibility: hidden;
    transition: all 0.2s ease;
    display: block; /* Override default display: none if present in HTML via JS */
}

.search-suggestions.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.search-suggestions li {
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions a, 
.search-suggestions .no-results {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 16px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.search-suggestions a:hover, 
.search-suggestions a.selected {
    background: #f7f9fc;
    color: var(--blue);
}

.search-suggestions .no-results {
    color: #888;
    font-style: italic;
    cursor: default;
}

.search-suggestions .suggestion-highlight {
    font-weight: bold;
    color: var(--blue);
}


