/* ============================================================
   NATURA DRENA — Design System
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* --- Design Tokens --- */
:root {
  /* Color */
  --color-primary: #A05222;
  --color-primary-hover: #884820;
  --color-primary-light: #CABFB6;

  --color-text: #411E06;
  --color-body: #411E06;
  --color-muted: #6F5441;
  --color-light: #9D897C;

  --bg-white: #F8F4F1;
  --bg-cream: #F8F4F1;
  --bg-accent: #F8F4F1;
  --bg-warm: #F8F4F1;
  --bg-footer: #CABFB6;

  --color-white: #F8F4F1;
  --color-border: rgba(65, 30, 6, 0.15);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.625rem, 3vw, 2.25rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;

  --leading-tight: 1.2;
  --leading-normal: 1.7;
  --leading-relaxed: 1.8;

  --tracking-wide: 0.08em;
  --tracking-wider: 0.15em;

  /* Spacing (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Section spacing */
  --section-gap: clamp(5rem, 8vw, 7.5rem);
  --section-padding-x: clamp(1.25rem, 5vw, 5rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-text: 680px;
  --max-width-narrow: 540px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(65, 30, 6, 0.06);
  --shadow-md: 0 4px 16px rgba(65, 30, 6, 0.08);
  --shadow-lg: 0 8px 32px rgba(65, 30, 6, 0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-Index */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* --- Base Styles --- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-body);
  background-color: var(--bg-white);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text);
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  text-align: left;
  max-width: var(--max-width-text);
}

p + p { margin-top: var(--space-6); }

.text-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: var(--leading-relaxed);
  color: var(--color-body);
}

.text-muted {
  color: var(--color-muted);
  font-size: var(--text-small);
}

.text-label {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted);
}

strong { font-weight: 600; color: var(--color-text); }

/* --- Links --- */
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.container--narrow {
  max-width: var(--max-width-text);
}

/* --- Section --- */
.section {
  padding-block: var(--section-gap);
}

.section--cream { background-color: var(--bg-cream); }
.section--accent { background-color: var(--bg-accent); }

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header__label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text);
  background-color: #EDE7E2;
  border: 1px solid rgba(65, 30, 6, 0.1);
  border-radius: var(--radius-full);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__subtitle {
  max-width: var(--max-width-text);
  color: var(--color-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

.text-center { text-align: center; }
.text-center .section-header__subtitle { margin-inline: auto; }

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

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

/* --- Utility --- */
.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;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
