/* =========================================================
   VNK Corporation Ltd. — Redesign 2026
   Custom, dependency-free stylesheet
   ========================================================= */

:root {
    --ink: #1f2630;
    --ink-soft: #5b6573;
    --line: #e8e3dc;
    --bg: #ffffff;
    --bg-soft: #fbf6f0;
    --bg-cream: #f6efe7;
    --accent: #a07040;          /* VNK bronze gold */
    --accent-dark: #805030;
    --accent-2: #2ec4b6;        /* soft teal */
    --accent-3: #ffc857;        /* warm yellow */
    --charcoal: #1c2530;        /* footer */
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 6px 20px rgba(31, 38, 48, .06);
    --shadow: 0 18px 50px rgba(31, 38, 48, .10);
    --shadow-lg: 0 30px 80px rgba(31, 38, 48, .16);
    --maxw: 1200px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: "Plus Jakarta Sans", "Noto Sans Khmer", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-km: "Noto Sans Khmer", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p { margin: 0 0 1.1em; color: var(--ink-soft); }

:lang(km), .km { font-family: var(--font-km); line-height: 1.95; letter-spacing: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-cream { background: var(--bg-cream); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Eyebrow / pill labels ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: .98rem; line-height: 1;
    padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(160, 112, 64, .35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(160, 112, 64, .45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 90px; gap: 24px;
}
.brand img { height: 72px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
    display: block; padding: 10px 16px; color: var(--ink); font-weight: 600; font-size: .98rem;
    border-radius: 10px;
}
.nav-links a:hover { color: var(--accent-dark); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent-dark); }

/* dropdown */
.has-dropdown > a::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); vertical-align: middle; opacity: .6;
}
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    padding: 10px; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); }

.brand { flex-shrink: 0; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { padding-top: 90px; background: linear-gradient(180deg, var(--bg-soft), #fff); overflow: hidden; }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px;
    padding: 70px 0 90px;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 32ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-slider {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
}
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
    background-size: cover; background-position: center top;
}
.hero-slide.active { opacity: 1; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: .3s var(--ease); padding: 0; }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-badge {
    position: absolute; bottom: -24px; left: -24px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 14px;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-2); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 1.25rem; color: var(--ink); }
.hero-badge span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Brand strip ---------- */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-row { display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 44px 0; }
.brands-row img { height: 46px; width: auto; opacity: .8; filter: grayscale(1); transition: .35s var(--ease); }
.brands-row a:hover img { opacity: 1; filter: none; transform: translateY(-3px); }

/* ---------- Section heading block ---------- */
.head { max-width: 640px; }
.head.center { margin: 0 auto; text-align: center; }

/* ---------- About collage (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collage img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line); }
.step .knob { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.step h4 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { margin: 0; font-size: .98rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 30px 0; background: var(--ink); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
    font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); white-space: nowrap;
}
.marquee-track span .hl { color: var(--accent-3); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product showcase (home) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.showcase:nth-child(even) .showcase-media { order: 2; }
.showcase-media { aspect-ratio: 1/1; background-size: cover; background-position: center; position: relative; }
.showcase-num { position: absolute; top: 30px; right: 36px; font-size: 6rem; font-weight: 800; color: rgba(255,255,255,.85); line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.15); }
.showcase-body { padding: 80px clamp(28px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.showcase-body h2 { margin-bottom: 18px; }

/* ---------- Testimonials ---------- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.tcard .stars { color: var(--accent-3); margin-bottom: 14px; letter-spacing: 2px; }
.tcard p { color: var(--ink); }
.tcard .who { font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-top: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: 90px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; padding: 64px 0; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* big display title (about / product) */
.bigtitle { font-size: clamp(3rem, 9vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; }

/* ---------- Values / mission rows ---------- */
.def-row { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.def-row:last-child { border-bottom: 0; }
.def-row h4 { font-size: 1.2rem; margin: 0; }
.def-row p { margin: 0; }

.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 16px; align-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.callout .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-cream); display: grid; place-items: center; color: var(--accent-dark); flex-shrink: 0; }

/* ---------- Brand cards (about / products) ---------- */
.bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bcard { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; transition: .35s var(--ease); }
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bcard img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: .5s var(--ease); }
.bcard:hover img { transform: scale(1.05); }
.bcard .meta { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.bcard .meta strong { font-size: 1.1rem; }
.bcard .meta span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Product detail (elibell / bestdry) ---------- */
.prod-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prod-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.prod-row.reverse .prod-media { order: 2; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fcard {
    background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); transition: .35s var(--ease); position: relative; overflow: hidden;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.fcard img { border-radius: 12px; margin-bottom: 16px; aspect-ratio: 1/1; object-fit: cover; }
.fcard p { margin: 0; font-size: .98rem; color: var(--ink); }
.fcard .badge-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-cream); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; font-weight: 800; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-cream); color: var(--accent-dark); display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; }

.tilt { transition: transform .2s var(--ease); will-change: transform; }

.banner-wide img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-sm); }
.inquiry { text-align: center; font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.inquiry a { font-weight: 700; border-bottom: 2px solid var(--accent); }

/* ---------- Contact ---------- */
.social-big { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.social-big a {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
    border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; transition: .3s var(--ease);
}
.social-big a:hover { color: #fff; border-color: transparent; transform: translateY(-3px); }
.social-big a.fb:hover { background: #1877f2; }
.social-big a.tg:hover { background: #229ed9; }
.social-big a.tk:hover { background: #000; }
.social-big a.yt:hover { background: #ff0000; }
.social-big a.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.contact-photo { min-height: 520px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card { background: var(--bg-soft); padding: clamp(34px, 5vw, 64px); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.cinfo { list-style: none; padding: 0; margin: 26px 0; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cinfo .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--accent-dark); flex-shrink: 0; }
.cinfo span.label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.cinfo a, .cinfo strong { color: var(--ink); font-weight: 600; }
.map-wrap iframe { width: 100%; height: 560px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 84px 0 32px; background-size: 340px; background-blend-mode: overlay; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.site-footer h3 { color: #fff; font-weight: 600; font-size: 1.6rem; margin-bottom: 30px; }
.site-footer h5 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer .label { display: block; color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--accent-3); }
.fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Scroll-to-top ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .split, .prod-row, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .showcase { grid-template-columns: 1fr; }
    .showcase:nth-child(even) .showcase-media { order: 0; }
    .showcase-media { min-height: 260px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps, .tcards, .bcards { grid-template-columns: 1fr; }
    .prod-row.reverse .prod-media { order: 0; }
    .contact-photo { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 320px; max-height: 420px; }
    .contact-card { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .nav-links, .nav-cta .btn { display: none; }
    .nav-toggle { display: block; }
    .site-header.menu-open { background: #fff; }
    .mobile-menu {
        display: none; position: fixed; inset: 90px 0 0; background: #fff; z-index: 99; padding: 24px;
        overflow-y: auto; border-top: 1px solid var(--line);
    }
    .mobile-menu.open { display: block; }
    .mobile-menu a { display: block; padding: 14px 8px; font-size: 1.1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
    .mobile-menu .sub a { padding-left: 24px; font-weight: 500; font-size: 1rem; color: var(--ink-soft); }
    .feature-grid, .tcards, .bcards { grid-template-columns: 1fr; }
    .def-row { grid-template-columns: 1fr; gap: 6px; }
    .showcase-num { font-size: 4rem; top: 16px; right: 20px; }
    .hero-badge { left: 0; }
}
