/*
 * main.css: base, type, buttons, top bar, header, off-canvas menu, page banner, breadcrumbs, the parts shared by
 * several pages (split layout, outline eyebrows, tab-shaped cards, stat cards, feature panel, post layout and
 * sidebars, search boxes, call-to-action banner), footer, dialog and forms.
 *
 * Sizes: the Figma design is drawn at 1920px for laptop viewing, so everything is built at 0.8× of it. Text larger
 * than the SOP's sizes is written as multiples of the root variables (e.g. 70px × 0.8 = calc(var(--font-size-1) * 1.4)).
 */

/* Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-height, 0px); }
html.menu-open, html.dialog-open { overflow: hidden; }
body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-t);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
#smooth-content { padding-top: var(--header-height, 146px); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--color-ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; background: var(--color-primary); color: var(--color-white); border-radius: 4px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.container { width: 100%; padding-left: var(--side-gap); padding-right: var(--side-gap); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.text-mark { color: var(--color-accent); }

/* Section rhythm: --row-gap at the bottom of each section; the first one after a banner adds it on top too */
main > section { padding-bottom: var(--row-gap); }
main > .page-banner + section, main > .hero + section { padding-top: var(--row-gap); }
main > .page-banner + .post-layout, main > .page-banner + .contact-details { padding-top: calc(var(--row-gap) * 0.8); }

/* Outline lettering (eyebrows, the marquee): transparent fill, a thin stroke */
.outline-text { color: transparent; -webkit-text-stroke: 1px var(--color-primary); paint-order: stroke fill; }
@supports not (-webkit-text-stroke: 1px black) { .outline-text { color: var(--color-primary); } }
/* Chinese characters are too dense for outline lettering: solid in the CN version */
:lang(zh) .outline-text:not(.marquee__item) { color: var(--color-primary); -webkit-text-stroke: 0; }
.eyebrow { margin: 0 0 calc(var(--inner-row-gap) * 0.45); font-size: var(--font-size-6); font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; }
.section-title { margin-bottom: calc(var(--inner-row-gap) * 0.7); font-size: calc(var(--font-size-1) * 0.84); line-height: 1.3; }
.section-title--lg { font-size: calc(var(--font-size-1) * 0.9); }

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--inner-side-gap) * 0.3);
    min-height: 50px; padding: 10px calc(var(--inner-side-gap) * 0.6);
    font-size: var(--font-size-7); font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none;
    border: 1px solid transparent; border-radius: 8px; cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    position: relative; isolation: isolate; overflow: hidden;
    /* Safari: overflow + radius doesn't clip the sliding ::before while it animates, so its square corners showed */
    clip-path: inset(0 round 8px);
}
/* Hover (Figma): a second colour slides in from the left over the button (0.3s) */
.btn::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--btn-sweep, var(--color-accent)); border-radius: inherit; transform: translateX(-101%); transition: transform 0.3s ease; }
.btn:hover:not(:disabled)::before, .btn:focus-visible::before { transform: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn .icon { width: 20px; height: 20px; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--teal { background: var(--color-accent); --btn-sweep: var(--color-primary); }
.link-more { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: var(--font-size-t); font-weight: 600; color: var(--color-accent); text-decoration: none; }
.link-more .icon { width: 18px; height: 18px; transition: transform 0.2s; }
.link-more:hover .icon { transform: translateX(4px); }
.link-more--dark { font-size: var(--font-size-s); font-weight: 500; color: var(--color-black); }

/* Top bar + header ------------------------------------------------------------ */
/* Fixed (not sticky): it sits outside ScrollSmoother's moving content. 47px + 135px in the design. */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; background: var(--color-mint); transition: box-shadow 0.3s; }
/* The header's mint carries on into the banner's rounded top corners: two concave corner pieces hang below it
   (mint outside the curve, see-through inside), so the corners never depend on the banner's own clipping.
   They go once the page has scrolled (.is-scrolled), when the banner is no longer under the header */
:root { --banner-radius: 40px; }
html:has(#main > .hero, #main > .page-banner) .site-header:not(.is-scrolled)::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: var(--banner-radius); pointer-events: none;
    background:
        radial-gradient(circle at 100% 100%, transparent calc(var(--banner-radius) - 0.5px), var(--color-mint) var(--banner-radius)) left top / var(--banner-radius) var(--banner-radius) no-repeat,
        radial-gradient(circle at 0 100%, transparent calc(var(--banner-radius) - 0.5px), var(--color-mint) var(--banner-radius)) right top / var(--banner-radius) var(--banner-radius) no-repeat;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px color-mix(in srgb, var(--color-black) 10%, transparent); }
.topbar { color: var(--color-light-green); background: var(--color-accent); font-size: var(--font-size-s); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--inner-side-gap); min-height: 38px; }
.topbar__contact { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.topbar__contact li { display: flex; align-items: center; gap: 8px; }
.topbar__contact li + li { margin-left: calc(var(--inner-side-gap) * 0.45); padding-left: calc(var(--inner-side-gap) * 0.45); border-left: 1px solid color-mix(in srgb, var(--color-light-green) 60%, transparent); }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.topbar__contact a:hover { color: var(--color-white); }
.topbar__contact .icon { width: 16px; height: 16px; }
.topbar__lang:empty { display: none; }
.topbar__lang .cms-lang { font-size: var(--font-size-s); font-weight: 500; }
.topbar__lang .cms-lang--inline .cms-lang__item + .cms-lang__item { border-left-color: var(--color-light-green); }
.topbar__lang .cms-lang__item { color: var(--color-white); }
.topbar__lang .cms-lang .is-current { color: var(--color-light-green); }

.site-header__main { display: flex; align-items: stretch; gap: var(--inner-side-gap); min-height: 108px; }
.site-header__main > * { align-self: center; }
.site-header__main > .site-nav { align-self: stretch; display: flex; }
.site-header__logo { display: block; margin-right: auto; }
.site-header__logo img { width: 196px; }
.site-nav__list { display: flex; align-items: stretch; gap: calc(var(--inner-side-gap) * 1.35); list-style: none; }
.site-nav__list > li { display: flex; }
.site-nav__link { position: relative; display: flex; align-items: center; padding: 10px 2px; white-space: nowrap; font-size: var(--font-size-t); color: var(--color-text); text-decoration: none; transition: color 0.2s; }
.site-nav__list > li { overflow: hidden; }
.site-nav__link::before { content: ""; position: absolute; left: -15px; right: -15px; top: 0; height: 6px; background: var(--color-primary); transform: translateX(-110%); transition: transform 0.5s ease; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--color-primary); }
.site-nav__link.is-active { font-weight: 600; }
.site-nav__link:hover::before, .site-nav__link.is-active::before { transform: none; }
.site-header__actions { display: flex; align-items: center; gap: calc(var(--inner-side-gap) * 0.6); }
.header-cta { min-width: 192px; white-space: nowrap; }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--color-primary); background: none; border: 0; cursor: pointer; }
.menu-toggle .icon { width: 28px; height: 28px; }

/* Header search: an icon that opens a search box under it */
.header-search { position: relative; }
.header-search__toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--color-ink); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.header-search__toggle:hover, .header-search__toggle[aria-expanded="true"] { color: var(--color-primary); }
.header-search__toggle .icon { width: 22px; height: 22px; stroke-width: 2; }
.header-search__panel { position: absolute; z-index: 5; top: calc(100% + 30px); right: 0; width: min(420px, calc(100vw - 2 * var(--side-gap))); padding: 12px; background: var(--color-white); border-radius: 12px; box-shadow: 0 16px 40px color-mix(in srgb, var(--color-black) 16%, transparent); }

/* Search boxes (header, sidebars) and their results */
.post-search { position: relative; display: flex; align-items: center; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 8px; }
.post-search:focus-within { border-color: var(--color-accent); }
.post-search__input { flex: 1; min-width: 0; height: 46px; padding: 0 0 0 calc(var(--inner-side-gap) * 0.45); font-size: var(--font-size-t); color: var(--color-text); background: transparent; border: 0; outline: none; }
.post-search__input::placeholder { color: var(--color-border); }
.post-search__input::-webkit-search-cancel-button { cursor: pointer; }
.post-search__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--color-outline); background: none; border: 0; cursor: pointer; }
.post-search__btn:hover { color: var(--color-accent); }
.post-search__btn .icon { width: 20px; height: 20px; }
.post-search__results { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; max-height: 340px; padding: 6px; overflow-y: auto; list-style: none; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 14px 30px color-mix(in srgb, var(--color-black) 12%, transparent); }
.post-search__results a { display: block; padding: 9px 12px; font-size: var(--font-size-s); font-weight: 500; line-height: 1.5; color: var(--color-text); text-decoration: none; border-radius: 6px; }
.post-search__results a:hover, .post-search__results a:focus-visible { color: var(--color-accent); background: var(--color-surface); outline: none; }
.post-search__results small { display: block; margin-top: 2px; font-weight: 400; color: var(--color-muted); }
.post-search__results .post-search__none { padding: 9px 12px; font-size: var(--font-size-s); color: var(--color-muted); }
.search-source { display: none; }

