:root {
    --brand-blue: #1f4e8c;
    --brand-blue-dark: #173e6f;
    --brand-fawn: #c8a46a;
    --brand-fawn-dark: #a8844f;
    --ink: #111827;
    --muted: #5b6472;
    --line: rgba(17, 24, 39, 0.1);
    --surface: #ffffff;
    --surface-soft: #f6f2e8;
    --shadow: 0 18px 45px rgba(15, 47, 87, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Aptos, "Aptos", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
    line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(100%, calc(var(--container) + 32px));
    margin: 0 auto;
    padding: 0 16px;
}
/* ===== COPYABLE: Preloader and scroll-up styles ===== */
.wrapper { overflow-x: clip; }
/* Preloader: visible by default while page loads, full-screen overlay */
#preloader {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999;
    display: grid;
    place-items: center;
}

/* Branded loader using the site's favicon image */
#preloader::before {
    content: '';
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background: url('../images/favicon.ico') center center / 56px 56px no-repeat;
    position: relative;
    z-index: 1;
}

#preloader::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 4px solid rgba(31, 78, 140, 0.12);
    border-top-color: var(--brand-blue);
    animation: ik-spin 0.95s linear infinite;
}

@keyframes ik-spin {
    to { transform: rotate(360deg); }
}

.scrollUp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--brand-fawn);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 32px rgba(168, 132, 79, 0.28);
    z-index: 30;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.scrollUp.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scrollUp-icon {
    color: #fff;
    width: 22px;
    height: 22px;
    display: block;
}

/* ===== END COPYABLE: Preloader and scroll-up styles ===== */

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo img { height: 60px; width: auto; }
.menu-toggle,
.menu-close {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--brand-blue-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 47, 87, 0.08);
}
.menu-toggle { font-size: 22px; line-height: 1; }
.menu-close { font-size: 26px; line-height: 1; }

.nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(15, 47, 87, 0.12);
}
.nav.active { display: block; }
.mobile-nav-head { display: none; }
.nav-list {
    list-style: none;
    margin: 0;
    padding: 12px 16px 18px;
    display: grid;
    gap: 6px;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.dropdown-toggle {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 0;
    background: transparent;
    text-align: left;
}
.nav-list > li > a:hover,
.dropdown-toggle:hover,
.nav-list > li > a:focus-visible,
.dropdown-toggle:focus-visible {
    background: rgba(31, 78, 140, 0.08);
    color: var(--brand-blue);
}
.nav-list > li > a.btn-primary { color: #fff !important; }
.nav-list > li > a.btn-primary,
.nav-list > li > a.btn-primary:hover,
.nav-list > li > a.btn-primary:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, var(--brand-fawn) 0%, var(--brand-fawn-dark) 100%) !important;
    border: 0;
    box-shadow: 0 14px 24px rgba(168, 132, 79, 0.24);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-fawn) 0%, var(--brand-fawn-dark) 100%);
    color: #fff !important;
    box-shadow: 0 14px 24px rgba(168, 132, 79, 0.24);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--brand-fawn-dark) 0%, #8c683a 100%);
}

.dropdown {
    border-radius: 18px;
    background: #f8fafc;
}
.dropdown-toggle { cursor: pointer; }
.chevron { transition: transform 0.2s ease; }
.services-dropdown.is-open .chevron,
.industries-dropdown.is-open .chevron { transform: rotate(180deg); }

