/* Vinícius Cândido — Personal Trainer
   Aesthetic: stencil, olive/cream
   ============================================== */

:root {
  --combat: #4d5c22;
  --combat-deep: #3a4518;
  --combat-deeper: #262f0e;
  --sage: #8fa04a;
  --sage-light: #b3c268;
  --cream: #f0ede5;
  --cream-deep: #e3ddcc;
  --ink: #1a1f0f;
  --ink-soft: #4a5230;
  --rust: #b85a3a; /* tinta spray accent */
  --tape: #c9b87a;
  --shadow-tactical: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 40px rgba(0,0,0,.18);
  --line: rgba(77,92,34,.18);
  --line-strong: rgba(77,92,34,.4);
}

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* iOS overscroll: dark canvas so the bottom rubber-band matches the footer
   (and the top matches the dark hero) instead of flashing white/cream */
html { background: var(--combat-deeper); }

.stencil {
  font-family: 'Big Shoulders Stencil Display', 'Stardos Stencil', 'Black Ops One', Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============ CAMUFLAGEM SUBTLE BACKGROUND ============ */
.camo-bg {
  position: relative;
  overflow: hidden;
}
.camo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(ellipse 80px 50px at 10% 20%, var(--combat) 40%, transparent 41%),
    radial-gradient(ellipse 60px 40px at 30% 60%, var(--combat-deep) 40%, transparent 41%),
    radial-gradient(ellipse 100px 60px at 70% 30%, var(--sage) 40%, transparent 41%),
    radial-gradient(ellipse 70px 45px at 85% 75%, var(--combat) 40%, transparent 41%),
    radial-gradient(ellipse 90px 55px at 50% 90%, var(--combat-deep) 40%, transparent 41%),
    radial-gradient(ellipse 55px 35px at 20% 85%, var(--sage) 40%, transparent 41%);
  background-size: 400px 300px;
  background-repeat: repeat;
}

/* ============ NOISE OVERLAY ============ */
.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ============ STENCIL TINTA SPRAY EFFECT ============ */
.spray {
  position: relative;
  display: inline-block;
}
.spray::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  background: var(--combat);
  filter: url(#roughen);
  opacity: 0.92;
  z-index: -1;
}

/* ============ TACTICAL TAGS ============ */
.tag-tactical {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--combat);
  color: var(--cream);
  border-radius: 2px;
}
.tag-tactical.outline {
  background: transparent;
  color: var(--combat);
  border: 1px solid var(--combat);
}
.tag-tactical .dot {
  width: 6px; height: 6px; background: currentColor; border-radius: 50%;
}
.tag-tactical .dot.live {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ============ DOG TAG ============ */
.dogtag {
  display: inline-block;
  padding: 12px 18px 12px 36px;
  background: linear-gradient(160deg, #d0d0c8 0%, #a8a8a0 35%, #c4c4bc 65%, #989890 100%);
  color: #1a1a14;
  border-radius: 50px;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 0 0 2px rgba(0,0,0,.15);
}
.dogtag::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: #2a2a22;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 0 0 2px rgba(180,180,170,.6);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  position: relative;
}
.btn-primary {
  background: var(--combat);
  color: var(--cream);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--combat);
  border: 2px solid var(--combat);
  border-radius: 2px;
}
.btn-ghost:hover { background: var(--combat); color: var(--cream); }

.btn-wa {
  background: #25D366;
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-wa:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* ============ CONTAINER ============ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(45,58,42,0.96);
  backdrop-filter: blur(8px);
  color: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--cream);
  color: var(--combat);
  display: grid;
  place-items: center;
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  border: 2px solid var(--ink);
  border-radius: 2px;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed var(--combat);
  opacity: 0.5;
}
.logo-text { line-height: 1; }
.logo-text .name {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-text .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; opacity: 0.65; letter-spacing: 0.18em; text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex; gap: 6px; list-style: none;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); }
.nav-cta {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em;
  background: var(--cream);
  color: var(--combat);
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none; background: none; border: 0; color: var(--cream); cursor: pointer;
  padding: 6px; border-radius: 2px; transition: background .15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }

/* ===== BACKDROP ===== */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: all; }