/* Off-canvas menu ---------------------------------------------------------- */
.offcanvas-overlay { position: fixed; z-index: 90; inset: 0; background: color-mix(in srgb, var(--color-black) 55%, transparent); opacity: 0; transition: opacity 0.3s; }
.offcanvas-overlay.is-open { opacity: 1; }
.offcanvas {
    position: fixed; z-index: 100; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; gap: calc(var(--inner-side-gap) * 0.7);
    width: min(360px, 88vw); padding: 20px var(--inner-side-gap) 30px; overflow-y: auto;
    color: var(--color-text); background: var(--color-mint); transform: translateX(-100%); transition: transform 0.35s ease;
}
.offcanvas.is-open { transform: none; }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offcanvas__logo img { width: 150px; }
.offcanvas__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--color-primary); background: none; border: 0; cursor: pointer; }
.offcanvas__close .icon { width: 28px; height: 28px; }
.offcanvas__list { list-style: none; border-top: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent); }
.offcanvas__list > li { border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent); }
.offcanvas__link { display: block; padding: 14px 0; font-size: var(--font-size-7); font-weight: 500; color: var(--color-text); text-decoration: none; }
.offcanvas__link.is-active { color: var(--color-primary); font-weight: 600; }
.offcanvas__cta { align-self: flex-start; }
.offcanvas__contact { list-style: none; display: grid; gap: 10px; margin-top: auto; font-size: var(--font-size-s); color: var(--color-primary); }
.offcanvas__contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }

/* Page banner and breadcrumbs (1920 × 465, radius 50 in the design) ---------- */
.page-banner { position: relative; display: flex; align-items: center; min-height: 372px; overflow: hidden; border-radius: var(--banner-radius); }
main > .page-banner { padding-bottom: 0; }
.page-banner__media { position: absolute; inset: 0; background: var(--color-ink); }
.page-banner__img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.page-banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--color-navy) 92%, transparent) 0%, color-mix(in srgb, var(--color-navy) 55%, transparent) 30%, transparent 62%); }
.page-banner__content { position: relative; padding-top: var(--inner-large-row-gap); padding-bottom: var(--inner-large-row-gap); }
.page-banner__title { max-width: 16em; margin: 0 0 calc(var(--inner-row-gap) * 0.35); font-family: var(--font-heading); font-size: var(--banner-title); font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; color: var(--color-white); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: var(--font-size-7); color: var(--color-white); }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: ">"; margin: 0 12px; font-size: 0.8em; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-light-green); }
.breadcrumbs [aria-current] { font-weight: 600; color: var(--color-light-green); max-width: 28em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Two columns: text and a photo (Home about, About intro) -------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--inner-large-side-gap) calc(var(--inner-large-side-gap) * 1.7); }
.has-fruit-bg { position: relative; isolation: isolate; }
.has-fruit-bg::before, .has-fruit-bg::after { content: ""; position: absolute; inset: var(--fruit-top, 0) 0 var(--fruit-bottom, 0); pointer-events: none; }
/* Figma: the fruit photo at 5% under a white gradient (solid for the top 66%, clear at the bottom) */
.has-fruit-bg::before { z-index: -2; background: url("../images/bg-fruits.webp") center bottom / cover no-repeat; opacity: 0.05; }
.has-fruit-bg::after { z-index: -1; background: linear-gradient(180deg, var(--color-white) 66%, color-mix(in srgb, var(--color-white) 0%, transparent) 100%); }

