:root {
    --color-orange: #dd6208;
    --color-green: #3DBE1A;
    --color-green-dark: #1F5F1A;
    --color-brown: #B85A17;
    --color-text: #1A1A1A;
    --color-bg: #F5F1E8;
    --color-white: #FFFFFF;
    --container-max: 1240px;
    --section-space: clamp(3.5rem, 6vw, 6rem);
    --radius: 16px;
    --font-thai: "Anuphan", "Noto Sans Thai", "Tahoma", sans-serif;
    --font-display: "Inter", "Anuphan", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-thai);
    line-height: 1.45;
    overflow-x: hidden;
}

/* .container {
    width: min(100% - 2rem, var(--container-max));
    margin-inline: auto;
} */

.section {
    min-height: 100%;
    display: flex;
    align-items: center;
    padding-block: var(--section-space);
}

.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 2rem;
    border-radius: 0.7rem;
    font-weight: 800;
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    text-decoration: none;
    transition:
        background-color 250ms ease,
        transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 250ms ease;
}

.button--line {
    color: var(--color-white);
    background: var(--color-green);
    box-shadow: 0 4px 10px rgba(61, 190, 26, 0.25);
}

/* แสงสะท้อนวิ่งผ่านปุ่ม */
.button--line::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.45),
            transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

/* hover: ตัวอักษรขาวเหมือนเดิม + เด้งขึ้น */
.button--line:hover,
.button--line:focus-visible {
    color: var(--color-white);
    background: #31a913;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(61, 190, 26, 0.4);
    animation: button-pulse 1.2s ease-out infinite;
}

.button--line:hover::before,
.button--line:focus-visible::before {
    animation: button-shine 700ms ease forwards;
}

/* ตอนกดค้าง */
.button--line:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(61, 190, 26, 0.3);
}

@keyframes button-shine {
    from {
        left: -75%;
    }

    to {
        left: 130%;
    }
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 12px 24px rgba(61, 190, 26, 0.4), 0 0 0 0 rgba(61, 190, 26, 0.45);
    }

    100% {
        box-shadow: 0 12px 24px rgba(61, 190, 26, 0.4), 0 0 0 16px rgba(61, 190, 26, 0);
    }
}

.button:focus-visible,
a:focus-visible {
    outline: 4px solid rgba(61, 190, 26, 0.35);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .button,
    .button--line:hover,
    .button--line:hover::before {
        transition: none;
        animation: none;
    }

    .button--line:hover {
        transform: none;
    }
}

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

/* Section 1: Hero */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(5rem, 13vh, 7rem) 2rem 2rem;
    background-color: #e9e4da;
    background-image: url("../assets/images/hero-bg-placeholder.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
}

@media (max-width: 991px) {
    .hero {
        min-height: clamp(28rem, 70svh, 36rem);
        aspect-ratio: auto;
        background-size: 100% auto;
        background-position: center top;
    }
}

@media (min-width: 1280px) {
    .hero {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 9;
        background-size: 100% auto;
        background-position: center top;
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 241, 232, 0.68);
}

.hero__content {
    position: relative;
    width: min(100%, 46rem);
    margin-inline: auto;
    padding-block: clamp(1rem, 5vw, 2.5rem);
    text-align: center;
}

.hero__mobile-background {
    display: none;
}

.hero__title {
    margin: 0 0 0.8rem;
    color: var(--color-orange);
    font-size: clamp(2.25rem, 10vw, 5.5rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    word-break: keep-all;
}

.hero__title span {
    display: block;
    white-space: nowrap;
    max-width: 100%;
}

.hero__text {
    max-width: 30rem;
    margin: 0 auto 1.6rem;
    font-size: clamp(1.08rem, 3.4vw, 1.4rem);
    line-height: 1.5;
}

/* Section 2: Services */
.services {
    background: var(--color-white);
    overflow: hidden;
    align-items: flex-start;
}

.services .container {
    width: min(100% - 1.25rem, 1360px);
}

.section-heading {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.services__title {
    margin: 0;
    color: var(--color-orange);
    font-family: var(--font-display);
    font-size: clamp(3.15rem, 7.6vw, 5.7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    word-break: keep-all;
}

.services__subtitle {
    margin: 0.55rem 0 0;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.4;
    font-weight: 700;
    word-break: keep-all;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 2.4vw, 2rem);
    align-items: start;
}

.service-card {
    min-width: 0;
    text-align: center;
}

.service-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 18rem);
    justify-self: center;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    background: #d8d8d8;
}

.service-card h3 {
    min-height: 2.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.95rem 0 0.55rem;
    font-size: clamp(1.2rem, 2.6vw, 1.75rem);
    line-height: 0.85;
    font-weight: 600;
    word-break: normal;
    overflow-wrap: normal;
}

.service-card p {
    max-width: 15rem;
    margin: 0 auto;
    font-size: clamp(1rem, 2.1vw, 1.16rem);
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Section 3: Process */
.process {
    background-color: #f6f3ea;
    background-image: url("../assets/images/process-grid-bg-placeholder.jpg");
    background-repeat: repeat;
    align-items: flex-start;
    padding-bottom: 30px;
}

.process__intro {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2rem, 6vw, 2rem);
}

.process__banner {
    width: 100%;
    object-position: center;
    background: #d8d8d8;
}

.process__title {
    margin: 0;
    color: var(--color-green-dark);
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    justify-self: center;
    word-break: keep-all;
}

.process__title span {
    display: block;
}

/* เอฟเฟกต์พิมพ์ทีละตัว (js/typewriter.js) */
.process__title.is-typewriter .tw-char {
    display: inline;
    opacity: 0;
}

.process__title.is-typewriter .tw-char.is-typed {
    opacity: 1;
}

.process__title .tw-caret {
    display: inline-block;
    position: relative;
    width: 0;
    height: 0.9em;
    vertical-align: -0.05em;
}

.process__title .tw-caret::after {
    content: "";
    position: absolute;
    left: 0.04em;
    top: 0;
    width: 0.07em;
    height: 100%;
    background: currentColor;
    animation: tw-blink 0.8s steps(1) infinite;
}

@keyframes tw-blink {
    50% {
        opacity: 0;
    }
}

.process__steps-wrap {
    position: relative;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

.process__desktop-image {
    display: none;
    width: min(calc(100% - 80px), 1920px);
    height: auto;
    margin-inline: auto;
}

.process__decor {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
    z-index: 0;
}

.process__line {
    position: absolute;
    width: clamp(2.1rem, 3.3vw, 3.75rem);
    height: auto;
}

.process__line--1 {
    left: calc(15.5% - 40px);
    top: 34%;
}

.process__line--2 {
    left: calc(31.5% - 10px);
    top: 57%;
}

.process__line--3 {
    left: 47%;
    top: 31%;
}

.process__line--4 {
    left: 63%;
    top: 60%;
}

.process__line--5 {
    left: calc(79% + 10px);
    top: 37%;
    width: clamp(2.8rem, 4.2vw, 4.75rem);
}

.process__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.05rem;
    align-items: center;
    min-width: 0;
}

.process-step__icon {
    grid-row: span 2;
    order: 1;
    width: clamp(3.25rem, 15vw, 4.75rem);
}

.process-step__icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.process-step__heading {
    display: flex;
    order: 2;
    gap: 0.45rem;
    align-items: baseline;
    min-width: 0;
}

.process-step__heading span {
    color: #f03b16;
    font-size: clamp(1.9rem, 7vw, 1.875rem);
    line-height: 1;
    font-weight: 800;
}

.process-step h3 {
    margin: 0;
    font-size: clamp(1.08rem, 3.6vw, 1.38rem);
    line-height: 1.28;
    font-weight: 800;
    word-break: normal;
    overflow-wrap: normal;
}

.process-step p,
.process-step ul {
    grid-column: 2;
    order: 3;
    margin: 0;
    font-size: clamp(0.95rem, 2.7vw, 1.08rem);
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
}

.process-step ul {
    padding-left: 1.1rem;
}

@media (min-width: 1600px) and (min-height: 800px) {
    .hero__content {
        margin-bottom: clamp(8rem, 18vh, 12rem);
    }
}

