/* 首頁樣式：橫幅輪播、服務、實績、修繕知識與關於我們 */
.hero {
    height: min(810px, 43vw);
    min-height: 550px;
    margin: 0px 3%;
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    background: var(--navy);
}

.hero > img {
    width: 100%;
    height: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(90deg, rgba(16, 44, 60, 0.79), transparent 80%);
}

.hero::before {
    content: "";
    width: 200px;
    height: 50px;
    background: white;
    position: absolute;
    z-index: 3;
    left: 0px;
    top: 0px;
    border-radius: 0px 0px 30px;
}

.hero-copy {
    position: absolute;
    top: 27%;
    left: 7%;
    z-index: 4;
    color: white;
}

.hero-copy h1 {
    font-size: clamp(32px, 3vw, 56px);
}

.hero-copy p {
    color: white;
    font-size: 20px;
}

.hero-copy .handwritten {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 8px;
}

.hero-copy .pill {
    color: white;
    border-color: rgba(255, 255, 255, 0.44);
}

.hero-ribbon {
    width: 1000px;
    height: 230px;
    border: 65px solid rgba(184, 120, 64, 0.565);
    border-radius: 50%;
    position: absolute;
    left: -120px;
    bottom: -165px;
    z-index: 3;
    transform: rotate(-9deg);
}

.hero-dots {
    color: var(--gold);
    position: absolute;
    bottom: 30px;
    left: 7%;
    z-index: 4;
    font-size: 32px;
    letter-spacing: 12px;
}

.needs {
    margin-left: 6%;
    border-radius: 0px 0px 60px 60px;
    padding-top: 125px;
    padding-bottom: 120px;
    background: white;
}

.needs::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 80px;
    bottom: -100px;
    width: 7vw;
    background: var(--cream);
}

.orb {
    position: absolute;
    top: 100px;
    right: 14%;
    width: 100px;
    height: 100px;
    background: rgb(133, 170, 160);
    border-radius: 50%;
}

.orb::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
}

.needs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    border-top: 1px dashed rgb(204, 208, 203);
    padding-top: 65px;
}

.need h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.need i {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    margin-right: 12px;
}

.need > p {
    font-size: 17px;
    min-height: 58px;
}

.need > div {
    position: relative;
}

.need img {
    width: 100%;
    height: 470px;
    border-radius: 30px;
}

.vertical {
    position: absolute;
    top: 30px;
    left: 25px;
    writing-mode: vertical-rl;
    background: white;
    border-radius: 5px;
    padding: 15px 8px;
    font-size: 18px;
    letter-spacing: 3px;
}

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

.home-services {
    background: var(--cream);
    margin-right: 6%;
    border-radius: 0px 60px 60px 0px;
}

.side-word {
    position: absolute;
    right: -25px;
    top: 25px;
    writing-mode: vertical-rl;
    font-size: 130px;
    font-weight: 800;
    line-height: 1;
    color: var(--teal);
    opacity: 0.85;
}

.side-word.left {
    left: 0px;
    right: auto;
}

.home-news .card img {
    aspect-ratio: 1 / 1;
}

.home-about {
    margin-left: 6%;
    border-radius: 60px 0px 0px 60px;
    background: var(--navy);
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 720px;
    align-items: center;
    padding: 80px 7% 80px 0px;
}

.about-picture img {
    border-radius: 0px 30px 30px 0px;
}

.about-copy {
    padding-left: 13%;
    color: white;
}

.about-copy p {
    color: rgb(215, 225, 223);
}

.about-copy .eyebrow {
    color: var(--gold);
}

.about-copy .pill {
    border-color: rgba(255, 255, 255, 0.44);
}

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.values span {
    font-size: 32px;
    color: var(--gold);
}

.values b {
    display: block;
    font-size: 16px;
    color: white;
    font-weight: 400;
}

.marquee {
    overflow: hidden;
    padding: 20px 0px;
    font-size: clamp(55px, 8vw, 155px);
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.5;
}

.marquee span {
    display: inline-block;
    animation: 25s linear 0s infinite normal none running drift;
}

@keyframes drift { 
  100% { transform: translateX(-30%); }
}

@media (max-width: 900px) {
    .hero {
        height: 650px;
    }

    .hero-copy {
        top: 25%;
    }

    .needs {
        margin: 0px;
    }

    .needs-grid {
        gap: 25px;
    }

    .need img {
        height: 330px;
    }

    .need h3 {
        font-size: 21px;
    }

    .orb {
        right: 7%;
        top: 60px;
        width: 60px;
        height: 60px;
    }

    .side-word {
        font-size: 85px;
    }

    .home-about {
        grid-template-columns: 1fr;
        margin-left: 3%;
    }

}

