/* ============================================
   BASE.CSS - Core Variables & Global Styles
   Color Palette: FAFAFA, F0D679, 29140F, C6976B, D0CECE, 623D27
   Font: Quicksand / Cormorant Garamond
   Theme: Elegant/Classy with African touch
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
:root {
  /* ── Fonts ── */
  --font-primary:    'Quicksand', sans-serif;
  --font-display:    'Quicksand', sans-serif;

  /* ── Gold palette ── */
  --gold:            #c9973a;
  --gold-mid:        #e8c56a;
  --gold-dark:       #b8860b;
  --gold-pale:       #fdf8f2;
  --gold-pale-alt:   #fdf0dc;

  /* ── Brown palette ── */
  --brown-deepest:   #1e0f05;
  --brown-deep:      #3d1f08;
  --brown-mid:       #5c3418;
  --brown-light:     #8b5c2a;
  --brown-muted:     #6b3d1a;
  --brown-soft:      #a07050;
  --brown-hint:      #7a4a22;

  /* ── Neutrals ── */
  --cream:           #f7f0e8;
  --cream-light:     #fdf8f2;
  --cream-white:     #fffdf9;
  --white:           #ffffff;

  /* ── Borders ── */
  --border-gold:          rgba(196,143,80,0.25);
  --border-gold-mid:      rgba(196,143,80,0.4);
  --border-gold-strong:   rgba(196,143,80,0.5);

  /* ── Shadows ── */
  --shadow-card:     0 1px 4px rgba(92,45,14,0.06);
  --shadow-hover:    0 12px 32px rgba(92,45,14,0.12), 0 2px 8px rgba(184,134,11,0.08);
  --shadow-gold:     0 2px 8px rgba(184,134,11,0.35), 0 1px 0 rgba(255,240,180,0.5) inset;
  --shadow-gold-lg:  0 4px 16px rgba(184,134,11,0.45);
  --shadow-header:   0 2px 20px rgba(92,45,14,0.06), 0 1px 0 rgba(255,220,150,0.4) inset;

  /* ── Radii ── */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       20px;
  --radius-pill:     50px;

  /* ── Spacing ── */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;

  /* ── Typography scale ── */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* ── Font weights ── */
  --font-weight-light:    300;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* ── Layout ── */
  --container-max-width: 1280px;

  /* ── Semantic colour aliases ── */
  --text-primary:        var(--brown-deep);
  --text-secondary:      var(--brown-soft);
  --text-accent:         var(--gold-dark);
  --text-light:          var(--brown-muted);

  --bg-primary:          var(--cream-white);
  --bg-secondary:        var(--cream);
  --bg-accent:           var(--gold-pale);

  --border-color:        var(--border-gold);
  --border-accent:       var(--border-gold-mid);
  --border-dark:         var(--border-gold-strong);

  --shadow-sm:           var(--shadow-card);
  --shadow-md:           var(--shadow-hover);
  --shadow-lg:           var(--shadow-gold-lg);
  --shadow-inner:        inset 0 1px 4px rgba(92,45,14,0.08);

  --border-radius:       var(--radius-md);
  --border-radius-sm:    var(--radius-sm);
  --border-radius-lg:    var(--radius-lg);
  --border-radius-xl:    var(--radius-xl);
  --border-radius-full:  var(--radius-pill);

  --transition-fast:     0.15s ease;
  --transition-normal:   0.25s ease;
}

/* ===== CSS RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background:  var(--cream);
  color:       var(--brown-deep);
  margin: 0;
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--brown-deep);
  letter-spacing: -0.25px;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

em, i {
  font-style: italic;
}

/* ===== LINKS ===== */
a {
  color: var(--brown-deep);
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ===== LISTS ===== */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.img-fluid {
  width: 100%;
  height: auto;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== UTILITY — TEXT ===== */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-justify { text-align: justify; }

.font-light    { font-weight: var(--font-weight-light); }
.font-normal   { font-weight: var(--font-weight-normal); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent    { color: var(--text-accent); }
.text-light     { color: var(--text-light); }

/* ===== UTILITY — BACKGROUNDS ===== */
.bg-primary    { background-color: var(--bg-primary); }
.bg-secondary  { background-color: var(--bg-secondary); }
.bg-accent     { background-color: var(--bg-accent); }
.bg-gold       { background-color: var(--gold); }
.bg-brown      { background-color: var(--brown-deep); }

/* ===== UTILITY — BORDERS & RADIUS ===== */
.rounded      { border-radius: var(--border-radius); }
.rounded-sm   { border-radius: var(--border-radius-sm); }
.rounded-lg   { border-radius: var(--border-radius-lg); }
.rounded-xl   { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: var(--border-radius-full); }

.border   { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.border-accent { border-color: var(--border-accent); }
.border-dark   { border-color: var(--border-dark); }

/* ===== UTILITY — SHADOWS ===== */
.shadow-sm    { box-shadow: var(--shadow-sm); }
.shadow-md    { box-shadow: var(--shadow-md); }
.shadow-lg    { box-shadow: var(--shadow-lg); }
.shadow-inner { box-shadow: var(--shadow-inner); }

/* ===== UTILITY — OPACITY ===== */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* ===== UTILITY — DISPLAY & VISIBILITY ===== */
.hidden        { display: none; }
.block         { display: block; }
.inline-block  { display: inline-block; }
.inline        { display: inline; }
.visible       { visibility: visible; }
.invisible     { visibility: hidden; }

/* ===== UTILITY — SPACING ===== */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: var(--space-md); }
.m-4 { margin: var(--space-lg); }
.m-5 { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-xs); }
.ml-2 { margin-left: var(--space-sm); }
.ml-3 { margin-left: var(--space-md); }
.ml-4 { margin-left: var(--space-lg); }
.ml-5 { margin-left: var(--space-xl); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-xs); }
.mr-2 { margin-right: var(--space-sm); }
.mr-3 { margin-right: var(--space-md); }
.mr-4 { margin-right: var(--space-lg); }
.mr-5 { margin-right: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-xs); }
.pt-2 { padding-top: var(--space-sm); }
.pt-3 { padding-top: var(--space-md); }
.pt-4 { padding-top: var(--space-lg); }
.pt-5 { padding-top: var(--space-xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-xs); }
.pb-2 { padding-bottom: var(--space-sm); }
.pb-3 { padding-bottom: var(--space-md); }
.pb-4 { padding-bottom: var(--space-lg); }
.pb-5 { padding-bottom: var(--space-xl); }

/* ===== UTILITY — FLEX ===== */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col    { flex-direction: column; }
.flex-row    { flex-direction: row; }
.flex-wrap   { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

.flex-1       { flex: 1 1 0%; }
.flex-auto    { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none    { flex: none; }

/* ===== UTILITY — GRID ===== */
.grid         { display: grid; }
.grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fade-in  { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-pulse    { animation: pulse 2s infinite; }
.animate-spin     { animation: spin 1s linear infinite; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar         { width: 10px; height: 10px; }
::-webkit-scrollbar-track   { background: var(--cream); border-radius: var(--border-radius-sm); }
::-webkit-scrollbar-thumb   { background: var(--gold); border-radius: var(--border-radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== SELECTION ===== */
::selection {
  background-color: var(--gold-pale-alt);
  color: var(--brown-deep);
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ===== PRINT ===== */
@media print {
  body { background: white; color: black; }
  .no-print { display: none !important; }
}

