/* naporsong v2 — Stripe-inspired: gradient mesh, glass nav, refined cards. */
:root {
  --v-navy: #0a2540;
  --v-royal: #1e5aa8;
  --v-sky: #5b9bd5;
  --v-gold: #c9a227;
  --v-green: #2d6a4f;
  --v-ink: #0f1b2d;
  --v-muted: #425466;
  --v-line: #e3e8ef;
  --v-bg: #ffffff;
  --v-soft: #f6f9fc;
  --v-radius: 16px;
  --v-font: "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Tahoma", sans-serif;
  --v-max: 1120px;
}
body.v2 { font-family: var(--v-font); color: var(--v-ink); line-height: 1.85; margin: 0; font-size: 1rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.v2 .container { max-width: var(--v-max); margin: 0 auto; padding: 0 24px; }
body.v2 p { margin: 0 0 1em; }
body.v2 img { max-width: 100%; }
body.v2 figure { margin: 0; }
body.v2 code { background: #eef1f6; padding: 1px 7px; border-radius: 5px; font-size: .88em; }
body.v2 :focus-visible { outline: 2px solid var(--v-royal); outline-offset: 3px; border-radius: 4px; }
body.v2 .skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--v-navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; font-size: .88rem; }
body.v2 .skip-link:focus { left: 0; }
body.v2 .check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
body.v2 .check-list li { padding: 8px 0 8px 34px; position: relative; font-size: .95rem; }
body.v2 .check-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 24px; height: 24px;
  border-radius: 50%; background: #e4f1e8; color: var(--v-green); font-weight: 700; font-size: .8rem;
  text-align: center; line-height: 24px; }
body.v2 h1, body.v2 h2, body.v2 h3 { color: var(--v-navy); line-height: 1.55; margin: 0 0 .55em; }
body.v2 a { color: var(--v-royal); }
body.v2 .container { max-width: var(--v-max); }
body.v2 .narrow { max-width: 760px; }
body.v2 .center { text-align: center; }
body.v2 .dim { color: var(--v-muted); }
body.v2 .meta { font-size: .85rem; color: var(--v-muted); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--v-royal), var(--v-sky), var(--v-gold), var(--v-green)); }

/* ---------- glass nav ---------- */
.v2-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.v2-nav-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 12px; padding: 0 16px;
  background: rgba(255,255,255,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(10,37,64,.12); border-radius: 16px;
  box-shadow: 0 12px 32px -16px rgba(10,37,64,.35);
  transition: box-shadow .25s ease, background .25s ease; }