@media (min-width: 800px) and (max-height: 800px) {
    .hero__content {
        /* margin-bottom: clamp(4rem, 10vh, 7rem); */
        /* margin-bottom: clamp(2rem, 5vh, 7rem); */
        width: min(100%, 25rem);
        padding-block: clamp(1rem, 5vw, 2.5rem);
    }
}

/* Section 5: Contact */
.contact {
    background: var(--color-brown);
    color: var(--color-white);
}

.contact__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.contact__visual img {
    width: min(100%, 42rem);
    margin-inline: auto;
    filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.28));
}

.contact__content {
    min-width: 0;
    text-align: center;
}

.contact__content h2 {
    margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
    font-size: clamp(2.7rem, 9.5vw, 5.2rem);
    line-height: 1.05;
    font-weight: 800;
}

/* แถวหลัก: ไอคอนซ้าย เบอร์ขวา */
.contact__phones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.4rem);
    color: var(--color-white);
}

/* ไอคอน */
.contact__phone-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: clamp(2.2rem, 7vw, 3.55rem);
}

.contact__phone-icon svg {
    width: 100%;
    height: auto;
    fill: currentColor;
}

/* เบอร์เรียงบนลงล่าง */
.contact__phone-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

/* ตัวเบอร์แต่ละเบอร์ */
.contact__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: clamp(1.55rem, 6.2vw, 2rem);
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-white);
    transition:
        transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
        text-shadow 250ms ease;
}

.contact__phone:hover,
.contact__phone:focus-visible,
.contact__phone:hover span,
.contact__phone:focus-visible span {
    color: var(--color-white);
    transform: translateY(-2px) scale(1.04);
}

.contact__phone:active {
    transform: translateY(-1px) scale(0.98);
}

.contact__phones:has(.contact__phone:hover) .contact__phone-icon,
.contact__phones:has(.contact__phone:focus-visible) .contact__phone-icon {
    animation: phone-ring 700ms ease-in-out infinite;
}

@keyframes phone-ring {

    0%,
    100% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(-16deg);
    }

    30% {
        transform: rotate(14deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact__phone {
        transition: none;
    }

    .contact__phone:hover {
        transform: none;
    }

    .contact__phones:has(.contact__phone:hover) .contact__phone-icon {
        animation: none;
    }
}

.contact__phone-icon {
    flex: 0 0 auto;
    width: clamp(2.7rem, 8vw, 4rem);
    height: clamp(2.7rem, 8vw, 4rem);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-green);
}

.contact__phone-icon svg {
    width: 55%;
    fill: var(--color-white);
}

.contact__qr {
    width: clamp(11.25rem, 45vw, 16.875rem);
    margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: var(--color-white);
}

.contact__qr img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.contact__line {
    margin: 0 0 clamp(1.25rem, 3vw, 1.9rem);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 6.5vw, 2.5rem);
    line-height: 1.1;
    font-weight: 900;
    overflow-wrap: break-word;
}

.contact__button {
    min-width: min(100%, 18.5rem);
}

@media (min-width: 620px) {
    .services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card:last-child {
        grid-column: 2;
        width: 100%;
    }

    .process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 800px) {
    .process__steps-wrap {
        display: none;
    }

    .process__desktop-image {
        display: block;
    }

    .hero {
        align-items: flex-end;
        justify-content: flex-start;
        padding: clamp(1.25rem, 5vw, 4.5rem);
        background-position: center;
    }

    .hero__content {
        margin-left: clamp(0rem, 4vw, 3.125rem);
        margin-right: 0;
        text-align: left;
        transform: translateY(-clamp(2rem, 4vw, 4rem));
    }

    .hero__title {
        font-size: clamp(2.25rem, 3vw, 3.375rem);
    }

    .hero__text {
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(0.95rem, 1.01vw, 1.13125rem);
    }

    .hero::before {
        display: none;
    }

    .process__intro {
        grid-template-columns: minmax(0, 0.58fr) minmax(18rem, 0.42fr);
    }

    .process__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step p,
    .process-step ul {
        text-align: center;
    }

    .process-step ul {
        padding-left: 0;
        list-style-position: inside;
    }

    .process-step ul li {
        list-style: inherit;
    }

    .contact__grid {
        grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
    }
}

