* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1b2430;
    background:
        radial-gradient(circle at top left, rgba(6, 123, 121, .08), transparent 30rem),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f7 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.public-letterhead {
    background: #ffffff;
    border-bottom: 1px solid #d9e1ea;
    position: relative;
    z-index: 24;
}

.letterhead-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.firm-identity {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 260px;
}

.firm-identity img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    padding: 5px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #e8f7fb);
    box-shadow: 0 8px 18px rgba(18, 53, 91, .1);
}

.firm-identity strong {
    display: block;
    font-size: 24px;
    color: #12355b;
    line-height: 1.1;
}

.firm-identity small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #56616d;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.letterhead-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 8px 18px;
    font-size: 13px;
    color: #4a5562;
}

.letterhead-details span {
    display: block;
}

.letterhead-details b {
    display: block;
    color: #12355b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, #0d3144, #12355b 54%, #123a4f);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(18, 53, 91, .18);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 30% 70%;
    min-height: 54px;
    align-items: center;
    gap: 0;
}

.nav-brand-slot {
    min-width: 0;
}

.nav-firm-identity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.public-nav.is-condensed .nav-firm-identity {
    opacity: 1;
    transform: translateY(7px);
    pointer-events: auto;
}

.nav-firm-identity img,
.mobile-firm-identity img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    padding: 5px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #daf5fb);
    border: 1px solid rgba(255, 255, 255, .8);
    filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .28));
}

.nav-firm-identity img {
    transform: translateY(9px);
}

.nav-firm-identity strong,
.mobile-firm-identity strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
}

.nav-firm-identity small,
.mobile-firm-identity small {
    display: block;
    margin-top: 2px;
    color: #cfe3ef;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.nav-main-slot {
    min-width: 0;
}

.mobile-nav-head {
    display: none;
}

.nav-menu-panel {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 17px 12px;
    font-size: 14px;
    color: #edf5ff;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
}

.nav-actions .primary-btn,
.nav-actions .ghost-btn {
    position: relative;
    top: 13px;
    box-shadow: 0 12px 18px rgba(6, 21, 36, .18);
}

.primary-btn {
    background: linear-gradient(135deg, #f0bb4b, #d8911e);
    color: #18202a;
}

.ghost-btn {
    border-color: rgba(255, 255, 255, .48);
    color: #ffffff;
}

.login-btn,
.ghost-btn.login-btn {
    background: linear-gradient(135deg, #067b79, #0b5269);
    border-color: rgba(255, 255, 255, .2);
    color: #ffffff;
}

.ghost-btn.light {
    border-color: rgba(255, 255, 255, .72);
}

.primary-btn.inline {
    width: fit-content;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
    width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #ffffff;
}

main {
    min-height: 62vh;
}

.due-hero {
    position: relative;
    background: #071b28;
    isolation: isolate;
}

.due-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(247, 249, 252, .96));
    pointer-events: none;
}

.slide-stage {
    min-height: 510px;
    position: relative;
    overflow: hidden;
}

.slide-stage::before {
    content: "";
    position: absolute;
    inset: 9% 5% auto auto;
    width: min(44vw, 420px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    animation: orbitGlow 13s linear infinite;
}

.slide-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .7s ease, transform .9s ease;
}

.slide-panel::before {
    content: "";
    position: absolute;
    inset: 0;
}

.slide-panel.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    position: relative;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 78px 20px 104px;
    color: #ffffff;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
    align-items: center;
    gap: 30px;
}

.slide-copy {
    min-width: 0;
}