/* Use opacity + transform for smooth enter/leave transitions instead of display */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.995);
    transition: opacity 220ms cubic-bezier(.2,.9,.2,1), transform 220ms cubic-bezier(.2,.9,.2,1), visibility 220ms;
    pointer-events: none;
}
.services-dropdown.is-open .dropdown-menu,
.industries-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mega-menu { padding: 8px 0 14px; }
.mega-menu-columns { display: grid; gap: 12px; }
.mega-menu-sidebar,
.mega-menu-panel {
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.mega-menu-sidebar { padding: 10px; display: grid; gap: 8px; }
.mega-menu-item {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--brand-blue-dark);
    background: transparent;
}
.mega-menu-sidebar .mega-menu-item:first-child { margin-bottom: 10px; }
.mega-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mega-menu-arrow {
    color: var(--brand-fawn-dark);
    font-weight: 800;
    flex: 0 0 auto;
}
.mega-menu-item.active,
.mega-menu-item:hover,
.mega-menu-item:focus-visible {
    color: var(--brand-blue);
    background: transparent;
}
.mega-menu-item.active .mega-menu-arrow,
.mega-menu-item:hover .mega-menu-arrow,
.mega-menu-item:focus-visible .mega-menu-arrow {
    color: var(--brand-blue);
}
.mega-menu-panel { padding: 18px; }
.mega-menu-panel h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); }
.mega-menu-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mega-menu-grid a {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    color: var(--muted);
    font-weight: 600;
}
.mega-menu-grid a:hover,
.mega-menu-grid a:focus-visible {
    background: #fff;
    border-color: rgba(31, 78, 140, 0.15);
    color: var(--brand-blue-dark);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    padding: 30px 0 26px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 47, 87, 0.95) 0%, rgba(31, 78, 140, 0.92) 54%, rgba(200, 164, 106, 0.94) 100%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 36%);
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}
.hero::before { width: 280px; height: 280px; top: -120px; right: -90px; }
.hero::after { width: 180px; height: 180px; bottom: -60px; left: -60px; }
.hero-inner { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.hero-copy { max-width: 730px; text-align: start; justify-items: start; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 18px auto 14px;
    font-size: clamp(2.45rem, 10vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}
.hero p {
    margin: 0 0 22px;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn,
.hero .btn-primary,
.outline-btn,
.read_more,
.item-btn1 {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero .btn-primary,
.read_more,
.item-btn1 { border: 0; }
.outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.btn:hover,
.outline-btn:hover,
.read_more:hover,
.item-btn1:hover { transform: translateY(-1px); }

.hero-panel {
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}
.hero-panel-card {
    border-radius: 22px;
    background: #fff;
    color: var(--ink);
    padding: 18px;
    display: grid;
    gap: 14px;
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
    border-radius: 18px;
    padding: 16px;
    background: #f4f7fb;
    border: 1px solid var(--line);
}
.stat strong { display: block; color: var(--brand-blue-dark); font-size: 1.3rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 56px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { margin-bottom: 24px; }
.section-heading .eyebrow { background: rgba(31, 78, 140, 0.08); color: var(--brand-blue); }
.section-heading h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    /* max-width: 13ch; */
}
.section-heading p { margin: 0; max-width: 60ch; color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.service-card,
.insight-card,
.story-card,
.contact-card,
.blog-card,
.feature-card,
.legal-practice-areas-box {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 47, 87, 0.08);
}
.service-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: grid;
    gap: 10px;
}
.service-card-with-image {
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}
.service-card-index {
    width: 54px;
    height: 54px;
    margin: 22px 0 0 22px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 16px 28px rgba(31, 78, 140, 0.22);
}
.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.service-card-content {
    padding: 24px;
    display: grid;
    gap: 10px;
}
.service-card .service-kicker {
    color: var(--brand-fawn-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.service-card h3,
.story-card h3,
.insight-card h3,
.contact-card h3,
.blog-card h4 { margin: 0; line-height: 1.15; letter-spacing: -0.03em; }
.service-card p,
.story-card p,
.insight-card p,
.contact-card p,
.blog-card p { margin: 0; color: var(--muted); }
.service-card a,
.story-card a,
.insight-card a,
.contact-card a,
.blog-card a { color: var(--brand-blue); font-weight: 700; }

.insight-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgb(4 12 74 / 80%);
    color: rgb(255 255 255 / 94%);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feature-grid { display: grid; gap: 14px; }
.feature-card { border-radius: 20px; padding: 20px; }
.feature-card h3 { margin: 0 0 10px; color: var(--brand-blue-dark); }
.feature-card p { margin: 0; color: var(--muted); }

.page-content {
    max-width: 860px;
}
.page-intro {
    margin-bottom: 14px;
}
.page-section {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    margin-bottom: 32px;
}
.page-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.page-section h6,
.page-section .about-section-heading {
    margin: 0 0 6px 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-fawn-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.page-section h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.35rem, 3.6vw, 2rem);
    line-height: 1.05;
}
.page-section h3 {
    margin: 0 0 8px;
    color: var(--brand-blue-dark);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    letter-spacing: -0.03em;
}
.page-section p {
    margin: 0 0 12px;
    color: var(--muted);
}
.page-section p:last-child {
    margin-bottom: 0;
}
.page-section-soft {
    background: rgba(31, 78, 140, 0.04);
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 20px;
    border-top-color: transparent;
}
.page-list {
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--muted);
}

.page-list > div {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 47, 87, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-list h4 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: var(--brand-blue-dark);
    line-height: 1.08;
}

.content-empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.content-empty-state h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.08;
    color: var(--brand-blue-dark);
}

.content-empty-state p {
    margin: 0;
    color: var(--muted);
}

.content-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.content-empty-actions .outline-btn {
    border-color: var(--line);
    color: var(--brand-blue-dark);
    background: transparent;
}

.content-empty-actions .outline-btn:hover,
.content-empty-actions .outline-btn:focus-visible {
    background: rgba(31, 78, 140, 0.06);
}

@media (min-width: 768px) {
    .page-list {
        /* keep stacked list on larger screens for better readability */
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
}

.split-panel { display: grid; gap: 18px; }
.story-card,
.contact-card,
.insight-card { border-radius: 28px; padding: 24px; }
.story-card { display: grid; gap: 16px; align-items: center; }
.contact-form-card { display: grid; gap: 14px; align-content: start; }
.contact-form { display: grid; gap: 14px; margin-top: 4px; }
.form-row { display: grid; gap: 7px; }
.form-row label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
}
.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(31, 78, 140, 0.2);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.12);
}
.form-row input.input-invalid,
.form-row textarea.input-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.field-error {
    min-height: 1.1em;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #b42318;
}
.form-status {
    display: none;
    margin: 0;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 0.92rem;
    font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #a6f4c5;
}
.form-status.is-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}
.contact-submit {
    width: fit-content;
    border: 0;
    cursor: pointer;
    padding: 4px 12px;
    justify-self: center;
}
.contact-submit[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}
.story-media {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 78, 140, 0.12), rgba(200, 164, 106, 0.12));
}
.story-media img { width: 100%; object-fit: cover; }
.story-meta {
    color: var(--brand-fawn-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}
.story-card h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

.cta-band {
    border-radius: 30px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 47, 87, 0.98) 0%, rgba(31, 78, 140, 0.95) 60%, rgba(200, 164, 106, 0.94) 100%);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    pointer-events: none;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 0.98; }
