/* =========================================================
   eDEFEND CLIENT QC OVERRIDES
   Single approved green: #248E41
========================================================= */

:root {
    --brand-green: #248E41;
    --green: #248E41;
    --icon-green: #248E41;
    --footer-green: #248E41;
    --home-green: #248E41;
    --home-green-deep: #248E41;
    --home-emerald: #248E41;
    --service-green: #248E41;
    --service-green-dark: #248E41;
}

/* Green section backgrounds must match the logo exactly. */
.site-footer,
.site-cta,
.home-section--green,
.service-section-dark,
.service-final-cta,
.about-cta,
.contact-cta {
    background: var(--brand-green) !important;
}

/* Page and section surfaces are white unless they use the approved logo green. */
body,
.home-main,
.about-main,
.service-main,
.dpdpa-main,
.grc-main,
.hww-main,
.case-main,
.contact-main,
.legal-main,
.home-hero,
.about-section,
.service-section,
.dpdpa-section,
.grc-section,
.hww-section,
.case-section,
.contact-section,
.site-faq-section,
.qc-related-section {
    background-color: #fff !important;
}

/* Alternate page sections use clean white rather than a green variation. */
.home-section--soft,
.about-section--soft,
.service-section-tint,
.grc-section--services,
.grc-section--why,
.hww-section--applies,
.dpdpa-section--soft,
.case-study-block--alternate,
.contact-hero,
.engagement-section,
.legal-main {
    background-color: #fff !important;
}

/* Re-assert approved green after the white surface rules above. */
.site-footer,
.site-cta,
.home-section--green,
.service-section-dark,
.service-final-cta,
.about-cta,
.contact-cta {
    background: var(--brand-green) !important;
}

/* Shared CTA styling follows the approved homepage interaction. */
.site-cta-button {
    min-height: 47px;
    padding: 0 22px;
    border-radius: 999px;
    transition:
        color .24s ease,
        transform .24s ease,
        box-shadow .24s ease,
        background-color .24s ease,
        border-color .24s ease;
}

.site-cta-button--primary {
    color: var(--brand-green) !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10) !important;
}

.site-cta-button--primary span {
    display: inline-block;
    transition: transform .24s ease;
}

.site-cta-button--primary:hover,
.site-cta-button--primary:focus-visible {
    color: #fff !important;
    background: #111827 !important;
    border-color: #111827 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .20) !important;
}

.site-cta-button--primary:hover span,
.site-cta-button--primary:focus-visible span {
    transform: translateX(4px);
}

.site-cta-button--secondary {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, .72) !important;
}

.site-cta-button--secondary:hover,
.site-cta-button--secondary:focus-visible {
    color: #111827 !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .16) !important;
}

/* Hero and form CTAs use the same pill, lift and rollover behaviour. */
.home-btn,
.grc-button,
.hww-button,
.service-button,
.contact-submit,
.case-button {
    min-height: 47px;
    padding-inline: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 999px !important;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    white-space: normal;
    cursor: pointer;
    transition:
        color .24s ease,
        transform .24s ease,
        box-shadow .24s ease,
        background-color .24s ease,
        border-color .24s ease !important;
}

.home-btn span,
.grc-button span,
.hww-button span,
.service-button span,
.case-button span {
    flex: 0 0 auto;
    display: inline-block;
    transition: transform .24s ease;
}

.home-btn:hover span,
.home-btn:focus-visible span,
.grc-button:hover span,
.grc-button:focus-visible span,
.hww-button:hover span,
.hww-button:focus-visible span,
.service-button:hover span,
.service-button:focus-visible span,
.case-button:hover span,
.case-button:focus-visible span {
    transform: translateX(4px);
}

.service-actions,
.grc-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.home-btn--primary,
.grc-button--primary,
.hww-button--primary,
.service-button-primary,
.contact-submit,
.case-button--primary {
    color: #fff !important;
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 12px 24px rgba(36, 142, 65, .18) !important;
}

