/**
 * DHCS Advisory Group – Main styles. No external resources.
 * Colors: bg #0a0e17, accent #090c9b, CTA blue #004DFF, text light #e8eef4
 */

/* Resets & base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0e17;
    color: #e8eef4;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute;
    top: -3rem;
    left: 0;
    padding: 0.5rem 1rem;
    background: #090c9b;
    color: #fff;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Header – sticky on all pages; high z-index so dropdowns/menus sit below it */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    transition: background 0.2s, box-shadow 0.2s;
}
.site-header.is-sticky {
    background: #0a0e17;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom: 2px solid #090c9b;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}
.logo-link { display: inline-block; flex-shrink: 0; }
.logo-img { height: 52px; width: auto; max-width: 200px; object-fit: contain; }
.site-header.is-sticky .logo-img { height: 44px; max-width: 180px; }

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nav-list a {
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #e8eef4;
    position: relative;
    transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a.active { color: #fff; }
.nav-list a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.25rem;
    height: 3px;
    background: #090c9b;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-cta a.btn { padding: 0.5rem 1.25rem; border: 2px solid #fff; border-radius: 2rem; }
.nav-cta a.btn:hover { background: rgba(255,255,255,0.1); }
.nav-search { opacity: 0.9; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 1px; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: #0a0e17;
        flex-direction: column;
        align-items: stretch;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 1001;
    }
    .main-nav.is-open .nav-list { transform: translateX(0); }
    /* Menu content starts below sticky header so hamburger stays visible to close */
    .main-nav .nav-list { padding-top: 5rem; }
    .nav-list a::after { left: 0; right: auto; width: 4rem; }
}

/* Main content – scroll-margin for skip-link; top padding so content is not hidden under sticky header */
#mainContent { scroll-margin-top: 5.5rem; }
.main-content {
    min-height: 50vh;
    padding-top: 5rem; /* matches header height so sticky header does not overlap content */
}
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero slider */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: #004DFF;
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,77,255,0.85) 0%, rgba(0,77,255,0.4) 50%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
}
.hero-content { max-width: 560px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 0.5rem; color: #fff; line-height: 1.15; }
.hero-subtitle { font-size: 1.15rem; margin: 0 0 1.5rem; color: rgba(255,255,255,0.95); }
.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #0a0e17;
    font-weight: 700;
    border-radius: 2rem;
    transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: #e8eef4; color: #0a0e17; }
.hero-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
}
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
}
.hero-dot.active { background: #fff; }
.hero-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.hero-arrow:hover { background: rgba(255,255,255,0.4); }
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Sections common */
.section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title { font-size: 2rem; margin: 0 0 1rem; color: #fff; }
.section-lead { font-size: 1.1rem; color: #e8eef4; margin: 0 0 2rem; max-width: 640px; }

/* Intro */
.intro { background: #0a0e17; }

/* Services overview */
.services-overview { background: #050810; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.service-card:hover { border-color: #090c9b; background: rgba(9,12,155,0.08); }
.service-card h3 { margin: 0 0 0.5rem; color: #fff; font-size: 1.15rem; }
.service-card p { margin: 0; font-size: 0.95rem; color: #b0b8c4; }

/* Exponential impact */
.exponential { background: #0a0e17; }
.exponential .section-title { font-size: 1.75rem; }

/* Insights / News */
.insights { background: #050810; }
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.insight-card {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.insight-card img { width: 100%; height: 180px; object-fit: cover; }
.insight-card .card-body { padding: 1.25rem; }
.insight-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #fff; }
.insight-card p { margin: 0; font-size: 0.9rem; color: #b0b8c4; }

/* What clients say */
.clients-say { background: #000A25; padding: 4rem 1.5rem; }
.clients-say .section-title { text-align: center; margin-bottom: 2rem; }
.testimonial {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: #e8eef4;
    line-height: 1.6;
}
.testimonial cite { display: block; margin-top: 1rem; font-size: 0.95rem; color: #b0b8c4; font-style: normal; }

/* Footer */
.site-footer {
    background: #0a0e17;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand .footer-logo { margin-bottom: 1rem; max-height: 48px; width: auto; }
.footer-address, .footer-contact { margin: 0.35rem 0; font-size: 0.9rem; color: #b0b8c4; }
.footer-contact a { text-decoration: underline; }
.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 1rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #b0b8c4; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.copyright { margin: 0; font-size: 0.85rem; color: #b0b8c4; }
.back-to-top { font-size: 0.9rem; color: #e8eef4; }
.back-to-top:hover { color: #fff; }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.25rem; font-weight: 700; border-radius: 2rem; transition: background 0.2s, color 0.2s; }
.btn-primary { background: #004DFF; color: #fff; border: 2px solid #004DFF; }
.btn-primary:hover { background: #003dcc; border-color: #003dcc; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Service page */
.service-hero {
    background: #004DFF;
    padding: 4rem 1.5rem;
    text-align: center;
}
.service-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.5rem; color: #fff; }
.service-hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.95); margin: 0; }
.service-content { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; }
.service-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: #fff; }
.service-content p { margin: 0 0 1rem; color: #e8eef4; }
.capabilities-list { margin: 1rem 0; }
.capabilities-list li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: #e8eef4; }
.capabilities-list li:last-child { border-bottom: none; }
.cta-block {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(9,12,155,0.15);
    border-radius: 8px;
    margin-top: 2rem;
}
.cta-block .btn { margin-top: 0.5rem; }

/* Page hero (partials: events, faq, contact) – matches Services banner style */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #0a0e17;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.6) 55%, transparent 100%);
    z-index: 0;
}
.page-hero__card {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}
.page-hero__label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.8);
}
.page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
    line-height: 1.2;
}
.page-hero__lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 560px;
}

/* FAQ accordion */
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: block;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: " +"; float: right; font-weight: 400; opacity: 0.8; }
.faq-item[open] .faq-question::after { content: " −"; }
.faq-answer { padding: 0 1.25rem 1rem; }
.faq-answer p { margin: 0; color: #b0b8c4; line-height: 1.6; }
.faq-answer a { color: #004DFF; text-decoration: underline; }
.faq-answer a:hover { color: #e8eef4; }

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}
.contact-form-block .section-title,
.contact-details-block .section-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.contact-form label { display: block; margin: 0.5rem 0 0.25rem; color: #e8eef4; font-size: 0.95rem; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { margin-top: 1rem; }
.message { padding: 0.75rem 1rem; border-radius: 6px; margin: 0 0 1rem; }
.message.success { background: rgba(0,120,60,0.2); border: 1px solid rgba(0,120,60,0.4); color: #a8e6cf; }
.message.error { background: rgba(180,0,0,0.2); border: 1px solid rgba(180,0,0,0.4); color: #ffb3b3; }
.contact-details-block p { margin: 0.5rem 0; color: #b0b8c4; font-size: 0.95rem; }
.contact-details-block a { color: #004DFF; text-decoration: underline; }
.contact-details-block a:hover { color: #e8eef4; }
.address-block { margin-top: 1rem !important; }
.business-inquiry { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.business-inquiry .section-lead { margin-bottom: 1rem; }
.map-placeholder { margin-top: 2rem; }
.map-placeholder-inner {
    min-height: 280px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b8c4;
    font-size: 0.95rem;
}
.map-placeholder-inner p { margin: 0; }
@media (max-width: 700px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* DHCS shared footer (partials/footer.php) – same as index.php */
.cmp-experiencefragment--footer,
.cmp-experiencefragment--footer .cmp-container,
.cmp-experiencefragment--footer .aem-Grid,
.cmp-footer, .cmp-footer__top, .cmp-footer__top .cmp-footer__wrapper,
.cmp-footer__top .cmp-footer__col-wrap,
div.footer.aem-GridColumn { width: 100%; max-width: none; }
.cmp-footer, .cmp-experiencefragment--footer, .cmp-footer__top,
.cmp-footer__top .cmp-footer__wrapper, .cmp-footer__top .cmp-footer__col-wrap { background: #0a0e17; }
.cmp-footer__bottom, .cmp-footer__bottom .cmp-footer__wrapper,
.cmp-footer__tagline.cmp-footer__copyright { background: #050810; }
.cmp-footer__top .cmp-footer__wrapper { padding: 2rem 1.5rem; }
.cmp-footer__top .cmp-footer__col-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}
.cmp-footer__top .cmp-footer__col-wrap .cmp-footer__title .cmp-title__text {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 1rem;
}
.cmp-footer__top .cmp-footer__text,
.cmp-footer__top .cmp-footer__text ul { color: #b0b8c4; }
.cmp-footer__top .cmp-footer__text a { color: inherit; text-decoration: underline; }
.cmp-footer__top .cmp-footer__text a:hover { color: #e8eef4; }
.cmp-footer__top .cmp-footer__text ul li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
}
.cmp-footer__top .cmp-footer__text ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cmp-footer__logo .cmp-image__image,
.cmp-footer__logo-contact .cmp-image__image { height: auto; max-height: 80px; max-width: 220px; width: auto; object-fit: contain; }
.cmp-footer__bottom .cmp-footer__wrapper { padding: 1rem 1.5rem; }
.cmp-footer__signature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; color: #b0b8c4; font-size: 0.9rem; }
.cmp-footer__signature-left { flex-shrink: 0; }
.cmp-footer__signature-right { display: flex; align-items: center; gap: 0.75rem; }
.cmp-footer__signature-mti { color: #b71c1c; text-decoration: underline; }
.cmp-footer__signature-mti:hover { color: #8b0000; }
.cmp-footer__contact { margin: 0 0 0.35rem; font-size: 0.9rem; color: #b0b8c4; }
.cmp-footer__contact a { color: inherit; text-decoration: underline; }
.cmp-footer__contact a:hover { color: #e8eef4; }
.cmp-scroll-to-top { display: inline-flex; align-items: center; color: inherit; opacity: 0.8; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.cmp-scroll-to-top:hover { opacity: 1; }
@media (max-width: 1200px) {
    .cmp-footer__top .cmp-footer__col-wrap { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
    .cmp-footer__logo-contact { grid-column: span 3; }
}
@media (max-width: 768px) {
    .cmp-footer__top .cmp-footer__col-wrap { grid-template-columns: repeat(2, 1fr); }
    .cmp-footer__logo-contact { grid-column: span 2; }
}
@media (max-width: 576px) {
    .cmp-footer__top .cmp-footer__col-wrap { grid-template-columns: 1fr; }
    .cmp-footer__logo-contact { grid-column: 1; }
}