.eyebrow,
.page-hero span,
.section-heading span,
.consult-band span {
    display: inline-block;
    color: #e7ad43;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.slide-content h1 {
    max-width: 740px;
    margin: 12px 0 14px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.slide-content p {
    max-width: 620px;
    margin: 0;
    color: #e8edf2;
    font-size: 17px;
    line-height: 1.65;
}

.hero-due-block {
    justify-self: end;
    width: min(100%, 290px);
    min-height: 290px;
    padding: 22px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(238, 248, 250, .92)),
        linear-gradient(145deg, var(--due-color, #12355b), #12355b);
    color: #12355b;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .78);
    transform: rotate(1.5deg);
}

.hero-due-block span {
    color: var(--due-color, #0e6f83);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-due-block strong {
    display: block;
    margin: 8px 0 0;
    font-size: 108px;
    line-height: .9;
    color: var(--due-color, #12355b);
    letter-spacing: 0;
}

.hero-due-block em {
    display: block;
    margin-top: 8px;
    color: #263746;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.due-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: 16px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #d92727;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: .4px;
    text-transform: uppercase;
    animation: urgentBlink .82s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(217, 39, 39, .5);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.slide-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 0;
    color: #f7f1e4;
    font-weight: 700;
}

.slide-meta span {
    padding: 7px 10px;
    background: rgba(255, 255, 255, .12);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.slide-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slide-dots button {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
}

.slide-dots button.active {
    background: #e7ad43;
}

@keyframes orbitGlow {
    from { transform: rotate(0deg) scale(.98); }
    to { transform: rotate(360deg) scale(1.02); }
}

@keyframes urgentBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 39, 39, .42);
    }
    50% {
        opacity: .68;
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(217, 39, 39, 0);
    }
}

.summary-band,
.services-preview,
.content-grid,
.detail-list,
.due-date-public,
.consultation-form-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 20px;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 24px;
}

.section-heading h2,
.consult-band h2,
.page-hero h1 {
    margin: 8px 0 0;
    color: #12355b;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: 0;
}

.summary-grid,
.service-list,
.content-grid,
.public-due-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.summary-card,
.service-list article,
.content-grid article,
.detail-list article,
.public-due-card,
.consultation-form {
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 26px rgba(18, 53, 91, .06);
}

.summary-card,
.service-list article,
.content-grid article,
.detail-list article {
    position: relative;
    overflow: hidden;
}

.summary-card::before,
.service-list article::before,
.content-grid article::before,
.detail-list article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #067b79, #d69b2d);
}

.summary-card {
    min-height: 170px;
    transition: transform .2s ease, border-color .2s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    border-color: #d69b2d;
}

.summary-card b,
.service-list h3,
.content-grid h2,
.detail-list h2,
.public-due-card h3 {
    color: #12355b;
}

.summary-card p,
.service-list p,
.content-grid p,
.detail-list p,
.public-due-card p,
.page-hero p,
.public-footer p {
    color: #596472;
    line-height: 1.65;
}

.service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list a,
.detail-list a {
    color: #0e6f83;
    font-weight: 800;
}

.consult-band {
    max-width: 1180px;
    margin: 0 auto 58px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #eaf4f4, #fff8eb);
    border-block: 1px solid #cbdde3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.official-links-band {
    padding: 48px 0 54px;
    overflow: hidden;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.official-logo-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 24px;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.official-logo-track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: officialLogoSlide 42s linear infinite;
}

.official-logo-slider:hover .official-logo-track {
    animation-play-state: paused;
}

.official-logo-card {
    width: 214px;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.official-logo-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.official-logo-card img {
    width: 76px;
    height: 56px;
    object-fit: contain;
}

.official-logo-card b {
    font-size: 15px;
    line-height: 1.2;
}

.official-logo-card span {
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}

@keyframes officialLogoSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 7px));
    }
}

.page-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px 34px;
}

.page-hero.compact {
    padding-bottom: 24px;
}

.page-hero p {
    max-width: 760px;
    font-size: 16px;
}

.content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 24px;
}

.detail-list {
    display: grid;
    gap: 16px;
    padding-top: 24px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip-row button {
    border: 1px solid #cbd6e1;
    background: var(--chip-bg, #ffffff);
    color: #12355b;
    border-radius: 99px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.chip-row button.active {
    background: var(--chip-active, #12355b);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 53, 91, .14);
}

.public-due-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-due-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border-color: rgba(18, 53, 91, .12);
    animation: dueCardRise .42s ease both;
}

.public-due-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 53, 91, .06), transparent 48%);
    pointer-events: none;
}

