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

:root {
    --navy: #0d3345;
    --ink: #153748;
    --teal: #087d79;
    --mint: #77e0cf;
    --muted: #536975;
    --line: #d9e3e6;
    --pale: #eef5f6;
    --font-body: 'Google Sans', 'Prompt', sans-serif;
    --font-heading: 'Prompt', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

html[lang='th'] body {
    line-height: 1.75;
}

html[lang='th'] h1,
html[lang='th'] h2,
html[lang='th'] h3 {
    letter-spacing: -.02em;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.13;
}

h1 {
    margin: 22px 0 28px;
    font-size: clamp(2.8rem, 5.1vw, 5.4rem);
    font-weight: 500;
    letter-spacing: -.055em;
}

h2 {
    margin-bottom: 28px;
    font-size: clamp(2.1rem, 3.6vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -.045em;
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -.025em;
}

em {
    color: var(--teal);
    font-style: normal;
}

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

button {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #dc9900;
    outline-offset: 6px;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skip {
    position: fixed;
    top: -80px;
    left: 12px;
    z-index: 100;
    padding: 12px;
    background: #fff;
}

.skip:focus {
    top: 10px;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    background: rgba(238, 245, 246, .98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.js .site-loader {
    display: flex;
}

.loader-visible .site-loader,
.is-navigating .site-loader {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.loader-visible,
body.is-navigating {
    overflow: hidden;
}

.site-loader__content {
    display: grid;
    width: min(260px, 72vw);
    justify-items: center;
    gap: 18px;
    color: var(--navy);
    text-align: center;
}

.site-loader__mark {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -.1em;
}

.site-loader__mark span {
    color: var(--teal);
    font-size: 1.8rem;
}

.site-loader__content p {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-loader__track {
    width: 100%;
    height: 2px;
    overflow: hidden;
    background: var(--line);
}

.site-loader__progress {
    display: block;
    width: 45%;
    height: 100%;
    background: var(--teal);
    animation: loader-progress 1.1s ease-in-out infinite;
}

@keyframes loader-progress {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(225%);
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 98px;
    padding: 14px 4.8%;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: .025em;
}

.brand small {
    display: block;
    margin-top: 3px;
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .1em;
}

.brand-mark {
    padding-right: 14px;
    border-right: 1px solid var(--line);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: -.08em;
}

.brand-mark span {
    color: var(--teal);
    font-size: 1rem;
}

header nav {
    display: flex;
    align-items: center;
    gap: 21px;
    font-size: .83rem;
}

header nav > a:not(.button):hover,
header nav > a[aria-current='page'] {
    color: var(--teal);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language-switcher-btn {
    display: inline-flex;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #fff;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(13, 51, 69, .14);
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.language-switcher-btn .flag-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.language-switcher-btn:hover {
    opacity: 1;
}

.language-switcher-btn[aria-current='true'] {
    opacity: 1;
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

.language-switcher-btn:focus-visible {
    outline-offset: 3px;
}

.menu {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 22px;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-size: .94rem;
    font-weight: 600;
    transition: background .2s;
}

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

.button span {
    font-size: 1.25rem;
}

.button.small {
    padding: 12px 18px;
    font-size: .8rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 5px 0;
    border-bottom: 1px solid #9eb6be;
    font-size: .94rem;
    font-weight: 600;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.7;
}

.lead {
    color: var(--ink) !important;
    font-size: 1.35rem;
    line-height: 1.5;
}

.section {
    padding: 100px 6%;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    min-height: 650px;
    padding: 50px 4.8% 54px;
    gap: 6%;
}

.hero-copy {
    padding-top: 28px;
}

.intro {
    max-width: 520px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-copy > .text-link {
    margin-left: 22px;
}

.hero-tags {
    display: flex;
    gap: 24px;
    margin-top: 42px;
    color: var(--muted);
    font-size: .688rem;
    letter-spacing: .12em;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    background: var(--pale);
}

.visual-top {
    display: flex;
    justify-content: space-between;
    padding: 23px 25px;
    font-size: .688rem;
    letter-spacing: .12em;
}

.hero-photo {
    flex: 1;
    min-height: 320px;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: cover;
    object-position: center 45%;
}

.visual-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 27px;
    background: #e3eff0;
}

.visual-bottom p {
    margin: 0;
    font-size: .94rem;
}

.round-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #9dbabc;
    border-radius: 50%;
    font-size: 1.4rem;
}

.sector-strip,
.product-switcher {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 28px 4.8%;
    gap: 25px;
    background: var(--navy);
    color: #fff;
}

.sector-strip > span {
    color: #b5d4de;
    font-size: .688rem;
    letter-spacing: .12em;
}

.sector-strip > a,
.product-switcher > a {
    padding-left: 28px;
    border-left: 1px solid #486470;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.sector-strip small,
.product-switcher small {
    display: block;
    margin-top: 4px;
    color: #a4c6cf;
    font-family: var(--font-body);
    font-size: .625rem;
    letter-spacing: .14em;
}

.home-intro,
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
}

.home-intro p:not(.eyebrow),
.about p:not(.eyebrow),
.section-head > p,
.quality > div > p,
.contact > div > p,
.product-page-copy > p {
    color: var(--muted);
}

.about-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 25px;
    margin-top: 30px;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .875rem;
}

.about-notes strong {
    color: var(--ink);
    font-weight: 500;
}

.page-intro {
    min-height: calc(100vh - 98px);
}

.page-intro h1 {
    font-size: clamp(2.7rem, 4.5vw, 4.8rem);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 45px;
    gap: 40px;
}

.section-head h1 {
    margin-bottom: 0;
}

.section-head > p {
    max-width: 360px;
    margin: 0;
}

.services {
    background: #f2f6f7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service {
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.service-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 6px;
    background: #eaf5f3;
    color: var(--teal);
    font-size: 1.7rem;
}

.num {
    float: right;
    color: #6b818a;
    font-size: .75rem;
}

.service h2 {
    margin: 28px 0 14px;
    font-size: 1.2rem;
    letter-spacing: -.025em;
}

.service p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .94rem;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7%;
}

.product-page-copy {
    align-self: center;
}

.product-sector {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: .688rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.product-page-image {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--pale);
}

.product-page-image img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center center;
}

.human-food .product-page-image img {
    object-position: center 40%;
}

.pet-food .product-page-image img {
    object-position: center 30%;
}

.image-label {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 1;
    padding: 7px 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 8px rgba(13, 51, 69, .08);
    font-size: .688rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.pet-food {
    background: #f7f9fa;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 22px 0;
    gap: 8px;
    list-style: none;
}

.tag-list li {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: .8rem;
}

.detail {
    font-size: .94rem;
}

.product-switcher {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 6%;
    padding-right: 6%;
}

.product-switcher > a:first-child {
    padding-left: 0;
    border-left: 0;
}

.process {
    background: var(--navy);
    color: #fff;
}

.process .eyebrow,
.steps span {
    color: var(--mint);
}

.process .section-head > p,
.steps p {
    color: #bdd0d6;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 65px;
    gap: 25px;
}

.steps article {
    padding-top: 23px;
    border-top: 1px solid #587580;
}

.steps h2 {
    margin: 24px 0 15px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.steps p {
    margin: 0;
    font-size: .94rem;
}

.quality {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
}

.quality-note {
    max-width: 450px;
    margin-top: 26px;
    font-size: .8rem;
}

.quality-list article {
    display: flex;
    padding: 25px 0;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.quality-list article:first-child {
    padding-top: 0;
}

.quality-list span {
    color: var(--teal);
    font-size: .75rem;
}

.quality-list h2 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: -.025em;
}

.quality-list p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .94rem;
}

.contact {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10%;
    background: #eaf4f3;
}

.brief-hints {
    display: flex;
    flex-wrap: wrap;
    margin-top: 27px;
    gap: 10px 20px;
    color: var(--teal);
    font-size: .8rem;
}

.contact-panel {
    align-self: start;
    padding: 35px 40px;
    border-radius: 6px;
    background: #fff;
}

.contact-panel h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-panel > p {
    font-size: .875rem;
}

dl {
    margin: 25px 0 0;
}

dl > div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .625rem;
    letter-spacing: .1em;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: .94rem;
}

.placeholder-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .75rem !important;
}

.page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 6%;
    gap: 30px;
    background: var(--pale);
}

.page-cta p {
    margin: 0;
    font-size: 1.15rem;
}

.page-cta-light {
    background: #fff;
}

.error-page {
    min-height: 65vh;
}

.error-page > p:not(.eyebrow) {
    max-width: 520px;
    color: var(--muted);
}

footer {
    padding: 45px 6% 25px;
}

footer > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: .875rem;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    gap: 12px 30px;
    color: var(--muted);
    font-size: .875rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

@media (min-width: 1500px) {
    header,
    .hero,
    .sector-strip,
    .section,
    .page-cta,
    .product-switcher,
    footer {
        padding-right: max(6%, calc((100vw - 1400px) / 2));
        padding-left: max(6%, calc((100vw - 1400px) / 2));
    }
}

@media (max-width: 1180px) {
    header {
        min-height: 78px;
    }

    .menu {
        display: flex;
        padding: 8px 12px;
        gap: 15px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: none;
        color: var(--ink);
        font-size: .875rem;
    }

    header nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 24px 5%;
        background: #fff;
        box-shadow: 0 12px 20px rgba(21, 55, 72, .07);
    }

    header nav.open {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .language-switcher {
        padding: 4px 0;
    }

    .language-switcher-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 1100px) {
    header nav {
        gap: 14px;
    }

    header nav > a:not(.button) {
        font-size: .75rem;
    }

    .section {
        padding: 75px 5%;
    }

    .steps {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    header {
        min-height: 78px;
    }

    .menu {
        display: flex;
        padding: 8px 12px;
        gap: 15px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: none;
        color: var(--ink);
        font-size: .875rem;
    }

    header nav {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 24px 5%;
        background: #fff;
        box-shadow: 0 12px 20px rgba(21, 55, 72, .07);
    }

    header nav.open {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .language-switcher {
        padding: 4px 0;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 4%;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 35px;
    }

    .product-page-image {
        min-height: 460px;
    }

    .product-page-image img {
        min-height: 460px;
    }
}

@media (max-width: 640px) {
    .brand {
        gap: 9px;
        font-size: .75rem;
    }

    .brand small {
        font-size: .54rem;
    }

    .hero {
        display: block;
        padding: 30px 5% 32px;
    }

    .hero-copy {
        padding: 0;
    }

    .hero h1 {
        font-size: 3.3rem;
        line-height: 1.06;
    }

    .hero-copy > .text-link {
        margin: 18px 0 0;
    }

    .hero-tags {
        margin: 28px 0;
    }

    .hero-photo {
        min-height: 0;
        height: 280px;
    }

    .hero-photo img {
        max-height: none;
        height: 280px;
        object-position: center center;
    }

    .sector-strip {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 25px 5%;
        gap: 20px 10px;
    }

    .sector-strip > span {
        grid-column: 1 / -1;
    }

    .sector-strip > a {
        padding-left: 12px;
        font-size: .85rem;
    }

    .section {
        padding: 62px 5%;
    }

    .page-intro {
        min-height: auto;
    }

    .home-intro,
    .about,
    .quality,
    .contact,
    .product-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-head {
        display: block;
        margin-bottom: 30px;
    }

    .section-head > p {
        margin-top: 24px;
    }

    .service-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .service {
        padding: 24px;
    }

    .steps {
        margin-top: 38px;
        gap: 26px;
    }

    .product-page-image {
        min-height: 0;
        height: 360px;
    }

    .product-page-image img {
        min-height: 0;
        height: 360px;
    }

    .product-switcher {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-switcher > a {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid #486470;
        border-left: 0;
    }

    .contact-panel {
        padding: 27px;
    }

    .page-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 35px 5%;
    }

    footer {
        padding: 35px 5% 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

    .site-loader__progress {
        animation: none;
        transform: none;
    }
}
