/* ==========================================================================
   DELWELL PLATFORM — REFINED LUXURY MINIMALIST DESIGN SYSTEM
   Palette: Warm Cashmere Linen, Deep Espresso Bronze, Soft Sage & Terracotta
   ========================================================================== */

:root {
  --bg-primary: #F5EFEB;
  --bg-surface: #FCFAF8;
  --bg-card: #FFFFFF;
  --bg-dark: #1E1A18;
  --bg-subtle-sage: #EAEFEA;

  --espresso-900: #1F1B19;
  --espresso-800: #2C2624;
  --espresso-700: #3E3734;
  --espresso-600: #554D4A;

  --taupe-500: #7E7570;
  --taupe-400: #9B928C;
  --taupe-300: #C2BBB5;
  --taupe-200: #E4DDD7;
  --taupe-100: #EFE9E4;

  --sage-700: #2B453A;
  --sage-600: #3B5D4E;
  --sage-500: #517866;
  --sage-100: #E2EBE6;
  --sage-50: #F2F7F4;

  --terracotta-600: #A84E38;
  --terracotta-500: #C46850;
  --terracotta-100: #FCECE8;

  --text-primary: #231E1C;
  --text-secondary: #564E4A;
  --text-muted: #827873;
  --text-inverse: #FBF9F7;

  --border-light: rgba(44, 38, 36, 0.09);
  --border-focus: rgba(44, 38, 36, 0.4);

  --shadow-subtle: 0 4px 20px rgba(35, 30, 28, 0.03);
  --shadow-card: 0 12px 36px rgba(35, 30, 28, 0.05), 0 2px 6px rgba(35, 30, 28, 0.02);
  --shadow-lg: 0 24px 60px rgba(35, 30, 28, 0.08);

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   LOGO & BRANDING (EXACT MONOGRAM EMBLAZON)
   ========================================================================== */

.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
  user-select: none;
}

.monogram-mark {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  color: var(--espresso-900);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.monogram-mark .letter-d {
  font-size: 4.8rem;
  font-weight: 500;
  display: inline-block;
  transform: translateX(6px);
}

.monogram-mark .letter-w {
  font-size: 4.6rem;
  font-weight: 400;
  display: inline-block;
  margin-left: -18px;
  margin-top: 14px;
  vertical-align: bottom;
  opacity: 0.92;
}

.logo-divider {
  width: 48px;
  height: 1px;
  background-color: var(--espresso-800);
  margin: 10px auto 8px;
  opacity: 0.45;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--espresso-900);
  text-transform: uppercase;
  padding-left: 0.42em;
}

/* Navbar Minimalist */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.nav-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--espresso-900);
  text-transform: uppercase;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Announcement Pill */
.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 38, 36, 0.05);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--espresso-800);
  margin-bottom: 24px;
}

.announcement-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta-500);
  border-radius: 50%;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--espresso-900);
  line-height: 1.2;
  font-weight: 500;
}

/* Hero Section */
.hero-simple {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-simple h1 {
  font-size: 3.2rem;
  line-height: 1.18;
  max-width: 820px;
  margin: 20px auto 18px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.hero-simple h1 em {
  font-style: italic;
  color: var(--terracotta-600);
}

.hero-simple p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Centered Form Card */
.form-card-centered {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.form-gift-callout {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--espresso-800);
}

.form-gift-callout strong {
  color: var(--terracotta-600);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--espresso-800);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--taupe-300);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--espresso-800);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(44, 38, 36, 0.08);
}

.btn-submit {
  width: 100%;
  padding: 15px 24px;
  background: var(--espresso-900);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(35, 30, 28, 0.15);
}

.btn-submit:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(35, 30, 28, 0.25);
}

.privacy-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Success Confirmation */
.success-confirmation-view {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.3s ease;
}

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

.success-badge-circle {
  width: 60px;
  height: 60px;
  background: var(--sage-50);
  color: var(--sage-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  border: 1px solid var(--sage-100);
}

.vip-num-card {
  background: var(--bg-primary);
  border: 1px dashed var(--taupe-400);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 16px 0;
}

.vip-num-card .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--espresso-900);
}

.referral-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
  text-align: left;
}

.referral-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Simplified 4 Pillars Grid */
.pillars-simple {
  padding: 80px 0;
}

.pillars-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease;
}

.pillar-clean-card:hover {
  transform: translateY(-2px);
}

.pillar-clean-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pillar-clean-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pillar-clean-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonial Quote Section */
.quote-banner {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--espresso-900);
  max-width: 780px;
  margin: 0 auto 16px;
  font-style: italic;
}

.quote-banner cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQ Minimalist */
.faq-clean-section {
  padding: 70px 0 90px;
}

.faq-clean-list {
  max-width: 680px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-clean-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-clean-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso-900);
}

.faq-clean-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-clean-item.open .faq-clean-answer {
  display: block;
}

/* Footer Clean */
.footer-clean {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-clean-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-clean-links a {
  color: var(--espresso-800);
  font-weight: 500;
}

.footer-clean-links a:hover {
  text-decoration: underline;
}

/* Admin Drawer Modal */
.admin-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35, 30, 28, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-overlay.active { display: flex; }

.admin-modal {
  background: #FFFFFF;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  padding: 20px 28px;
  background: var(--espresso-900);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

.admin-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--espresso-900); }

.admin-table-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-height: 380px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  background: var(--bg-primary);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--espresso-900);
  position: sticky;
  top: 0;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.invited { background: var(--sage-100); color: var(--sage-700); }
.status-badge.pending { background: #FFF3CD; color: #856404; }

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--espresso-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  border-left: 4px solid var(--sage-500);
}

.btn-subtle-admin {
  background: transparent;
  border: 1px solid var(--taupe-300);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--espresso-700);
  cursor: pointer;
}

.btn-subtle-admin:hover {
  background: rgba(0,0,0,0.04);
}

@media (max-width: 840px) {
  .hero-simple h1 { font-size: 2.4rem; }
  .form-card-centered { padding: 30px 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .pillars-simple-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-simple h1 { font-size: 2rem; }
  .pillars-simple-grid { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}