@media (min-width: 1080px) {
    .services__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: clamp(1.1rem, 1.7vw, 1.6rem);
    }

    .service-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .process__steps {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 3rem;
        min-height: 28rem;
    }

    .process__decor {
        display: block;
    }

    .process-step {
        justify-content: center;
    }

    .process-step:nth-child(odd) {
        padding-top: 8.5rem;
    }

    .process-step:nth-child(even) {
        padding-bottom: 8.5rem;
    }

    .process-step:nth-child(even) .process-step__icon {
        order: 3;
    }

    .process-step:nth-child(even) .process-step__heading {
        order: 2;
    }

    .process-step:nth-child(even) p {
        order: 1;
    }
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-pop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .has-scroll-animations .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms ease, transform 700ms ease;
        transition-delay: var(--reveal-delay, 0ms);
    }

    .has-scroll-animations .reveal--pop {
        transform: scale(0.96);
    }

    .has-scroll-animations .process__line.reveal {
        transform: scaleX(0.45) translateY(8px);
        transform-origin: left center;
    }

    .has-scroll-animations .reveal.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .has-scroll-animations .process__line.reveal.is-visible {
        transform: scaleX(1) translateY(0);
    }

    .has-scroll-animations .hero__title span,
    .has-scroll-animations .hero__text,
    .has-scroll-animations .hero .button {
        opacity: 0;
        transform: translateX(-22px);
        transition: opacity 720ms ease, transform 720ms ease;
    }

    .has-scroll-animations .hero__title span:nth-child(2) {
        transition-delay: 120ms;
    }

    .has-scroll-animations .hero__text {
        transition-delay: 240ms;
    }

    .has-scroll-animations .hero .button {
        transition-delay: 360ms;
    }

    .has-scroll-animations .hero__content.is-visible .hero__title span,
    .has-scroll-animations .hero__content.is-visible .hero__text,
    .has-scroll-animations .hero__content.is-visible .button {
        opacity: 1;
        transform: translateX(0);
    }

    .service-card img,
    .button {
        transition: transform 180ms ease;
    }

    .service-card:hover img {
        transform: translateY(-4px);
    }
}

/* Create your own: reference-matched collage layout */
.products {
    position: relative;
    padding: 40px 0 0;
    background: #e9e4cf;
}

/* .products::after {
    content: "";
    display: block;
    height: clamp(12px, 2.55vw, 48px);
    background: #b5521f;
} */

.products__collage {
    display: block;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    container-type: inline-size;
    /* background: #e9e4cf; */
}

.products__title {
    position: absolute;
    left: 0.8%;
    top: -1.5%;
    z-index: 3;
    max-width: none;
    margin: 0;
    color: #ef2029;
    font-family: var(--font-display, Arial, sans-serif);
    font-size: 5.4cqw;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-align: left;
    white-space: nowrap;
}

.product {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.product img {
    display: block;
    width: 100%;
    height: auto;
    object-position: center;
}

.products__note {
    position: absolute;
    left: 70%;
    top: 74%;
    width: 29%;
    color: #2a3038;
    line-height: 1.45;
    text-align: left;
}

.products__note p {
    margin: 0;
    font-size: 1.6cqw;
    font-weight: 600;
    line-height: 1.28;
}

.products__mobile {
    display: none;
}

@media (max-width: 767px) {
    .hero {
        display: block;
        position: relative;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        padding: 0;
        background: none;
    }

    .hero::before {
        display: none;
    }

    .hero__mobile-background {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero__content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(0.55rem, 2.3vw, 1rem);
        width: 100%;
        height: 100%;
        margin: 0;
        transform: none;
        padding: 10% 18% 12%;
        box-sizing: border-box;
        text-align: center;
    }

    .hero__title {
        position: static;
        width: 100%;
        margin: 0;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero__text--mobile {
        position: static;
        width: 100%;
        display: block;
        max-width: none;
        margin: 0;
        font-size: clamp(0.82rem, 3.2vw, 1.5rem);
        line-height: 1.2;
    }

    .hero__content .button {
        position: static;
        display: flex;
        width: min(50%, 14rem);
        min-height: 2.5rem;
        margin: 0;
        padding: 0 0.35rem;
        font-size: clamp(0.7rem, 2.5vw, 0.95rem);
        line-height: 1.2;
        text-align: center;
    }

    .products {
        padding: 5.5vw 0 12vw;
    }

    .products::after {
        display: none;
    }

    .products .products__container {
        width: 100%;
        max-width: none;
        padding-inline: 5.5vw;
    }

    .products__desktop {
        display: none;
    }

    .products__mobile {
        display: block;
    }

    .products__mobile-title {
        margin: 0 0 5vw;
        color: #ef2029;
        font-family: var(--font-display, Arial, sans-serif);
        font-size: clamp(2.55rem, 9.8vw, 6.2rem);
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.055em;
        text-align: center;
        white-space: nowrap;
    }

    .products__mobile-description {
        margin: 0 0 7.5vw;
        color: #211d21;
        font-size: clamp(1.12rem, 4.4vw, 2.6rem);
        font-weight: 500;
        line-height: 1.23;
    }

    .products__mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6.5vw;
        row-gap: 6.5vw;
        align-items: start;
    }

    .products__mobile-card {
        min-width: 0;
        margin: 0;
    }

    .products__mobile-card img {
        display: block;
        width: 100%;
        height: auto;
    }

    .products__mobile-card--sportswear {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 27rem);
        margin-top: 2vw;
    }
}

