/* ============================================================
   ACQUA RIACHO VERDE — Foundations: Color & Type
   Condomínio fechado · Barreirinhas, Maranhão
   Source of truth: uploads/Light.tokens.json, Dark.tokens.json,
   Manual_Marca_Acqua_Riacho_Verde.docx
   ============================================================ */

/* ---------- Fonts (variable, self-hosted) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond_wght_.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic_wght_.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat_wght_.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic_wght_.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   LIGHT THEME (default)
   ============================================================ */
:root {
  /* ---- Brand palette ---- */
  --verde-floresta: #1E5631;   /* Cor principal da marca */
  --verde-medio:    #2E7D4F;   /* Destaques e botões */
  --azul-riacho:    #1A6B7C;   /* Água, links e acentos */
  --dourado-sol:    #C9A227;   /* Acentos premium */
  --verde-profundo: #174526;   /* Variação escura do verde */
  --dourado-escuro: #B38F1F;   /* Variação escura do dourado */

  /* ---- Neutrals ---- */
  --areia:          #F5EDD6;   /* Fundos claros e elegantes */
  --branco-natural: #FAFAF8;   /* Fundo base */
  --escuro:         #0F2018;   /* Textos e fundo dark */
  --cinza-texto:    #444444;   /* Corpo de texto */
  --cinza-claro:    #E8E8E8;   /* Bordas e divisores */
  --cinza-medio:    #888888;   /* Textos secundários */

  /* ---- Feedback ---- */
  --feedback-sucesso: #2E7D4F;
  --feedback-erro:    #C0392B;
  --feedback-atencao: #C9A227;
  --feedback-info:    #1A6B7C;

  /* ---- Semantic: background ---- */
  --bg-primary:   #FAFAF8;
  --bg-secondary: #F5EDD6;
  --bg-tertiary:  #E8E8E8;
  --bg-brand:     #1E5631;
  --bg-accent:    #1A6B7C;
  --bg-overlay:   rgba(15, 32, 24, 0.6);

  /* ---- Semantic: text ---- */
  --text-primary:   #0F2018;
  --text-secondary: #444444;
  --text-tertiary:  #888888;
  --text-inverse:   #FAFAF8;
  --text-brand:     #1E5631;
  --text-accent:    #1A6B7C;
  --text-gold:      #C9A227;

  /* ---- Semantic: border ---- */
  --border-default: #E8E8E8;
  --border-strong:  #444444;
  --border-brand:   #1E5631;
  --border-accent:  #C9A227;

  /* ---- Typography families ---- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Montserrat", Helvetica, Arial, sans-serif;

  /* ---- Type scale ---- */
  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 64px;

  /* ---- Weights ---- */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ---- Line height ---- */
  --leading-tight:   1.2;
  --leading-snug:    1.4;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* ---- Letter spacing ---- */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0em;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---- Radius ---- */
  --radius-none: 0px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm:    0 1px 3px rgba(15, 32, 24, 0.08);
  --shadow-md:    0 4px 12px rgba(15, 32, 24, 0.12);
  --shadow-lg:    0 8px 24px rgba(15, 32, 24, 0.16);
  --shadow-xl:    0 16px 48px rgba(15, 32, 24, 0.20);
  --shadow-brand: 0 4px 16px rgba(30, 86, 49, 0.25);
  --shadow-gold:  0 4px 16px rgba(201, 162, 39, 0.30);

  /* ---- Opacity ---- */
  --opacity-disabled: 0.4;
  --opacity-muted:    0.6;
  --opacity-subtle:   0.8;

  /* ---- Transitions ---- */
  --transition-fast:   150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow:   400ms ease-in-out;
}

/* ============================================================
   DARK THEME — apply via  <html data-theme="dark">  or .theme-dark
   ============================================================ */
[data-theme="dark"], .theme-dark {
  --verde-floresta: #2E7D4F;
  --verde-medio:    #3D9E68;
  --azul-riacho:    #2A8FA6;
  --dourado-sol:    #D4AE3A;
  --verde-profundo: #1E5631;
  --dourado-escuro: #C9A227;

  --areia:          #2A2418;
  --branco-natural: #E8E4DC;
  --escuro:         #0A1510;
  --cinza-texto:    #B8B8B8;
  --cinza-claro:    #2E2E2E;
  --cinza-medio:    #666666;

  --feedback-sucesso: #3D9E68;
  --feedback-erro:    #E05A4E;
  --feedback-atencao: #D4AE3A;
  --feedback-info:    #2A8FA6;

  --bg-primary:   #0F2018;
  --bg-secondary: #162D1F;
  --bg-tertiary:  #1E3A28;
  --bg-brand:     #1E3A28;
  --bg-accent:    #0F2A32;
  --bg-overlay:   rgba(0, 0, 0, 0.75);

  --text-primary:   #F0EDE6;
  --text-secondary: #B8B8B8;
  --text-tertiary:  #666666;
  --text-inverse:   #0F2018;
  --text-brand:     #2E7D4F;
  --text-accent:    #2A8FA6;
  --text-gold:      #D4AE3A;

  --border-default: #2E2E2E;
  --border-strong:  #666666;
  --border-brand:   #2E7D4F;
  --border-accent:  #D4AE3A;

  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 4px 16px rgba(46, 125, 79, 0.35);
  --shadow-gold:  0 4px 16px rgba(212, 174, 58, 0.35);
}

/* ============================================================
   SEMANTIC TYPE PRIMITIVES
   Cormorant Garamond for display/headings, Montserrat for everything else.
   ============================================================ */
.arv-h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.arv-h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-style: italic;            /* H2 = Bold Italic per manual */
  font-size: var(--text-4xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.arv-h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}
.arv-subtitle {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}
.arv-body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}
.arv-caption {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
}
/* Eyebrow / category label — uppercase, tracked out */
.arv-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-gold);
}
.arv-button-label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  letter-spacing: var(--tracking-wide);
}
