/* ═══════════════════════════════════════════════════════════════
   Anatta Thailand — Shared Theme
   Use across all pages: Home, Landing, Product Listing, Product Detail, etc.
   Color tokens MATCH the Landing Page exactly.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif;
  color: #1A2845;
  background: #FBF9F5;
  line-height: 1.6;
}

/* ─── Typography (Thai needs more leading than Latin) ─── */
.font-display { font-family: 'Sarabun', system-ui, sans-serif; letter-spacing: 0; line-height: 1.45; }
h1.font-display, h2.font-display, h3.font-display, h4.font-display { line-height: 1.45; }
.thai-display { line-height: 1.5; word-spacing: 0.05em; }
.thai-body { line-height: 1.85; }

/* ─── Decorative ─── */
.hairline {
  background-image: linear-gradient(to right, transparent, rgba(201,169,97,.55), transparent);
  height: 1px;
}
.lotus-divider::before, .lotus-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,97,.5), transparent);
}
.lotus-divider { display: flex; align-items: center; gap: 14px; }
.accent-underline {
  background: linear-gradient(to right, #C9A961, #D6BC7E);
  height: 3px; width: 48px; border-radius: 2px;
}

/* Placeholder image (textured cream) */
.placeholder-img {
  background-image:
    linear-gradient(135deg, rgba(26,40,69,.04) 0 25%, transparent 25% 50%, rgba(26,40,69,.04) 50% 75%, transparent 75%);
  background-size: 28px 28px;
  background-color: #EBE3D5;
  color: #86692F;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ─── Form fields ─── */
.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #DCD0BC;
  background: #fff;
  padding: 0.75rem 1rem;
  color: #1A2845;
  transition: border-color .15s, box-shadow .15s;
  font-size: 1rem;
}
.field::placeholder { color: rgba(26,40,69,0.4); }
.field:focus {
  outline: none;
  border-color: #C9A961;
  box-shadow: 0 0 0 3px rgba(201,169,97,0.20);
}
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26,40,69,0.8);
  margin-bottom: 0.375rem;
}

/* ─── Primary button ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #1A2845;
  padding: 1rem 1.5rem;
  color: #FBF9F5;
  font-weight: 600;
  box-shadow: 0 6px 24px -8px rgba(26,40,69,.12), 0 2px 6px -2px rgba(26,40,69,.06);
  transition: background .15s, box-shadow .15s, border-color .15s;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #11192C;
  box-shadow: 0 18px 40px -16px rgba(26,40,69,.22), 0 4px 12px -4px rgba(26,40,69,.08);
  border-color: rgba(201,169,97,0.4);
}
.btn-primary-gold {
  background-image: linear-gradient(180deg,#22335A 0%, #1A2845 100%);
  border: 1px solid rgba(201,169,97,.45);
}

/* ─── Card hover ─── */
.hover-lift { transition: transform .25s, box-shadow .25s; }
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(26,40,69,0.22), 0 4px 12px -4px rgba(26,40,69,0.08);
}

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

/* ─── Marquee (top bar mobile) ─── */
@keyframes scrollx { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.marquee-track { animation: scrollx 22s linear infinite; }

/* ─── Selection ─── */
::selection { background: rgba(201,169,97,.35); }

/* ═══════ CTA Attention Animations ═══════ */

@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.55), 0 8px 24px -10px rgba(201,169,97,0.55); }
  50%       { box-shadow: 0 0 0 10px rgba(201,169,97,0), 0 12px 32px -8px rgba(201,169,97,0.75); }
}
.cta-breathe { animation: cta-breathe 2.2s ease-in-out infinite; }

@keyframes cta-breathe-navy {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.45), 0 8px 24px -10px rgba(201,169,97,0.40); }
  50%       { box-shadow: 0 0 0 10px rgba(201,169,97,0), 0 12px 32px -8px rgba(201,169,97,0.60); }
}
.cta-breathe-navy { animation: cta-breathe-navy 2.6s ease-in-out infinite; }

@keyframes cta-dot {
  0%, 100% { transform: scale(1);   opacity: 1; box-shadow: 0 0 0 0   rgba(239,68,68,0.7); }
  50%       { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.cta-dot { position: relative; }
.cta-dot::after {
  content: ''; position: absolute; top: -4px; right: -4px;
  width: 12px; height: 12px; background: #ef4444; border-radius: 9999px;
  border: 2px solid #FBF9F5;
  animation: cta-dot 1.6s ease-in-out infinite;
  z-index: 3;
}

@keyframes cta-shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}
.cta-shine { position: relative; overflow: hidden; isolation: isolate; }
.cta-shine::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none; z-index: 2;
  animation: cta-shine 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cta-breathe, .cta-breathe-navy,
  .cta-dot::after, .cta-shine::before {
    animation: none !important;
  }
}
