/* ═══════════════════════════════════════════════════════════
   HAPPY HOUSE — Design System
   Palette: Rose Pink × Warm Cream × Dusty Gold
   Font: Playfair Display (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Brand – Rose Pink */
  --pink:       #C8516A;
  --pink-2:     #B8415A;
  --pink-3:     #D86070;
  --pink-lt:    #FAE8EC;
  --pink-pale:  #FDF3F5;

  /* Accent – Warm Cream / Butter */
  --cream:      #FFF9F4;
  --cream-2:    #F5EDE0;
  --cream-3:    #EDE0CE;

  /* Accent – Dusty Gold */
  --gold:       #E8A22E;
  --gold-dk:    #C8861A;
  --gold-lt:    #FEF4DC;

  /* Backgrounds */
  --bg:         #FFF9F4;
  --bg2:        #F5EDE0;
  --surface:    #FFFFFF;
  --border:     #EDE0CE;
  --border-2:   #DECCB6;

  /* Text */
  --ink:        #2D1F1A;
  --ink-2:      #4A3128;
  --ink-3:      #7A5C50;
  --ink-4:      #B09080;

  /* Feedback */
  --red:        #D94040;
  --red-lt:     #FDF0F0;
  --green-ok:   #2E7D52;
  --green-lt:   #E8F5EE;

  /* Kitchen dark palette */
  --k-bg:       #1A0F0A;
  --k-surface:  #261610;
  --k-border:   rgba(255,255,255,.08);

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Easing */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(200,81,106,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh:    0 4px 16px rgba(200,81,106,.10), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg: 0 12px 40px rgba(200,81,106,.14), 0 4px 12px rgba(0,0,0,.06);
  --sh-xl: 0 24px 64px rgba(200,81,106,.18), 0 8px 24px rgba(0,0,0,.08);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { height:100%; scroll-behavior:smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.serif { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 600; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ── HH MONOGRAM ─────────────────────────────────────────── */
.hh-mark {
  width: 34px;
  height: 34px;
  background: var(--pink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.hh-mark::after {
  content: 'HH';
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: 0.04em;
}
.hh-mark-lg { width: 44px; height: 44px; border-radius: 13px; }
.hh-mark-lg::after { font-size: 0.9rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(200,81,106,.32);
}
.btn-primary:hover {
  background: var(--pink-2);
  box-shadow: 0 5px 20px rgba(200,81,106,.40);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,162,46,.28);
}
.btn-gold:hover {
  background: var(--gold-dk);
  box-shadow: 0 4px 18px rgba(232,162,46,.36);
  transform: translateY(-1px);
}

.btn-cream {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-cream:hover {
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.45);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--pink);
  background: var(--pink-pale);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-2);
  background: var(--bg2);
}

.btn-danger {
  background: var(--red-lt);
  color: var(--red);
  border: 1.5px solid transparent;
}
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,211,102,.28);
}
.btn-whatsapp:hover {
  background: #1fbb58;
  box-shadow: 0 5px 20px rgba(37,211,102,.38);
  transform: translateY(-1px);
}

.btn-sm  { padding: 0.4rem 0.875rem; font-size: 0.78rem; border-radius: var(--r-sm); }
.btn-lg  { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn-xl  { padding: 1rem 2.4rem; font-size: 1rem; letter-spacing: 0.02em; }
.btn-w   { width: 100%; }

/* ── INPUTS ──────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(200,81,106,.10);
}
.input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,64,64,.10); }

.input-group { display: flex; flex-direction: column; gap: 0.35rem; }
.input-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.input-hint  { font-size: 0.72rem; color: var(--ink-4); }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5C50' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
textarea.input { resize: vertical; min-height: 80px; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-pink   { background: var(--pink-lt);  color: var(--pink-2); }
.badge-gold   { background: var(--gold-lt);  color: var(--gold-dk); }
.badge-muted  { background: var(--bg2);      color: var(--ink-3); }
.badge-red    { background: var(--red-lt);   color: var(--red); }
.badge-green  { background: var(--green-lt); color: var(--green-ok); }
.badge-amber  { background: #FFF7E6;         color: #B07A1A; }
.badge-blue   { background: #EEF4FF;         color: #2C5FD4; }

/* ── SHARED NAV ──────────────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 64px;
  background: rgba(255,249,244,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 34px;
  height: 34px;
  background: var(--pink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.nav-logo::after {
  content: 'HH';
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: 0.04em;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pink);
}
.nav-brand-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.nav-spacer { flex: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: all 0.18s;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link:hover { color: var(--pink); background: var(--pink-pale); }
.nav-link.active { color: var(--pink); background: var(--pink-pale); font-weight: 600; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(45,31,26,.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--border);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.modal-body  { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.btn-close {
  width: 30px;
  height: 30px;
  background: var(--bg2);
  border: none;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-3);
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-close:hover { background: var(--border-2); color: var(--ink); }

/* ── TOAST ───────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  align-items: center;
}
.toast {
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: all;
  max-width: 380px;
  text-align: center;
  animation: toastIn 0.3s var(--ease) both;
}
.toast.success { background: var(--green-ok); }
.toast.error   { background: var(--red); }
.toast.info    { background: var(--pink-2); }

@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-4);
  font-size: 0.78rem;
  margin: 1.25rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--ink-3);
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  background: var(--bg2);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--ink-4);
}
.empty-state h4 { color: var(--ink-2); margin-bottom: 0.35rem; font-size: 0.95rem; }
.empty-state p  { font-size: 0.83rem; }

/* ── STATUS DOTS ─────────────────────────────────────────── */
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-pending   { background: #E0A020; animation: pulse-dot 2s infinite; }
.dot-preparing { background: #2C6AD4; animation: pulse-dot 1.5s infinite; }
.dot-ready     { background: #1E9E6A; animation: pulse-dot 2s infinite; }
.dot-completed { background: var(--ink-4); }

@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ── FOOTER ──────────────────────────────────────────────── */
.app-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  margin-top: auto;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}

.footer-mark {
  width: 40px;
  height: 40px;
  background: var(--pink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-info-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,.6);
}
.footer-info-icon { color: var(--pink-3); flex-shrink: 0; margin-top: 2px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,.55);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,.40);
  transition: all 0.2s var(--ease);
  text-decoration: none;
  animation: floatPulse 3s ease-in-out infinite;
}
.wa-float:hover {
  background: #1fbb58;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,.50);
}

@keyframes floatPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.40); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.60); }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-muted { color: var(--ink-3); } .text-pink { color: var(--pink); } .text-gold { color: var(--gold-dk); }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.mt-1 { margin-top:.25rem; } .mt-2 { margin-top:.5rem; } .mt-3 { margin-top:.75rem; } .mt-4 { margin-top:1rem; }
.mb-1 { margin-bottom:.25rem; } .mb-2 { margin-bottom:.5rem; } .mb-3 { margin-bottom:.75rem; } .mb-4 { margin-bottom:1rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.35; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* ── SCROLL ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem 2rem; }
  .footer-bottom { padding: 1rem 1.25rem; }
}
@media (max-width: 640px) {
  .btn-lg, .btn-xl { padding: 0.8rem 1.6rem; }
  .modal { max-width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .app-nav { padding: 0 1rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.9rem; border-radius: 50%; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
}