/* ABOUTME: Brand-matched styles for the DEK NOI landing page. */
/* ABOUTME: Mirrors the rewards app — red/yellow palette, gradient hero, playful cards. */
:root {
  --red: #CC0000;
  --red-bright: #FF3333;
  --yellow: #FFE600;
  --yellow-bright: #FFF200;
  --bg: #f8fafc;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3f4f6;
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --stripe-h: 8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding: calc(var(--stripe-h) * 2) 0;
}

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

/* ---- Brand stripe frame ---- */
.stripe { position: fixed; left: 0; right: 0; z-index: 50; }
.stripe-top { top: 0; }
.stripe-bottom { bottom: 0; }
.stripe-red { height: var(--stripe-h); background: var(--red); }
.stripe-yellow { height: var(--stripe-h); background: var(--yellow); }

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: 720px; margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
}
.logo { height: 52px; width: auto; }
.lang-toggle {
  border: 2px solid var(--red); background: #fff; color: var(--red);
  border-radius: 999px; padding: 0.4rem 1rem;
  font-weight: 900; font-size: 0.85rem; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.lang-toggle:hover { background: #FFF0F0; }
.lang-toggle:active { transform: scale(0.94); }

.page { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 2rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  margin-top: 1rem;
  border-radius: 28px;
  padding: 2rem 1.5rem 2.25rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #CC0000 0%, #FF3333 100%);
  box-shadow: 0 20px 60px rgba(204, 0, 0, 0.3);
}
.hero-content { position: relative; z-index: 2; max-width: 78%; }
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow); color: var(--red);
  font-weight: 900; font-size: 0.78rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hero-title {
  margin: 0 0 0.7rem;
  font-size: 2rem; line-height: 1.15;
  font-weight: 900; letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.hero-sub {
  margin: 0 0 1.4rem;
  font-size: 0.95rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--yellow); color: var(--red);
  text-decoration: none; font-weight: 900; font-size: 1.05rem;
  padding: 0.85rem 2rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.cta::after { content: "→"; font-weight: 900; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.cta:active { transform: translateY(0) scale(0.98); }

.hero-char {
  position: absolute; right: -0.5rem; bottom: -0.75rem; z-index: 1;
  height: 150px; width: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.hero-circle { position: absolute; border-radius: 50%; background: var(--yellow); }
.hero-circle-a { top: -30px; right: -30px; width: 130px; height: 130px; opacity: 0.18; animation: pulse 3s ease-in-out infinite; }
.hero-circle-b { bottom: -24px; left: -24px; width: 100px; height: 100px; opacity: 0.10; animation: pulse 3s ease-in-out infinite 1s; }
.hero-circle-c { top: 40%; left: 30%; width: 160px; height: 160px; opacity: 0.06; }

/* ---- Section heading ---- */
.section-heading {
  font-size: 1.35rem; font-weight: 900; letter-spacing: -0.01em;
  margin: 2.25rem 0 1rem;
  color: var(--ink);
}
.section-heading::before {
  content: ""; display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); margin-right: 0.55rem; vertical-align: middle;
}

/* ---- Value props ---- */
.props-grid { display: grid; gap: 1rem; }
.prop {
  position: relative;
  background: #fff; border-radius: 22px; padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prop:hover { transform: translateY(-3px); box-shadow: 0 24px 32px -8px rgba(204, 0, 0, 0.15); }
.prop-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: #FFF0F0; font-size: 1.6rem;
  margin-bottom: 0.9rem;
}
.prop h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 900; color: var(--red); }
.prop p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---- Cards (location + contact share the shell) ---- */
.card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  padding: 1.75rem 1.5rem;
  margin-top: 1rem;
}
.card-title { margin: 0 0 0.9rem; font-size: 1.2rem; font-weight: 900; color: var(--ink); }

/* ---- Location ---- */
.location-card .pin {
  position: absolute; top: 1.25rem; right: 1.25rem; font-size: 1.6rem;
}
.location-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--red); font-weight: 900; font-size: 1.15rem;
  text-decoration: none;
}
.location-link:hover { text-decoration: underline; }
.location-arrow { transition: transform 0.15s ease; }
.location-link:hover .location-arrow { transform: translateX(4px); }

/* ---- Contact ---- */
.contact-rows { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.85rem 1rem;
  color: var(--ink); font-weight: 700; font-size: 0.98rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-row:hover { border-color: var(--red); background: #FFF7F7; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: #FFF0F0; font-size: 1.05rem; flex-shrink: 0;
}
.line-block { text-align: center; }
.line-label { margin: 0 0 0.9rem; color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.line-link {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.85rem;
  text-decoration: none;
}
.qr-frame {
  display: inline-block; padding: 0.75rem;
  background: #fff; border: 3px solid var(--yellow); border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.line-link:hover .qr-frame { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14); }
.qr { width: 180px; height: 180px; object-fit: contain; }
.line-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #06C755; color: #fff;
  font-weight: 900; font-size: 0.95rem;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
  transition: transform 0.12s ease;
}
.line-link:hover .line-cta { transform: translateY(-2px); }
.line-link:active .line-cta { transform: scale(0.97); }
.contact-char {
  position: absolute; right: -0.5rem; bottom: -0.5rem;
  height: 96px; width: auto; opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

/* ---- Footer (full-bleed edge to edge) ---- */
.footer {
  width: 100%; margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, #CC0000 0%, #FF3333 100%);
  color: #fff;
}
.footer-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-text { font-weight: 900; }
.footer-link { color: var(--yellow); font-weight: 900; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ---- Motion + responsive ---- */
@keyframes pulse { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.28; } }

@media (min-width: 640px) {
  .hero { padding: 2.75rem 2.25rem 3rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-char { height: 190px; }
  .props-grid { grid-template-columns: repeat(3, 1fr); }
  .section-heading { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
