:root {
    --brand-primary: #1b3d6d;
    --brand-primary-hover: #14325c;
    --brand-dark: #0b2342;
    --brand-accent: #f5c242;
    --brand-accent-hover: #e8b231;
    --brand-blue-muted: #6280a1;
    --brand-ivory: #f5ebd5;
    --surface: #f7f8fa;
    --surface-blue: #eef3f8;
    --text-primary: #16263a;
    --text-secondary: #59687a;
    --border: #dce3eb;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(11, 35, 66, .08);
    --shadow-lg: 0 24px 60px rgba(11, 35, 66, .15);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-primary);
    background: var(--surface);
    font-family: "Heebo", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: -.025em;
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-primary-hover);
}

::selection {
    color: var(--brand-dark);
    background: var(--brand-accent);
}

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 3px;
}

.container-xxl {
    background: var(--white);
}

.text-primary {
    color: var(--brand-primary) !important;
}

.text-accent {
    color: var(--brand-accent) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.bg-dark {
    background-color: var(--brand-dark) !important;
}

.bg-light {
    background-color: var(--surface) !important;
}

.bg-ivory {
    background-color: var(--brand-ivory) !important;
}

.border-primary {
    border-color: var(--brand-primary) !important;
}

.section-padding {
    padding: 6rem 0;
}

.section-padding-sm {
    padding: 4rem 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 2rem;
    height: 3px;
    background: var(--brand-accent);
    content: "";
}

.section-title {
    max-width: 760px;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-lead {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.btn {
    border-radius: .45rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--white);
    border-color: var(--brand-primary-hover);
    background: var(--brand-primary-hover);
    box-shadow: 0 10px 24px rgba(27, 61, 109, .2);
}

.btn-accent {
    color: var(--brand-dark);
    border-color: var(--brand-accent);
    background: var(--brand-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    color: var(--brand-dark);
    border-color: var(--brand-accent-hover);
    background: var(--brand-accent-hover);
    box-shadow: 0 10px 24px rgba(245, 194, 66, .2);
}

.btn-outline-brand {
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    background: transparent;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: var(--white);
    background: var(--brand-primary);
}

.btn-square,
.btn-lg-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-square {
    width: 40px;
    height: 40px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

#spinner {
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease-out, visibility 0s linear .4s;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s ease-out, visibility 0s linear 0s;
}

/* Keep content readable even if scroll-triggered animation is delayed or unavailable. */
.wow {
    visibility: visible !important;
}

.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 100000;
    padding: .65rem 1rem;
    color: var(--brand-dark);
    background: var(--brand-accent);
    border-radius: .35rem;
    transform: translateY(-160%);
}

.skip-link:focus {
    color: var(--brand-dark);
    transform: translateY(0);
}

.site-navbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    padding-top: .85rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-navbar.sticky-top {
    position: fixed;
    padding-top: .55rem;
    padding-bottom: .55rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    display: block;
    width: 224px;
    max-width: 52vw;
    height: 76px;
    object-fit: contain;
    border-radius: .3rem;
}

.sticky-top .navbar-brand img {
    width: 190px;
    height: 62px;
}

.site-navbar .nav-link {
    position: relative;
    margin-left: 1.25rem;
    padding: .7rem 0 !important;
    color: rgba(255, 255, 255, .88) !important;
    font-weight: 600;
}

.site-navbar .nav-link::after {
    position: absolute;
    right: 0;
    bottom: .25rem;
    left: 0;
    height: 2px;
    background: var(--brand-accent);
    content: "";
    opacity: 0;
    transform: scaleX(.2);
    transition: opacity .2s ease, transform .2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--white) !important;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-navbar.sticky-top .nav-link {
    color: var(--text-primary) !important;
}

.site-navbar.sticky-top .nav-link:hover,
.site-navbar.sticky-top .nav-link.active {
    color: var(--brand-primary) !important;
}

.navbar-toggler {
    color: var(--brand-primary);
    border-color: var(--border);
    background: var(--white);
}

.hero-header,
.page-header {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 84% 12%, rgba(245, 194, 66, .16), transparent 25%),
        linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
}

.hero-header::after,
.page-header::after {
    position: absolute;
    right: -8rem;
    bottom: -15rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.hero-header {
    min-height: 760px;
    padding: 11rem 0 7rem;
}

.hero-header .container,
.page-header .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.25rem;
    color: var(--brand-accent);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    width: 2.5rem;
    height: 2px;
    background: var(--brand-accent);
    content: "";
}

.hero-header h1 {
    max-width: 780px;
    color: var(--white);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 1.08;
}

.hero-header .lead {
    max-width: 680px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-brand-card {
    position: relative;
    padding: 1rem;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: .75rem;
    box-shadow: var(--shadow-lg);
}

.hero-brand-card::before {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    border-top: 4px solid var(--brand-accent);
    border-right: 4px solid var(--brand-accent);
    content: "";
}

.hero-brand-card img {
    width: 100%;
    height: auto;
}

.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: -3rem;
}

.trust-strip-inner {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 4px solid var(--brand-accent);
    border-radius: .65rem;
    box-shadow: var(--shadow-lg);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--brand-dark);
    font-weight: 600;
}

