/* ==========================================================================
   BEATRIZ ANNELISE BEAUTY STUDIO — DESIGN SYSTEM
   Versão: 1.0.0
   Autoria: Esquadrão de Elite Multidisciplinar (Antigravity)
   Descrição: Arquivo central de variáveis CSS, tokens de design, tipografia,
              espaçamentos e utilitários de base. Todos os outros arquivos CSS
              do projeto DEVEM importar este arquivo ou ter acesso às suas
              variáveis via cascade. Nenhuma cor, fonte ou espaçamento deve
              ser codificado "hardcoded" fora deste arquivo.
   ========================================================================== */


/* ==========================================================================
   1. PALETA DE CORES — TOKENS PRIMÁRIOS
   ========================================================================== */

:root {

  /* --- Cores Neutras de Fundo --- */
  --color-bg-primary:       #FAF8F5;   /* Off-White Quente — fundo principal de todas as páginas */
  --color-bg-secondary:     #F5F0E8;   /* Linho Suave — fundo de seções alternadas */
  --color-bg-card:          #FFFFFF;   /* Branco Puro — cards flutuantes e overlays */

  /* --- Família Nude Champagne --- */
  --color-nude-100:         #FAF4EC;   /* Champagne muito claro */
  --color-nude-200:         #F4EAD8;   /* Champagne claro */
  --color-nude-300:         #EEDCC9;   /* Nude Champagne — cor de destaque leve */
  --color-nude-400:         #E3CBB0;   /* Nude médio */
  --color-nude-500:         #D4B494;   /* Nude escuro */

  /* --- Família Dourado Acobreado --- */
  --color-gold-300:         #D9BC82;   /* Dourado claro */
  --color-gold-400:         #C5A059;   /* Dourado Acobreado Suave — cor de acento PRINCIPAL */
  --color-gold-500:         #A8843C;   /* Dourado escuro — hover de botões */
  --color-gold-600:         #8C6D2E;   /* Dourado muito escuro — estados active */

  /* --- Família de Texto --- */
  --color-text-primary:     #2B2825;   /* Cinza Grafite Profundo — corpo de texto principal */
  --color-text-secondary:   #5A5450;   /* Grafite médio — subheadings, labels */
  --color-text-muted:       #9A918A;   /* Grafite suave — captions, metadados */
  --color-text-on-gold:     #FFFFFF;   /* Branco — texto sobre fundos dourados */
  --color-text-on-dark:     #FAF8F5;   /* Off-white — texto sobre fundos escuros */

  /* --- Cores Funcionais --- */
  --color-success:          #4A7C59;   /* Verde sálvia — feedbacks positivos */
  --color-error:            #8B3A3A;   /* Terracota escuro — feedbacks de erro */
  --color-warning:          #B8860B;   /* Âmbar — alertas */
  --color-whatsapp:         #25D366;   /* Verde WhatsApp oficial */
  --color-whatsapp-dark:    #1DA851;   /* Verde WhatsApp hover */

  /* --- Bordas e Divisores --- */
  --color-border-light:     rgba(197, 160, 89, 0.20);   /* Dourado translúcido — bordas delicadas */
  --color-border-medium:    rgba(197, 160, 89, 0.40);   /* Dourado médio — bordas de cards */
  --color-border-strong:    rgba(43, 40, 37, 0.15);     /* Grafite translúcido — divisores */

  /* --- Sombras --- */
  --shadow-xs:   0 1px 3px rgba(43, 40, 37, 0.06);
  --shadow-sm:   0 2px 8px rgba(43, 40, 37, 0.08);
  --shadow-md:   0 4px 20px rgba(43, 40, 37, 0.10);
  --shadow-lg:   0 8px 40px rgba(43, 40, 37, 0.12);
  --shadow-xl:   0 16px 60px rgba(43, 40, 37, 0.14);
  --shadow-gold: 0 4px 24px rgba(197, 160, 89, 0.30);  /* Sombra dourada — botões CTA */


  /* ==========================================================================
     2. TIPOGRAFIA — SISTEMA DE FONTES
     ========================================================================== */

  /* --- Famílias Tipográficas --- */
  --font-serif:  'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:   'Plus Jakarta Sans', 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono:   'Courier New', Courier, monospace;   /* Reservado para dados técnicos */

  /* --- Escala de Tamanhos (Fluid Typography - clamp) --- */
  /* Segue a escala tipográfica Major Third (1.250) com fluid sizing */

  --text-xs:    clamp(0.625rem,  0.58rem + 0.22vw, 0.75rem);    /*  10 → 12px */
  --text-sm:    clamp(0.75rem,   0.70rem + 0.25vw, 0.875rem);   /*  12 → 14px */
  --text-base:  clamp(0.9375rem, 0.88rem + 0.29vw, 1rem);       /*  15 → 16px */
  --text-md:    clamp(1rem,      0.94rem + 0.31vw, 1.125rem);   /*  16 → 18px */
  --text-lg:    clamp(1.125rem,  1.05rem + 0.38vw, 1.25rem);    /*  18 → 20px */
  --text-xl:    clamp(1.25rem,   1.15rem + 0.50vw, 1.5rem);     /*  20 → 24px */
  --text-2xl:   clamp(1.5rem,    1.35rem + 0.75vw, 2rem);       /*  24 → 32px */
  --text-3xl:   clamp(1.875rem,  1.65rem + 1.13vw, 2.5rem);     /*  30 → 40px */
  --text-4xl:   clamp(2.25rem,   1.95rem + 1.50vw, 3.25rem);    /*  36 → 52px */
  --text-5xl:   clamp(2.75rem,   2.35rem + 2.00vw, 4.25rem);    /*  44 → 68px */
  --text-6xl:   clamp(3.25rem,   2.70rem + 2.75vw, 5.5rem);     /*  52 → 88px */
  --text-hero:  clamp(3.75rem,   3.00rem + 3.75vw, 7rem);       /*  60 → 112px */

  /* --- Pesos Tipográficos --- */
  --weight-light:      300;
  --weight-regular:    400;
  --weight-medium:     500;
  --weight-semibold:   600;
  --weight-bold:       700;
  --weight-extrabold:  800;

  /* --- Alturas de Linha --- */
  --leading-tight:    1.1;
  --leading-snug:     1.25;
  --leading-normal:   1.5;
  --leading-relaxed:  1.65;
  --leading-loose:    1.8;

  /* --- Espaçamentos entre Letras --- */
  --tracking-tightest: -0.04em;
  --tracking-tight:    -0.02em;
  --tracking-normal:    0em;
  --tracking-wide:      0.06em;
  --tracking-wider:     0.10em;
  --tracking-widest:    0.18em;
  --tracking-caps:      0.24em;   /* Para texto em maiúsculas — UPPERCASE labels */


  /* ==========================================================================
     3. ESPAÇAMENTOS — SISTEMA DE LAYOUT
     ========================================================================== */

  /* --- Escala de Espaçamentos (Base 4px — Múltiplos de 4) --- */
  --space-1:    0.25rem;    /*  4px */
  --space-2:    0.5rem;     /*  8px */
  --space-3:    0.75rem;    /* 12px */
  --space-4:    1rem;       /* 16px */
  --space-5:    1.25rem;    /* 20px */
  --space-6:    1.5rem;     /* 24px */
  --space-8:    2rem;       /* 32px */
  --space-10:   2.5rem;     /* 40px */
  --space-12:   3rem;       /* 48px */
  --space-14:   3.5rem;     /* 56px */
  --space-16:   4rem;       /* 64px */
  --space-20:   5rem;       /* 80px */
  --space-24:   6rem;       /* 96px */
  --space-28:   7rem;       /* 112px */
  --space-32:   8rem;       /* 128px */
  --space-40:   10rem;      /* 160px */
  --space-48:   12rem;      /* 192px */

  /* --- Espaçamentos de Seção (Fluid — Sprint: min 120px desktop / 80px mobile) --- */
  --section-padding-y:  clamp(5rem, 2rem + 8vw, 7.5rem);   /* 80px → 120px  */
  --section-padding-x:  clamp(1.25rem, 1rem + 2.5vw, 5rem); /* 20px →  80px */

  /* --- Larguras de Container --- */
  --container-xs:   480px;
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;
  --container-max:  1560px;

  /* --- Grid --- */
  --grid-cols-12:   repeat(12, 1fr);
  --grid-gap:       clamp(1rem, 0.75rem + 1.25vw, 2rem);   /* 16px → 32px */


  /* ==========================================================================
     4. BORDAS E RAIOS
     ========================================================================== */

  --radius-none:   0px;
  --radius-xs:     2px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-2xl:    24px;
  --radius-3xl:    32px;
  --radius-pill:   9999px;
  --radius-circle: 50%;


  /* ==========================================================================
     5. TRANSIÇÕES E ANIMAÇÕES
     ========================================================================== */

  /* --- Durações --- */
  --duration-instant:  80ms;
  --duration-fast:     150ms;
  --duration-normal:   300ms;
  --duration-slow:     500ms;
  --duration-slower:   700ms;
  --duration-slowest:  1000ms;

  /* --- Easing Functions --- */
  --ease-linear:      linear;
  --ease-in:          cubic-bezier(0.4, 0, 1, 1);
  --ease-out:         cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out:      cubic-bezier(0.25, 1, 0.5, 1);     /* ← Cinemático (era Material Design) */
  --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1); /* Bounce suave */
  --ease-luxury:      cubic-bezier(0.25, 1, 0.5, 1);     /* ← ATUALIZADO: rápido → desacelera */
  --ease-sharp:       cubic-bezier(0.4, 0, 0.6, 1);
  --ease-cinema:      cubic-bezier(0.25, 1, 0.5, 1);     /* Alias explícito — Sprint de Refinamento */

  /* --- Transições Compostas --- */
  --transition-fast:    all var(--duration-fast)   var(--ease-cinema);
  --transition-normal:  all var(--duration-normal) var(--ease-cinema);
  --transition-slow:    all var(--duration-slow)   var(--ease-cinema);


  /* ==========================================================================
     6. Z-INDEX — CAMADAS DE SOBREPOSIÇÃO
     ========================================================================== */

  --z-below:       -1;
  --z-base:         0;
  --z-raised:       10;
  --z-dropdown:     100;
  --z-sticky:       200;
  --z-overlay:      300;
  --z-modal:        400;
  --z-tooltip:      500;
  --z-toast:        600;
  --z-whatsapp:     700;   /* Botão WhatsApp flutuante — sempre no topo */


  /* ==========================================================================
     7. BREAKPOINTS — REFERÊNCIA (uso em @media queries no código)
     ========================================================================== */

  /*
    --bp-xs:   480px   → Smartphones pequenos
    --bp-sm:   640px   → Smartphones landscape / tablets pequenos
    --bp-md:   768px   → Tablets portrait
    --bp-lg:  1024px   → Tablets landscape / laptops pequenos
    --bp-xl:  1280px   → Desktops
    --bp-2xl: 1440px   → Desktops wide
    --bp-3xl: 1920px   → Ultra-wide

    NOTA: CSS Custom Properties não funcionam em @media queries diretamente.
    Use os valores numéricos nas media queries e mantenha esta seção como
    referência de documentação para toda a equipe.
  */

}