@media (max-width: 600px) {
    .hero > img {
        object-position: 65% center;
    }

    .hero::before {
        width: 100px;
        height: 25px;
    }

    .needs-grid {
        grid-template-columns: 1fr;
        padding-top: 35px;
    }

    .need > p {
        min-height: 0px;
    }

    .orb {
        opacity: 0.3;
    }

    .home-services {
        margin: 0px;
    }

    .side-word {
        font-size: 65px;
        opacity: 0.12;
    }

}

.news-carousel {
    position: relative;
}

.news-prev,
.news-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border: 0px;
    border-radius: 50%;
    background: white;
    color: var(--navy);
    box-shadow: rgba(32, 59, 76, 0.094) 0px 8px 24px;
    font-size: 30px;
    z-index: 2;
}

.news-prev {
    left: -29px;
}

.news-next {
    right: -29px;
}

.home-services {
    overflow: visible;
    isolation: isolate;
    z-index: 2;
}

.home-services .side-word {
    z-index: 3;
    pointer-events: none;
}

.home-services .card-copy {
    padding-top: 24px;
}

.home-services .center:last-child {
    margin-top: 32px;
}

.home-cases {
    margin: 70px 3% 45px;
    padding: 80px 6% 70px;
    background: linear-gradient(120deg, rgb(232, 238, 231), rgb(248, 246, 239) 75%);
    border: 1px solid rgb(215, 223, 212);
    border-radius: 50px;
    position: relative;
}

.home-cases::before {
    content: "";
    position: absolute;
    top: 35px;
    right: 4%;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(66, 121, 111, 0.125);
    border-radius: 50%;
    box-shadow: rgba(66, 121, 111, 0.02) 0px 0px 0px 25px;
}

.home-cases .section-heading {
    max-width: 950px;
    margin-bottom: 45px;
}

.home-cases .case-card {
    padding: 13px 13px 0px;
    background: rgba(255, 255, 255, 0.71);
    border: 1px solid rgba(255, 255, 255, 0.71);
    border-radius: 35px;
}

.home-cases .right {
    margin-top: 25px;
}

.home-news {
    padding-top: 85px;
}

.home-about {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-picture {
    margin-left: calc(-6.383vw);
    width: calc(100% + 6.383vw);
    position: relative;
    z-index: 1;
}

.about-picture img {
    width: 100%;
    height: 610px;
}

.about-copy {
    position: relative;
    z-index: 2;
}

.about-decoration {
    position: absolute;
    right: 3%;
    top: 25px;
    color: var(--gold);
    opacity: 0.8;
    pointer-events: none;
}

.values {
    gap: 0px;
    margin: 38px 0px;
}

.value-item {
    padding: 0px 10px;
    text-align: center;
    border-right: 1px dashed rgba(255, 255, 255, 0.19);
}

.value-item:last-child {
    border: 0px;
}

.value-icon {
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0px auto 13px;
    background: rgb(229, 238, 233);
    border-radius: 50%;
    display: grid !important;
    color: var(--navy) !important;
}

.value-icon > .icon {
    width: 36px;
    height: 36px;
}

.value-item b {
    font-size: 18px;
    font-weight: 700;
}

.value-item small {
    display: block;
    font-size: 15px;
    color: rgb(192, 211, 208);
    margin-top: 5px;
}

.hero-slides {
    position: absolute;
    inset: 0px;
}

.hero-slide {
    position: absolute;
    inset: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.3s;
    transform: scale(1.03);
}

.hero-slide.is-active {
    opacity: 1;
    animation: 8s linear 0s 1 normal both running hero-zoom;
}

.hero-controls {
    position: absolute;
    bottom: 32px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 5;
    color: white;
}

.hero-controls > span {
    font-size: 15px;
    letter-spacing: 2px;
}

.hero-pagination {
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    padding: 0px;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.314);
    border-radius: 50%;
    transition: width 0.3s, background 0.3s;
}

.slide-dot.is-active {
    width: 28px;
    border-radius: 10px;
    background: var(--gold);
    border-color: var(--gold);
}

.hero-pause {
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: rgba(32, 59, 76, 0.19);
    color: white;
    display: grid;
    place-items: center;
}

.hero-pause > .icon {
    width: 17px;
    height: 17px;
}

.hero-ribbon {
    animation: 9s ease-in-out 0s infinite normal none running gentle-float;
}

.orb {
    animation: 7s ease-in-out 0s infinite normal none running gentle-float;
}

.circle-arrow > .icon {
    width: 27px;
    height: 27px;
}

.news-prev,
.news-next {
    display: grid;
    place-items: center;
}

.news-prev > .icon,
.news-next > .icon {
    width: 24px;
    height: 24px;
}

@keyframes gentle-float { 
  0%, 100% { translate: 0px; }
  50% { translate: 0px -15px; }
}
@keyframes hero-zoom { 
  0% { transform: scale(1.03); }
  100% { transform: scale(1.09); }
}

