/* ═══════════════════════════════════════════════════════════
   TripShopper — Common Stylesheet
   Design system tokens, components, and utilities
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --cream: #FAF8F4;
  --paper: #F3EFE7;
  --bone: #EDE8DC;
  --teal: #1A5F7A;
  --teal-mid: #2980A0;
  --teal-lt: #D5EDF5;
  --teal-dk: #0D3D54;
  --coral: #E8714A;
  --coral-lt: #FDEEE8;
  --coral-dk: #C85A32;
  --gold: #C79D5A;
  --gold-lt: #FDF6EA;
  --gold2: #F0C866;
  --sage: #5F8C6E;
  --sage-lt: #EAF3EE;
  --ink: #1C1C1E;
  --ink2: #3A3A3C;
  --ink3: #6B6B70;
  --ink4: #9F9FA6;
  --border: #E2DDD3;
  --border-md: #CEC8BF;
  --white: #FFFFFF;
  --shadow-xs: 0 1px 3px rgba(28,28,30,.05);
  --shadow-sm: 0 2px 8px rgba(28,28,30,.08);
  --shadow-md: 0 6px 24px rgba(28,28,30,.10);
  --shadow-lg: 0 16px 56px rgba(28,28,30,.14);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 4px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; }
.display-1 { font-size: clamp(38px, 5.5vw, 70px); font-weight: 600; letter-spacing: -1.5px; }
.display-2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.5px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral);
}
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -.5px; }
.section-title em { font-style: italic; color: var(--teal); }
.section-sub { font-size: 15px; color: var(--ink3); line-height: 1.75; max-width: 540px; }
.section-header { margin-bottom: 48px; }

/* ─── LAYOUT ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.divider { height: 1px; background: var(--border); }

/* ─── TAGS ─── */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-full); }
.tag-teal { background: var(--teal-lt); color: var(--teal); }
.tag-coral { background: var(--coral-lt); color: var(--coral); }
.tag-gold { background: var(--gold-lt); color: var(--gold); }
.tag-sage { background: var(--sage-lt); color: var(--sage); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--white);
  background: var(--teal); border: none; padding: 11px 22px;
  border-radius: var(--r-full); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,95,122,.28); }

.btn-coral {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--white);
  background: var(--coral); border: none; padding: 11px 22px;
  border-radius: var(--r-full); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-coral:hover { background: var(--coral-dk); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink2);
  background: none; border: 1.5px solid var(--border); padding: 8px 18px;
  border-radius: var(--r-full); cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline-teal {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--teal);
  background: none; border: 1.5px solid var(--teal); padding: 8px 18px;
  border-radius: var(--r-full); cursor: pointer; transition: all .15s;
}
.btn-outline-teal:hover { background: var(--teal); color: white; }

/* ─── CARDS ─── */
.card-base {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.card-base:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ─── STATUS PILLS ─── */
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-active { color: var(--sage); background: var(--sage-lt); }
.status-active::before { background: var(--sage); }
.status-pending { color: var(--gold); background: var(--gold-lt); }
.status-pending::before { background: var(--gold); }
.status-inactive { color: var(--ink3); background: var(--bone); }
.status-inactive::before { background: var(--ink4); }

/* ─── FORMS ─── */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s; outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,95,122,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-help { font-size: 11.5px; color: var(--ink3); }
.form-error { font-size: 11.5px; color: var(--coral); }

/* ─── ALERTS ─── */
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--sage-lt); color: var(--sage); border: 1px solid rgba(95,140,110,.2); }
.alert-error { background: var(--coral-lt); color: var(--coral-dk); border: 1px solid rgba(232,113,74,.2); }
.alert-info { background: var(--teal-lt); color: var(--teal); border: 1px solid rgba(26,95,122,.2); }
.alert-warning { background: var(--gold-lt); color: var(--gold); border: 1px solid rgba(199,157,90,.2); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}