/* ==========================================================================
   8. RESET & BASE — ESTILOS NORMALIZADOS
   ========================================================================== */

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

html {
  font-size: 100%;                      /* 16px base — respeita preferências do usuário */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;       /* Previne zoom automático em iOS */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:      var(--font-sans);
  font-size:        var(--text-base);
  font-weight:      var(--weight-regular);
  line-height:      var(--leading-relaxed);
  color:            var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x:       hidden;
  min-height:       100vh;
}

/* Foco acessível — WCAG AA */
:focus-visible {
  outline:        2px solid var(--color-gold-400);
  outline-offset: 3px;
  border-radius:  var(--radius-xs);
}

/* Remove outline padrão quando não é foco por teclado */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Tipografia Base --- */
h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-serif);
  font-weight:  var(--weight-semibold);
  line-height:  var(--leading-tight);
  color:        var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-5xl); font-weight: var(--weight-light); }
h2 { font-size: var(--text-4xl); font-weight: var(--weight-regular); }
h3 { font-size: var(--text-3xl); font-weight: var(--weight-regular); }
h4 { font-size: var(--text-2xl); font-weight: var(--weight-medium); }
h5 { font-size: var(--text-xl);  font-weight: var(--weight-medium); }
h6 { font-size: var(--text-lg);  font-weight: var(--weight-semibold); }