.cta-band p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.88); }

.insight-grid,
.blog-grid { display: grid; gap: 18px; }
.insight-card,
.blog-card { border-radius: 24px; overflow: hidden; }
.insight-card img,
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.insight-body,
.blog-body { padding: 20px; }
.blog-card h4 { font-size: 1.15rem; }

.read_more,
.item-btn1 {
    background: linear-gradient(135deg, var(--brand-fawn) 0%, var(--brand-fawn-dark) 100%);
    color: #fff;
    border-radius: 14px;
}

.footer {
    /* Ensure footer always sits above ordinary page elements and has a solid fallback color */
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, #0d2140 0%, #071122 100%);
    background-color: #071122;
    color: rgba(255, 255, 255, 0.95);
    padding: 42px 0 20px;
}
.footer-grid { display: grid; gap: 24px; }
.footer-logo { max-width: 180px; margin-bottom: 16px; }
.footer h4 { margin: 0 0 12px; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, 0.84); }
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-links {
    margin-top: 18px;
}
.mobile-menu-socials {
    display: none;
}
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}
.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.footer-bottom-wrap { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.copyright { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }

.custom_legal_practice_areas { padding: 56px 0; background: var(--surface-soft); }
.blog-header { text-align: left; margin-bottom: 24px; }
.blog-header h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; }
.blog-header p { margin: 0; color: var(--muted); }
.custom_flex_3 { display: grid; gap: 18px; }
.custom_flex_item {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.custom_flex_item:hover { transform: translateY(-4px); }
.custom_flex_item:hover .legal-practice-areas-box { box-shadow: 0 20px 40px rgba(15, 47, 87, 0.14); }
.legal-practice-areas-box { border-radius: 24px; overflow: hidden; }
.legal-practice-areas-box img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.blog-content-wrapper { padding: 20px; display: grid; gap: 12px; }
.blog-content-wrapper h4 { font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.blog-content-wrapper p { color: var(--muted); }
.custom_date { color: var(--muted); font-size: 0.92rem; }
.custom_date::before { content: '•'; margin-right: 8px; color: var(--brand-fawn-dark); }

.error-page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.item-btn1 { color: #fff; }

.blog-detail-wrapper { display: grid; gap: 18px; padding: 24px 0 48px; }
.blog-detail-container,
.blog-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.blog-detail-container { padding: 20px; }
.back-to-blog { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-blue); font-weight: 700; }
.blog-detail-header { display: grid; gap: 14px; margin-top: 16px; }
.blog-detail-header h1 { margin: 0; line-height: 1.02; letter-spacing: -0.04em; font-size: clamp(2rem, 6vw, 3.5rem); }
.blog-featured-image { width: 100%; border-radius: 24px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.blog-content { margin-top: 20px; color: var(--ink); }
.blog-cta { margin-top: 28px; padding: 20px; border-radius: 24px; background: var(--surface-soft); }
.blog-cta-button,
.sidebar-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-fawn) 0%, var(--brand-fawn-dark) 100%);
    color: #fff;
    font-weight: 700;
}
.blog-sidebar { padding: 20px; }
.sidebar-widget + .sidebar-widget { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-widget h3 { margin: 0 0 10px; }
.sidebar-widget p { margin: 0 0 16px; color: var(--muted); }

@media (min-width: 768px) {
    .container { padding: 0 20px; }
    .menu-toggle { display: none; }
    .nav {
        display: block;
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .mobile-nav-head { display: none; }
    .nav-list {
        padding: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    /* On desktop, don't show the rounded hover box for top-level menu items; only change color */
    .nav-list > li > a:hover,
    .dropdown-toggle:hover,
    .nav-list > li > a:focus-visible,
    .dropdown-toggle:focus-visible {
        background: transparent;
        color: var(--brand-blue);
        box-shadow: none;
    }
    .nav-list > li > a,
    .dropdown-toggle { width: auto; }
    .nav-list > li:first-child > a { padding-left: 0; }
    .dropdown { background: transparent; }
    .services-dropdown,
    .industries-dropdown { position: relative; }
    /* Align mega menu right edge with nav container right edge */
    .services-dropdown .dropdown-menu,
    .industries-dropdown .dropdown-menu {
        position: fixed;
        /* anchor to the centered nav container so the panel ends with the main menu */
        left: auto;
        right: max(24px, calc((100vw - 1232px) / 2 + 12px));
        transform: translateX(0);
        top: 58px;
        width: min(860px, calc(100vw - 32px));
        padding-top: 0;
        z-index: 40;
    }
    .services-dropdown:hover .dropdown-menu,
    .services-dropdown:focus-within .dropdown-menu,
    .services-dropdown.is-open .dropdown-menu,
    .industries-dropdown:hover .dropdown-menu,
    .industries-dropdown:focus-within .dropdown-menu,
    .industries-dropdown.is-open .dropdown-menu { display: block; }
    .mega-menu-columns {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 0;
        padding: 0;
        background: #edf3fb;
        border-radius: 24px;
        border: 1px solid rgba(31, 78, 140, 0.08);
        box-shadow: 0 22px 48px rgba(15, 47, 87, 0.12);
        overflow: hidden;
    }
    .mega-menu-sidebar {
        background: linear-gradient(180deg, #f4f8fe 0%, #e8f0fa 100%);
        padding: 16px;
        border-radius: 0;
        border: 0;
    }
    .mega-menu-panel {
        background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
        padding: 22px 24px;
        border-radius: 0;
        border: 0;
        border-left: 1px solid rgba(31, 78, 140, 0.08);
    }
    .mega-menu-panel h3 { font-size: 1.2rem; }
    .mega-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 64px 0 56px; }
    .hero-inner { min-height: 480px; }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .split-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .story-card { grid-template-columns: 1fr 1fr; min-height: 100%; }
    .insight-grid,
    .custom_flex_3,
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .blog-detail-wrapper { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr); align-items: start; }

    .mobile-menu-panels { display: none !important; }
}

@media (min-width: 1024px) {
    .section { padding: 80px 0; }
    .hero { padding: 84px 0 72px; }
    .hero-inner { min-height: 520px; }
    .hero h1 { max-width: none; }
    .story-card,
    .contact-card,
    .insight-card { padding: 32px; }
    .cta-band { padding: 42px; }
    .footer { padding: 56px 0 24px; }
}

@media (max-width: 767px) {
    .nav {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: none;
        padding: 14px 16px 18px;
        background: linear-gradient(180deg, rgba(248, 244, 235, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
        overflow-y: auto;
    }
    .nav.active { display: block !important; }
    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--line);
    }
    .nav-list { padding: 0; gap: 0; }
    .nav-list.is-hidden { display: none; }
    .nav-list > li {
        border-radius: 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgba(31, 78, 140, 0.12);
        box-shadow: none;
    }
    .nav-list > li > a,
    .dropdown-toggle {
        padding: 18px 10px;
        min-height: 0;
        font-size: 1.08rem;
    }
    .nav-list > li > a:hover,
    .dropdown-toggle:hover,
    .nav-list > li > a:focus-visible,
    .dropdown-toggle:focus-visible {
        background: transparent;
        color: var(--brand-blue);
    }
    .dropdown { background: transparent; }
    .dropdown-menu {
        display: none !important;
    }
    .mega-menu-columns { gap: 12px; }
    .mega-menu-sidebar,
    .mega-menu-panel { border-radius: 18px; }
    .mega-menu-panel h3 { font-size: 1rem; }
    .mega-menu-grid { grid-template-columns: 1fr; }

    .mobile-menu-panels { display: none; margin-top: 8px; }
    .mobile-menu-panels.active { display: block; }
    .mobile-menu-socials {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 18px;
        margin-top: 18px;
        border-top: 1px solid rgba(31, 78, 140, 0.12);
    }
    .mobile-menu-socials .social-link {
        background: rgba(31, 78, 140, 0.08);
        border-color: rgba(31, 78, 140, 0.12);
        color: var(--brand-blue-dark);
    }
    .mobile-menu-socials .social-link:hover,
    .mobile-menu-socials .social-link:focus-visible {
        background: rgba(31, 78, 140, 0.14);
    }
    .mobile-menu-panel {
        display: none;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .mobile-menu-panel.active { display: block; }
    .mobile-menu-back {
        border: 0;
        background: transparent;
        color: var(--brand-blue);
        font-weight: 700;
        padding: 4px 0 10px;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.78rem;
        cursor: pointer;
    }
    .mobile-menu-parent-link {
        display: block;
        color: var(--brand-blue-dark);
        font-weight: 800;
        padding: 8px 0 12px;
        border-bottom: 1px solid rgba(31, 78, 140, 0.12);
        margin-bottom: 6px;
    }
    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0;
    }
    .mobile-menu-item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid rgba(31, 78, 140, 0.12);
        background: transparent;
        color: var(--ink);
        text-align: left;
        font-weight: 700;
    }
    .mobile-menu-item:active,
    .mobile-menu-item:focus-visible {
        background: transparent;
        color: var(--brand-blue);
    }
    .mobile-menu-forward-icon {
        color: var(--brand-fawn-dark);
        font-size: 1.1rem;
        line-height: 1;
    }
}
