/* Shared design tokens and foundations */
:root {
    --navy: #102c3c;
    --navy-deep: #0a202d;
    --orange: #d96935;
    --orange-dark: #b6471b;
    --ink: #1b303d;
    --muted: #62717a;
    --paper: #f5f4f0;
    --line: #dce1e1;
    --white: #ffffff;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.85;
    letter-spacing: .035em;
}

body.modal-open {
    overflow: hidden;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, p, figure {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.45;
    letter-spacing: .025em;
}

h2 {
    font-size: clamp(28px, 2.9vw, 42px);
    font-weight: 700;
    margin-bottom: 24px;
}

h3 {
    font-size: 21px;
}

p {
    color: var(--muted);
    margin-bottom: 20px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--container), calc(100% - 96px));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--orange-dark);
    margin: 0 0 18px;
    line-height: 1.5;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 23px;
    height: 2px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
}

.lead {
    font-size: 21px;
    line-height: 1.9;
    color: var(--ink);
}

.section-title p:last-child {
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 42px;
}

.section-heading .section-title {
    max-width: 790px;
}

.section-heading h2 {
    margin-bottom: 14px;
}

.section-intro {
    max-width: 350px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 85px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 15px 24px;
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.button:hover {
    background: #24495c;
    transform: translateY(-2px);
}

.button span, .text-link span {
    font-size: 20px;
    font-weight: 400;
}

.button.orange {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.button.orange:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.button.outline-light {
    background: transparent;
    border-color: #ffffff70;
    color: white;
}

.button.outline-light:hover {
    background: #ffffff14;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 12px 0;
    border-bottom: 1px solid var(--orange);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--orange-dark);
}

.topbar {
    background: var(--navy-deep);
    color: #dce4e9;
    font-size: 13px;
    letter-spacing: .1em;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    padding-block: 8px;
}

.site-header {
    background: rgba(255,255,255,.97);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #e8eaea;
}

.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-mark {
    width: 57px;
    height: 57px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 26px;
    letter-spacing: .13em;
    line-height: 1.4;
}

.brand small {
    display: block;
    font-size: 13px;
    letter-spacing: .14em;
    font-family: Arial,sans-serif;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding-block: 33px;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .2s;
}

.main-nav a:hover::after, .main-nav a[aria-current]::after {
    width: 100%;
}

.main-nav a:last-child {
    background: var(--navy);
    color: #fff;
    padding: 11px 20px;
}

.main-nav a:last-child::after {
    bottom: 4px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 46px;
    height: 46px;
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
}

.page-hero {
    background: var(--navy-deep) url('../images/inner-banner.jpg') center / cover;
    color: white;
    position: relative;
    padding: 32px 0 65px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #071c2c85, #071c2c70 55%, #071c2c26);
}

.page-hero .eyebrow {
    color: #f5aa7d;
}

.page-hero .breadcrumb,
.page-hero .page-lead {
    color: #e0e8ed;
}

.page-hero .breadcrumb a:hover {
    color: #f5aa7d;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 42px;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.page-hero h1 {
    font-size: clamp(32px, 3.8vw, 54px);
    margin-bottom: 18px;
    max-width: 1050px;
}

.page-lead {
    max-width: 820px;
    margin-bottom: 0;
}

.hero-watermark {
    position: absolute;
    right: 35px;
    bottom: -40px;
    z-index: -1;
    font: 900 120px Arial,sans-serif;
    color: #ffffff0b;
    letter-spacing: -.06em;
}

.service-grid, .case-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.card-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #dde2e2;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1.48;
    object-fit: cover;
    transition: transform .6s;
}

.card-image:hover img {
    transform: scale(1.04);
}

.card-body {
    padding-top: 23px;
}

.card-body h3 {
    margin-bottom: 12px;
}

.card-body h3 a:hover {
    color: var(--orange-dark);
}

.card-body p {
    font-size: 14px;
}

.card-body .eyebrow {
    font-size: 13px;
    margin-bottom: 10px;
}

.image-number {
    position: absolute;
    left: 20px;
    top: 18px;
    color: white;
    font: 32px Arial,sans-serif;
    text-shadow: 0 1px 6px #0008;
}

.tag {
    color: var(--orange-dark);
    font-size: 13px !important;
    margin: 0 0 12px;
}

.tag span {
    color: var(--muted);
    margin-left: 15px;
    border-left: 1px solid var(--line);
    padding-left: 15px;
}

.case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    background: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 9px 16px;
}

.circle-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: white;
    color: var(--navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 23px;
}

.small-note, .photo-note {
    font-size: 13px;
    color: var(--muted);
}

.small-note {
    margin: 32px 0 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 38px;
}

.filter-button {
    border: 1px solid var(--line);
    color: var(--muted);
    background: white;
    padding: 10px 23px;
    font-size: 14px;
}

.filter-button.active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.filter-button:hover {
    border-color: var(--orange);
}

.contact-band {
    background: var(--navy) url('../images/cta.jpg') center / cover;
    position: relative;
    isolation: isolate;
    padding: 70px 0;
    color: #fff;
}

.contact-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#0a202def,#0a202da8);
    z-index: -1;
}

.contact-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.contact-band h2 {
    margin-bottom: 15px;
}

.contact-band p {
    color: #d4dfe4;
    margin-bottom: 0;
}

