@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
    --bg-soft: #fdf5f5;
    --bg-white: #ffffff;
    --line: #ececec;
    --text: #333333;
    --muted: #5c5c5c;
    --footer: #333333;
    --footer-bottom: #1f1f1f;
    --blue-facebook: #3d5b99;
    --blue-instagram: #4177a6;
    --blue-mail: #27aae1;
    --green-whatsapp: #25d366;
    --shell: min(1220px, calc(100vw - 48px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-soft);
    color: var(--text);
    font-family: "Noto Sans TC", sans-serif;
    line-height: 1.75;
}

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

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

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

.site-shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    background: #fff;
}

.header-top {
    border-bottom: 1px solid #f3f3f3;
}

.header-top-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 144px;
    gap: 16px;
}

.site-search {
    display: flex;
    align-items: center;
    width: 190px;
    max-width: 100%;
    background: #f7f7f7;
    justify-self: start;
}

.site-search input {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #666;
    outline: none;
}

.site-search button {
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: #666;
}

.header-logo {
    justify-self: center;
}

.header-logo img {
    max-height: 64px;
    width: auto;
}

.header-logo span {
    display: block;
    color: #95b81e;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
}

.header-social {
    display: flex;
    justify-self: end;
    gap: 10px;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.social-circle.facebook {
    background: var(--blue-facebook);
}

.social-circle.instagram {
    background: var(--blue-instagram);
}

.social-circle.email {
    background: var(--blue-mail);
}

.header-mobile-bar {
    display: none;
    background: #fafafa;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}

.mobile-menu-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: #444;
    cursor: pointer;
    letter-spacing: 0.05em;
}

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

.header-nav-wrap {
    background: #fff;
    border-top: 1px solid #f2f2f2;
}

.site-nav {
    padding: 0 8px;
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list-level-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 36px;
    row-gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    color: #444;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: #7d5a5a;
}

.nav-list-level-2 {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    z-index: 20;
}

.nav-item:hover > .nav-list-level-2,
.nav-item:focus-within > .nav-list-level-2 {
    display: block;
}

.nav-list-level-2 .nav-link {
    padding: 10px 0;
    width: 100%;
    justify-content: space-between;
}

.home-hero {
    min-height: 308px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.home-hero .site-shell {
    min-height: 308px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.home-intro {
    padding: 14px 0 22px;
}

.intro-content {
    max-width: 1080px;
}

.intro-content p {
    margin: 0;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.9;
}

.home-gallery {
    padding: 22px 0 22px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.home-intro-secondary {
    padding-top: 10px;
    padding-bottom: 30px;
}

.services-section {
    padding: 10px 0 48px;
}

.services-title {
    margin: 0 0 28px;
    color: #85524f;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
}

.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-body {
    padding: 30px 28px 34px;
    text-align: center;
}

.service-body h3 {
    margin: 0;
    color: #444;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.35;
}

.service-body p {
    min-height: 110px;
    margin: 22px 0 26px;
    color: #555;
    font-size: 1rem;
    line-height: 1.9;
}

.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    padding: 14px 28px;
    border: 2px solid #5f6770;
    color: #5f6770;
    font-size: 1rem;
    font-weight: 700;
}

.service-button:hover {
    background: #5f6770;
    color: #fff;
}

.site-footer {
    margin-top: 10px;
}

.footer-main {
    background: var(--footer);
    color: #fff;
    padding: 26px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}

.footer-column {
    min-width: 0;
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand-logo img {
    max-width: 200px;
    max-height: 72px;
    width: auto;
    height: auto;
}

.footer-brand-name {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-site-description {
    margin: 0 0 16px;
    color: #ececec;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact-stack {
    display: grid;
    gap: 12px;
}

.footer-contact-stack p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-social-links {
    display: grid;
    gap: 8px;
}

.footer-social-links a {
    color: #f1f1f1;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-social-links span {
    color: #f1f1f1;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-column-title {
    position: relative;
    margin: 0 0 14px;
    padding-left: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-column-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 3px;
    height: 14px;
    background: #efb7b7;
}

.footer-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-menu-link {
    color: #f4f4f4;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-menu-link:hover,
.footer-social-links a:hover,
.footer-menu-link.is-active {
    color: #ffffff;
}

.footer-bottom {
    background: var(--footer-bottom);
    color: #fff;
    text-align: center;
    padding: 7px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-whatsapp);
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    z-index: 40;
}

.page-hero,
.content-section,
.story-grid,
.content-prose {
    width: var(--shell);
    margin: 0 auto;
}

.page-hero {
    padding: 40px 0 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: 2.2rem;
}

.content-section {
    padding: 20px 0 48px;
}

.content-prose {
    background: #fff;
    padding: 24px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.story-card {
    background: #fff;
}

.story-card-link {
    display: block;
    padding: 24px;
}

.story-card-meta {
    color: #777;
    font-size: 0.88rem;
}

.story-card h3 {
    margin: 8px 0 10px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.story-card p {
    margin: 0;
    color: #555;
}

.story-card-action {
    display: inline-block;
    margin-top: 12px;
    color: #6b6b6b;
    font-weight: 700;
}

.section-eyebrow {
    margin: 0 0 8px;
    color: #85524f;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.empty-state {
    background: #fff;
    padding: 28px;
    text-align: center;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.workshop-card {
    background: #fff;
}

.workshop-card-link {
    display: block;
    height: 100%;
}

.workshop-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.workshop-card-body {
    padding: 24px;
}

.workshop-card-meta {
    margin: 0 0 10px;
    color: #85524f;
    font-size: 0.92rem;
    font-weight: 700;
}

.workshop-card-body h3 {
    margin: 0 0 12px;
    color: #444;
    font-size: 1.65rem;
    line-height: 1.35;
}

.workshop-card-body p {
    margin: 0;
    color: #555;
}

.workshop-card-action {
    display: inline-block;
    margin-top: 16px;
    color: #5f6770;
    font-weight: 700;
}

.workshop-page-hero {
    padding-bottom: 10px;
}

.workshop-header-band {
    min-height: 286px;
    background-repeat: repeat-x;
    background-size: auto;
    background-position: center;
}

.workshop-header-band-inner {
    min-height: 286px;
    display: flex;
    align-items: center;
}

.workshop-header-band h1 {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.workshop-detail-section {
    padding: 28px 0 48px;
}

.workshop-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.workshop-feature-image {
    background: #fff;
    padding: 12px;
}

.workshop-feature-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.workshop-summary {
    padding: 20px 0 10px;
}

.workshop-summary p {
    margin: 0;
    color: #222;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.9;
}

.workshop-prose {
    margin-top: 18px;
}

.workshop-prose img {
    width: 100%;
    height: auto;
}

.workshop-gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.workshop-gallery-strip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.workshop-side-card {
    background: #fff;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.workshop-side-card h2 {
    margin: 0 0 16px;
    color: #85524f;
    font-size: 1.5rem;
}

.workshop-side-card p {
    margin: 0 0 14px;
}

.workshop-side-button {
    width: 100%;
    margin-top: 10px;
}

.pagination-wrapper {
    margin-top: 24px;
}

@media (max-width: 1100px) {
    .services-grid,
    .footer-grid,
    .story-grid,
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-top-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 26px 0;
    }

    .site-search,
    .header-social {
        justify-self: center;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100vw - 16px, 100%);
    }

    .header-top-inner {
        min-height: auto;
        gap: 18px;
        padding: 22px 0 18px;
    }

    .site-search,
    .header-social {
        display: none;
    }

    .header-mobile-bar {
        display: block;
    }

    .header-nav-wrap {
        display: none;
    }

    .header-nav-wrap.is-open {
        display: block;
    }

    .site-nav {
        padding: 0 16px 12px;
    }

    .nav-list-level-1 {
        display: block;
    }

    .nav-link {
        padding: 12px 0;
    }

    .nav-list-level-2 {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
    }

    .home-hero,
    .home-hero .site-shell {
        min-height: 330px;
    }

    .home-hero h1 {
        font-size: 2rem;
        line-height: 1.45;
        text-align: left;
        padding: 0 10px;
    }

    .intro-content p {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .gallery-grid,
    .services-grid,
    .footer-grid,
    .story-grid,
    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .workshop-detail-grid {
        grid-template-columns: 1fr;
    }

    .workshop-header-band,
    .workshop-header-band-inner {
        min-height: 220px;
    }

    .workshop-gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-body {
        padding: 22px 16px 26px;
    }

    .service-body p {
        min-height: 0;
    }

    .whatsapp-float {
        width: 70px;
        height: 70px;
        right: 12px;
        bottom: 18px;
    }
}