@media (min-width: 1700px) {
    .home-cases {
        padding-left: 10%;
        padding-right: 5%;
    }

}

@media (max-width: 1100px) {
    .values {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }

    .value-item:nth-child(2) {
        border: 0px;
    }

}

@media (max-width: 900px) {
    .home-about {
        padding: 55px 6%;
    }

    .about-picture {
        width: 100%;
        margin: 0px;
    }

    .about-picture img {
        height: 410px;
        border-radius: 30px;
    }

    .about-copy {
        padding: 40px 0px 0px;
    }

    .values {
        grid-template-columns: repeat(4, 1fr);
    }

    .value-item small {
        display: none;
    }

    .value-icon {
        width: 66px;
        height: 66px;
    }

    .value-item b {
        font-size: 16px;
    }

    .about-decoration {
        opacity: 0.3;
        top: auto;
        bottom: 20px;
        right: 10%;
    }

    .home-cases {
        padding: 60px 5%;
        margin: 40px 3%;
    }

    .hero-controls > span {
        display: none;
    }

}

@media (max-width: 600px) {
    .home-cases {
        border-radius: 30px;
    }

    .home-news {
        padding-top: 20px;
    }

    .values {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }

    .value-item small {
        display: block;
    }

    .hero-dots {
        display: none;
    }

    .home-cases .section-heading p {
        font-size: 17px;
    }

    .home-services {
        overflow: clip;
    }

}
.hero {
    border-top-left-radius: 0px;
}

.hero::before {
    display: none;
}

.hero-notch {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 245px;
    height: 90px;
    z-index: 5;
    pointer-events: none;
}

.home-services .section-heading,
.home-news .section-heading {
    margin-bottom: 48px;
}

.home-services .side-word {
    font-weight: 800;
    opacity: 0.9;
    line-height: 1;
}

.home-news .side-word {
    font-size: 145px;
    font-weight: 800;
    opacity: 0.9;
    line-height: 1;
}

.home-services .side-word {
    top: 24px;
}

.home-news .side-word {
    left: 18px;
    top: 18px;
}

.home-news {
    padding-left: 14%;
}

.section-geometry {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.home-services .section-geometry {
    right: 20px;
    bottom: -70px;
    transform: rotate(15deg);
}

.home-news .section-geometry {
    right: 4%;
    top: -55px;
    transform: rotate(-12deg);
}

.confetti {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 22px);
    gap: 13px;
    pointer-events: none;
    transform: rotate(-25deg);
}

.confetti i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
}

.confetti i:nth-child(3n+1) {
    background: rgb(116, 172, 160);
}

.confetti i:nth-child(3n+2) {
    background: rgb(214, 126, 82);
}

.home-news .confetti {
    left: 4%;
    bottom: 100px;
}

.home-services .confetti {
    left: 4%;
    top: 75px;
    opacity: 0.65;
}

.needs .section-heading p {
    margin-top: 0px;
}

.about-copy h2 {
    margin-bottom: 20px;
}

.about-copy > p:not(.eyebrow) {
    font-size: 18px;
}

.about-copy .lead {
    margin-bottom: 24px;
    font-size: 24px !important;
}

@media (max-width: 1100px) {
    .home-news .side-word {
        left: 0px;
    }

    .section-geometry .geometry-art {
        width: 135px;
        height: 135px;
    }

}

@media (max-width: 600px) {
    .hero-notch {
        width: 160px;
        height: 59px;
    }

    .home-services .side-word {
        opacity: 0.25;
    }

    .home-news .side-word {
        opacity: 0.25;
    }

    .home-news .side-word {
        left: 0px;
    }

    .home-services .section-geometry {
        bottom: -40px;
        right: 10px;
    }

    .home-news .section-geometry {
        top: -25px;
        right: 4%;
    }

    .section-geometry .geometry-art {
        width: 85px;
        height: 85px;
    }

    .confetti {
        grid-template-columns: repeat(3, 12px);
        gap: 7px;
    }

    .confetti i {
        width: 12px;
        height: 12px;
    }

    .home-services .confetti {
        left: 5%;
        top: 22px;
    }

    .home-news .confetti {
        display: none;
    }

}
.home-services .side-word {
    right: -65px;
    font-size: 175px;
}

.home-services {
    padding-right: 10%;
}

@media (max-width: 1500px) {
    .home-services .side-word {
        right: -45px;
        font-size: 150px;
    }

}

@media (max-width: 1100px) {
    .home-services .side-word {
        right: -25px;
        font-size: 115px;
    }

}

