/* ===== SHARED STYLES — err · day ===== */
:root {
  --ruby:       #A6171C;
  --ruby-deep:  #7E1014;
  --ruby-soft:  #E7B5B7;
  --yellow:     #F1C045;
  --yellow-soft:#FBE9B7;
  --moon:       #6B86AC;
  --moon-soft:  #C9D5E4;
  --cream:      #F4EFE5;
  --paper:      #FBF7EE;
  --milk:       #F9F0DD;
  --ink:        #2A2522;
  --sub:        #7A6F66;
  --display: "Funnel Display", "Anuphan", system-ui, sans-serif;
  --sans:    "Anuphan", "Funnel Sans", system-ui, sans-serif;
  --en:      "Funnel Sans", system-ui, sans-serif;
  --hand:    "Caveat", cursive;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.topnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 36px;
  gap: 24px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(42,37,34,0.08);
  backdrop-filter: blur(12px);
}
.topnav .wm { height: 144px; justify-self: start; }
.topnav .wm img { height: 100%; width: auto; }
.topnav nav {
  justify-self: center;
  display: flex; gap: 4px; align-items: center;
  background: var(--paper); padding: 6px;
  border-radius: 999px;
  border: 1px solid #E5DECE;
  font-family: var(--en);
}
.topnav nav a {
  color: var(--ink); text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 500; font-size: 14px;
  transition: background 0.15s;
}
.topnav nav a.on { background: var(--ink); color: var(--paper); }
.topnav nav a:not(.on):hover { background: var(--cream); }
.topnav .book-btn {
  justify-self: end;
  background: var(--ruby); color: var(--paper);
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; font-family: var(--sans);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.topnav .book-btn:hover { background: var(--ruby-deep); }

/* ===== SECTION HEADING (shared) ===== */
.sec-hd {
  padding: 80px 36px 28px;
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
}
.sec-hd .left .no {
  display: inline-block;
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; margin-bottom: 14px;
}
.sec-hd h2 {
  margin: 0;
  font-family: var(--sans); font-weight: 700;
  font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.sec-hd h2 .r { color: var(--ruby); }
.sec-hd h2 .squig { color: var(--yellow); font-family: var(--hand); font-style: normal; font-weight: 700; }
.sec-hd h2 .en {
  display: block;
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: 20px; color: var(--sub); letter-spacing: 0; margin-top: 6px;
}
.sec-hd .right {
  max-width: 34ch;
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  color: var(--sub); text-align: right;
}
.sec-hd .right b { color: var(--ink); font-weight: 600; }

/* ===== CTA FOOT (shared) ===== */
.cta-foot {
  margin: 0 36px;
  background: var(--ruby); color: var(--paper);
  border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 36px; align-items: end;
  position: relative; overflow: hidden;
}
.cta-foot::after {
  content: "";
  position: absolute; top: -40px; right: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: color-mix(in oklab, var(--yellow) 50%, transparent);
}
.cta-foot > * { position: relative; z-index: 2; }
.cta-foot h3 {
  margin: 0;
  font-family: var(--sans); font-weight: 700;
  font-size: 56px; line-height: 0.98; letter-spacing: -0.03em;
}
.cta-foot h3 .squig { font-family: var(--hand); color: var(--yellow); }
.cta-foot p {
  margin: 14px 0 0; font-size: 16px; line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 90%, transparent); max-width: 44ch;
}
.cta-foot .cta-right { display: flex; flex-direction: column; gap: 10px; }
.cta-foot .cta-right .pri {
  background: var(--yellow); color: var(--ink);
  padding: 16px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  text-align: center; text-decoration: none; font-family: var(--sans);
}
.cta-foot .cta-right .sec {
  background: transparent; color: var(--paper);
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--paper) 40%, transparent);
  font-weight: 500; font-size: 14px;
  text-align: center; text-decoration: none; font-family: var(--sans);
}

/* ===== SOCIALS BAR (shared) ===== */
.socials {
  margin: 24px 36px 0;
  background: var(--ink); color: var(--paper);
  border-radius: 24px; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.socials .ttl {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
}
.socials .ttl em { font-family: var(--hand); color: var(--yellow); font-style: normal; margin-left: 6px; }
.socials .links { display: flex; gap: 8px; flex-wrap: wrap; }
.socials .links a {
  background: #3A302C; color: var(--paper);
  padding: 11px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.socials .links a:hover { opacity: 0.85; }
.socials .links a .ic {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.socials .links a.line .ic  { background: #06C755; color: #fff; }
.socials .links a.fb .ic    { background: #1877F2; color: #fff; }
.socials .links a.ig .ic    { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.socials .links a.tt .ic    { background: var(--paper); color: var(--ink); }
.socials .links a.ph .ic    { background: var(--yellow); color: var(--ink); }

/* ===== SIGN FOOTER (shared) ===== */
.signfoot {
  margin: 14px 36px 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0 40px;
  color: var(--sub); font-family: var(--en); font-size: 12px;
  border-top: 1px dashed #D6D0C5;
}

/* ===== HAMBURGER BUTTON ===== */
.topnav .hamburger {
  display: none;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid #E5DECE;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  width: 48px; height: 48px;
}
.topnav .hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  padding: 24px 28px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.mobile-menu .mm-top .wm img { height: 72px; width: auto; }
.mobile-menu .mm-close {
  background: var(--paper);
  border: 1px solid #E5DECE;
  border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px dashed #D6D0C5;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mobile-menu nav a.on { color: var(--ruby); }
.mobile-menu .mm-book {
  margin-top: 32px;
  background: var(--ruby);
  color: var(--paper);
  padding: 18px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  font-family: var(--sans);
  display: block;
}
.mobile-menu .mm-book:hover { background: var(--ruby-deep); }

/* ===== RESPONSIVE SHARED ===== */
@media (max-width: 1100px) {
  .cta-foot { grid-template-columns: 1fr; padding: 36px 32px; }
  .cta-foot h3 { font-size: 40px; }
  .socials { flex-direction: column; align-items: start; }
}
@media (max-width: 760px) {
  .topnav { padding: 14px 22px; grid-template-columns: 1fr 1fr; }
  .topnav .wm { height: 72px; }
  .topnav nav { display: none; }
  .topnav .book-btn { display: none; }
  .topnav .hamburger { display: flex; }
  .sec-hd { padding: 48px 22px 20px; flex-direction: column; align-items: start; }
  .sec-hd h2 { font-size: 36px; }
  .sec-hd .right { text-align: left; max-width: none; }
  .cta-foot { margin: 0 18px; padding: 28px 22px; }
  .cta-foot h3 { font-size: 32px; }
  .socials { margin: 24px 22px 0; }
  .signfoot { margin: 14px 22px 0; flex-direction: column; align-items: start; gap: 6px; }
}
