/* ── VMV — Global CSS ── */

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--darker);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; font-family: var(--font-sans); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-3); }

em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; }

img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--space-20) 0; }
.section--sm { padding: var(--space-12) 0; }
.section--lg { padding: var(--space-24) 0; }

/* Section backgrounds */
.bg-dark    { background: var(--dark); }
.bg-darker  { background: var(--darker); }
.bg-gold    { background: var(--gold); color: var(--dark); }
.bg-light   { background: #FDF9F3; color: var(--dark); }
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4 { color: var(--dark); }
.bg-light p, .bg-light li { color: #4A3F30; }
.bg-gold h1, .bg-gold h2, .bg-gold h3 { color: var(--dark); }
.bg-gold p { color: rgba(26,18,9,0.75); }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--border);
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: var(--space-4);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Gold line */
.gold-line {
  display: block; width: 40px; height: 2px;
  background: var(--gold-2); border-radius: 2px; margin-bottom: var(--space-4);
}

/* ── GRID ── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── FLEX UTILITIES ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ── TEXT UTILITIES ── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold-2) !important; }
.text-muted  { color: var(--muted) !important; }
.text-white  { color: var(--white) !important; }
.text-dark   { color: var(--dark)  !important; }
.text-sm     { font-size: var(--text-sm); }
.text-xs     { font-size: var(--text-xs); }
.font-serif  { font-family: var(--font-serif); }
.italic      { font-style: italic; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.mb-0        { margin-bottom: 0 !important; }

/* ── FLASH MESSAGES ── */
.flash {
  position: sticky; top: 0; z-index: 1000;
  padding: var(--space-3) 0;
}
.flash--success { background: rgba(76,175,125,0.15); border-bottom: 1px solid rgba(76,175,125,0.3); }
.flash--error   { background: rgba(224,92,92,0.15);  border-bottom: 1px solid rgba(224,92,92,0.3); }
.flash--info    { background: rgba(91,141,239,0.15); border-bottom: 1px solid rgba(91,141,239,0.3); }
.flash .container { display: flex; align-items: center; justify-content: space-between; }
.flash--success .container { color: #4CAF7D; }
.flash--error   .container { color: #E05C5C; }
.flash__close {
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  color: inherit; opacity: 0.7; transition: opacity var(--transition);
}
.flash__close:hover { opacity: 1; }

/* ── MINIMAL LAYOUT ── */
.layout-minimal { display: flex; flex-direction: column; min-height: 100vh; }
.layout-minimal main { flex: 1; }

.header-minimal {
  padding: var(--space-4) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--darker);
}
.header-minimal__brand {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--gold) !important;
}

.footer-minimal {
  text-align: center;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
}