.home-btn--primary:hover,
.home-btn--primary:focus-visible,
.grc-button--primary:hover,
.grc-button--primary:focus-visible,
.hww-button--primary:hover,
.hww-button--primary:focus-visible,
.service-button-primary:hover,
.service-button-primary:focus-visible,
.contact-submit:hover,
.contact-submit:focus-visible,
.case-button--primary:hover,
.case-button--primary:focus-visible {
    color: #fff !important;
    background: #111827 !important;
    border-color: #111827 !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17, 24, 39, .20) !important;
}

/* Remove remaining green colour variants from visible accents. */
.green-underline,
.about-green-line,
.dpdpa-green-line,
.grc-line,
.hww-line,
.case-line,
.contact-line,
.legal-line,
.service-section h2::after,
.site-faq-line,
.nav-link::after {
    background: var(--brand-green) !important;
}

.about-kicker,
.dpdpa-kicker,
.grc-kicker,
.hww-kicker,
.case-kicker,
.contact-kicker,
.legal-kicker,
.service-eyebrow,
.service-section-label,
.site-faq-kicker,
.text-link,
.footer-email {
    color: var(--brand-green);
}

/* Ten-service navigation. */
.services-dropdown {
    width: min(1040px, calc(100vw - 48px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
}

.nav-item-services:hover .services-dropdown,
.nav-item-services:focus-within .services-dropdown,
.nav-item-services.is-open .services-dropdown {
    display: grid;
}

.service-menu-item {
    min-height: 76px;
}

.service-icon,
.service-related-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
}

.service-icon img,
.service-related-icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Consistent, compact H1 system across the website. */
.service-hero h1,
.dpdpa-title,
.grc-title,
.hww-title,
#case-hero-title,
.contact-main h1,
.legal-main h1,
.about-company-copy h1 {
    max-width: 760px;
    font-size: clamp(36px, 4vw, 54px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
    text-wrap: balance;
}

#home-hero-title {
    max-width: 760px;
    font-size: clamp(42px, 5vw, 64px) !important;
    line-height: 1.05 !important;
    text-wrap: balance;
}

.service-hero-content,
.dpdpa-hero-copy,
.grc-hero-copy {
    min-width: 0;
}

/* Related-service cards used consistently across all service pages. */
.service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qc-related-section {
    padding: 78px 0;
    border-top: 1px solid #edf1f3;
    background: #fff;
}

.qc-related-container {
    width: min(calc(100% - 64px), 1180px);
    margin-inline: auto;
}

.qc-related-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.qc-related-heading span {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.qc-related-heading h2 {
    margin: 0;
    color: #151e2b;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.service-related-card {
    min-height: 150px;
    padding: 24px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 16px;
    align-items: start;
    border: 1px solid #dfe8e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(23, 32, 51, .055);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.service-related-card:hover,
.service-related-card:focus-visible {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(23, 32, 51, .10);
    outline: none;
}

.service-related-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    border: 1px solid rgba(36, 142, 65, .24);
}

.service-related-card strong,
.service-related-card small {
    display: block;
}

.service-related-card strong {
    color: #172033;
    font-size: 17px;
    line-height: 1.4;
}

.service-related-card small {
    margin-top: 9px;
    color: #66758b;
    font-size: 13px;
    line-height: 1.6;
}

.service-related-arrow {
    margin-top: 8px;
}

.about-company-copy h1 {
    margin: 0;
    color: #151e2b;
    font-size: clamp(31px, 3.7vw, 49px);
    line-height: 1.08;
    letter-spacing: -.046em;
}

.footer-badge {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .45) !important;
}

.footer-links a {
    font-size: 16px !important;
}

.hww-applies-list a {
    color: inherit;
}

.hww-applies-list a:hover,
.hww-applies-list a:focus-visible {
    color: var(--brand-green);
}

@media (max-width: 960px) {
    .services-dropdown,
    .nav-item-services:hover .services-dropdown,
    .nav-item-services:focus-within .services-dropdown,
    .nav-item-services.is-open .services-dropdown {
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
    }

    .nav-item-services.is-open .services-dropdown {
        display: grid;
    }

    .service-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .service-hero h1,
    .dpdpa-title,
    .grc-title,
    .hww-title,
    #case-hero-title,
    .contact-main h1,
    .legal-main h1,
    .about-company-copy h1 {
        font-size: clamp(32px, 10vw, 38px) !important;
    }

    #home-hero-title {
        max-width: 100% !important;
        font-size: clamp(34px, 9.5vw, 39px) !important;
        line-height: 1.08 !important;
    }

    .hero-kicker {
        max-width: 100%;
        min-height: 0;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        white-space: normal;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    .service-actions .home-btn,
    .dpdpa-hero .home-btn,
    .grc-hero-actions .grc-button {
        width: 100%;
    }
}

/* =========================================================
   APPROVED HOMEPAGE HERO SYSTEM
   All content-led hero sections use the homepage proportions.
   About and Contact intentionally retain their own structures.
========================================================= */

:is(.service-hero, .dpdpa-hero, .grc-hero, .hww-hero, .case-hero) {
    position: relative;
    padding: 52px 0 40px !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 26%, rgba(36, 142, 65, .055), transparent 30%),
        #fff !important;
}

