/* ============================================================
   MORELI — Executive Wide Layout Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Palette Tokens ─────────────────────────────────────── */
:root {
  --crimson:        #6C0820;
  --crimson-hover:  #8B0A2A;
  --crimson-subtle: rgba(108, 8, 32, 0.06);

  --cobalt:         #5B86CB;
  --cobalt-subtle:  rgba(91, 134, 203, 0.08);

  --navy:           #1E293B;
  --dark:           #0F172A;

  --butter:         #FEF9C3;
  --blush:          #FDF0F3;

  --bg-page:        #FAF8F5; /* Crisp Light Canvas */
  --bg-surface:     #FFFFFF; /* Pure White Cards */
  --bg-subtle:      #F8FAFC;

  --text-main:      #0F172A;
  --text-muted:     #475569;
  --text-light:     #94A3B8;

  --border-subtle:  rgba(15, 23, 42, 0.05);
  --border-card:    rgba(15, 23, 42, 0.06);

  --font-heading:   'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

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

  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-md:      0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-lg:      0 20px 40px rgba(15, 23, 42, 0.07);

  --navbar-h:       88px;
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Core ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--crimson);
  color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2.0rem, 3.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; }

p {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

/* Maximize Screen Utilization Container */
.container {
  width: 100%;
  max-width: 1440px; /* Full-width generous container */
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 48px);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.section-header .badge-tag {
  margin-bottom: 12px;
}

.section-header h2 span.highlight {
  color: var(--crimson);
}

/* Badges & Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag--crimson {
  background: var(--crimson-subtle);
  color: var(--crimson);
}

.badge-tag--cobalt {
  background: var(--cobalt-subtle);
  color: #1D4ED8;
}

.badge-tag--butter {
  background: #FEF9C3;
  color: #854D0E;
}

.badge-tag--navy {
  background: rgba(15, 23, 42, 0.06);
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--crimson {
  background: var(--crimson);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(108, 8, 32, 0.2);
}

.btn--crimson:hover {
  background: var(--crimson-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 8, 32, 0.3);
}

.btn--cobalt {
  background: var(--cobalt);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(91, 134, 203, 0.2);
}

.btn--cobalt:hover {
  background: #4A75B8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 134, 203, 0.3);
}

.btn--outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn--outline:hover {
  background: var(--bg-page);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Form Controls */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(108, 8, 32, 0.12);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { border-left: 4px solid #10B981; }
.toast--error   { border-left: 4px solid #EF4444; }
