/* ============================================
   DESIGN SYSTEM — Adriana Maior
   Baseado no Remedy Place Design System
   Dark, Flat, Editorial — Wellness de Luxo
   ============================================ */

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

/* ---------- Custom Properties (Tokens) ---------- */
:root {
  /* Cores */
  --bg-onyx: #1a1817;
  --bg-onyx-dark: #141210;
  --bg-earth-light: #4b443c;
  --text-bone: #b9b2aa;
  --border-bone: #cdc9c2;
  --text-air: #edecea;
  --text-earth-dark: #30251c;
  --banner-bg: rgba(253, 250, 241, 0.8);

  /* Tipografia — Aproximação com Google Fonts
     Beausite Slick → Cormorant (display, elegante, serifada)
     Beausite Classic → Montserrat (clean, funcional, boa em uppercase) */
  --font-display: 'Cormorant', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Espaçamento base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-20: 80px;

  /* Page gutter */
  --gutter: 40px;

  /* Transições */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-medium: 500ms;
  --duration-slow: 700ms;
  --duration-hero: 2s;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}
@media (min-width: 1536px) {
  :root {
    --gutter: 4.5vw;
  }
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-bone);
  background-color: var(--bg-onyx);
}

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

a {
  color: var(--text-bone);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}
a:hover {
  color: var(--text-air);
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-air);
  font-weight: 400;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-bone);
}

h3 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bone);
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-bone);
  max-width: 720px;
}

.text-air { color: var(--text-air); }
.text-bone { color: var(--text-bone); }
.text-earth-dark { color: var(--text-earth-dark); }
.uppercase { text-transform: uppercase; }

/* ---------- Layout ---------- */
.page-gutter {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

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

.section {
  padding: var(--space-20) 0;
}

.section--compact {
  padding: var(--space-10) 0;
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Botões ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 20px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--border-bone);
  color: var(--bg-onyx);
  border-color: var(--border-bone);
}
.btn--primary:hover {
  background: var(--text-air);
  color: var(--bg-onyx);
}

.btn--outline {
  background: transparent;
  color: var(--text-bone);
  border-color: var(--bg-earth-light);
}
.btn--outline:hover {
  border-color: var(--text-bone);
  color: var(--text-air);
}

.btn--ghost {
  background: transparent;
  color: var(--text-bone);
  border: none;
  padding: 12px 0;
  letter-spacing: 1.4px;
  position: relative;
}
.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-bone);
  transition: width var(--duration-medium) var(--ease-default);
}
.btn--ghost:hover::after {
  width: 100%;
}

/* ---------- Inputs ---------- */
.input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-bone);
  background: transparent;
  border: 1px solid rgba(93, 92, 92, 0.5);
  border-radius: 0;
  padding: 16px;
  outline: none;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-default);
}
.input::placeholder {
  color: rgba(185, 178, 170, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.input:focus {
  border-color: var(--text-bone);
}

/* ---------- Bordas (padrão tabela/lista) ---------- */
.border-list > * {
  border-top: 1px solid var(--bg-earth-light);
  border-left: 1px solid var(--bg-earth-light);
  border-right: 1px solid var(--bg-earth-light);
}
.border-list > *:last-child {
  border-bottom: 1px solid var(--bg-earth-light);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp var(--duration-hero) var(--ease-default) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-default) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 300ms; }
.delay-2 { animation-delay: 600ms; }
.delay-3 { animation-delay: 900ms; }
.delay-4 { animation-delay: 1200ms; }

/* ---------- Z-Index ---------- */
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }