/* Shared design system */
:root {
    --ink: #142d39;
    --navy: #0c2533;
    --green: #23674e;
    --lime: #d3e88b;
    --paper: #f5f6f1;
    --muted: #607078;
    --line: #dce2df;
    --white: #ffffff;
    --gutter: clamp(22px, 5vw, 96px);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.menu-open, body.modal-open {
    overflow: hidden;
}

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

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

button {
    cursor: pointer;
}

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

button, a, input, select, textarea, summary {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #3a9675;
    outline-offset: 5px;
}

::selection {
    background: var(--lime);
    color: var(--navy);
}

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

h1, h2, h3 {
    line-height: 1.35;
}

h1, h2 {
    font-weight: 600;
    letter-spacing: .01em;
}

h2 {
    font-size: clamp(28px, 3.2vw, 48px);
    margin-bottom: 18px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

p {
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

.wrap {
    width: 100%;
    padding-inline: var(--gutter);
}

.section {
    padding-block: 64px;
}

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

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--green);
    display: block;
    margin-bottom: 10px;
}

.section-top {
    display: flex;
    justify-content: flex-start;
    align-items: end;
    gap: 16px 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-top h2 {
    margin-bottom: 0;
}

.section-top p {
    max-width: 500px;
    margin-bottom: 4px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    border-bottom: 1px solid var(--ink);
    padding-block: 6px;
    white-space: nowrap;
}

.text-link span, .round-arrow {
    transition: transform .25s;
}

.text-link:hover span {
    transform: translateX(6px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 53px;
    padding: 13px 25px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--green);
    background: var(--green);
    color: white;
    transition: background .25s, transform .25s;
}

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

.button.light {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--navy);
}

.button.outline {
    color: var(--ink);
    background: transparent;
    border-color: #acb8b5;
}

.button.outline:hover {
    background: var(--paper);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

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

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

/* Brand header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-inline: clamp(22px, 3.8vw, 72px);
    background: rgba(250, 252, 249, .97);
    border-bottom: 1px solid #dce6df;
    backdrop-filter: blur(18px);
    transition: box-shadow .25s;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--green) 0%, var(--lime) 30%, transparent 68%);
    pointer-events: none;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px #102d3912;
}

.brand {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
}

.brand img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(5px, .75vw, 14px);
}

.site-nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--green);
    background: #e8f0e7;
}

.site-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: calc(50% - 2px);
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
}

.site-nav .nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    margin-left: 8px;
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
    border-radius: 24px;
}

.site-nav .nav-contact::after {
    content: '↗';
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: var(--lime);
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current="page"] {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.menu-toggle {
    display: none;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d0dfd3;
    border-radius: 14px;
    background: #eaf1e7;
    color: var(--green);
    transition: background .2s, border-color .2s;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, width .25s, top .25s;
}

.menu-toggle span:nth-child(1) {
    top: 16px;
}

.menu-toggle span:nth-child(2) {
    top: 24px;
    left: auto;
    right: 11px;
    width: 14px;
}

.menu-toggle span:nth-child(3) {
    display: none;
}

.menu-toggle:hover {
    background: #dcebd9;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    top: 20px;
    width: 20px;
    transform: rotate(-45deg);
}

.inner-hero {
    position: relative;
    min-height: 290px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.inner-hero > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    opacity: .43;
}

.inner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(7,32,45,.86),rgba(7,32,45,.06));
}

.inner-hero .wrap {
    position: relative;
    z-index: 1;
    padding-block: 44px;
}

.inner-hero .eyebrow {
    color: var(--lime);
}

.inner-hero h1 {
    font-size: clamp(35px, 4.3vw, 62px);
    margin-bottom: 12px;
}

.inner-hero p {
    color: #e3ecea;
    margin: 0;
    max-width: 620px;
}

.breadcrumb {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 19px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

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

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

.card {
    min-width: 0;
}

.card-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #e5e9e3;
    aspect-ratio: 1.45;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s;
}

.card:hover .card-media img {
    transform: none;
}

.card-body {
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--green);
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.card h3 {
    font-size: clamp(19px,1.6vw,25px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 0;
    font-size: 15px;
}

.round-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #bec9c2;
    border-radius: 50%;
    font-size: 19px;
}

.card:hover .round-arrow {
    transform: rotate(-35deg);
    background: var(--lime);
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-button {
    background: white;
    color: var(--ink);
    border: 1px solid #cbd4cc;
    padding: 10px 23px;
    border-radius: 30px;
    font-size: 15px;
}

.filter-button[aria-pressed="true"], .filter-button:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.result-count {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.cta {
    background: var(--navy) url('../images/background-energy.jpg') center/cover;
    color: white;
    padding-block: 52px;
}

.cta .wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px 40px;
    flex-wrap: wrap;
}

.cta .eyebrow {
    color: var(--lime);
}

.cta h2 {
    margin-bottom: 14px;
    font-size: clamp(28px,3vw,44px);
}

.cta p {
    color: #cbdad9;
    margin-bottom: 0;
}

/* Footer: brand, direct contact and site navigation */
.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: 32px;
    background: linear-gradient(115deg, #f0f4ec, #e7efea);
}

.site-footer::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -250px;
    top: -280px;
    border: 45px solid #28674e08;
    border-radius: 50%;
    pointer-events: none;
}

.footer-heading {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.footer-heading .eyebrow {
    margin: 0;
    font-size: 13px;
    letter-spacing: .08em;
}

.footer-service-line {
    padding-left: 24px;
    border-left: 1px solid #b8cbbb;
    color: var(--muted);
    font-size: 14px;
}

.footer-main {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1.15fr .8fr;
    gap: 40px;
    padding-bottom: 38px;
}

.footer-logo {
    display: block;
    max-width: 340px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand p {
    margin: 0;
}

.footer-brand .footer-company {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.footer-brand .footer-partner {
    margin-top: 2px;
    color: var(--green);
    font-size: 14px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-tags span {
    padding: 3px 10px;
    border: 1px solid #c9d8cc;
    border-radius: 4px;
    font-size: 13px;
    color: #4c6558;
}

.footer-contact,
.footer-explore {
    padding-top: 8px;
}

.footer-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-title > span {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--muted);
}

.footer-main address {
    font-style: normal;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--green);
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 18px;
}

.footer-phone > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #bdcfc0;
    border-radius: 50%;
    font-size: 22px;
}

.footer-address {
    display: flex;
    align-items: baseline;
    gap: 12px;
    max-width: 355px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cad8cd;
    font-size: 15px;
}

.footer-visit {
    margin: 12px 0 0;
    font-size: 13px;
}

.footer-main a:hover {
    color: #174d39;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    font-size: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 6px;
}

.footer-links a::after {
    content: '↗';
    color: #769683;
    font-size: 13px;
    transition: transform .2s;
}

.footer-links a:hover::after {
    transform: translate(2px, -2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-block: 18px;
    background: var(--navy);
    border-top: 3px solid #b5ce8b;
    color: #dae4e0;
    font-size: 13px;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--lime);
    white-space: nowrap;
}

.to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 30;
    width: 46px;
    height: 46px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 4px 20px #102b3410;
    font-size: 22px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 36px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-main .lead {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.8;
}

.article-main h2 {
    font-size: 29px;
    margin-top: 28px;
    margin-bottom: 14px;
}

.article-main h3 {
    margin-top: 24px;
}

.article-image {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    margin-bottom: 24px;
    height: auto;
    background: var(--paper);
}

.article-side {
    position: sticky;
    top: 125px;
    background: var(--paper);
    padding: 30px;
    border-top: 3px solid var(--green);
}

.article-side h2 {
    font-size: 21px;
}

.article-side p {
    font-size: 15px;
}

.article-side .button {
    width: 100%;
    margin-top: 12px;
}

.side-links {
    display: grid;
}

.side-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.side-links a[aria-current="page"] {
    color: var(--green);
    font-weight: bold;
}

.note {
    padding: 24px 28px;
    background: var(--paper);
    border-left: 3px solid var(--green);
    margin-block: 30px;
    color: var(--muted);
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    margin-top: 32px;
    padding-top: 20px;
    font-size: 15px;
}

.detail-nav a {
    max-width: 44%;
}

@media (min-width: 1800px) {
    .wrap {
        max-width: 1920px;
        margin-inline: auto;
    }
}

@media (max-width: 1120px) {
    .article-layout {
        gap: 35px;
        grid-template-columns: minmax(0,1fr) 270px;
    }
}

@media (max-width: 960px) {
    .grid-3 {
        gap: 25px;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .section {
        padding-block: 52px;
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-side {
        position: static;
    }
}

@media (max-width: 600px) {
    .section {
        padding-block: 40px;
    }
    .section-top {
        display: block;
        margin-bottom: 24px;
    }
    .section-top .text-link, .section-top p {
        margin-top: 12px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .inner-hero {
        min-height: 250px;
    }
    .inner-hero h1 {
        font-size: 34px;
    }
    .inner-hero .wrap {
        padding-block: 44px;
    }
    .cta .wrap {
        display: block;
    }
    .filter-button {
        padding: 9px 17px;
    }
    .article-main h2 {
        font-size: 26px;
    }
    .article-main .lead {
        font-size: 20px;
    }
    .to-top {
        bottom: 16px;
        right: 14px;
    }
}

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

/* Responsive brand layout */
@media (max-width: 1120px) {
    .site-header {
        padding-inline: 24px;
        gap: 18px;
    }
    .brand {
        flex-basis: 260px;
    }
    .brand img {
        width: 260px;
    }
    .site-nav {
        gap: 4px;
    }
    .site-nav a {
        padding-inline: 9px;
    }
    .site-nav .nav-contact {
        padding-inline: 16px;
        gap: 9px;
    }
    .footer-main {
        gap: 28px;
        grid-template-columns: 1fr 1.1fr .85fr;
    }
}

@media (max-width: 960px) {
    html {
        scroll-padding-top: 80px;
    }
    .site-header {
        height: 65px;
        padding-inline: 22px;
    }
    .brand {
        flex-basis: 240px;
    }
    .brand img {
        width: 240px;
    }
    .menu-toggle {
        display: block;
    }
    .site-nav {
        display: none;
        position: fixed;
        inset: 65px 0 auto;
        height: calc(100dvh - 65px);
        padding: 26px var(--gutter) 36px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #f4f7f0;
        align-content: start;
        gap: 0;
        counter-reset: menu-item;
        border-top: 1px solid #dbe5d9;
    }
    .site-nav.is-open {
        display: grid;
    }
    .site-nav::before {
        content: 'EXPLORE HAUCHEN';
        color: var(--green);
        font-size: 13px;
        letter-spacing: .1em;
        margin-bottom: 14px;
    }
    .site-nav a {
        display: flex;
        align-items: center;
        gap: 18px;
        font-size: 15px;
        padding: 17px 14px;
        border-radius: 6px;
        border-bottom: 1px solid #dce5d9;
        counter-increment: menu-item;
    }
    .site-nav a::before {
        content: '0' counter(menu-item);
        color: #67836d;
        font-size: 13px;
    }
    .site-nav a::after,
    .site-nav a[aria-current="page"]::after {
        content: '↗';
        position: static;
        width: auto;
        height: auto;
        margin-left: auto;
        background: none;
        color: var(--green);
        font-size: 18px;
    }
    .site-nav .nav-contact {
        margin: 20px 0 0;
        padding: 17px 20px;
        border-radius: 10px;
        background: var(--green);
        border-color: var(--green);
        color: white;
    }
    .site-nav .nav-contact::before,
    .site-nav .nav-contact::after {
        color: var(--lime);
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-header {
        height: 65px;
        padding-inline: 16px;
        gap: 12px;
    }
    .brand {
        flex: 0 1 235px;
        min-width: 0;
    }
    .brand img {
        width: 100%;
    }
    .site-footer {
        padding-top: 26px;
    }
    .footer-heading {
        gap: 6px;
        margin-bottom: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-service-line {
        padding-left: 0;
        border: 0;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 28px;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-logo {
        max-width: 310px;
        margin-bottom: 14px;
    }
    .footer-contact,
    .footer-explore {
        border-top: 1px solid #c9d8cd;
        padding-top: 22px;
    }
    .footer-phone {
        font-size: 32px;
    }
    .footer-title {
        margin-bottom: 12px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 70px;
    }
}