:is(.service-hero, .dpdpa-hero, .grc-hero, .hww-hero, .case-hero)::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    right: -170px;
    top: -185px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 142, 65, .08), rgba(36, 142, 65, 0) 70%);
    pointer-events: none;
}

:is(.service-hero-grid, .dpdpa-hero-grid, .grc-hero-grid, .hww-hero-grid, .case-hero-grid) {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 64px), 1180px) !important;
    min-height: 0 !important;
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: .94fr 1.06fr !important;
    gap: 58px !important;
    align-items: center !important;
}

:is(.service-hero-content, .dpdpa-hero-copy, .grc-hero-copy, .hww-hero-copy, .case-hero-copy) {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: none !important;
}

:is(.service-eyebrow, .dpdpa-hero .dpdpa-kicker, .grc-hero .grc-kicker, .hww-hero .hww-kicker, .case-hero .case-kicker) {
    min-height: 28px;
    padding: 0 12px !important;
    margin: 0 0 23px !important;
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #d7ecde !important;
    border-radius: 999px !important;
    color: var(--brand-green) !important;
    background: #f7fcf9 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

:is(.service-hero h1, .dpdpa-title, .grc-title, .hww-title, #case-hero-title) {
    max-width: 760px !important;
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(42px, 5vw, 64px) !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: -.045em !important;
    text-wrap: balance;
}

.service-hero-copy,
.dpdpa-hero-copy > p,
.grc-hero-copy > p,
.hww-hero-copy > p,
.case-hero-copy > p {
    max-width: 590px !important;
    color: #66758c !important;
    font-size: 16px !important;
    line-height: 1.72 !important;
}

.service-hero-copy,
.dpdpa-hero-copy > p,
.grc-hero-copy > p:first-of-type,
.hww-hero-copy > p:first-of-type,
.case-hero-copy > p {
    margin: 24px 0 0 !important;
}

.grc-hero-copy > p + p,
.hww-hero-copy > p + p {
    margin: 9px 0 0 !important;
}

:is(.service-actions, .grc-hero-actions, .hww-hero-actions, .case-hero-actions) {
    margin-top: 27px !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.dpdpa-hero-copy > .home-btn {
    margin-top: 27px !important;
}

:is(.service-hero, .dpdpa-hero, .grc-hero, .hww-hero, .case-hero)
    :is(.home-btn, .grc-button, .hww-button, .case-button) {
    min-height: 47px !important;
    padding: 0 22px !important;
    width: fit-content;
    border-radius: 999px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

:is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image) {
    position: relative;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
}

:is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image)::before,
:is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image)::after {
    display: none !important;
}

:is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image) img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 42px rgba(20, 42, 34, .10) !important;
}

.service-trust-line {
    margin-top: 28px !important;
}

.case-hero .case-line {
    display: none;
}

.case-hero .case-draft-note {
    margin-top: 22px !important;
}

@media (max-width: 1060px) {
    :is(.service-hero-grid, .dpdpa-hero-grid, .grc-hero-grid, .hww-hero-grid, .case-hero-grid) {
        gap: 45px !important;
    }
}

