:root {
    --bg: #F6F2E9;
    --bg-panel: #FFFFFF;
    --ink: #132A46;
    --ink-2: #1F3E63;
    --text: #262421;
    --muted: #6b665c;
    --brass: #A9803E;
    --brass-deep: #8A6A32;
    --border: #E1D9C4;
    --seal: #2F5D45;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root:not([data-theme="light"]) {
    @media (prefers-color-scheme: dark) {
        --bg: #10131A;
        --bg-panel: #171B24;
        --ink: #EDE7D8;
        --ink-2: #C9B98C;
        --text: #E7E3D8;
        --muted: #a7a196;
        --border: #2A2E38;
        --brass: #C9A05C;
        --brass-deep: #E4BB78;
        --seal: #6FB08E;
    }
}

:root[data-theme="dark"] {
    --bg: #10131A;
    --bg-panel: #171B24;
    --ink: #EDE7D8;
    --ink-2: #C9B98C;
    --text: #E7E3D8;
    --muted: #a7a196;
    --border: #2A2E38;
    --brass: #C9A05C;
    --brass-deep: #E4BB78;
    --seal: #6FB08E;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(96px + env(safe-area-inset-top, 0px));
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-word {
    font-family: var(--font-serif);
    color: var(--ink);
    letter-spacing: .2px;
}

a {
    color: inherit;
}
.nav-link{
    color:#000;
}
.container-nav {
    max-width: 1240px;
}

.container-xl-custom {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

::selection {
    background: var(--brass);
    color: #fff;
}

.page {
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page {
        animation: none;
    }
}

.strip {
    background: var(--ink);
    color: #D9CFB4;
    font-size: .83rem;
}

.strip a {
    color: #D9CFB4;
    text-decoration: none;
}

.strip a:hover {
    color: #fff;
}

.navbar-legal {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top, 0px);
}

.navbar-legal .navbar-nav .nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem !important;
    position: relative;
    cursor: pointer;
}

.navbar-legal .navbar-nav .nav-link:hover {
    color: var(--brass-deep);
}

.navbar-legal .navbar-nav .nav-link.active {
    color: var(--ink);
}

.navbar-legal .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .15rem;
    height: 2px;
    background: var(--brass);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brass);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.crest {
    width: 46px;
    height: 52px;
    flex-shrink: 0;
    overflow: visible;
}

.crest-bg {
    fill: var(--ink);
}

.crest-ring {
    fill: none;
    stroke: var(--brass);
    stroke-width: 1.6;
}

.crest-scale {
    stroke: var(--brass);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.crest-rule {
    stroke: var(--brass);
    stroke-width: 1.4;
}

.crest-foot {
    background: #EDE7D8;
    color: #132A46;
}

footer .crest-bg {
    fill: #EDE7D8;
}

footer .crest-ring,
footer .crest-scale,
footer .crest-rule {
    stroke: #132A46;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.in-view>* {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Seal float + hero parallax ---------- */
.seal-float {
    animation: sealFloat 5s ease-in-out infinite;
}

@keyframes sealFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

#heroIllustration {
    transition: transform .1s linear;
}

@media (prefers-reduced-motion: reduce) {
    .seal-float {
        animation: none;
    }
}

/* ---------- Counter ---------- */
.stat-num {
    transition: color .2s ease;
}

.brand-title {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.brand-sub {
    font-size: .7rem;
    color: #000000;
    letter-spacing: .06em;
    margin: 0;
}

.btn-brass {
    background: var(--brass);
    border: 1px solid var(--brass);
    color: #fff;
    font-weight: 600;
}

.btn-brass:hover {
    background: var(--brass-deep);
    border-color: var(--brass-deep);
    color: #fff;
}

.btn-outline-ink {
    border: 1px solid var(--ink-2);
    color: var(--ink);
    font-weight: 600;
    background: transparent;
}

.btn-outline-ink:hover {
    background: var(--ink);
    color: #fff;
}

.mega-wrap {
    position: static;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    border: none;
    border-top: 3px solid var(--brass);
    box-shadow: 0 24px 48px rgba(19, 42, 70, .14);
    border-radius: 0 0 10px 10px;
    padding: 2rem 0;
    margin-top: 0;
}

.mega-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 2.5rem;
}

.mega-intro h6 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brass-deep);
    font-weight: 700;
    margin-bottom: .6rem;
}

.mega-intro p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.mega-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .35rem 2rem;
}

.mega-item {
    display: flex;
    gap: .85rem;
    padding: .85rem .5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s ease;
    cursor: pointer;
}

