/* ==========================================================================
   BASE & RESET STYLES — NINA BRAGA FOTOGRAFIA
   ========================================================================== */

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

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

body {
  background-color: var(--color-ivory);
  color: var(--color-espresso);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-espresso);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 400;
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: 400;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 500;
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: 500;
}

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--font-size-lg);
  color: var(--color-espresso);
  line-height: 1.5;
}

/* Contêineres de Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Seções e Espaçamentos Verticais */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.section-hero {
  padding-top: 0;
  padding-bottom: var(--space-3xl);
}

.section-warm {
  background-color: var(--color-sand);
}

.section-ivory {
  background-color: var(--color-ivory);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-taupe);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  position: relative;
}

.section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-sun-gold);
  margin: var(--space-2xs) auto 0;
}

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

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  font-weight: 300;
}

/* Divisores Sutis */
.divider-subtle {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-taupe-light), transparent);
  border: none;
  margin: var(--space-2xl) 0;
}

/* Acessibilidade & Acessos de Teclado */
:focus-visible {
  outline: 2px solid var(--color-sun-gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respeito à Preferência do Visitante por Menos Movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