.trust-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--brand-dark);
    background: var(--brand-accent);
    border-radius: 50%;
}

.page-header {
    padding: 10.5rem 0 5.5rem;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item.active {
    color: rgba(255, 255, 255, .78);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

.service-card,
.value-card,
.process-card,
.contact-card {
    height: 100%;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: .65rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.value-card:hover,
.contact-card:hover {
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.35rem;
    color: var(--brand-accent);
    background: var(--brand-primary);
    border-radius: .45rem;
    font-size: 1.3rem;
}

.service-card p,
.value-card p,
.process-card p,
.contact-card p {
    color: var(--text-secondary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
}

.service-link:hover {
    gap: .7rem;
}

.feature-panel {
    padding: clamp(2rem, 5vw, 4rem);
    color: rgba(255, 255, 255, .8);
    background: var(--brand-dark);
    border-radius: .8rem;
}

.feature-panel h2,
.feature-panel h3,
.feature-panel h4 {
    color: var(--white);
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.feature-list i {
    margin-top: .28rem;
    color: var(--brand-accent);
}

.process-card {
    position: relative;
    padding-top: 4.5rem;
}

.process-number {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    color: var(--brand-primary);
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.process-number::after {
    position: absolute;
    top: 50%;
    left: 2.4rem;
    width: 2.5rem;
    height: 2px;
    background: var(--brand-accent);
    content: "";
}

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 5rem);
    color: rgba(255, 255, 255, .82);
    background: var(--brand-primary);
    border-radius: .8rem;
}

.cta-panel::after {
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 18rem;
    height: 18rem;
    border: 2px solid rgba(245, 194, 66, .25);
    border-radius: 50%;
    content: "";
}

.cta-panel > * {
    position: relative;
    z-index: 1;
}

.cta-panel h2 {
    color: var(--white);
}

.about-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 3rem;
    background: var(--surface-blue);
    border-radius: .8rem;
}

.about-mark img {
    width: min(100%, 520px);
    height: auto;
    box-shadow: var(--shadow-sm);
}

.quote-block {
    padding: 1.5rem 1.75rem;
    color: var(--brand-dark);
    background: var(--brand-ivory);
    border-left: 4px solid var(--brand-accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.consultation-shell {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: .8rem;
    box-shadow: var(--shadow-lg);
}

.consultation-form {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.form-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.form-section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--brand-dark);
    background: var(--brand-accent);
    border-radius: 50%;
    font-size: .88rem;
}

.form-label {
    color: var(--brand-dark);
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 50px;
    border-color: var(--border);
    border-radius: .4rem;
}

textarea.form-control {
    min-height: 160px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .22rem rgba(27, 61, 109, .15);
}

.form-check-input:checked {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
}

.privacy-note {
    padding: 1.25rem;
    color: var(--text-secondary);
    background: var(--surface-blue);
    border-left: 4px solid var(--brand-primary);
    border-radius: .35rem;
}

.form-status {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: .35rem;
}

.form-status.show {
    display: block;
}

.form-status.error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.form-status.success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.website-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.humanity-check {
    max-width: 100%;
    overflow-x: auto;
}

.humanity-check > [data-turnstile-widget] {
    max-width: 100%;
}

.consultation-form button[disabled] {
    cursor: wait;
    opacity: .78;
}

.content-narrow {
    max-width: 680px;
}

.content-medium {
    max-width: 760px;
}

.content-wide {
    max-width: 800px;
}

.direct-handoff-divider {
    border-color: rgba(255, 255, 255, .25);
}

.direct-handoff {
    padding: 1.75rem;
    color: rgba(255, 255, 255, .8);
    background: var(--brand-dark);
}

.direct-handoff h2,
.direct-handoff h3 {
    color: var(--white);
}

.contact-card a {
    overflow-wrap: anywhere;
    font-weight: 700;
    text-decoration: none;
}

.legal-layout {
    max-width: 900px;
    margin: 0 auto;
}

.legal-notice {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--brand-dark);
    background: var(--brand-ivory);
    border-left: 4px solid var(--brand-accent);
    border-radius: .35rem;
}

.legal-content {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: .8rem;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: .85rem;
    font-size: 1.45rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.legal-content h3 {
    margin-top: 1.25rem;
    font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
}

.legal-content a {
    font-weight: 600;
}

.legal-meta {
    color: var(--brand-blue-muted);
    font-size: .95rem;
}

.site-footer {
    margin-top: 5rem;
    color: rgba(255, 255, 255, .7);
    background: var(--brand-dark);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
    color: var(--white);
}

.footer-logo {
    width: min(100%, 290px);
    padding: .45rem;
    background: var(--white);
    border-radius: .35rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: .55rem;
}

.footer-links a,
.site-footer a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--brand-accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .8rem;
}

.footer-contact-item i {
    margin-top: .3rem;
    color: var(--brand-accent);
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    display: none;
    color: var(--brand-dark);
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    border-radius: 50%;
}

.back-to-top:hover {
    color: var(--white);
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

@media (max-width: 991.98px) {
    .site-navbar,
    .site-navbar.sticky-top {
        position: relative;
        padding: .55rem 1rem !important;
        background: var(--white);
        border-bottom-color: var(--border);
    }

    .navbar-brand img,
    .sticky-top .navbar-brand img {
        width: 178px;
        height: 60px;
    }

    .navbar-collapse {
        padding: .75rem 0 1rem;
        border-top: 1px solid var(--border);
    }

    .site-navbar .nav-link,
    .site-navbar.sticky-top .nav-link {
        margin-left: 0;
        color: var(--text-primary) !important;
    }

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link.active {
        color: var(--brand-primary) !important;
    }

    .site-navbar .nav-link::after {
        right: auto;
        width: 2.5rem;
    }

    .nav-cta {
        margin-top: .75rem;
    }

    .hero-header {
        min-height: auto;
        padding: 6rem 0;
    }

    .page-header {
        padding: 5rem 0;
    }

    .trust-strip {
        margin-top: 0;
        padding-top: 2rem;
    }

    .hero-brand-card {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 4.5rem 0;
    }

    .section-padding-sm {
        padding: 3rem 0;
    }

    .hero-header {
        padding: 4.5rem 0;
    }

    .hero-header h1 {
        font-size: clamp(2.25rem, 12vw, 3.35rem);
    }

    .page-header {
        padding: 4.5rem 0;
    }

    .service-card,
    .value-card,
    .process-card,
    .contact-card {
        padding: 1.5rem;
    }

    .trust-strip-inner {
        padding: 1.5rem;
    }

    .about-mark {
        min-height: 280px;
        padding: 1.25rem;
    }

    .consultation-form {
        padding: 1.25rem;
    }

    .direct-handoff {
        padding: 1.25rem;
    }

    .form-actions .btn {
        width: 100%;
        margin-bottom: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