p {
  font-family: var(--font-sans);
  font-size:   var(--text-base);
  line-height: var(--leading-relaxed);
  color:       var(--color-text-secondary);
}

a {
  color:           var(--color-gold-400);
  text-decoration: none;
  transition:      var(--transition-fast);
}

a:hover {
  color: var(--color-gold-500);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size:   inherit;
}

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

ul, ol {
  list-style: none;
}

/* Scrollbar personalizada — Chrome/Edge/Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background:    var(--color-gold-400);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-500);
}

/* Seleção de texto */
::selection {
  background-color: var(--color-nude-300);
  color:            var(--color-text-primary);
}


/* ==========================================================================
   9. UTILITÁRIOS DE LAYOUT
   ========================================================================== */

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

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

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

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

/* Grid de 12 colunas */
.grid-12 {
  display: grid;
  grid-template-columns: var(--grid-cols-12);
  gap: var(--grid-gap);
}

/* Seção Padrão */
.section {
  padding-block: var(--section-padding-y);
}

/* Divisor decorativo dourado */
.divider-gold {
  display:          block;
  width:            clamp(2.5rem, 5vw, 4rem);
  height:           1px;
  background-color: var(--color-gold-400);
  margin-block:     var(--space-6);
}

/* Label de seção estilizado */
.section-label {
  font-family:    var(--font-sans);
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color:          var(--color-gold-400);
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-3);
}