@media (max-width: 900px) {
    :is(.service-hero-grid, .dpdpa-hero-grid, .grc-hero-grid, .hww-hero-grid, .case-hero-grid) {
        width: min(calc(100% - 38px), 1180px) !important;
        grid-template-columns: 1fr !important;
    }

    :is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image) {
        width: 100% !important;
        max-width: 690px !important;
        margin-inline: auto !important;
    }
}

@media (max-width: 620px) {
    :is(.service-hero, .dpdpa-hero, .grc-hero, .hww-hero, .case-hero) {
        padding-top: 42px !important;
    }

    :is(.service-hero-grid, .dpdpa-hero-grid, .grc-hero-grid, .hww-hero-grid, .case-hero-grid) {
        width: calc(100% - 30px) !important;
        gap: 36px !important;
    }

    :is(.service-hero h1, .dpdpa-title, .grc-title, .hww-title, #case-hero-title) {
        font-size: clamp(36px, 11vw, 44px) !important;
    }

    :is(.service-hero, .dpdpa-hero, .grc-hero, .hww-hero, .case-hero)
        :is(.home-btn, .grc-button, .hww-button, .case-button) {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    :is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image) img {
        animation: approvedHeroFloat 7s ease-in-out 1.1s infinite alternate;
    }
}

@keyframes approvedHeroFloat {
    to { transform: translateY(-6px); }
}

/* =========================================================
   HIGH-RESOLUTION SHELL + DARK FOOTER + iOS STABILITY
========================================================= */

:root {
    --site-shell-width: 1180px;
    --site-shell-gutter: 64px;
    --footer-text: #cbd5e1;
    --footer-soft: #dbe4ee;
}

:is(
    .site-header,
    .home-container,
    .about-container,
    .service-container,
    .dpdpa-container,
    .grc-container,
    .hww-container,
    .case-container,
    .contact-container,
    .legal-container,
    .qc-related-container,
    .footer-container
) {
    width: min(calc(100% - var(--site-shell-gutter)), var(--site-shell-width)) !important;
    margin-inline: auto !important;
}

.site-header {
    padding-left: 1px !important;
}

.hww-top-section.service-section {
    padding: 56px 0 0 !important;
}

@media (max-width: 760px) {
    .hww-top-section.service-section {
        padding-top: 44px !important;
    }
}

@media (min-width: 1440px) {
    :root { --site-shell-width: 1280px; --site-shell-gutter: 80px; }
}

@media (min-width: 1680px) {
    :root { --site-shell-width: 1380px; --site-shell-gutter: 96px; }
}

@media (min-width: 1920px) {
    :root { --site-shell-width: 1440px; --site-shell-gutter: 112px; }
}

@media (max-width: 900px) {
    :root { --site-shell-gutter: 38px; }
}

@media (max-width: 620px) {
    :root { --site-shell-gutter: 30px; }
}

/* Approved footer surface across every page. */
.site-footer {
    background: linear-gradient(135deg, rgb(16, 24, 37) 0%, rgb(22, 34, 51) 100%) !important;
}

.footer-title {
    display: inline-flex !important;
    flex-direction: column;
    gap: 11px;
}

.footer-title::after {
    content: "";
    width: 64px;
    height: 2px;
    display: block;
    background: #248E41;
    border-radius: 999px;
}

.footer-description,
.location-block span {
    color: #cbd5e1 !important;
}

.footer-services .footer-links {
    gap: 18px !important;
}

.footer-links a,
.footer-email {
    position: relative;
    width: fit-content;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: -.018em !important;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color .2s ease, text-decoration-color .2s ease !important;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
    color: #fff !important;
    text-decoration-color: currentColor;
}

.footer-badge {
    min-width: 0;
    color: #111827 !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
}

.badge-dot {
    color: #fff !important;
}

.footer-divider {
    background: rgba(255, 255, 255, .18) !important;
}

/* Legal links intentionally retain the quieter footer-bottom style. */
.footer-legal a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    text-decoration: none;
}

@media (hover: none), (pointer: coarse) {
    :is(.service-hero-media, .dpdpa-hero-image, .grc-hero-image, .hww-hero-image, .case-hero-image) img {
        animation: none !important;
        transform: none !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}
