/* ==========================================================================
   Pamêlla & Jakson — design tokens, reset e primitivos compartilhados
   Arquivo base usado pela landing page e pelo painel administrativo.
   ========================================================================== */

:root {
  /* --- Verde sálvia (cor de destaque) ------------------------------------ */
  --sage-50: #f5f8f3;
  --sage-100: #eaf0e6;
  --sage-200: #dce7d7;
  --sage-300: #c8d9c2;
  --sage-400: #abc4ab;
  --sage-500: #94b194;
  --sage-600: #7c9c7e;
  --sage-700: #647f66;
  --sage-800: #4e6652;
  --sage-900: #38493b;

  /* --- Neutros quentes --------------------------------------------------- */
  --cream: #fbf9f4;
  --cream-2: #f6f2e9;
  --cream-3: #efeade;
  --paper: #ffffff;
  --ink: #2c322c;
  --ink-2: #4a524a;
  --ink-3: #6d756d;
  --muted: #8b928b;
  --line: #e5e0d4;
  --line-soft: #efeade;

  /* --- Semânticas -------------------------------------------------------- */
  --bg: var(--cream);
  --bg-alt: var(--sage-50);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-3);
  --brand: var(--sage-400);
  --brand-ink: var(--sage-800);
  --focus: #6f8f72;
  --danger: #a4554d;
  --success: #4f7255;

  /* --- Tipografia -------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
    Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system,
    sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-4xl: clamp(2.75rem, 1.4rem + 6vw, 6rem);

  /* --- Espaçamento ------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);

  /* --- Layout ------------------------------------------------------------ */
  --container: 1160px;
  --container-narrow: 760px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 0.7rem + 2.4vw, 2.5rem);
  --nav-h: 76px;

  /* --- Formas ------------------------------------------------------------ */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px 24px 24px;

  /* --- Sombras (muito sutis) -------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(44, 50, 44, 0.04);
  --shadow-sm: 0 2px 10px -2px rgba(44, 50, 44, 0.06);
  --shadow-md: 0 16px 40px -24px rgba(44, 50, 44, 0.22);
  --shadow-lg: 0 40px 80px -48px rgba(44, 50, 44, 0.3);
  --shadow-ring: 0 0 0 1px rgba(44, 50, 44, 0.05);

  /* --- Movimento --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --z-nav: 100;
  --z-modal: 1000;
  --z-toast: 1200;
}

/* ==========================================================================
   Reset enxuto
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--sage-300);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Utilitários compartilhados
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: var(--z-toast);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-sm);
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* Rótulo de seção — pequeno, discreto, sempre em caixa alta */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--sage-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--center::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 640px;
}

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

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--sage-700);
}

.section-copy {
  color: var(--text-soft);
  font-size: var(--fs-md);
  font-weight: 300;
}

/* Botões */
.btn {
  --btn-bg: var(--sage-400);
  --btn-fg: var(--sage-900);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.btn:hover {
  background: var(--sage-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-border: var(--line);
}

.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--sage-300);
  color: var(--ink);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
}

.btn--dark:hover {
  background: #3b433b;
}

.btn--sm {
  min-height: 40px;
  padding: 0.6rem 1.15rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Campos */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field > label,
.label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 300;
  transition: border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), background var(--dur);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--sage-400);
  box-shadow: 0 0 0 4px rgba(171, 196, 171, 0.22);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.hint {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* Ornamento floral compartilhado */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--sage-600);
}

.floral-divider::before,
.floral-divider::after {
  content: "";
  width: min(90px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage-300));
}

.floral-divider::after {
  background: linear-gradient(90deg, var(--sage-300), transparent);
}

.floral-divider img,
.floral-divider svg {
  width: 26px;
  height: 26px;
  opacity: 0.85;
}

/* Animações de entrada */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
