/* ===========================================================
   CERIMONIAL RSVP — Design System
   Paleta inspirada no monograma dourado da marca
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gold: #b8874a;
  --gold-dark: #8a6432;
  --gold-light: #e8d5ab;
  --gold-soft: #f5ecd9;
  --ivory: #faf7f2;
  --ivory-2: #f2ece1;
  --ink: #2b2420;
  --ink-soft: #776a5c;
  --ink-faint: #a89a8a;
  --white: #ffffff;
  --success: #4c8c6b;
  --success-bg: #e4f0e8;
  --danger: #b8544a;
  --danger-bg: #f6e4e2;
  --pending: #c48a3d;
  --pending-bg: #f8ecd8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(43, 36, 32, 0.07);
  --shadow-lift: 0 10px 30px rgba(43, 36, 32, 0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

a { color: var(--gold-dark); }

/* ---------- Cabeçalho de marca ---------- */
.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-header img { height: 42px; border-radius: 6px; }
.brand-header .brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.brand-header .brand-sub {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 135, 74, 0.12);
}

/* ---------- Botões ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(138, 100, 50, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(138, 100, 50, 0.45); }

.btn-secondary {
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.btn-secondary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid #e4dccd;
}
.btn-ghost:hover { background: var(--ivory-2); }

.btn-danger-subtle {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  font-size: 13px;
  padding: 8px 12px;
}
.btn-danger-subtle:hover { background: var(--danger-bg); border-color: rgba(184, 84, 74, 0.2); }

.btn-block { width: 100%; }

/* ---------- Inputs ---------- */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4dccd;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 135, 74, 0.15);
}
label.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Badges ---------- */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.pend { background: var(--pending-bg); color: var(--pending); }
.badge.cancel { background: var(--danger-bg); color: var(--danger); }
.badge.neutral { background: var(--ivory-2); color: var(--ink-faint); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(43, 36, 32, 0.55);
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lift);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Utilitários ---------- */
.container { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.muted { color: var(--ink-soft); font-size: 13px; }
.divider { height: 1px; background: #eee3d1; margin: 18px 0; border: none; }
::selection { background: var(--gold-light); }
