/* Global Styles — Aquele Xêro Ateliê */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Dancing+Script:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* Tipografia */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--color-olive);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

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

.affective {
  font-family: var(--font-affective);
  color: var(--color-rose);
  font-size: 1.4em;
}

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

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

/* Seções */
.section {
  padding: var(--space-xl) 0;
}

.section--lg {
  padding: var(--space-2xl) 0;
}

.section-label {
  font-family: var(--font-affective);
  color: var(--color-rose);
  font-size: 1.7rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-title);
  color: var(--color-olive);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* Utilitários */
.text-center { text-align: center; }
.text-olive { color: var(--color-olive); }
.text-terracota { color: var(--color-terracota); }
.text-rose { color: var(--color-rose); }
.text-muted { color: var(--color-text-muted); }

.bg-olive { background-color: var(--color-olive); color: #fff; }
.bg-terracota { background-color: var(--color-terracota); color: #fff; }
.bg-cream { background-color: #f0ede6; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Grid genérico */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-terracota);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  pointer-events: none;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-terracota);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--color-text-muted);
}

.empty-state h3 {
  font-family: var(--font-title);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* Placeholder SVG image */
.img-placeholder {
  background: #ede9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-olive-light);
  font-size: 3rem;
}
