/* ============================================================
   4WaTT Bio Engenharia — Design System
   Versão 1.0 · Março 2026
   Fonte primária de tokens de estilo para todo o site
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- Tokens de Cor --- */
:root {
  --color-roxo:       #3D0036;
  --color-roxo-deep:  #2A0025;
  --color-roxo-mid:   #5C0050;
  --color-roxo-light: #7A1870;
  --color-verde:      #00A089;
  --color-verde-dark: #008070;
  --color-verde-light:#00C4A9;
  --color-laranja:    #DBAA0F;
  --color-turquesa:   #2DACB6;
  --color-azul:       #093C92;
  --color-cinza:      #78909C;
  --color-cinza-light:#B0BEC5;
  --color-cinza-muted:#ECEFF1;

  --color-white:      #FFFFFF;
  --color-off-white:  #F8F7F6;
  --color-text:       #1A1A1A;
  --color-text-muted: #6B7280;
  --color-border:     #E5E7EB;

  /* Tokens semânticos */
  --color-bg-dark:    var(--color-roxo-deep);
  --color-bg-light:   var(--color-off-white);
  --color-accent:     var(--color-verde);
  --color-highlight:  var(--color-laranja);
}

/* --- Tipografia --- */
:root {
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Escala responsiva */
  --text-hero:    clamp(44px, 6.5vw, 80px);
  --text-h1:      clamp(36px, 5vw, 64px);
  --text-h2:      clamp(28px, 4vw, 48px);
  --text-h3:      clamp(20px, 2.5vw, 32px);
  --text-h4:      clamp(18px, 2vw, 24px);
  --text-lead:    clamp(17px, 1.5vw, 20px);
  --text-body:    17px;
  --text-small:   14px;
  --text-stat:    clamp(52px, 7.5vw, 96px);
  --text-caption: 13px;

  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --weight-black:     900;

  --line-height-tight:  1.15;
  --line-height-normal: 1.6;
  --line-height-relaxed:1.75;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:   0.04em;
  --letter-spacing-wider:  0.08em;
  --letter-spacing-caps:   0.12em;
}

/* --- Espaçamentos --- */
:root {
  --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;

  --section-py:    clamp(60px, 8vw, 120px);
  --section-py-sm: clamp(35px, 4vw, 65px);
}

/* --- Border Radius --- */
:root {
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
}

/* --- Sombras --- */
:root {
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1),  0 2px 6px rgba(0,0,0,0.07);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 16px 40px rgba(61,0,54,0.15), 0 4px 12px rgba(0,0,0,0.1);
  --shadow-verde:  0 4px 20px rgba(0,160,137,0.35);
  --shadow-roxo:   0 4px 20px rgba(61,0,54,0.4);
}

/* --- Transições --- */
:root {
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Z-index --- */
:root {
  --z-below:   -1;
  --z-base:    1;
  --z-above:   10;
  --z-dropdown:100;
  --z-navbar:  1000;
  --z-modal:   2000;
  --z-toast:   3000;
}

/* --- Breakpoints (para uso em comentários/referência) ---
   xs:  375px
   sm:  640px
   md:  768px
   lg:  1024px
   xl:  1280px
   2xl: 1536px
   ---------------------------------------------------- */

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-lg {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container, .container-sm, .container-lg {
    padding: 0 var(--space-5);
  }
}

/* Section backgrounds */
.section-dark {
  background-color: var(--color-roxo-deep);
  color: var(--color-white);
}

.section-dark-mid {
  background-color: var(--color-roxo);
  color: var(--color-white);
}

.section-light {
  background-color: var(--color-white);
  color: var(--color-text);
}

.section-muted {
  background-color: var(--color-off-white);
  color: var(--color-text);
}

.section-verde {
  background-color: var(--color-verde);
  color: var(--color-white);
}

.section-gradient-dark {
  background: linear-gradient(135deg, var(--color-roxo-deep) 0%, #1a0045 100%);
  color: var(--color-white);
}

/* Section spacing */
.section-pad {
  padding: var(--section-py) 0;
}

.section-pad-sm {
  padding: var(--section-py-sm) 0;
}

/* Typography utilities */
.text-hero    { font-size: var(--text-hero);  font-family: var(--font-display); font-weight: var(--weight-extrabold); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); }
.text-h1      { font-size: var(--text-h1);   font-family: var(--font-display); font-weight: var(--weight-extrabold); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); }
.text-h2      { font-size: var(--text-h2);   font-family: var(--font-display); font-weight: var(--weight-bold); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); }
.text-h3      { font-size: var(--text-h3);   font-family: var(--font-display); font-weight: var(--weight-bold); line-height: 1.3; }
.text-h4      { font-size: var(--text-h4);   font-family: var(--font-display); font-weight: var(--weight-semibold); line-height: 1.4; }
.text-lead    { font-size: var(--text-lead);  line-height: var(--line-height-relaxed); }
.text-body    { font-size: var(--text-body);  line-height: var(--line-height-normal); }
.text-small   { font-size: var(--text-small); }
.text-caption { font-size: var(--text-caption); }
.text-stat    { font-size: var(--text-stat);  font-family: var(--font-display); font-weight: var(--weight-black); line-height: 1; letter-spacing: var(--letter-spacing-tight); }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-white   { color: var(--color-white); }
.text-roxo    { color: var(--color-roxo); }
.text-verde   { color: var(--color-verde); }
.text-laranja { color: var(--color-laranja); }
.text-muted   { color: var(--color-text-muted); }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Overline label */
.overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-verde);
}

.overline-dark {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-roxo);
}

/* Separator line decorativo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-verde);
  flex-shrink: 0;
}

/* Display */
.d-flex      { display: flex; }
.d-grid      { display: grid; }
.d-none      { display: none; }
.d-block     { display: block; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* Reveal animation base (JS activates) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-verde); }

.breadcrumb-sep {
  font-size: 10px;
  color: var(--color-cinza-light);
}

/* Section heading pattern */
.section-heading {
  max-width: 720px;
  margin-bottom: var(--space-16);
}

.section-heading.centered {
  text-align: center;
  margin: 0 auto var(--space-16);
}

.section-heading .overline {
  display: block;
  margin-bottom: var(--space-3);
}

.section-heading h2 {
  font-size: var(--text-h2);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.section-heading p {
  font-size: var(--text-lead);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.section-dark .section-heading p,
.section-dark-mid .section-heading p {
  color: rgba(255,255,255,0.7);
}

/* Decorative gradient line */
.gradient-line {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-verde), var(--color-turquesa));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

/* Highlight text */
.highlight-verde {
  color: var(--color-verde);
}

.highlight-laranja {
  color: var(--color-laranja);
}
