/* === Operon — Design system + shared layout === */
:root {
  --primary: #D62828;
  --primary-hover: #B91C1C;
  --primary-tint: rgba(214, 40, 40, 0.08);
  --primary-tint-strong: rgba(214, 40, 40, 0.14);
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F5F5F5;
  --ink: #0F0F0F;
  --text: #262626;
  --text-mid: #525252;
  --text-muted: #A3A3A3;
  --hairline: #E5E5E5;
  --hairline-strong: #D4D4D4;
  --success: #16A34A;
  --warning: #EAB308;
  --error: #DC2626;
  --info: #2563EB;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(15,15,15,0.04);
  --shadow: 0 1px 3px rgba(15,15,15,0.05), 0 4px 12px rgba(15,15,15,0.04);
  --shadow-lg: 0 8px 24px rgba(15,15,15,0.08), 0 2px 6px rgba(15,15,15,0.04);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary-tint-strong); color: var(--ink); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 16px; line-height: 1.4; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}
.lede { font-size: 18px; line-height: 1.55; color: var(--text-mid); text-wrap: pretty; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(15,15,15,0.02);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.site-header .nav-links { display: flex; gap: 28px; align-items: center; }
.site-header .nav-links a { font-size: 14px; font-weight: 500; color: var(--text-mid); }
.site-header .nav-links a:hover { color: var(--ink); }
.site-header .nav-cta { display: flex; gap: 8px; align-items: center; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 3px 3px auto;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 1.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: var(--text-mid); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-alt); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); border-color: var(--whatsapp-hover); color: #fff; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-mid); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-tagline { color: var(--text-mid); font-size: 14px; margin-top: 12px; max-width: 280px; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(15,15,15,0.1);
  z-index: 40;
  transition: transform .2s ease, box-shadow .2s ease;
  border: none;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0.5;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Utilities */
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.mid { color: var(--text-mid); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  color: var(--text-mid);
  background: var(--surface);
}
.badge-primary { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Image placeholder */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(15,15,15,0.035) 7px 8px),
    var(--surface-alt);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  min-height: 120px;
}
.img-placeholder span { max-width: 80%; line-height: 1.4; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .req { color: var(--primary); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .6s ease-out both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

/* Mobile menu trigger + drawer */
.mobile-only { display: none; }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 16px; height: 48px; }

/* Page head (used em contato/privacidade/termos) */
.page-head {
  padding: 80px 0 40px;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--primary-tint) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.page-head .container { position: relative; }
.page-head-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 720px;
}
.page-head h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.03em; }

@media (max-width: 880px) {
  section { padding: 64px 0; }
  .site-footer { margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-header .nav-links { display: none; }
  .site-header .nav-cta .btn-secondary { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 20px; }
  .page-head { padding: 56px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