.contact-band .eyebrow {
    color: #f3a071;
    margin-bottom: 16px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.phone-display {
    font: 400 clamp(30px,3.5vw,48px) Arial,sans-serif;
    letter-spacing: .01em;
}

.site-footer {
    background: var(--paper);
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr .65fr;
    gap: 60px;
    padding-bottom: 45px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-top p {
    font-size: 13px;
}

.footer-top > div > a:not(.brand) {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-label {
    font: 700 13px Arial,sans-serif;
    letter-spacing: .17em;
    margin: 12px 0 22px;
}

.footer-top .footer-tel {
    font: 26px Arial,sans-serif !important;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    align-content: start;
}

.footer-nav .footer-label {
    grid-column: 1 / -1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-block: 22px;
    gap: 20px;
}

.quick-contact {
    position: fixed;
    right: 15px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 25;
}

.quick-contact a, .quick-contact button {
    border: none;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    color: white;
    background: var(--navy);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px #0002;
}

.quick-contact .line-contact {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.quick-contact .line-contact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-contact a:not(.line-contact) img {
    width: 24px;
    height: 24px;
}

.quick-contact .back-top {
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
    font-size: 20px;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    padding: 23px 0;
    font-weight: 700;
    line-height: 1.7;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-q {
    color: var(--orange-dark);
    font: 13px Arial,sans-serif;
}

.faq-plus {
    margin-left: auto;
    font-size: 22px;
    font-weight: 400;
}

.faq-list details[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 32px 10px 45px;
}

.faq-answer p {
    font-size: 15px;
}

.article-content h2 {
    font-size: 28px;
    margin: 42px 0 20px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content p {
    line-height: 2;
}

.article-content .lead {
    font-size: 20px;
}

.detail-cover {
    margin: 0;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
}

figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.note-box {
    background: var(--paper);
    border-left: 3px solid var(--orange);
    padding: 28px 32px;
    margin: 35px 0;
}

.note-box p:last-child {
    margin-bottom: 0;
}

.article-navigation {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.check-list {
    padding: 0;
    list-style: none;
}

.check-list li {
    padding: 12px 0 12px 29px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange-dark);
}

.related-section {
    background: var(--paper);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    padding: 10px 20px;
    background: white;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

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

@media (min-width: 1600px) {
    .home-hero {
        min-height: 760px;
    }
}

@media (max-width: 1150px) {
    .container {
        width: calc(100% - 64px);
    }
    .main-nav {
        gap: 17px;
        font-size: 13px;
    }
    .brand strong {
        font-size: 23px;
    }
    .brand-mark {
        width: 48px;
        height: 48px;
    }
    .split {
        gap: 45px;
    }
}

@media (max-width: 960px) {
    .header-inner {
        min-height: 80px;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 15px 32px 25px;
        box-shadow: 0 12px 16px #0001;
    }
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav a {
        padding: 13px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
    }
    .main-nav a::after {
        display: none;
    }
    .main-nav a[aria-current] {
        color: var(--orange-dark);
    }
    .main-nav a:last-child {
        margin-top: 12px;
        padding: 12px;
        text-align: center;
    }
    .service-grid, .case-grid, .news-grid {
        gap: 22px;
    }
    .section {
        padding: 75px 0;
    }
    .footer-top {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 40px);
    }
    .topbar .container {
        font-size: 13px;
        letter-spacing: 0;
        flex-wrap: wrap;
        gap: 4px 16px;
    }
    .topbar .container > a {
        letter-spacing: 0;
    }
    .header-inner {
        min-height: 74px;
        gap: 12px;
    }
    .brand strong {
        font-size: 22px;
    }
    .brand small {
        font-size: 13px;
        max-width: 160px;
        letter-spacing: .06em;
    }
    .brand-mark {
        width: 46px;
        height: 46px;
    }
    .section {
        padding: 58px 0;
    }
    .section-heading {
        display: block;
        margin-bottom: 28px;
    }
    .section-heading > a {
        margin-top: 17px;
    }
    .split {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .service-grid, .case-grid, .news-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .section-intro {
        margin-top: 24px;
    }
    .lead {
        font-size: 18px;
    }
    .page-hero {
        padding: 24px 0 48px;
    }
    .breadcrumb {
        font-size: 13px;
        gap: 8px;
        margin-bottom: 32px;
    }
    .page-hero h1 {
        font-size: 33px;
    }
    .page-lead {
        font-size: 14px;
    }
    .hero-watermark {
        font-size: 72px;
        bottom: -20px;
    }
    .contact-band {
        padding: 52px 0;
    }
    .contact-band-inner {
        display: block;
    }
    .contact-actions {
        margin-top: 30px;
        align-items: start;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-nav {
        max-width: 330px;
    }
    .footer-bottom {
        display: block;
        padding-right: 30px;
    }
    .footer-bottom span {
        display: block;
    }
    .quick-contact {
        right: 9px;
        bottom: 14px;
        gap: 5px;
    }
    .quick-contact a, .quick-contact button {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }
    .filters {
        gap: 8px;
        margin-bottom: 28px;
    }
    .filter-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    .article-content h2 {
        font-size: 25px;
    }
    .note-box {
        padding: 23px;
    }
    .article-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .faq-list summary {
        font-size: 15px;
        gap: 12px;
    }
    .faq-answer {
        padding-left: 35px;
        padding-right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