.mega-item:hover {
    background: var(--bg);
}

.mega-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.mega-item strong {
    display: block;
    font-size: .93rem;
    color: var(--ink);
    font-weight: 700;
}

.mega-item span {
    display: flex;
    font-size: .78rem;
    color: var(--muted);
    margin-top: .15rem;
    line-height: 1.4;
}

@media (min-width:992px) {
    .dropdown-hover:hover>.mega-menu {
        display: block;
    }
}

@media (max-width:991.98px) {
    .mega-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .mega-services {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        border-radius: 0;
        box-shadow: none;
        border-top: 2px solid var(--brass);
        padding: 1rem 0;
    }
}

.hero {
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--seal);
    font-weight: 600;
    background: rgba(47, 93, 69, .08);
    border: 1px solid rgba(47, 93, 69, .25);
    padding: .35rem .8rem;
    border-radius: 100px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 1rem 0 1.1rem;
}

.hero-lede {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 46ch;
    line-height: 1.6;
}

.stat-row {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
}

.page-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}

section {
    padding: 5rem 0;
}

.section-tight {
    padding: 3.5rem 0;
}

.kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--brass-deep);
}

.section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    margin-top: .5rem;
}

.lede {
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.6;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.band-alt {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.teaser-card {
    padding: 1.5rem;
    height: 100%;
    text-decoration: none;
    display: block;
    transition: border-color .15s ease, transform .15s ease;
}

.teaser-card:hover {
    border-color: var(--brass);
    transform: translateY(-2px);
}

.teaser-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: .85rem;
}

.teaser-card h6 {
    color: var(--ink);
    font-weight: 700;
    margin-bottom: .4rem;
}

.teaser-card p {
    color: var(--muted);
    font-size: .87rem;
    margin-bottom: 0;
}

.service-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 110px;
}

.service-row:first-child {
    border-top: 1px solid var(--border);
}

.service-tag {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #132a46;
    width: 70px;
    flex-shrink: 0;
    font-weight: 600;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.service-row h3 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
}

.service-row p {
    color: var(--muted);
    margin-bottom: .6rem;
    max-width: 60ch;
}

.service-row .service-link {
    font-size: .86rem;
    font-weight: 700;
    color: var(--seal);
    text-decoration: none;
    cursor: pointer;
}

.service-row .service-link:hover {
    text-decoration: underline;
}

.proc-step {
    position: relative;
}

.proc-num {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brass);
    border: 1.5px solid var(--brass);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--bg-panel);
}

.proc-line {
    position: absolute;
    top: 19px;
    left: 38px;
    height: 2px;
    width: calc(100% - 20px);
    background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}

@media (max-width:767.98px) {
    .proc-line {
        display: none;
    }
}

.why-card {
    padding: 1.6rem;
    height: 100%;
}

.why-icon {
    color: var(--seal);
    font-size: 1.4rem;
    margin-bottom: .75rem;
}

.quote-card {
    padding: 1.75rem;
    height: 100%;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    color: var(--border);
    line-height: 1;
    display: block;
    margin-bottom: .25rem;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink-2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.cta-band {
    background: var(--ink);
    color: #EDE7D8;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: #C7C0AC;
}

.contact-line {
    display: flex;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-line:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--seal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-control {
    border-color: var(--border);
    background: var(--bg-panel);
    color: var(--text);
}

.form-control:focus {
    border-color: var(--brass);
    box-shadow: 0 0 0 .2rem rgba(169, 128, 62, .15);
}

.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
}

footer {
    background: var(--ink);
    color: #B9B2A0;
    padding: 3.5rem 0 1.5rem;
}

footer h6 {
    color: #EDE7D8;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

footer a {
    color: #B9B2A0;
    text-decoration: none;
    font-size: .92rem;
    cursor: pointer;
}

footer a:hover {
    color: var(--brass);
}

footer .foot-bottom {
    border-top: 1px solid #2A3B52;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: .8rem;
    color: #8B8878;
}

a.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--brass);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 2000;
}

a.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.fab-stack {
    position: fixed;
    right: 1.1rem;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: .6rem;
    z-index: 1040;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 10px 24px rgba(19, 42, 70, .28);
    text-decoration: none;
    border: none;
    transition: transform .15s ease;
}

.fab:hover {
    transform: translateY(-2px);
    color: #fff;
}

.fab-call {
    background: var(--seal);
}

.fab-top {
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .15s ease;
}

.fab-top.show {
    opacity: 1;
    pointer-events: auto;
}