/* Photo with a stat card in its cut-out corner (99% / 13+) */
.photo-stat { position: relative; width: 100%; max-width: 630px; justify-self: end; container-type: inline-size; }
.photo-stat__dots { position: absolute; z-index: 0; top: 8.56%; left: 0; width: 22.2%; opacity: 0.5; } /* Figma: 175 × 175 at 0, 53 in the 787 × 619 group */
.photo-stat__photo { position: relative; z-index: 1; margin-left: 6.5%; aspect-ratio: 736 / 619; }
.photo-stat__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stat--bottle .photo-stat__photo img { object-fit: contain; background: var(--color-white); }
/* The card scales with the photo (Figma: 224px wide on the 630px group) but never below 200px, so the text stays readable */
.stat-card { --card-w: max(35.5cqi, 200px); position: absolute; z-index: 2; right: 0; bottom: 0; width: var(--card-w); padding: calc(var(--card-w) * 0.197) calc(var(--card-w) * 0.155) calc(var(--card-w) * 0.169); background: var(--color-surface-2); border-radius: calc(var(--card-w) * 0.18); transition: background-color 0.5s ease; }
.stat-card:hover { background: var(--color-mint); }
.stat-card__icon, .stat-card__value, .stat-card__label, .stat-card__icon--globe svg { transition: color 0.5s ease; }
.stat-card:hover .stat-card__icon, .stat-card:hover .stat-card__value, .stat-card:hover .stat-card__label, .stat-card:hover .stat-card__icon--globe svg { color: var(--color-primary); }
.stat-card__top { display: flex; align-items: center; gap: 6%; margin-bottom: 6px; }
.stat-card__icon { width: 21%; height: auto; flex: none; color: var(--color-text); }
.stat-card__icon--globe { display: grid; place-items: center; aspect-ratio: 1; padding: 4%; background: color-mix(in srgb, var(--color-text) 10%, transparent); border-radius: 50%; }
.stat-card__icon--globe svg { width: 70%; height: auto; color: var(--color-text); }
.stat-card__value { font-size: calc(var(--card-w) * 0.25); font-weight: 700; line-height: 1.3; color: var(--color-text); }
.stat-card__label { margin: 0; font-size: calc(var(--card-w) * 0.0893); font-weight: 700; line-height: 1.3; color: var(--color-text); }
/* CN labels wrap only at the space in the translation (供给多个 / 国家与市场), not between any two characters */
:lang(zh) .stat-card__label { word-break: keep-all; }

