/* ============ DekPhut shared styles ============ */
:root{
  --mint: #D4EDE4;
  --mint-2: #BFE1D3;
  --cream: #FFF8E8;
  --cream-2: #FDF1D5;
  --peach: #FFE0D0;
  --lilac: #E4DDF5;
  --sky: #CDE6F3;
  --paper: #FFFDF7;
  --burgundy: #6B1F2A;
  --burgundy-ink: #4A1319;
  --gold: #E8B84C;
  --gold-deep: #C99524;
  --navy: #1E2850;
  --navy-2: #2A3566;
  --ink: #2A1F1A;
  --ink-soft: #574B43;
  --ink-faint: #8A7E74;
  --brand-yellow: #FACE3E;
  --rule: #EDE1C7;
  --shadow-card: 0 2px 0 rgba(30, 40, 80, 0.06), 0 12px 28px -14px rgba(30, 40, 80, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body{
  background: var(--cream);
  color: var(--ink);
  font-family: 'IBM Plex Sans Thai', 'Nunito', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px){ .wrap, .wrap-narrow { padding: 0 22px; } }

/* ===== NAV (shared) ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--mint);
  transition: box-shadow .2s ease;
}
.nav.on-cream { background: var(--cream); }
.nav.scrolled { box-shadow: 0 1px 0 rgba(30, 40, 80, .1); }
.nav-inner { display:flex; align-items:center; justify-content:space-between; padding: 16px 0; }
.brand { display:flex; align-items:center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-yellow); overflow: hidden;
  box-shadow: 0 2px 0 rgba(30,40,80,.1);
}
.brand-mark img { width:100%; height:100%; object-fit:cover; display:block; }
.brand-name { font-family: 'Mali', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1; }
.brand-sub { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-family: 'Mali', sans-serif; font-weight: 500; font-size: 15px; color: var(--navy); position: relative; padding: 6px 2px; }
.nav-link.active { color: var(--burgundy); }
.nav-link.active::after{ content:""; position:absolute; left:50%; bottom:-2px; width: 6px; height: 6px; border-radius:50%; background: var(--burgundy); transform: translateX(-50%); }
.nav-cta {
  font-family: 'Mali', sans-serif; font-weight: 600;
  font-size: 15px; color: #fff; background: var(--gold);
  padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
@media (max-width: 880px){ .nav-links .nav-link { display:none; } }

/* ===== BUTTONS ===== */
.btn-primary{
  display:inline-flex; align-items:center; gap: 10px;
  background: var(--burgundy); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-family: 'Mali', sans-serif; font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 0 var(--burgundy-ink);
  transition: transform .15s ease, box-shadow .15s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--burgundy-ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--burgundy-ink); }
.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  font-family: 'Mali', sans-serif; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
  background: #fff; color: var(--navy);
  box-shadow: 0 2px 0 rgba(30,40,80,.12);
  transition: all .15s ease;
  border: 2px solid var(--navy); cursor: pointer; font-size: 14px;
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgba(30,40,80,.16); }

/* ===== PAGE HEADERS ===== */
.page-eyebrow {
  display:inline-flex; align-items:center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.page-eyebrow::before, .page-eyebrow::after { content:""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ===== BREADCRUMB ===== */
.crumb { font-family: 'Mali', sans-serif; font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; display:flex; align-items:center; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--navy); font-weight: 500; }
.crumb a:hover { color: var(--burgundy); }
.crumb .sep { color: var(--rule); }

/* ===== FOOTER ===== */
footer{
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q 30 20 60 10 T 120 10 L 120 0 Z' fill='%23FFF8E8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand-name { font-family: 'Mali', sans-serif; font-weight: 700; font-size: 22px; color: #fff; margin: 14px 0 10px; }
.foot-tag { font-family: 'Mali', sans-serif; font-weight: 400; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); max-width: 34ch; }
.foot-col h5 { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-family: 'Mali', sans-serif; font-weight: 500; font-size: 14.5px; color: rgba(255,255,255,.8); }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display:flex; justify-content: space-between; align-items: center; padding-top: 24px; font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 14px; }

/* ===== CHIP / PILL ===== */
.chip { display:inline-flex; align-items:center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-family: 'Mali', sans-serif; font-weight: 500; font-size: 12.5px; background: var(--cream-2); color: var(--navy); border: 1.5px solid var(--rule); }
.chip.gold { background: var(--gold); color: #fff; border-color: var(--gold-deep); }
.chip.burgundy { background: var(--burgundy); color: #fff; border-color: var(--burgundy-ink); }

/* ===== DISPLAY ===== */
.display { font-family: 'Mali', sans-serif; font-weight: 700; color: var(--navy); }
.underline-gold { position: relative; display: inline-block; }
.underline-gold::after { content:""; position:absolute; left:0; right:0; bottom: 4px; height: 8px; background: var(--gold); opacity: .45; border-radius: 999px; z-index: -1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
