/* =====================================================
   AMARYLLIS — Design Tokens v1.0
   Single source of truth for all visual decisions.
   Never hardcode values — always use these variables.
   ===================================================== */

:root {
  /* ── COLOR · BRAND ───────────────────────────────── */
  /* Calibrado a partir do logo oficial — violeta vibrante + amarelo da flor */
  --color-brand-primary:       #7B2D8E;
  --color-brand-primary-dark:  #561F66;
  --color-brand-primary-light: #B86BC2;
  --color-brand-accent:        #7CB342; /* verde folha (uso decorativo) */
  --color-brand-accent-dark:   #558B2F;
  --color-brand-gold:          #F2C230; /* amarelo da pétala da amaryllis */

  /* ── COLOR · NEUTRALS ────────────────────────────── */
  /* Paleta calibrada com site original: branco base + verde-menta de apoio */
  --color-bg-page:             #FFFFFF;
  --color-bg-white:            #FFFFFF;
  --color-bg-mint:             #EAF4DC; /* verde-menta claro da sidebar do site */
  --color-bg-mint-soft:        #F4F9EC; /* variação ainda mais clara */
  --color-bg-cream:            #FAF6EC; /* mantido como fallback do DS */
  --color-bg-soft:             #F5EFE6;
  --color-text-primary:        #2D2A2E;
  --color-text-secondary:      #5C5860;
  --color-text-muted:          #8A858C;
  --color-border:              #E5E1DA;

  /* ── COLOR · SEMANTIC ────────────────────────────── */
  --color-whatsapp:            #25D366;
  --color-whatsapp-dark:       #1EBE5D;
  --color-success:             #558B2F;
  --color-error:               #C62828;

  /* ── TYPOGRAPHY · FAMILIES ───────────────────────── */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script:  "Dancing Script", "Allura", cursive;

  /* ── TYPOGRAPHY · SCALE (mobile defaults) ────────── */
  --text-display:  2.25rem;   /* 36px */
  --text-h1:       1.75rem;   /* 28px */
  --text-h2:       1.375rem;  /* 22px */
  --text-h3:       1.125rem;  /* 18px */
  --text-body:     1rem;      /* 16px */
  --text-small:    0.875rem;  /* 14px */
  --text-caption:  0.75rem;   /* 12px */

  --leading-tight: 1.1;
  --leading-snug:  1.25;
  --leading-base:  1.6;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;
  --weight-black:   800;

  /* ── SPACING (4px scale) ─────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ── RADIUS ──────────────────────────────────────── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 9999px;

  /* ── BORDER ──────────────────────────────────────── */
  --border-thin: 1px solid var(--color-border);

  /* ── SHADOWS ─────────────────────────────────────── */
  --shadow-sm:  0 1px 2px rgba(45, 42, 46, 0.06);
  --shadow-md:  0 4px 14px rgba(45, 42, 46, 0.08);
  --shadow-lg:  0 12px 32px rgba(155, 45, 142, 0.18);
  --shadow-cta: 0 8px 24px rgba(37, 211, 102, 0.35);

  /* ── MOTION ──────────────────────────────────────── */
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── LAYOUT ──────────────────────────────────────── */
  --container-sm:  480px;
  --container-md:  720px;
  --container-lg:  960px;
  --container-xl: 1180px;
}

/* ── TYPOGRAPHY SCALE — desktop overrides ─────────── */
@media (min-width: 768px) {
  :root {
    --text-display: 3.5rem;     /* 56px */
    --text-h1:      2.25rem;    /* 36px */
    --text-h2:      1.75rem;    /* 28px */
    --text-h3:      1.25rem;    /* 20px */
    --text-body:    1.0625rem;  /* 17px */
    --text-small:   0.9375rem;  /* 15px */
    --text-caption: 0.8125rem;  /* 13px */
  }
}

/* =====================================================
   BASE RESET — minimal, opinionated
   ===================================================== */

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-base);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; cursor: pointer; border: 0; background: transparent; }

a { color: var(--color-brand-primary); text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
a:hover { color: var(--color-brand-primary-dark); text-decoration: underline; }

/* =====================================================
   FOCUS — accessibility
   ===================================================== */
:focus-visible {
  outline: 3px solid var(--color-brand-primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =====================================================
   COMPONENT · BUTTON
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition:
    background var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
  min-height: 44px; /* tap target */
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Sizes */
.btn--sm { padding: 8px 16px;  font-size: var(--text-small); }
.btn--md { padding: 12px 24px; font-size: var(--text-body); }
.btn--lg { padding: 18px 36px; font-size: 1.125rem; }

/* Variants */
.btn--primary {
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--color-brand-primary-dark); color: #fff; box-shadow: var(--shadow-lg); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); color: #fff; }

.btn--secondary {
  background: transparent;
  color: var(--color-brand-primary);
  border: 2px solid var(--color-brand-primary);
}
.btn--secondary:hover { background: var(--color-brand-primary); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--color-brand-primary);
}
.btn--ghost:hover { background: var(--color-bg-soft); color: var(--color-brand-primary-dark); }

/* =====================================================
   COMPONENT · CARD
   ===================================================== */

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .card { padding: var(--space-6); }
}

.card--feature {
  text-align: center;
}

.card--feature .card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  font-size: 2.25rem;
  margin: 0 auto var(--space-4);
}

.card--feature .card__title {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: var(--weight-semi);
  color: var(--color-brand-primary-dark);
  line-height: var(--leading-snug);
}

/* =====================================================
   COMPONENT · BULLET LIST (differentiators)
   ===================================================== */

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bullets > li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.bullets > li::before {
  content: '';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background-color: var(--color-brand-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E");
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* =====================================================
   LAYOUT · SECTION + CONTAINER
   ===================================================== */

.section { padding: var(--space-7) var(--space-5); }

@media (min-width: 768px) {
  .section { padding: var(--space-8) var(--space-5); }
}

.section--cream { background: var(--color-bg-cream); }
.section--soft  { background: var(--color-bg-soft); }
.section--brand {
  background: linear-gradient(135deg, var(--color-brand-primary-dark) 0%, var(--color-brand-primary) 100%);
  color: #fff;
}

.container {
  max-width: var(--container-md);
  margin: 0 auto;
}

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

/* =====================================================
   TYPOGRAPHY HELPERS
   ===================================================== */

.h-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.h-1 { font-family: var(--font-display); font-size: var(--text-h1); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.h-2 { font-family: var(--font-display); font-size: var(--text-h2); font-weight: var(--weight-bold); line-height: var(--leading-snug); color: var(--color-brand-primary-dark); }
.h-3 { font-size: var(--text-h3); font-weight: var(--weight-semi); }

.text-muted   { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-center  { text-align: center; }

/* =====================================================
   GRID HELPERS
   ===================================================== */

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

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