@media (min-width: 768px) and (max-width: 799px),
       (min-width: 800px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        display: block;
        position: relative;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        padding: 0;
        background: none;
    }

    .hero::before {
        display: none;
    }

    .hero__mobile-background {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero__content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(0.8rem, 2.3vw, 1.4rem);
        width: 100%;
        height: 100%;
        margin: 0;
        transform: none;
        padding: 14% 18% 12%;
        box-sizing: border-box;
        text-align: center;
    }

    .hero__title {
        position: static;
        width: 100%;
        margin: 0;
        font-size: clamp(2rem, 8vw, 4.5rem);
        line-height: 1;
    }

    .hero__text--mobile {
        position: static;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        font-size: clamp(1.15rem, 3.4vw, 2.2rem);
        line-height: 1.25;
    }

    .hero__content .button {
        position: static;
        display: flex;
        width: min(50%, 18rem);
        min-height: 3rem;
        margin: 0;
        padding: 0 0.5rem;
        font-size: clamp(0.95rem, 2.5vw, 1.2rem);
        line-height: 1.2;
        text-align: center;
    }
}


/* Hero desktop: วางข้อความตามสัดส่วนภาพพื้นหลัง (16:9) ให้ตรงต้นฉบับ */
@media (min-width: 800px) and (orientation: landscape),
       (min-width: 1025px) {
    /* กว้างเต็มจอ สูงพอดีจอใต้เมนู (ครอปภาพบน-ล่างเท่ากัน) */
    .hero {
        --hero-offset: 123px;
        display: block;
        padding: 0;
        aspect-ratio: auto;
        /* ภาพ 1920×800 (2.4:1) → สูงไม่เกิน 41.667vw */
        height: min(41.667vw, calc(100svh - var(--hero-offset)));
        min-height: 0;
        background-image: url("../assets/images/hero-bg-desktop.webp");
        background-size: cover;
        background-position: center;
    }

    .hero__content {
        position: absolute;
        left: 5.2%;
        bottom: 5%;
        width: 41%;
        margin: 0;
        padding: 0;
        transform: none;
        text-align: left;
    }

    .hero__title {
        margin: 0 0 1.2vw;
        font-size: 3.8vw;
        line-height: 1.12;
        font-weight: 600;
    }

    .hero__text {
        /* ให้บรรทัดจบก่อนฮู้ดดี้ เว้นช่องไฟจากเสื้อ */
        max-width: 85%;
        margin: 0 0 1.2vw;
        font-size: 1.3vw;
        line-height: 1.38;
    }

    .hero__content .button {
        min-height: 0;
        /* padding: 0.75vw 3.4vw;
        border-radius: 0.6vw; */
        font-size: 1vw;
        /* font-weight: 600; */
    }
}

/* ความสูงเมนูจริง: 117px ที่ 992–1600px, 143px ที่จออื่น */
@media (min-width: 992px) and (max-width: 1600px) {
    .hero {
        --hero-offset: 137px;
    }
}
