:root {
    --bg: #f4fbf3;
    --bg-soft: #e8f5e7;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: #f8fffa;
    --line: rgba(79, 126, 96, 0.16);
    --text: #1f3126;
    --muted: #617564;
    --primary: #6ba57d;
    --primary-deep: #35694a;
    --accent: #d9ecd8;
    --shadow: 0 24px 80px rgba(87, 128, 98, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(132, 184, 143, 0.26), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(208, 234, 210, 0.88), transparent 22%),
        linear-gradient(180deg, #f9fff8 0%, var(--bg) 54%, #eff7ee 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(73, 108, 83, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 108, 83, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 82%);
    opacity: 0.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(1240px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 24px 0 60px;
    position: relative;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    position: sticky;
    top: 16px;
    z-index: 20;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 255, 249, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(90, 126, 103, 0.1);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 130px;
    height: auto;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-deep);
}

.brand-name {
    margin: 0;
    font-size: 0.98rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.header-cta,
.button {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-cta {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary-deep);
    color: white;
    font-weight: 700;
}

.section {
    margin-top: 34px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
    gap: 36px;
    align-items: center;
    padding: 54px 14px 12px;
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2 {
    margin: 0;
    font-family: "Noto Serif TC", serif;
    font-weight: 700;
    line-height: 1.1;
}

.hero-copy h1 {
    font-size: clamp(2.9rem, 6vw, 5.5rem);
    letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.service-card p,
.advantage-stack p,
.team-card p,
.contact-grid p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-text {
    max-width: 640px;
    margin: 22px 0 0;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    background: var(--primary-deep);
    color: white;
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.hero-metrics article,
.service-card,
.trust-band,
.advantage-stack article,
.team-card,
.contact-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-metrics article {
    border-radius: 22px;
    padding: 18px;
}

.hero-metrics strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.24rem;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    display: grid;
    gap: 18px;
}

.hero-carousel {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(88, 129, 97, 0.18);
    box-shadow: 0 14px 34px rgba(89, 126, 99, 0.15);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}

.carousel-slides {
    position: relative;
    min-height: 620px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 500ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 46, 31, 0.12), rgba(22, 40, 27, 0.55));
}

.carousel-overlay {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    z-index: 1;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(245, 252, 246, 0.7);
    backdrop-filter: blur(14px);
}

.carousel-overlay .eyebrow {
    margin-bottom: 8px;
}

.carousel-overlay strong {
    display: block;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.35;
}

.carousel-controls {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-arrow,
.carousel-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-deep);
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(74, 116, 88, 0.16);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(74, 116, 88, 0.14);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(69, 107, 81, 0.28);
}

.carousel-dot.is-active {
    background: var(--primary-deep);
}

.contact-grid span,
.contact-grid span,
.service-card span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-deep);
}

.trust-band {
    padding: 22px 26px;
    border-radius: 28px;
}

.trust-band p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.compact {
    max-width: 560px;
}

.service-grid,
.team-grid {
    display: grid;
    gap: 18px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    min-height: 240px;
    padding: 22px;
    border-radius: 28px;
}

.service-card h3,
.advantage-stack h3,
.team-card h3 {
    margin: 16px 0 10px;
    font-size: 1.25rem;
}

.accent-card {
    background: linear-gradient(180deg, rgba(103, 157, 120, 0.96), rgba(76, 125, 95, 0.96));
    color: white;
}

.accent-card p,
.accent-card span {
    color: rgba(255, 255, 255, 0.82);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.advantage-stack {
    display: grid;
    gap: 16px;
}

.advantage-stack article {
    padding: 22px 24px;
    border-radius: 28px;
}

.team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    min-height: 100%;
}

.team-card div {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
    padding-right: 136px;
}

.team-card img {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 86px;
    height: 112px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 20px;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(74, 116, 88, 0.16);
}

.team-card p:last-child {
    margin-bottom: 0;
}

.team-card .role {
    margin: 0 0 12px;
    color: var(--primary-deep);
    font-weight: 700;
}

.team-card h3 {
    max-width: calc(100% - 112px);
}

.contact-section {
    padding-top: 10px;
}

.contact-panel {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(54, 96, 67, 0.92), rgba(42, 80, 55, 0.95));
    color: white;
}

.contact-map-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(231, 242, 234, 0.18);
    border-radius: 28px;
    background: rgba(245, 252, 247, 0.08);
}

.contact-map-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
}

.contact-map-copy span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(222, 242, 226, 0.74);
}

.contact-map-copy h3 {
    margin: 12px 0 10px;
    font-size: 1.6rem;
    line-height: 1.3;
}

.contact-map-copy p {
    margin: 0;
    color: rgba(246, 252, 247, 0.88);
    line-height: 1.8;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-deep);
    font-weight: 700;
}

.contact-map-frame {
    overflow: hidden;
    min-height: 280px;
    border-radius: 22px;
    border: 1px solid rgba(231, 242, 234, 0.16);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.light .eyebrow,
.contact-grid span {
    color: rgba(222, 242, 226, 0.74);
}

.light p,
.contact-grid p,
.contact-grid a {
    color: rgba(246, 252, 247, 0.92);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.contact-grid article {
    padding: 18px 0 0;
    border-top: 1px solid rgba(231, 242, 234, 0.18);
}

.contact-grid a,
.contact-grid p {
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding: 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .site-header {
        border-radius: 30px;
        padding: 18px;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .split-section,
    .team-grid,
    .service-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-map-card {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .carousel-slides,
    .carousel-slide img {
        min-height: 560px;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100vw - 24px, 1240px);
        padding-top: 12px;
    }

    .site-header {
        position: static;
        border-radius: 26px;
    }

    .brand-mark {
        width: 100%;
    }

    .brand-logo {
        width: 108px;
    }

    .site-nav {
        gap: 16px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero,
    .hero-metrics,
    .service-grid,
    .split-section,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-card {
        padding: 14px;
    }

    .contact-map-copy h3 {
        font-size: 1.35rem;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 240px;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 14vw, 3.5rem);
    }

    .hero-carousel,
    .carousel-slides,
    .carousel-slide img {
        min-height: 420px;
    }

    .carousel-overlay {
        left: 16px;
        right: 16px;
        bottom: 72px;
        padding: 16px 18px;
    }

    .carousel-controls {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }

    .team-card div {
        padding-right: 118px;
    }

    .team-card img {
        width: 74px;
        height: 96px;
        border-radius: 18px;
    }

    .contact-panel {
        padding: 24px;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}