.section-label::before {
  content:          '';
  display:          inline-block;
  width:            1.5rem;
  height:           1px;
  background-color: var(--color-gold-400);
  flex-shrink:      0;
}

/* Título de seção — padrão editorial */
.section-title {
  font-family:    var(--font-serif);
  font-size:      var(--text-4xl);
  font-weight:    var(--weight-light);
  line-height:    var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color:          var(--color-text-primary);
  margin-top:     var(--space-4);
}

.section-title strong,
.section-title em {
  font-weight:  var(--weight-semibold);
  font-style:   italic;
  color:        var(--color-gold-400);
}

/* Subtítulo de seção */
.section-subtitle {
  font-family:  var(--font-sans);
  font-size:    var(--text-lg);
  font-weight:  var(--weight-regular);
  line-height:  var(--leading-relaxed);
  color:        var(--color-text-secondary);
  margin-top:   var(--space-6);
  max-width:    60ch;
}

/* Alinhamentos utilitários */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-label::before {
  display: none;
}

.section-header--center .section-label::after {
  content:          '';
  display:          inline-block;
  width:            1.5rem;
  height:           1px;
  background-color: var(--color-gold-400);
  flex-shrink:      0;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}


/* ==========================================================================
   10. BOTÕES — SISTEMA CTA
   ========================================================================== */

/* Botão Primário — Dourado (Principal CTA) */
.btn {
  display:          inline-flex;
  align-items:      center;
  justify-content:  center;
  gap:              var(--space-3);
  padding:          var(--space-4) var(--space-8);
  font-family:      var(--font-sans);
  font-size:        var(--text-sm);
  font-weight:      var(--weight-semibold);
  letter-spacing:   var(--tracking-wider);
  text-transform:   uppercase;
  border-radius:    var(--radius-pill);
  transition:       var(--transition-normal);
  position:         relative;
  overflow:         hidden;
  white-space:      nowrap;
  cursor:           pointer;
  border:           2px solid transparent;
  text-decoration:  none;
  line-height:      1;
}

