:root {
    --layout-width: 1280px;
    --brand-blue-soft: #1d4ed8;
    --border-light: #e5e7eb;
    --border-soft: #f3f4f6;
    --panel-soft: #f8fafc;
    --panel-hover: #eff6ff;
    --backdrop: rgba(0, 0, 0, 0.5);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body.drawer-open {
    overflow: hidden;
}

body {
    background-color: #ffffff;
}

.top-banner,
.site-header,
.backdrop,
.drawer,
.site-footer {
    --brand-blue: #040957;
    --brand-blue-soft: #1d4ed8;
    --banner-accent: #963417;
    --brand-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --border-soft: #f3f4f6;
    --panel-soft: #f8fafc;
    --panel-hover: #eff6ff;
    --backdrop: rgba(0, 0, 0, 0.5);
}

.top-banner {
    position: relative;
    z-index: 50;
    isolation: isolate;
    overflow: hidden;
    padding: 0.55rem 0;
    color: var(--brand-white);
    background-color: var(--brand-blue);
}

.top-banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(30rem, 42%);
    height: 100%;
    background-color: var(--banner-accent);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

.banner-inner {
    width: 100%;
    margin: 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.banner-contact-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

.banner-socials {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding-right: 4px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #bfdbfe;
}

.contact-icon {
    font-size: 0.75rem;
}

.contact-hover:hover i {
    color: #60a5fa;
    animation: bounce-icon 0.8s infinite;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--brand-blue);
    background-color: var(--brand-white);
    border: 1px solid var(--brand-white);
    border-radius: 999px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
    color: var(--brand-blue);
    background-color: #eef2ff;
    border-color: var(--brand-white);
}

.stagger-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeDown 0.6s ease forwards;
}

.banner-contact-list .stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.banner-contact-list .stagger-item:nth-child(2) {
    animation-delay: 0.3s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: #ffffff;
    border-bottom: 0;
    backdrop-filter: none;
}

.nav-shell {
    width: min(calc(100% - 2rem), var(--layout-width));
    margin: 0 auto;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
}

.brand-link:hover .brand-mark {
    transform: scale(1.05);
}

.brand-link:hover .brand-title {
    color: var(--brand-blue-soft);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 0.2rem;
    transition: transform 0.3s ease;
}

.brand-mark-img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--brand-blue);
    transition: color 0.3s ease;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
}

.nav-link-text {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link-text:hover {
    color: var(--brand-blue);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
    color: var(--brand-blue);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background-color: var(--brand-blue);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.page-hero h1 {
    display: grid;
    justify-items: start;
    gap: 0.45rem;
}

.page-hero h1::after {
    content: "";
    display: block;
    width: 2.3rem;
    height: 2px;
    background-color: var(--banner-accent, #963417);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border: 2px solid var(--brand-blue);
    border-radius: 999px;
    font-weight: 600;
    color: var(--brand-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-cta:hover,
.nav-cta.is-active,
.nav-cta[aria-current="page"] {
    color: var(--brand-white);
    background-color: var(--brand-blue);
}

.mobile-menu-wrap {
    display: none;
    align-items: center;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--brand-blue);
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-button:hover {
    background-color: #f3f4f6;
}

.menu-icon {
    font-size: 1.5rem;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    background-color: var(--backdrop);
    backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
}

.backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 51;
    display: flex;
    flex-direction: column;
    width: min(18rem, 88vw);
    height: 100%;
    background-color: var(--brand-white);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-smooth);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-soft);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.drawer-mark-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drawer-brand-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.drawer-close:hover {
    color: #dc2626;
    background-color: #fef2f2;
}

.drawer-close-icon {
    font-size: 1.25rem;
}

.drawer-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 0.75rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.drawer-link:hover,
.drawer-link.is-active,
.drawer-link[aria-current="page"] {
    color: var(--brand-blue);
    background-color: var(--panel-hover);
}

.drawer-link-icon {
    display: inline-flex;
    justify-content: center;
    width: 1.25rem;
}

.drawer-footer {
    padding: 1.25rem;
    background-color: var(--panel-soft);
    border-top: 1px solid var(--border-light);
}

.drawer-footer-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.drawer-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-footer-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-blue);
}

.footer-link-icon {
    margin-right: 0.5rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 2.8rem 1rem 1.4rem;
    color: #ffffff;
    background-color: #040957;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer > * {
    width: min(calc(100% - 2rem), var(--layout-width));
    margin-left: auto;
    margin-right: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.95rem;
    row-gap: 0.18rem;
    align-items: center;
    max-width: max-content;
}

.footer-brand-mark {
    grid-row: 1 / span 2;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.footer-brand-tag {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2rem 2.2rem;
    align-items: start;
}

.footer-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.5rem;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.footer-heading {
    margin: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-heading::after {
    content: "";
    display: block;
    width: 2.3rem;
    height: 2px;
    background-color: #963417;
}

.footer-detail-list {
    display: grid;
    gap: 0.55rem;
}

.footer-detail-link {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    transition: color 0.3s ease;
}

.footer-detail-link:hover {
    color: #ffffff;
}

.footer-copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 0.65rem;
    align-content: start;
}

.footer-link {
    font-size: 0.95rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.84);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    padding-top: 2rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.92rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.footer-social-link:hover {
    color: #040957;
    background-color: #ffffff;
    border-color: #ffffff;
}

.footer-note {
    display: block;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.68);
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-icon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (min-width: 768px) {
    .banner-inner {
        flex-wrap: nowrap;
    }

    .backdrop,
    .drawer {
        display: none;
    }
}

@media (max-width: 767px) {
    .top-banner {
        padding: 0.38rem 0;
    }

    .top-banner::after {
        width: 36%;
        clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    }

    .banner-inner {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .banner-contact-list {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 5rem);
        gap: 0.55rem;
        flex-wrap: nowrap;
        font-size: 0.62rem;
        letter-spacing: 0;
    }

    .contact-link {
        gap: 0.22rem;
        white-space: nowrap;
    }

    .contact-icon {
        font-size: 0.58rem;
    }

    .banner-socials {
        margin-left: auto;
        justify-content: flex-end;
        width: auto;
        gap: 0.22rem;
        padding-left: 0.4rem;
        flex-shrink: 0;
    }

    .social-link {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.72rem;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-wrap {
        display: flex;
    }

    .nav-shell {
        width: min(calc(100% - 1.5rem), var(--layout-width));
    }

    .site-footer {
        margin-top: 2.5rem;
        padding: 2.4rem 0.75rem 1.1rem;
    }

    .site-footer > * {
        width: min(calc(100% - 1.5rem), var(--layout-width));
    }

    .footer-top {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-brand-mark {
        width: 2.65rem;
        height: 2.65rem;
    }

    .footer-brand-name {
        font-size: 0.88rem;
    }

    .footer-brand-tag {
        font-size: 0.62rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .footer-contact-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-heading {
        font-size: 0.78rem;
        gap: 0.38rem;
    }

    .footer-heading::after {
        width: 2rem;
    }

    .page-hero h1::after {
        width: 2rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 0.65rem;
    }

    .footer-link,
    .footer-detail-link,
    .footer-copy {
        font-size: 0.9rem;
    }
}

@media (max-width: 1080px) and (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contact-row {
        grid-column: 1 / -1;
    }
}
