/* ============================================================
   HT PRINTERS — Design System
   Reference: copossustentaveis.com.br
   Fonts: Anton (display) + Figtree (body)
   Palette: cream · dark green · tan · white
   ============================================================ */

/* ── FONTES AUTO-HOSPEDADAS ──────────────────────────────────────────
   Caminho relativo ao próprio CSS (css/ → ../fonts/), e não /printing/
   cravado: o components.js já detecta a pasta base em tempo de execução,
   e com o caminho absoluto as duas metades do site discordavam sobre
   onde ele mora — tirar de /printing/ quebrava só as fontes. */
@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Anton Fallback';
  src: local('Impact');
  ascent-override: 98%;
  descent-override: 14%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial');
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* ── FONT-FAMILY VARS (usar sempre — inclui fallback métrico) ── */
:root {
  --f-display: 'Anton', 'Anton Fallback', Impact, sans-serif;
  --f-body:    'Figtree', 'Figtree Fallback', system-ui, -apple-system, Arial, sans-serif;
}
body { font-family: var(--f-body); }

/* ── COLOR TOKENS ── */
:root {
  /* Brand palette */
  --cream:       #F2E0C8;
  --cream-dk:    #E8D0B0;
  --cream-lt:    #FAF3EA;
  --green-dk:    #0A1C14;
  --green:       #1C3B2D;
  --green-mid:   #2A5540;
  --green-lt:    #3A7558;
  --green-pale:  #E6F0EB;
  --tan:         #C4956A;
  --tan-lt:      #D9B08C;
  --tan-pale:    rgba(196, 149, 106, 0.15);
  --lime:        #7BB661;
  --lime-lt:     #9ED085;
  --footer-bg:   #111F17;

  /* Semantic */
  --bg:          var(--cream);
  --bg-alt:      #FFFFFF;
  --bg-dark:     var(--green-dk);
  --surface:     #FFFFFF;
  --text:        #1A2A1F;
  --text-2:      #3A5040;
  --text-3:      #526955;
  --border:      rgba(26, 42, 31, 0.12);
  --border-2:    rgba(26, 42, 31, 0.20);
  --accent:      var(--green);
  --accent-lt:   var(--green-lt);
  --accent2:     var(--tan);
  --near-black:  var(--footer-bg);

  /* Legacy aliases */
  --ink:         var(--green-dk);
  --ink-2:       var(--green);
  --copper:      var(--tan);
  --copper-lt:   var(--tan-lt);
  --copper-pale: var(--tan-pale);
  --steel:       var(--green-mid);
  --steel-lt:    var(--green-lt);
  --steel-pale:  var(--green-pale);
  --white:       #FFFFFF;
  --gray-50:     #F5F5F5;
  --gray-100:    #EBEBEB;
  --gray-200:    #D5D5D5;
  --gray-400:    #909090;
  --gray-600:    #555555;
  --gray-800:    #2A2A2A;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,28,20,.08);
  --shadow-md:  0 4px 16px rgba(10,28,20,.12);
  --shadow-lg:  0 12px 40px rgba(10,28,20,.16);

  /* Radius */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 20px;

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

  /* Type scale */
  --text-xs:   11px;  --text-sm:  13px;  --text-base: 15px;
  --text-lg:   17px;  --text-xl:  20px;  --text-2xl: 24px;
  --text-3xl:  30px;  --text-4xl: 38px;  --text-5xl: 50px;
  --text-6xl:  64px;

  /* Layout */
  --max-w:     1200px;
  --max-w-txt: 680px;
  --nav-h:     68px;
}

/* ── DARK MODE DESABILITADO — site sempre renderiza consistente ── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; color-scheme: light; }
body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select {
  font: inherit; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r);
  color: var(--text); padding: var(--sp-3) var(--sp-4);
  outline: none; transition: border-color .2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }

/* ── TYPOGRAPHY ── */
.display { font-family: 'Anton', sans-serif; font-weight: 400; line-height: 1.0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-family: 'Anton', sans-serif; font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 400; line-height: 1.0; text-wrap: balance; letter-spacing: .01em; }
h2 { font-family: 'Anton', sans-serif; font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h3 { font-family: 'Figtree', sans-serif; font-size: var(--text-xl); font-weight: 700; line-height: 1.3; }
h4 { font-family: 'Figtree', sans-serif; font-size: var(--text-lg); font-weight: 600; }
p { max-width: 68ch; }
.label { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
.section { padding: clamp(var(--sp-12), 8vw, var(--sp-24)) 0; }
.section-sm { padding: clamp(var(--sp-8), 5vw, var(--sp-16)) 0; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); } .gap-8 { gap: var(--sp-8); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 13px 28px; border-radius: var(--r); font-size: var(--text-sm);
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-mid); }
.btn-dark { background: var(--green-dk); color: var(--cream); }
.btn-dark:hover { background: var(--green); }
.btn-cream { background: var(--cream); color: var(--green); }
.btn-cream:hover { background: var(--cream-dk); }
.btn-ghost { background: transparent; border: 2px solid currentColor; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-ghost-white { background: transparent; border: 2px solid rgba(242,224,200,.5); color: var(--cream); }
.btn-ghost-white:hover { border-color: var(--cream); }
.btn-lg { padding: 16px 36px; font-size: var(--text-base); }
.btn-sm { padding: 8px 18px; font-size: var(--text-xs); }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-flat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); }

/* ── CHIPS / TAGS ── */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: var(--text-xs); font-weight: 700; border: 1.5px solid;
  letter-spacing: .06em; text-transform: uppercase;
}
.chip-green  { background: var(--green-pale); border-color: var(--green-lt); color: var(--green); }
.chip-cream  { background: var(--cream); border-color: var(--cream-dk); color: var(--green); }
.chip-tan    { background: var(--tan-pale); border-color: var(--tan-lt); color: #7A4A20; }

/* ── EYEBROW ── */
.eyebrow { color: var(--tan); margin-bottom: var(--sp-3); display: block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: var(--text-xs); }

/* ── DIVIDER ── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: clamp(var(--sp-8), 5vw, var(--sp-12)); }
.section-header p { color: var(--text-2); font-size: var(--text-lg); margin-top: var(--sp-3); }

/* ── DARK SECTION ── */
.bg-dark {
  background: var(--green-dk);
  --text: var(--cream); --text-2: rgba(242,224,200,.65); --text-3: rgba(242,224,200,.35);
  --border: rgba(242,224,200,.1); --surface: rgba(255,255,255,.05);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--cream); }
.bg-dark p { color: rgba(242,224,200,.75); }
.bg-green { background: var(--green); }
.bg-cream { background: var(--cream); }
.bg-cream-lt { background: var(--cream-lt); }
.bg-white { background: #FFFFFF; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tan-pale); border: 1px solid rgba(196,149,106,.3);
  color: var(--tan); padding: 5px 14px; border-radius: 100px;
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}
.badge::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--tan); flex-shrink:0; }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* ── STATS ── */
.stat-number {
  font-family: 'Anton', sans-serif; font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}

/* ── PRINT ── */
@media print {
  nav, .nav-cta, .btn { display: none; }
  body { font-size: 12pt; }
}

/* ── ACCESSIBILITY ── */
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