/* Tab-shaped photo cards: a mask with the design's raised tab (see the --shape-* masks) */
.shape-tab, .shape-tab-sm, .shape-product, .shape-about-photo { -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
.shape-tab { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 513 508' preserveAspectRatio='none'%3E%3Cpath d='M0.0 56.5Q0.0 36.5 20.0 36.5L187.4 36.5Q205.7 36.5 205.7 18.2L205.7 18.2Q205.7 0.0 223.9 0.0L493.0 0.0Q513.0 0.0 513.0 20.0L513.0 488.0Q513.0 508.0 493.0 508.0L20.0 508.0Q0.0 508.0 0.0 488.0Z'/%3E%3C/svg%3E"); aspect-ratio: 513 / 508; }
.shape-tab-sm { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 356' preserveAspectRatio='none'%3E%3Cpath d='M0.0 45.6Q0.0 25.6 20.0 25.6L131.5 25.6Q144.3 25.6 144.3 12.8L144.3 12.8Q144.3 0.0 157.1 0.0L340.0 0.0Q360.0 0.0 360.0 20.0L360.0 336.0Q360.0 356.0 340.0 356.0L20.0 356.0Q0.0 356.0 0.0 336.0Z'/%3E%3C/svg%3E"); aspect-ratio: 360 / 356; }
.shape-product { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 219 247' preserveAspectRatio='none'%3E%3Cpath d='M0.0 37.0Q0.0 17.0 20.0 17.0L71.5 17.0Q80.0 17.0 80.0 8.5L80.0 8.5Q80.0 0.0 88.5 0.0L199.0 0.0Q219.0 0.0 219.0 20.0L219.0 221.0Q219.0 241.0 199.0 241.0L158.5 241.0Q153.0 241.0 153.0 235.5L153.0 235.5Q153.0 230.0 147.5 230.0L41.5 230.0Q33.0 230.0 33.0 238.5L33.0 238.5Q33.0 247.0 24.5 247.0L16.5 247.0Q0.0 247.0 0.0 230.5Z'/%3E%3C/svg%3E"); aspect-ratio: 219 / 247; }
.shape-about-photo { --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 736 619' preserveAspectRatio='none'%3E%3Cpath d='M0.0 200.8Q0.0 150.8 50.0 150.8L117.5 150.8Q167.5 150.8 167.5 100.8L167.5 50.0Q167.5 0.0 217.5 0.0L686.0 0.0Q736.0 0.0 736.0 50.0L736.0 319.0Q736.0 369.0 686.0 369.0L483.6 369.0Q433.6 369.0 433.6 419.0L433.6 569.0Q433.6 619.0 383.6 619.0L50.0 619.0Q0.0 619.0 0.0 569.0Z'/%3E%3C/svg%3E"); }

.photo-card { position: relative; display: block; list-style: none; }
.photo-card__media { position: relative; display: block; overflow: hidden; background: var(--color-surface); }
.photo-card__media::after { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.photo-card:hover .photo-card__media::after { opacity: 0.2; }
.photo-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover .photo-card__img { transform: scale(1.06); }
.photo-card__body { position: absolute; right: 0; bottom: 0; width: 90.3%; padding: calc(var(--inner-row-gap) * 0.55) calc(var(--inner-side-gap) * 0.85) calc(var(--inner-row-gap) * 0.55) calc(var(--inner-side-gap) * 1.2); background: var(--color-surface); border-radius: 16px; display: flex; flex-direction: column; transition: background-color 0.3s ease; }
.photo-card:hover .photo-card__body { background: var(--color-mint); }
.photo-card__title { margin: 0 0 6px; font-size: var(--font-size-t); font-weight: 600; line-height: 1.3; color: var(--color-text); }
.photo-card__title a { text-decoration: none; }
.photo-card__title a:hover { color: var(--color-accent); }
.photo-card__text { font-size: var(--font-size-t); line-height: 1.5; color: var(--color-muted); display: flex; flex: 1; align-items: center; }

/* Product and certificate tiles: the grey tab shape with a picture in the middle */
.product-tile { position: relative; overflow: hidden; list-style: none; background: var(--color-surface); transition: background-color 0.3s ease; }
.product-tile:hover { background: var(--color-mint); }
.product-tile__btn { position: absolute; inset: 0; padding: 0; background: none; border: 0; cursor: zoom-in; }
.product-tile__btn:focus-visible { outline-offset: -4px; }
.product-tile__img { position: absolute; top: 12%; left: 22%; width: 56%; height: 70%; object-fit: contain; transition: transform 0.4s ease; } /* transparent cut-outs: only the tile background changes on hover */
.product-tile:hover .product-tile__img { transform: scale(1.09); }

/* Mint feature panel with a photo (Why Choose Us, Private Label) ---------- */
.feature-panel { overflow: hidden; }
.feature-panel__inner { position: relative; display: grid; grid-template-columns: 51.3% 48.7%; }
.feature-panel__text { position: relative; padding: calc(var(--row-gap) * 0.98) calc(var(--inner-large-side-gap) * 1.2) calc(var(--row-gap) * 0.98) calc(var(--side-gap) * 1.53); background: var(--color-mint); border-top-left-radius: 40px; }
/* The white rounded notch that cuts into the panel's lower left edge */
.feature-panel__text::before { content: ""; position: absolute; left: -48px; top: 35%; bottom: -40px; width: 136px; background: var(--color-white); border-radius: 32px; animation: notch-float 3s ease-in-out infinite alternate; }
@keyframes notch-float { to { transform: translateY(27px); } }
@media (prefers-reduced-motion: reduce) { .feature-panel__text::before { animation: none; } }
.feature-panel__text > * { position: relative; }
.feature-panel__title { margin-bottom: var(--inner-large-row-gap); font-size: calc(var(--font-size-1) * 0.84); line-height: 1.3; }
.feature-list { display: grid; gap: var(--inner-row-gap); list-style: none; }
.feature-list__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: calc(var(--inner-side-gap) * 0.69); align-items: start; }
.feature-list__icon { width: 48px; height: 48px; color: var(--color-primary); }
.feature-list__title { margin-bottom: 4px; font-size: var(--font-size-6); font-weight: 600; color: var(--color-primary); }
.feature-list__text { margin: 0; font-size: var(--font-size-7); line-height: 1.5; color: var(--color-body); text-align: justify; }
.feature-panel__media { position: relative; min-height: 100%; }
.feature-panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Posts: listing / detail layout with a sidebar ----------------------------- */
.post-layout__inner { display: grid; align-items: start; gap: var(--inner-large-row-gap) calc(var(--inner-large-side-gap) * 1.9); }
.post-layout--focus .post-layout__inner { grid-template-columns: 314px minmax(0, 1fr); }
.post-layout--insights .post-layout__inner { grid-template-columns: minmax(0, 1fr) 334px; gap: var(--inner-large-row-gap) calc(var(--inner-large-side-gap) * 1.04); }
.side { position: sticky; top: calc(var(--header-height, 146px) + 20px); display: grid; gap: calc(var(--inner-row-gap) * 0.7); }
.side-box { padding: calc(var(--inner-row-gap) * 0.75) calc(var(--inner-side-gap) * 0.6); background: var(--color-surface); border-radius: 24px; }
.side-box__title { margin-bottom: calc(var(--inner-row-gap) * 0.55); font-size: var(--font-size-6); font-weight: 600; color: var(--color-primary); }
.side--insights .side-box__title { font-size: var(--font-size-5); }
.side-links { display: grid; gap: calc(var(--inner-row-gap) * 0.4); list-style: none; }
.side-links__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 8px 10px 8px 14px; font-size: var(--font-size-t); font-weight: 500; line-height: 1.5; color: var(--color-body); text-decoration: none; background: var(--color-white); border-radius: 8px; transition: background-color 0.2s, color 0.2s; }
.side-links__link .icon { width: 20px; height: 20px; padding: 4px; color: var(--color-white); background: var(--color-accent); border-radius: 50%; stroke-width: 3; }
.side-links__link:hover { color: var(--color-accent); }
.side-links__link.is-active { color: var(--color-white); background: var(--color-accent); }
.side-links__link.is-active .icon { color: var(--color-accent); background: var(--color-white); }
.side-posts { display: grid; gap: calc(var(--inner-row-gap) * 0.85); list-style: none; }
.side-post { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: start; }
.side-post__body { display: flex; flex-direction: column; justify-content: space-between; min-height: 60px; }
.side-post__media img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.side-post__title { display: -webkit-box; margin-bottom: 6px; overflow: hidden; font-size: calc(var(--font-size-s) * 0.93); font-weight: 500; line-height: 1.3; color: var(--color-text); text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-post__title:hover, .side-post__title.is-active { color: var(--color-accent); }
.side-post .post-date { font-size: calc(var(--font-size-s) * 0.86); }
.post-date { display: flex; align-items: center; gap: 4px; margin: 0; font-size: var(--font-size-t); color: var(--color-muted); }
.post-date .icon { width: 12px; height: 12px; }
.cms-posts-empty { list-style: none; font-size: var(--font-size-7); color: var(--color-muted); }

/* Call to action (overlaps the footer's mint) --------------------------------- */
.cta { background: linear-gradient(180deg, transparent 65%, var(--color-mint) 65%); }
main > .cta { padding-bottom: 0; }
.cta__box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--inner-large-side-gap); min-height: 325px; padding: var(--inner-large-row-gap) calc(var(--inner-large-side-gap) * 0.8) var(--inner-large-row-gap) calc(var(--inner-large-side-gap) * 1.06); overflow: hidden; color: var(--color-white); background: var(--color-accent); border-radius: 40px; }
.cta__box::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 24%; background: color-mix(in srgb, var(--color-white) 10%, transparent); clip-path: polygon(0 0, 64% 0, 100% 100%, 36% 100%); }
.cta__text { position: relative; max-width: 660px; }
.cta__title { margin-bottom: calc(var(--inner-row-gap) * 0.6); max-width: 13em; font-size: calc(var(--font-size-1) * 0.9); color: var(--color-white); }
/* CN: the question stays on one row (client) */
:lang(zh) .cta__title { max-width: none; }
.cta__text p { margin-bottom: calc(var(--inner-row-gap) * 0.9); font-size: var(--font-size-7); line-height: 1.5; }
.cta__plane { position: absolute; left: 47%; bottom: 0; width: 77px; height: auto; color: var(--color-white); opacity: 0.5; }
.cta__qr { position: relative; display: flex; flex: none; gap: calc(var(--inner-side-gap) * 0.55); list-style: none; }
.cta__qr li { overflow: hidden; background: var(--color-white); border-radius: 8px; }
.cta__qr img { width: 180px; height: 184px; object-fit: contain; }

/* Footer ---------------------------------------------------------------- */
.site-footer { color: var(--color-primary); background: var(--color-mint); }
.site-footer__inner { display: grid; grid-template-columns: 1.15fr 0.65fr 1.45fr auto; gap: var(--inner-large-row-gap) var(--inner-large-side-gap); padding-top: calc(var(--row-gap) * 0.8); padding-bottom: calc(var(--row-gap) * 0.6); }
.site-footer__logo { width: fit-content; display: block; }
.site-footer__logo img { width: 196px; margin-bottom: calc(var(--inner-row-gap) * 0.55); }
.site-footer__name { margin: 0 0 4px; font-size: var(--font-size-6); font-weight: 600; }
.site-footer__reg { margin: 0; font-size: var(--font-size-t); }
.site-footer__title { margin-bottom: calc(var(--inner-row-gap) * 0.4); font-size: var(--font-size-6); font-weight: 700; color: var(--color-primary); }
.site-footer__contact .site-footer__title:not(:first-child) { margin-top: calc(var(--inner-row-gap) * 0.9); }
.site-footer__col { font-size: var(--font-size-7); line-height: 1.5; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--color-accent); }
.site-footer__address { max-width: 25em; margin: 0; }
.site-footer__emails { list-style: none; }
.footer-nav { display: grid; gap: 6px; list-style: none; }
.footer-nav__link { padding: 0; font-size: var(--font-size-7); color: var(--color-primary); text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; }
.footer-nav__link:hover { color: var(--color-accent); }
.footer-nav__link.is-active { font-weight: 600; color: var(--color-text); }
.site-footer__copy { margin: 0; padding: calc(var(--inner-row-gap) * 0.6) 0; font-size: var(--font-size-s); text-align: center; }
/* Contact page: the design ends with the map and the copyright bar only */
.page-contact .site-footer__inner { display: none; }
.page-contact .site-footer__copy { padding: calc(var(--inner-row-gap) * 0.45) 0; }

/* Dialog (Disclaimer) ---------------------------------------------------- */
.dialog { width: min(1300px, calc(100vw - 2 * var(--side-gap))); max-width: none; max-height: calc(100dvh - 40px); padding: 0; color: var(--color-body); background: var(--color-white); border: 0; border-radius: 32px; box-shadow: 0 20px 60px color-mix(in srgb, var(--color-black) 25%, transparent); }
.dialog::backdrop { background: color-mix(in srgb, var(--color-black) 55%, transparent); }
.dialog[open] { display: flex; }
.dialog__box { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 40px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--inner-large-row-gap) var(--inner-large-side-gap) calc(var(--inner-row-gap) * 0.5); }
.dialog__title { font-size: var(--font-size-4); font-weight: 600; color: var(--color-text); }
.dialog__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--color-text); background: none; border: 0; cursor: pointer; }
.dialog__close .icon { width: 26px; height: 26px; stroke-width: 2; }
.dialog__body { padding: 0 var(--inner-large-side-gap) var(--inner-large-row-gap); overflow-y: auto; overscroll-behavior: contain; }
.disclaimer { display: grid; gap: 1.6em; padding-left: 1.1em; font-size: var(--font-size-7); line-height: 1.5; text-align: justify; }
.disclaimer li::marker { font-size: 0.8em; }