.due-date-box {
    background: linear-gradient(145deg, var(--due-color, #12355b), #17304a);
    color: #ffffff;
    border-radius: 8px;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 -18px 30px rgba(0, 0, 0, .13);
}

.public-due-card > div:last-child {
    position: relative;
    z-index: 1;
}

.due-date-box b {
    font-size: 42px;
    line-height: 1;
}

.due-date-box span {
    font-size: 13px;
    margin-top: 4px;
}

.due-date-box em {
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #d92727;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    animation: urgentBlink .9s ease-in-out infinite;
}

.due-tag {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--due-color, #0e6f83);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.due-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.due-meta-line span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(18, 53, 91, .08);
    color: #243341;
    font-size: 12px;
    font-weight: 700;
}

.empty-public-due {
    grid-column: 1 / -1;
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    color: #596472;
}

.contact-map {
    max-width: 1180px;
    margin: 0 auto 58px;
    padding: 0 20px;
}

.map-frame {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dfe6ee;
    box-shadow: 0 18px 34px rgba(18, 53, 91, .1);
    background: #ffffff;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 380px;
    border: 0;
}

@keyframes dueCardRise {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.loading-card {
    min-height: 140px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e7edf4 25%, #f5f8fb 50%, #e7edf4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.consultation-form-wrap {
    padding-top: 24px;
}

.consultation-form {
    max-width: 720px;
    display: grid;
    gap: 16px;
}

.consultation-form label {
    display: grid;
    gap: 7px;
    color: #12355b;
    font-weight: 800;
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    border: 1px solid #cbd6e1;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    color: #1b2430;
}

.form-message {
    display: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.form-message.success {
    display: block;
    background: #e8f6ed;
    color: #176b39;
}

.form-message.error {
    display: block;
    background: #fdebea;
    color: #a83228;
}

.public-footer {
    background: #0f263e;
    color: #dfe9f2;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 10px;
    color: #ffffff;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 7px 0;
    color: #dfe9f2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #aebdca;
    font-size: 13px;
}

@media (max-width: 920px) {
    .letterhead-inner,
    .consult-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-inner {
        display: block;
        padding: 0 14px;
    }

    .nav-brand-slot {
        display: none;
    }

    .mobile-nav-head {
        display: flex;
        min-height: 62px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .mobile-firm-identity {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }

    .mobile-firm-identity img {
        transform: translateY(7px);
    }

    .nav-menu-panel {
        display: none;
        width: 100%;
        padding: 4px 0 20px;
        align-items: stretch;
        flex-direction: column;
    }

    .nav-menu-panel.open {
        display: flex;
    }

    .letterhead-details,
    .summary-grid,
    .service-list,
    .content-grid,
    .public-due-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-links a {
        padding: 12px;
        border-radius: 6px;
    }

    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-actions .primary-btn,
    .nav-actions .ghost-btn {
        top: 10px;
    }

    .slide-content h1 {
        font-size: 34px;
    }

    .slide-content {
        grid-template-columns: 1fr;
    }

    .hero-due-block {
        justify-self: start;
        min-height: 210px;
        width: min(100%, 360px);
    }

    .hero-due-block strong {
        font-size: 82px;
    }
}

@media (max-width: 620px) {
    .letterhead-details,
    .summary-grid,
    .service-list,
    .content-grid,
    .public-due-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .firm-identity strong {
        font-size: 20px;
    }

    .slide-stage {
        min-height: 590px;
    }

    .slide-panel::before {
        background: linear-gradient(180deg, rgba(8, 25, 42, .92), rgba(8, 25, 42, .72));
    }

    .slide-content {
        padding: 58px 18px 104px;
    }

    .slide-content h1,
    .section-heading h2,
    .consult-band h2,
    .page-hero h1 {
        font-size: 28px;
    }

    .public-due-card {
        grid-template-columns: 1fr;
    }

    .due-date-box {
        min-height: 78px;
    }

    .hero-due-block {
        min-height: 190px;
    }

    .hero-due-block strong {
        font-size: 72px;
    }

    .hero-due-block em {
        font-size: 20px;
    }

    .nav-actions .primary-btn,
    .nav-actions .ghost-btn {
        flex: 1 1 138px;
    }

    .letterhead-inner {
        padding-inline: 16px;
    }
}