/* Ripple effect base */
.btn::before {
  content:          '';
  position:         absolute;
  inset:            0;
  background:       rgba(255, 255, 255, 0.12);
  transform:        scaleX(0);
  transform-origin: left center;
  transition:       transform var(--duration-normal) var(--ease-out);
}

.btn:hover::before {
  transform: scaleX(1);
}

/* Botão Primário — Fundo dourado */
.btn--primary {
  background-color: var(--color-gold-400);
  color:            var(--color-text-on-gold);
  border-color:     var(--color-gold-400);
  box-shadow:       var(--shadow-gold);
}

.btn--primary:hover {
  background-color: var(--color-gold-500);
  border-color:     var(--color-gold-500);
  color:            var(--color-text-on-gold);
  box-shadow:       0 6px 32px rgba(197, 160, 89, 0.45);
  transform:        translateY(-2px);
}

.btn--primary:active {
  background-color: var(--color-gold-600);
  transform:        translateY(0);
}

/* Botão Secundário — Outline dourado */
.btn--secondary {
  background-color: transparent;
  color:            var(--color-gold-400);
  border-color:     var(--color-gold-400);
}

.btn--secondary:hover {
  background-color: var(--color-gold-400);
  color:            var(--color-text-on-gold);
  transform:        translateY(-2px);
}

/* Botão Ghost — Outline grafite */
.btn--ghost {
  background-color: transparent;
  color:            var(--color-text-primary);
  border-color:     var(--color-border-strong);
}

.btn--ghost:hover {
  border-color:     var(--color-gold-400);
  color:            var(--color-gold-400);
}

/* Botão WhatsApp */
.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color:            #FFFFFF;
  border-color:     var(--color-whatsapp);
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  border-color:     var(--color-whatsapp-dark);
  color:            #FFFFFF;
  transform:        translateY(-2px);
}

/* Tamanhos */
.btn--sm {
  padding:      var(--space-2) var(--space-5);
  font-size:    var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

.btn--lg {
  padding:      var(--space-5) var(--space-10);
  font-size:    var(--text-md);
}

/* Ícone dentro do botão */
.btn__icon {
  width:      1.1em;
  height:     1.1em;
  flex-shrink: 0;
}


/* ==========================================================================
   11. CARDS — BASE
   ========================================================================== */

.card {
  background-color: var(--color-bg-card);
  border:           1px solid var(--color-border-light);
  border-radius:    var(--radius-2xl);
  padding:          var(--space-8);
  box-shadow:       var(--shadow-sm);
  transition:       var(--transition-normal);
}

.card:hover {
  box-shadow:   var(--shadow-lg);
  transform:    translateY(-4px);
  border-color: var(--color-border-medium);
}


/* ==========================================================================
   12. CLASSES DE ACESSIBILIDADE
   ========================================================================== */

/* Visualmente escondido mas acessível a leitores de tela */
.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;
}

/* Pula para o conteúdo principal — acessibilidade por teclado */
.skip-link {
  position:         absolute;
  top:              -100%;
  left:             var(--space-4);
  z-index:          var(--z-toast);
  padding:          var(--space-3) var(--space-6);
  background-color: var(--color-gold-400);
  color:            var(--color-text-on-gold);
  font-weight:      var(--weight-semibold);
  border-radius:    var(--radius-md);
  transition:       top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}


/* ==========================================================================
   13. RESPONSIVIDADE — ADAPTAÇÕES GLOBAIS
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(6, 1fr);
  }
}

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

  .btn--lg {
    padding:   var(--space-4) var(--space-8);
    font-size: var(--text-sm);
  }
}

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

  .card {
    padding: var(--space-6);
  }
}

/* ==========================================================================
   FIM DO ARQUIVO design-system.css
   Próximo arquivo: assets/css/main.css (estilos específicos de componentes)
   ========================================================================== */