/* Product picture pop-up (Home showcase) */
.lightbox { width: min(520px, calc(100vw - 2 * var(--side-gap))); max-width: none; padding: 0; background: none; border: 0; overflow: visible; }
.lightbox::backdrop { background: color-mix(in srgb, var(--color-black) 60%, transparent); }
.lightbox[open] { animation: lightbox-in 0.3s ease; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__box { position: relative; padding: 10px; background: var(--color-surface); border-radius: 12px; }
.lightbox__img { width: 100%; height: auto; max-height: calc(100dvh - 80px); object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--color-text); background: color-mix(in srgb, var(--color-white) 70%, transparent); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__close .icon { width: 22px; height: 22px; stroke-width: 2; }

/* Forms ---------------------------------------------------------------- */
.form { display: grid; gap: calc(var(--inner-row-gap) * 0.6); }
.form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--inner-row-gap) * 0.6) calc(var(--inner-side-gap) * 0.55); }
.field { display: grid; gap: 6px; min-width: 0; }
.field__input { width: 100%; min-height: 52px; padding: 10px 18px; font-size: var(--font-size-t); color: var(--color-text); background: var(--color-white); border: 1px solid var(--color-surface-2); border-radius: 10px; outline: none; transition: border-color 0.2s; }
.field__input::placeholder { color: var(--color-soft); }
.field__input:focus { border-color: var(--color-accent); }
.field__input--area { min-height: 129px; resize: vertical; }
.field__error { margin: 0; font-size: var(--font-size-s); color: var(--color-error); }
.field__error:empty { display: none; }
.field.has-error .field__input { border-color: var(--color-error); }
.form__actions { display: flex; justify-content: center; }
.form__actions .btn { min-width: 142px; }
.form-status { margin: 0; font-size: var(--font-size-s); color: var(--color-body); text-align: center; }
.form-status:empty { display: none; }
.form-status a { color: var(--color-accent); }

