:root {
    --color-orange: #E0620F;
    --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: 100svh;
    display: flex;
    align-items: center;
    padding-block: var(--section-space);
}

.button {
    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.25rem);
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button--line {
    color: var(--color-white);
    background: var(--color-green);
}

.button:hover {
    background: #31a913;
    transform: translateY(-1px);
}

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

.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;
    min-height: 100svh;
    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.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 58% center;
}

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

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

.hero__title {
    margin: 0 0 0.8rem;
    color: var(--color-orange);
    font-size: clamp(2.25rem, 10vw, 5.5rem);
    line-height: 0.92;
    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: 32rem;
    margin: 0 auto 1.6rem;
    font-size: clamp(1.08rem, 3.4vw, 1.22rem);
    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.05;
    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.1;
    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: end;
    justify-content: center;
    margin: 0.95rem 0 0.55rem;
    font-size: clamp(1.2rem, 2.6vw, 1.75rem);
    line-height: 1.08;
    font-weight: 800;
    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.45;
    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;
}

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

.process__banner {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    background: #d8d8d8;
}

.process__title {
    margin: 0;
    color: var(--color-green-dark);
    font-size: clamp(3rem, 9vw, 6.4rem);
    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;
}

.process__steps-wrap {
    position: relative;
}

.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, 2.45rem);
    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;
}

/* Section 4: Products */
.products {
    min-height: 100svh;
    background: #e9e4cf;
    overflow: hidden;
}

.products__collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: clamp(0.85rem, 4vw, 1.25rem);
    row-gap: clamp(1.6rem, 7vw, 2.5rem);
    justify-items: center;
    width: min(100% - 0.75rem, 1280px);
    min-height: 100svh;
    margin-inline: auto;
    padding: clamp(1rem, 4vw, 2rem) clamp(0.5rem, 3vw, 1.5rem) clamp(9rem, 17vw, 13rem);
    align-content: center;
}

.products__title {
    grid-column: 1 / -1;
    align-self: end;
    z-index: 3;
    max-width: none;
    margin: 0;
    color: #ef2029;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 7.2vw, 4rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    word-break: keep-all;
}

.product {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0;
    display: grid;
    place-items: center;
}

.product img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.product--sportswear,
.product--model,
.product--combo {
    aspect-ratio: 3 / 4.4;
}

.product--hoodie {
    grid-column: auto;
    min-height: 0;
}

.product--baby-tee {
    grid-column: auto;
    align-self: start;
    min-height: 0;
}

.product--tshirt {
    grid-column: auto;
    min-height: 0;
}

.product--model {
    grid-column: auto;
    min-height: 0;
}

.product--sweater {
    grid-column: auto;
    min-height: 0;
}

.product--combo {
    grid-column: 1 / -1;
    width: min(58%, 13rem);
    min-height: 0;
}

.product--sportswear {
    grid-column: auto;
    min-height: 0;
    padding: 0;
}

/* 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, 5rem);
    line-height: 1.05;
    font-weight: 800;
}

.contact__phone {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.8rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.4rem);
    font-size: clamp(1.55rem, 6.2vw, 3.55rem);
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    overflow-wrap: anywhere;
}

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

.contact__phone-icon svg {
    width: 58%;
    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, 3.45rem);
    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%;
    }

    .products__collage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: clamp(0.9rem, 2.4vw, 1.5rem);
        padding-block: clamp(1.5rem, 4vw, 2.3rem) clamp(9rem, 14vw, 13rem);
    }

    .product,
    .product--sportswear,
    .product--model,
    .product--combo {
        aspect-ratio: 1;
    }

    .product--combo {
        grid-column: auto;
        width: 100%;
    }

    .products__title {
        grid-column: 1 / -1;
        font-size: clamp(3rem, 5.8vw, 4rem);
    }

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

@media (min-width: 800px) {
    .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;
    }

    .hero__text {
        margin-left: 0;
        margin-right: 0;
    }

    .hero::before {
        display: none;
    }

    .products__collage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(0.8rem, 1.5vw, 1.25rem);
        width: min(100% - 1.5rem, 1360px);
        min-height: 100svh;
        padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(9rem, 13vw, 13rem);
    }

    .products__title {
        grid-column: 1 / -1;
        align-self: start;
        margin: 0;
        font-size: clamp(3.15rem, 4vw, 4rem);
    }

    .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;
    }

    .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: 3.8rem;
        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);
    }

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

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