/* ASEAN .vn visual standard. Replaces the earlier polish sheet in full.
   Scope: original Flatsome public presentation only. No markup or behaviour changes. */
body.wp-theme-flatsome{
 --vn-navy:#102c3a;--vn-ink:#243d48;--vn-teal:#087780;
 --vn-orange:#a84a0e;--vn-muted:#526670;--vn-line:#dce6e9;
 --vn-surface:#f5f8fa;--vn-radius:10px;--vn-content:1180px;
 font-family:Lato,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65;color:var(--vn-ink);
}
body.wp-theme-flatsome :is(h1,h2,h3,h4,h5,h6,.button,input,textarea,select){font-family:Lato,"Segoe UI",Arial,sans-serif}
body.wp-theme-flatsome :is(h1,h2,h3,h4,h5,h6){line-height:1.25;letter-spacing:-.02em}
body.wp-theme-flatsome :is(#main,.entry-content,.product-summary) p{line-height:1.7}
body.wp-theme-flatsome :is(.entry-content,.product-summary) li{line-height:1.7}
body.wp-theme-flatsome :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #c47a16;outline-offset:4px}

/* Shared navigation, retained original menu and breakpoints. */
body.wp-theme-flatsome #top-bar{min-height:28px;background:var(--vn-navy);color:#fff;font-size:12px;letter-spacing:.02em}
body.wp-theme-flatsome #header .header-main{height:84px!important;background:#fff}
body.wp-theme-flatsome #header #logo{width:138px!important}
body.wp-theme-flatsome #header #logo img{max-height:72px!important;object-fit:contain}
body.wp-theme-flatsome .header-nav-main>li>a{font-size:14px!important;line-height:1.4;letter-spacing:.025em;padding:12px 9px;color:var(--vn-ink)!important;font-weight:700}
body.wp-theme-flatsome .header-nav-main>li.current-menu-item>a,
body.wp-theme-flatsome .header-nav-main>li>a:hover{color:var(--vn-teal)!important}
body.wp-theme-flatsome .button:not(.icon){min-height:44px;border-radius:6px;font-size:14px;letter-spacing:.025em;line-height:1.4}
body.wp-theme-flatsome .button.primary:not(.is-outline){background:var(--vn-teal);color:#fff;border-color:var(--vn-teal)}
body.wp-theme-flatsome .asean-product-cta{color:var(--vn-orange);font-weight:700;min-height:44px;display:inline-flex;align-items:center}

/* Media fits its native ratio; the first-screen content is not displaced by a full-width banner. */
body.home .asean-video-hero{width:100%;max-width:none;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:12/5;margin:0!important;border-radius:0;overflow:hidden;background:var(--vn-navy)}
body.home .asean-video-hero video{display:block;width:100%;height:auto!important;aspect-ratio:12/5;object-fit:contain}

/* Typography by role, deliberately not assigning generic light/dark text colors. */
body.home #main h2{font-size:clamp(26px,2.45vw,34px)!important;line-height:1.25!important;margin-bottom:18px}
body.home #main h3{font-size:20px;line-height:1.3}
body.home #main .asean-intro-section .small-4 h3{font-size:34px;line-height:1.15}
body.wp-theme-flatsome .entry-title{font-size:clamp(28px,3.1vw,40px);line-height:1.22;overflow-wrap:break-word}
body.single-product.wp-theme-flatsome h1.product-title{font-size:clamp(26px,2.5vw,34px);line-height:1.25}
body.single-post.wp-theme-flatsome .entry-content{font-size:16px}
body.wp-theme-flatsome .asean-section-title{width:100%;min-width:0}
body.wp-theme-flatsome .asean-section-title.center{max-width:780px;margin-left:auto;margin-right:auto}

/* Full-width sections retain viewport gutters; only their inner shells are constrained. */
body.home :is(.asean-intro-section,.asean-corporate-snapshot,.asean-operating-model,.asean-home-depth-section,.asean-business-lines,.asean-focus-section,.asean-services-strip,.asean-product-preview){padding-top:48px!important;padding-bottom:48px!important}
body.home :is(.asean-snapshot-shell,.asean-rich-shell){max-width:var(--vn-content);margin-left:auto;margin-right:auto;min-width:0}
body.home .asean-operating-model{width:100%;max-width:none;margin:0;padding-left:max(20px,calc((100% - 1180px)/2));padding-right:max(20px,calc((100% - 1180px)/2))}
body.home :is(.asean-snapshot-grid,.asean-process-grid,.asean-rich-grid){gap:20px!important}
body.home :is(.asean-snapshot-card,.asean-process-card,.asean-rich-card){min-width:0;border:1px solid var(--vn-line)!important;border-radius:var(--vn-radius)!important;padding:24px!important;box-shadow:none!important}
body.home :is(.asean-snapshot-card,.asean-process-card,.asean-rich-card){background:#fff;color:var(--vn-ink)}
body.home :is(.asean-snapshot-card,.asean-process-card,.asean-rich-card) :is(h3,p,li){color:inherit}
body.home .asean-snapshot-lede{border-radius:var(--vn-radius);background:var(--vn-navy);color:#fff}
body.home .asean-snapshot-lede :is(h2,h3){color:#fff!important}
body.home .asean-snapshot-lede p{color:#e1edf2!important}
body.home :is(.asean-rich-band,.asean-services-strip){background:var(--vn-navy);color:#fff}
body.home :is(.asean-rich-band,.asean-services-strip,.asean-contact-band) :is(h2,h3){color:#fff}
body.home :is(.asean-rich-band,.asean-services-strip,.asean-contact-band) p{color:#e1edf2}
body.home :is(.asean-rich-band,.asean-services-strip) h6{color:#9cdee2}
body.home .asean-contact-band{padding-top:40px!important;padding-bottom:40px!important}

/* Product and agriculture layouts keep all existing entries and links. */
body.wp-theme-flatsome .asean-product-grid{gap:20px}
body.wp-theme-flatsome .asean-product-card{min-width:0;overflow:hidden;border-radius:var(--vn-radius);border:1px solid var(--vn-line);box-shadow:0 4px 16px #102c3a08}
body.home .asean-product-image{height:200px!important;background:var(--vn-surface);display:flex;align-items:center;justify-content:center;padding:12px}
body.home .asean-product-image img{height:100%!important;width:100%!important;object-fit:contain!important}
body.wp-theme-flatsome .asean-product-info{padding:18px}
body.home .asean-product-info h3{font-size:18px!important;min-height:0;margin-bottom:12px}
body.wp-theme-flatsome .asean-product-info p{font-size:14px;line-height:1.6}
body.wp-theme-flatsome .asean-agri-head{align-items:center;gap:28px}
body.wp-theme-flatsome .asean-agri-feature{margin:0;border-radius:var(--vn-radius);overflow:hidden}

/* Footer and fixed entry points: no hidden controls, no form changes. */
body.wp-theme-flatsome .footer-wrapper{background:var(--vn-navy);color:#e1edf2;padding-bottom:88px;font-size:14px;line-height:1.7}
body.wp-theme-flatsome .footer-wrapper :is(.footer,.absolute-footer){background:var(--vn-navy);color:#e1edf2}
body.wp-theme-flatsome .footer-wrapper :is(h2,h3,.widget-title){color:#fff}
body.wp-theme-flatsome .footer-wrapper :is(p,a){color:#e1edf2}
body.wp-theme-flatsome .asean-fanpages{padding-top:36px;padding-bottom:36px}
body.wp-theme-flatsome .asean-fanpages iframe{max-width:100%;border-radius:8px}
body.wp-theme-flatsome #aseanRfqStrip{left:12px!important;bottom:12px!important;max-width:360px!important;border-radius:8px!important}

/* A single intermediate breakpoint handles both tablets and large phones. */
@media(max-width:849px){
 body.wp-theme-flatsome #header .header-main{height:74px!important}
 body.wp-theme-flatsome #header #logo{width:126px!important}
 body.wp-theme-flatsome #header #logo img{max-height:64px!important}
 body.wp-theme-flatsome .asean-page-hero,body.wp-theme-flatsome .asean-page-hero .banner-inner{height:auto!important;min-height:0!important;padding-top:0!important}
 body.wp-theme-flatsome .asean-page-hero .banner-inner{position:relative!important;inset:auto!important;width:100%!important}
 body.wp-theme-flatsome .asean-page-hero .banner-layers{height:auto!important;min-height:0!important;position:relative!important;overflow:visible!important;padding:24px 20px!important}
 body.wp-theme-flatsome .asean-page-hero .text-box{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important;padding:22px!important}
 body.wp-theme-flatsome .asean-page-hero .text-inner{padding:0!important}
 body.wp-theme-flatsome .asean-page-hero h1{font-size:clamp(28px,4.1vw,36px)!important;line-height:1.22!important}
 body.wp-theme-flatsome .asean-page-hero p{font-size:16px!important;line-height:1.65!important}
 body.home :is(.asean-snapshot-shell,.asean-rich-shell){padding-left:20px;padding-right:20px}
 body.home :is(.asean-snapshot-grid,.asean-process-grid,.asean-rich-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.wp-theme-flatsome #aseanRfqStrip{width:calc(100% - 112px)!important;max-width:290px!important}
}
@media(max-width:549px){
 body.home .asean-video-hero{width:100%;margin:0!important;border-radius:0}
 body.home :is(.asean-intro-section,.asean-corporate-snapshot,.asean-operating-model,.asean-home-depth-section,.asean-business-lines,.asean-focus-section,.asean-services-strip,.asean-product-preview){padding-top:32px!important;padding-bottom:32px!important}
 body.home :is(.asean-snapshot-grid,.asean-process-grid,.asean-rich-grid){grid-template-columns:1fr!important;gap:16px!important}
 body.single-post.wp-theme-flatsome .entry-header .entry-title{font-size:28px!important;line-height:1.22!important}
 body.wp-theme-flatsome .asean-product-info{padding:16px}
 body.home .asean-product-image{height:200px!important}
 body.home .asean-product-info h3{font-size:18px!important}
 body.wp-theme-flatsome .footer-wrapper{padding-bottom:96px}
}
@media(prefers-reduced-motion:reduce){body.wp-theme-flatsome{scroll-behavior:auto}body.wp-theme-flatsome :is(.button,.asean-product-card){transition:none}}