.v2-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.v2-brand-mark svg { width: 34px; height: 34px; display: block; }
.v2-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.v2-brand-text strong { color: var(--v-navy); font-size: 1rem; }
.v2-brand-text small { color: #64748b; font-size: .72rem; }
.v2-nav.scrolled .v2-nav-inner { background: rgba(255,255,255,.96); box-shadow: 0 18px 44px -16px rgba(10,37,64,.45); }
.v2-menu { display: flex; align-items: center; gap: 2px; }
.v2-menu a { text-decoration: none; color: var(--v-ink); font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.v2-menu a:hover { background: rgba(10,37,64,.07); color: var(--v-royal); }
.v2-menu a.on { background: #e3ecf7; color: var(--v-royal); font-weight: 700; }
.v2-menu .v2-cta { background: var(--v-navy); color: #fff !important; font-weight: 700; margin-left: 8px; box-shadow: 0 4px 14px -4px rgba(10,37,64,.5); }
.v2-menu .v2-cta:hover { background: var(--v-royal); color: #fff !important; }
.v2-burger { display: none; background: rgba(255,255,255,.8); border: 1px solid var(--v-line); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.v2-burger span { display: block; width: 20px; height: 2px; background: var(--v-navy); margin: 4px 0; border-radius: 2px; }
body.v2 main { display: block; }

/* ---------- mesh hero ---------- */
.mesh-hero { position: relative; overflow: hidden; padding: 102px 0 0; isolation: isolate;
  background: linear-gradient(180deg, #dfe9f5 0%, #f6f9fc 60%, #ffffff 100%); }
.mesh { position: absolute; inset: -20% -10% auto; height: 720px; z-index: -2; filter: blur(70px) saturate(1.3); opacity: .85; }
.mesh span { position: absolute; border-radius: 50%; animation: drift 16s ease-in-out infinite alternate; }
.mesh .b1 { width: 520px; height: 520px; left: -6%; top: -8%; background: #8fbdea; }
.mesh .b2 { width: 460px; height: 460px; left: 30%; top: 6%; background: #c9a227; opacity: .55; animation-delay: -4s; }
.mesh .b3 { width: 560px; height: 560px; right: -8%; top: -12%; background: #5b9bd5; animation-delay: -8s; }
.mesh .b4 { width: 420px; height: 420px; left: 52%; top: 34%; background: #7cc4a0; opacity: .6; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.12); } }
.mesh-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(10,37,64,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(10,37,64,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%); }
.mesh-inner { text-align: left; }
.pill { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--v-navy);
  background: rgba(255,255,255,.7); border: 1px solid rgba(10,37,64,.14);
  padding: 6px 16px; border-radius: 999px; backdrop-filter: blur(6px); margin: 0 0 1.1em; }
.mesh-hero h1 { font-size: clamp(1.35rem, 4.1vw, 2.7rem); font-weight: 800; line-height: 1.55; letter-spacing: 0; }
.grad-text { background: linear-gradient(92deg, var(--v-royal) 10%, #0e7c66 55%, var(--v-gold) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.mesh-sub { font-size: 1.05rem; color: var(--v-muted); max-width: 640px; }
.mesh-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.3em 0 0; }
.mesh-actions.center { justify-content: center; }
.btn2 { display: inline-block; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 12px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn2:hover { transform: translateY(-2px); }
.btn2-dark { background: var(--v-navy); color: #fff !important; box-shadow: 0 10px 28px -10px rgba(10,37,64,.55); }
.btn2-dark:hover { background: var(--v-royal); }
.btn2-light { background: rgba(255,255,255,.85); color: var(--v-navy) !important; border-color: rgba(10,37,64,.16); backdrop-filter: blur(6px); }
.btn2-gold { background: var(--v-gold); color: var(--v-navy) !important; box-shadow: 0 10px 28px -10px rgba(201,162,39,.7); }
.btn2-outline { border-color: #c2ccd8; color: var(--v-navy) !important; background: #fff; }
.btn2-outline:hover { border-color: var(--v-royal); color: var(--v-royal) !important; }
.btn2[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
/* cover hero: owner banner photo, faded under the welcome text */
.cover-hero { background: #fff; padding-bottom: 66px; }
.cover-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cover-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  opacity: .9; -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 58%);
  mask-image: linear-gradient(100deg, transparent 8%, #000 58%); }
.cover-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.72) 38%, rgba(255,255,255,.18) 68%, rgba(255,255,255,.32) 100%),
    linear-gradient(180deg, transparent 52%, #fff 99%); }

/* ---------- sections ---------- */
.v2-section { padding: 96px 0; }
.v2-section.soft { background: var(--v-soft); border-top: 1px solid var(--v-line); border-bottom: 1px solid var(--v-line); }
.kicker { color: var(--v-royal); font-weight: 700; font-size: .82rem; letter-spacing: .1em; margin: 0 0 .4em; }
.kicker.light { color: var(--v-gold); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.link-arrow { font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { background: #fff; border: 1px solid var(--v-line); border-radius: var(--v-radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -20px rgba(10,37,64,.3); }
.bento-card.tall { grid-row: span 2; }
.bento-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.bento-card.wide .ph-fig { height: 100%; min-height: 250px; }
.bento-card .ph-img, .bento-card .ph { aspect-ratio: 16 / 10 !important; object-fit: cover; width: 100%; display: block; border-radius: 0; border: none; }
.bento-card.tall .ph-img, .bento-card.tall .ph { aspect-ratio: 4 / 5 !important; height: auto; }
.bento-card.wide .ph-img, .bento-card.wide .ph { aspect-ratio: auto !important; width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.bento-body { padding: 22px; }
.bento-body h3 { font-size: 1.08rem; margin-bottom: .2em; }
.bento-body p { font-size: .92rem; color: var(--v-muted); margin-bottom: .6em; }
.bento-body a { font-weight: 700; font-size: .9rem; text-decoration: none; }
.bento-body a:hover { text-decoration: underline; }
.bento-card .img-credit { display: none; }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--v-line); border-bottom: 1px solid var(--v-line);
  background: var(--v-navy); color: #fff; padding: 14px 0; }
.marquee-track { display: inline-flex; gap: 26px; white-space: nowrap; animation: slide 28s linear infinite; font-weight: 600; }
.marquee-track i { color: var(--v-gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* news */
.news-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.news-card { background: #fff; border: 1px solid var(--v-line); border-radius: var(--v-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -20px rgba(10,37,64,.3); }
.news-card .ph-img, .news-card .ph { aspect-ratio: 16 / 10 !important; object-fit: cover; width: 100%; display: block; border-radius: 0; border: none; }
.news-card .img-credit { display: none; }
.news-body { padding: 20px 22px 22px; }
.news-body h3 { font-size: 1.05rem; }
.news-body p { font-size: .92rem; color: var(--v-muted); }
.v2-empty { text-align: center; border: 1px dashed #b9c4d2; border-radius: var(--v-radius); padding: 60px 24px; background: #fff; }
.v2-empty-title { font-size: 1.2rem; font-weight: 700; color: var(--v-navy); }

/* vision band */
.vision-band { position: relative; overflow: hidden; background: var(--v-navy); color: #fff; padding: 96px 0; text-align: center; }
.vision-band::before { content: ""; position: absolute; inset: 0; filter: blur(90px); opacity: .5;
  background: radial-gradient(420px 300px at 15% 20%, #1e5aa8, transparent 70%), radial-gradient(420px 320px at 85% 25%, #0e7c66, transparent 70%), radial-gradient(500px 300px at 50% 100%, #8a6d1c, transparent 70%); }
.vision-band .container { position: relative; }
.vision-band blockquote { margin: 0 0 1.4em; }
.vision-band blockquote p { font-size: clamp(1.2rem, 2.8vw, 1.7rem); font-weight: 700; color: #fff; }
.vision-band cite { color: var(--v-gold); font-style: normal; font-weight: 700; }

/* inner page hero */
.v2-pagehero { position: relative; overflow: hidden; padding: 148px 0 64px;
  background: linear-gradient(180deg, #cfdff2 0%, #eef4fa 55%, #fff 100%); }
.v2-pagehero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 560px; z-index: 0;
  filter: blur(80px); opacity: .7;
  background: radial-gradient(440px 300px at 20% 30%, #8fbdea, transparent 70%), radial-gradient(440px 300px at 80% 20%, #e3c766, transparent 70%), radial-gradient(400px 280px at 60% 80%, #7cc4a0, transparent 70%); }
.v2-pagehero .container { position: relative; }
.v2-pagehero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
.v2-pagehero .lead { color: var(--v-muted); font-size: 1.1rem; max-width: 680px; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .ph-img, .split .ph { aspect-ratio: 4 / 3 !important; object-fit: cover; width: 100%; display: block; border-radius: var(--v-radius); }
.split .img-credit { font-size: .78rem; color: var(--v-muted); }
.rounded-shot .ph-img, .rounded-shot .ph { border-radius: var(--v-radius); border: 1px solid var(--v-line); box-shadow: 0 30px 60px -30px rgba(10,37,64,.4); }
.rounded-shot .img-credit { padding: 8px 4px 0; }

/* timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--v-royal), var(--v-green), var(--v-gold)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--v-royal); }
.timeline h3 { margin-bottom: .15em; }
.timeline p { color: var(--v-muted); font-size: .95rem; margin: 0; }

/* tabs (vision missions) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn { border: 1px solid var(--v-line); background: #fff; color: var(--v-ink); font-family: inherit;
  font-weight: 600; font-size: .9rem; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.tab-btn[aria-selected="true"] { background: var(--v-navy); border-color: var(--v-navy); color: #fff; }
.tab-panel { display: none; background: #fff; border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 32px; }
.tab-panel.show { display: block; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.tab-panel h3 { font-size: 1.2rem; }
.tab-panel p { color: var(--v-muted); margin: 0; font-size: 1.02rem; }

/* place rows */
.place-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--v-line); }
.place-row:last-child { border-bottom: none; }
.place-row.flip > :first-child { order: 2; }
.place-row .ph-img, .place-row .ph { aspect-ratio: 16 / 10 !important; object-fit: cover; width: 100%; display: block; border-radius: var(--v-radius); }
.vbadge { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 14px;
  background: #e3ecf7; color: var(--v-royal); margin-bottom: 10px; }
.vbadge.in { background: #e4f1e8; color: var(--v-green); }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.prod-card { background: var(--v-navy); color: #fff; border-radius: var(--v-radius); overflow: hidden; transition: transform .2s ease; }
.prod-card:hover { transform: translateY(-5px); }
.prod-card .ph-img, .prod-card .ph { aspect-ratio: 16 / 10 !important; object-fit: cover; width: 100%; display: block; border-radius: 0; border: none; }
.prod-card .img-credit { display: none; }
.prod-body { padding: 22px; }
.prod-body h2 { color: #fff; font-size: 1.1rem; }
.prod-body p { color: #b9c4d2; font-size: .93rem; margin: 0; }

/* forms / faq / notices */
.v2-notice { border: 1px solid #e5cf8a; background: #fdf6e0; border-radius: 12px; padding: 18px 22px; margin-bottom: 2em; }
.v2-form { background: #fff; border: 1px solid var(--v-line); border-radius: var(--v-radius); padding: 30px; margin: 1em 0 2.5em; box-shadow: 0 20px 50px -30px rgba(10,37,64,.3); }
.v2-form fieldset { border: none; padding: 0; margin: 0; }
.v2-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.v2-form input, .v2-form select, .v2-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid #c2ccd8; border-radius: 10px; font-family: inherit; font-size: .95rem; background: var(--v-soft); color: var(--v-muted); }
.v2-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v2-faq details { border: 1px solid var(--v-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.v2-faq summary { font-weight: 700; color: var(--v-navy); cursor: pointer; }
.v2-faq p { color: var(--v-muted); font-size: .95rem; }
.v2-todo { background: #fffdf4; border: 1px dashed var(--v-gold); border-radius: 10px; padding: 12px 16px; font-size: .86rem; color: var(--v-muted); margin: 1.2em 0; }
.v2-source { font-size: .86rem; color: var(--v-muted); border-left: 2px solid var(--v-gold); padding-left: 12px; }
body.v2 address { font-style: normal; background: var(--v-soft); border: 1px solid var(--v-line); border-radius: 12px; padding: 18px 22px; }
.v2-article { font-size: 1.03rem; }
.v2-article .ph-img { aspect-ratio: 16 / 9; }
.v2-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2em; }

/* portrait */
.v2-portrait .ph-img, .v2-portrait .ph { aspect-ratio: 3 / 4 !important; object-fit: cover; width: 100%; display: block; border-radius: var(--v-radius); }
.v2-portrait { max-width: 400px; }

/* footer */
.v2-footer { background: var(--v-navy); color: #93a0b4; font-size: .9rem; }
.v2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 64px 24px 40px; }
.v2-footer strong { color: #fff; display: block; margin-bottom: 12px; }
.v2-footer a { color: #93a0b4; text-decoration: none; display: block; margin-bottom: 7px; }
.v2-footer a:hover { color: #fff; }
.v2-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .82rem; }
.v2-footer-bottom p { margin: 0; }
.v2-switch { background: var(--v-soft); border-top: 1px solid var(--v-line); padding: 18px 0; font-size: .9rem; text-align: center; }
.v2-switch p { margin: 0; color: var(--v-muted); }
.v2-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--v-line); background: #fff; color: var(--v-navy); font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(10,37,64,.4); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .v2-menu { display: none; position: absolute; top: 80px; left: 12px; right: 12px; background: #fff; border: 1px solid var(--v-line);
    border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(10,37,64,.4); flex-direction: column; align-items: stretch; padding: 10px; }
  .v2-menu.open { display: flex; }
  .v2-menu a { color: var(--v-ink) !important; padding: 11px 14px; }
  .v2-menu a:hover, .v2-menu a.on { background: #eef2f7; }
  .v2-burger { display: block; margin-left: auto; }
  .v2-brand { margin-right: 0; }
  .split, .place-row { grid-template-columns: 1fr; gap: 24px; }
  .place-row.flip > :first-child, .split.flip > :first-child { order: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.tall { grid-row: auto; }
  .bento-card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .bento-card.wide .ph-img, .bento-card.wide .ph { aspect-ratio: 16 / 10 !important; height: auto; min-height: 0; }
  .v2-footer-grid { grid-template-columns: 1fr 1fr; }
  .v2-section { padding: 64px 0; }
  .v2-grid2 { grid-template-columns: 1fr; }
  .cover-hero { padding-bottom: 58px; }
  .cover-bg img { object-position: 82% 20%; opacity: .8;
    -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
    mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
  .cover-hero::after { background:
    linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,.42) 80%, rgba(255,255,255,.6) 100%),
    linear-gradient(180deg, transparent 52%, #fff 99%); }
}
@media (max-width: 560px) { .v2-footer-grid { grid-template-columns: 1fr; } .mesh-actions .btn2 { width: 100%; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  body.v2 { scroll-behavior: auto; }
  .mesh span, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn2:hover, .bento-card:hover, .news-card:hover, .prod-card:hover { transform: none; }
}