/* Breakpoints ------------------------------------------------------------- */
@media only screen and (max-width:1679.98px) {
    .site-nav__list { gap: calc(var(--inner-side-gap) * 0.8); }
}

@media only screen and (max-width:1365.98px) {
    .site-header__logo img { width: 160px; }
    .site-nav__list { gap: calc(var(--inner-side-gap) * 0.6); }
    .site-header__main { gap: calc(var(--inner-side-gap) * 0.7); }
    .header-cta { min-width: 0; }
    .site-footer__inner { grid-template-columns: 1fr 0.7fr 1.4fr auto; }
}

@media only screen and (max-width:1179.98px) {
    .site-header__main { min-height: 92px; }
    .site-header .container { padding-left: calc(var(--side-gap) * 0.5); padding-right: calc(var(--side-gap) * 0.5); }
    .site-nav__list { gap: calc(var(--inner-side-gap) * 0.5); }
    .header-cta { padding-left: 16px; padding-right: 16px; }
    .post-layout--focus .post-layout__inner { grid-template-columns: 270px minmax(0, 1fr); gap: var(--inner-large-row-gap) var(--inner-large-side-gap); }
    .post-layout--insights .post-layout__inner { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media only screen and (max-width:999.98px) {
    .site-header__main > .site-nav, .header-cta { display: none; }
    .menu-toggle { display: grid; }
    .site-header__main { min-height: 80px; }
    /* The search box drops below the header, across the page (the icon sits next to the menu button, not at the edge) */
    .site-header__main { position: relative; }
    .header-search { position: static; }
    .header-search__panel { top: calc(100% + 8px); left: var(--side-gap); right: var(--side-gap); width: auto; }
    .site-header__logo img { width: 150px; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .photo-stat { justify-self: center; }
    .feature-panel__inner { grid-template-columns: minmax(0, 1fr); }
    .feature-panel__text { padding: var(--row-gap) var(--side-gap); border-top-right-radius: 40px; }
    .feature-panel__text::before { display: none; }
    .feature-panel__media { min-height: 0; aspect-ratio: 4 / 3; }
    .post-layout--focus .post-layout__inner, .post-layout--insights .post-layout__inner { grid-template-columns: minmax(0, 1fr); }
    .post-layout--focus .side { order: 2; }
    .side { position: static; }
    .cta__box { flex-direction: column; align-items: flex-start; }
    .cta__box::before { left: 55%; width: 40%; }
    .cta__plane { left: auto; right: 6%; bottom: auto; top: 20px; }
    .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (max-width:767.98px) {
    :root { --banner-radius: 24px; }
    .topbar__label { display: none; }
    .topbar__contact li + li { margin-left: 12px; padding-left: 12px; }
    .topbar__inner { min-height: 34px; gap: 10px; }
    .site-header__main { min-height: 68px; gap: 8px; }
    .site-header__logo img { width: 126px; }
    .page-banner { min-height: 240px; }
    /* Phones use the full column width: no text or box caps */
    .page-banner__title, .photo-stat, .cta__text, .cta__title, .site-footer__address { max-width: none; }
    .breadcrumbs ol { font-size: var(--font-size-t); }
    .breadcrumbs [aria-current] { max-width: 14em; }
    .stat-card { --card-w: 48cqi; padding: 6% 5%; border-radius: 24px; }
    .stat-card__value { font-size: var(--font-size-1); }
    .stat-card__label { font-size: var(--font-size-t); }
    .feature-panel__text { border-radius: 24px 24px 0 0; }
    .cta__box { padding: var(--inner-large-row-gap) var(--inner-side-gap); border-radius: 24px; }
    .cta__qr img { width: 120px; height: 123px; }
    .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
    /* Useful Links on one wrapping line: Home | About | … */
    .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--inner-row-gap) * 0.25) 0; }
    .footer-nav > li { display: flex; align-items: center; }
    .footer-nav > li:not(:last-child)::after { content: "|"; margin: 0 calc(var(--inner-side-gap) * 0.67); color: color-mix(in srgb, var(--color-primary) 45%, transparent); }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .dialog { border-radius: 20px; }
}

@media only screen and (max-width:449.98px) {
    .topbar__contact li:nth-child(2) a { font-size: 0; gap: 0; }
    .topbar__contact li:nth-child(2) .icon { font-size: var(--font-size-s); }
}