/* ===== DRAWER (fora do nav para evitar bug sticky/fixed) ===== */
.nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 240px; z-index: 200;
  background: var(--combat-deeper);
  border-left: 2px solid rgba(240,237,229,0.12);
  border-bottom-left-radius: 20px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: none;
}
.nav-drawer.open { transform: translateX(0); box-shadow: -8px 8px 32px rgba(0,0,0,0.4); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(240,237,229,0.1);
}
.nav-drawer-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
}
.nav-drawer-close {
  background: none; border: 0; color: var(--cream); cursor: pointer;
  padding: 4px; opacity: 0.6; display: flex; align-items: center;
  transition: opacity .15s;
}
.nav-drawer-close:hover { opacity: 1; }

.nav-drawer-links {
  list-style: none; flex: 1; overflow-y: auto;
}
.nav-drawer-links li {
  border-bottom: 1px solid rgba(240,237,229,0.07);
}
.nav-drawer-links li:last-child { border-bottom: 0; }
.nav-drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  color: var(--cream); text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .15s;
}
.nav-drawer-links a:hover { background: rgba(255,255,255,0.05); }
.nav-drawer-arrow { font-size: 12px; opacity: 0.35; transition: opacity .15s, transform .15s; }
.nav-drawer-links a:hover .nav-drawer-arrow { opacity: 0.8; transform: translateX(4px); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .logo-text .sub { display: none; }
  .nav-inner { padding: 12px 0; gap: 8px; }
  .nav-cta { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 380px) {
  .logo-text .name { font-size: 15px; }
  .nav-cta { display: none; }
  .logo { gap: 8px !important; }
}

/* ============ SECTION SHELL ============ */
.section {
  padding: 96px 0;
  position: relative;
}
.section-cream { background: var(--cream); color: var(--ink); }
.section-combat { background: var(--combat); color: var(--cream); }
.section-cream-deep { background: var(--cream-deep); color: var(--ink); }
.section-deep { background: var(--combat-deep); color: var(--cream); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-head h2 {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-head h2 em {
  font-style: normal;
  color: var(--sage);
}
.section-combat .section-head h2 em { color: var(--sage-light); }
.section-head .lede {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ============ STENCIL TYPE ============ */
h1.hero-title, h2.hero-title {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}

/* ============ DIVIDERS ============ */
.divider-tactical {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.divider-tactical::before,
.divider-tactical::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* ============ STAT CARDS ============ */
.stat {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--cream);
  position: relative;
}
.stat .num {
  font-family: 'Big Shoulders Stencil Display', Impact, sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  color: var(--combat);
}
.stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ============ GRID UTILS ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
}

/* Tablet: 2-col for 3-col grids */
@media (min-width: 561px) and (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============ IMAGE PLACEHOLDERS (DUOTONE) ============ */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--combat-deep) 0 8px,
      var(--combat) 8px 16px
    );
  color: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, transparent 0%, rgba(0,0,0,0.5) 100%);
}
.placeholder .ph-content {
  position: relative;
  z-index: 1;
  padding: 16px;
}
.placeholder .ph-corners::before,
.placeholder .ph-corners::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--cream);
}
.placeholder .ph-corners::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.placeholder .ph-corners::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.placeholder.sage {
  background: repeating-linear-gradient(45deg, var(--sage) 0 8px, #93a085 8px 16px);
  color: var(--combat-deep);
}
.placeholder.sage .ph-corners::before,
.placeholder.sage .ph-corners::after { border-color: var(--combat-deep); }

/* ============ FORM ============ */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--combat);
}

/* hide tweaks-related elements */
.section [data-comment-anchor] { scroll-margin-top: 80px; }

/* ====================================================
   MOBILE FIXES — globais
   ==================================================== */

/* prevent horizontal scroll caused by absolutely-positioned overflow */
html, body { overflow-x: hidden; }

/* container padding */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; gap: 20px; }
  .section-head .lede { font-size: 14px; }
  .section-head h2 { font-size: clamp(34px, 10vw, 56px); }
}

/* Tap targets: ensure buttons + links are big enough on touch */
@media (hover: none) {
  .btn { min-height: 48px; }
  .nav-links a { padding: 12px 14px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