@media (max-width: 600px) {
    .home-services .side-word {
        right: -8px;
        font-size: 80px;
    }

    .hero {
        width: 100%;
        margin: 0px;
        border-radius: 0px 0px 28px 28px;
        max-height: 800px;
    }

    .hero-notch {
        display: none;
    }

    .hero-copy {
        left: 7%;
        right: 7%;
    }

    .hero-copy h1 {
        font-size: clamp(27px, 7.4vw, 34px);
        letter-spacing: 0.4px;
        line-height: 1.5;
    }

    .hero-copy p {
        font-size: 18px;
        text-wrap: balance;
    }

    .hero-copy .handwritten {
        font-size: 34px;
    }

    .hero-controls {
        right: 7%;
    }

    .home-services .side-word,
    .home-news .side-word {
        display: none;
    }

    .home-news {
        padding-left: 6%;
        padding-right: 6%;
    }

    .home-services {
        margin-right: 0px;
    }

    .section-geometry {
        display: none;
    }

    .home-cases {
        margin: 35px 4%;
        padding: 45px 5%;
    }

    .home-cases .grid {
        width: 100%;
        margin: 0px auto;
        grid-template-columns: minmax(0px, 1fr);
    }

    .home-cases .case-card {
        width: 100%;
        margin: 0px auto;
        padding: 12px 12px 0px;
    }

    .home-cases .card-image,
    .home-cases .card-image img,
    .home-cases .section-heading {
        width: 100%;
    }

    .home-cases::before {
        display: none;
    }

    .home-about {
        margin-left: 0px;
        margin-right: 0px;
        padding: 0px 0px 45px;
        border-radius: 0px 30px 30px 0px;
    }

    .about-picture {
        margin: 0px;
        width: 100%;
    }

    .about-picture img {
        width: 100%;
        height: 320px;
        border-radius: 0px 30px 30px 0px;
    }

    .about-copy {
        padding: 35px 7% 0px;
    }

    .about-copy .lead {
        text-wrap: balance;
        font-size: 22px !important;
    }

    .about-decoration {
        display: none;
    }

    .needs {
        margin-left: 0px;
        padding-left: 7%;
        padding-right: 7%;
    }

    .needs .orb {
        display: none;
    }

    .home-services {
        padding: 55px 5.5% 45px;
        background: rgb(244, 244, 245);
        border-radius: 0px 28px 28px 0px;
    }

    .home-services .section-heading,
    .home-news .section-heading {
        margin-bottom: 30px;
    }

    .home-services .section-heading h2 {
        font-size: 26px;
    }

    .home-services .section-heading p {
        font-size: 16px;
        line-height: 1.65;
    }

    .home-services .confetti {
        display: none;
    }

    .home-services .card-copy {
        padding: 16px 0px 22px;
    }

    .home-services .grid {
        gap: 20px;
    }

    .home-services .card-image img {
        border-radius: 20px;
    }

    .home-cases .card-copy {
        padding: 16px 6px 20px;
    }

    .home-news .card-copy {
        padding: 16px 0px 22px;
    }

    .hero {
        height: calc(-70px + 100svh);
        min-height: 570px;
    }

    .hero-copy {
        top: 21%;
    }

    .hero-copy h1 {
        margin-bottom: 20px;
    }

    .hero-copy .handwritten {
        margin-bottom: 16px;
    }

    .hero-controls {
        bottom: 26px;
    }

    .needs {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .needs .section-heading {
        margin-bottom: 30px;
    }

    .needs-grid {
        gap: 35px;
    }

    .need > p {
        font-size: 16px;
        line-height: 1.7;
    }

    .need img {
        height: auto;
        aspect-ratio: 1 / 1.12;
    }

    .home-cases {
        padding-top: 40px;
        padding-bottom: 35px;
    }

    .home-about .about-copy p:not(.eyebrow):not(.lead) {
        font-size: 16px;
        line-height: 1.75;
    }

    .home-about .about-copy {
        padding-top: 30px;
    }

    .home-about .values {
        margin: 25px 0px;
    }

    .value-item small {
        font-size: 14px;
        line-height: 1.6;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }

    .marquee {
        padding: 12px 0px;
        font-size: 45px;
    }

}
.home-services .section-heading h2,
.home-cases .section-heading h2,
.home-news .section-heading h2,
.needs .section-heading h2 {
    margin-bottom: 6px;
    line-height: 1.3;
}

/* 所有文章保留於同一軌道，每次輪播一篇。 */
.news-viewport {
    overflow: hidden;
}

.news-track {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.news-track > .card {
    flex: 0 0 calc((100% - 90px) / 4);
    min-width: 0;
    transition: none;
}

@media (max-width: 600px) {
    .news-track {
        flex-direction: column;
        gap: 28px;
    }
    .news-track > .card {
        flex: none;
        width: 100%;
    }
    .news-prev,
    .news-next {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
    }
    .news-prev {
        top: -22px;
    }
    .news-next {
        top: auto;
        bottom: -22px;
    }
    .news-prev > .icon,
    .news-next > .icon {
        transform: rotate(90deg);
    }
}
