/* ============================================================
   Fox Sistemas — Stylesheet Principal
   Paleta: Cinza (#2C2C2A, #5F5E5A, #F1EFE8) + Laranja (#E86B1A)
   Fonte: Sora (títulos) + DM Sans (corpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --clr-orange:       #E86B1A;
  --clr-orange-light: #F5872E;
  --clr-orange-pale:  #FDF0E6;
  --clr-orange-dark:  #C45610;

  --clr-gray-900: #1E1E1C;
  --clr-gray-800: #2C2C2A;
  --clr-gray-700: #3D3D3A;
  --clr-gray-500: #5F5E5A;
  --clr-gray-400: #888780;
  --clr-gray-200: #D3D1C7;
  --clr-gray-100: #F1EFE8;
  --clr-white:    #FFFFFF;

  --font-title: 'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --container: 1180px;
  --section-py: 80px;
  --transition: 0.22s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-gray-800);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-orange);
  color: var(--clr-white);
}
.btn-primary:hover { background: var(--clr-orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,107,26,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--clr-gray-800);
  border: 1.5px solid var(--clr-gray-200);
}
.btn-outline:hover { border-color: var(--clr-gray-400); background: var(--clr-gray-100); }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28,28,26,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(28,28,26,.98); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--clr-orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark--sm { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 400;
  color: var(--clr-gray-100);
  letter-spacing: -.2px;
}
.logo-text strong {
  font-weight: 600;
  color: var(--clr-white);
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--clr-gray-400);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--clr-white); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--clr-orange-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburguer */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-gray-200);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--clr-gray-900);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--clr-gray-400);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--clr-white); background: rgba(255,255,255,.06); }
.mobile-cta { margin-top: 12px; }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--clr-gray-800);
  padding-top: calc(68px + 80px);
  padding-bottom: 90px;
  overflow: hidden;
  position: relative;
}

/* Grade decorativa */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glow laranja sutil */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,107,26,.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(232,107,26,.12);
  border: 1px solid rgba(232,107,26,.3);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-orange-light);
  margin-bottom: 24px;
  letter-spacing: .3px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--clr-white);
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--clr-orange-light);
}

.hero-lead {
  font-size: 17px;
  color: var(--clr-gray-400);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-num {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-orange-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--clr-gray-500);
  letter-spacing: .2px;
}

/* ── Section base ─────────────────────────────────────────── */
.section { padding-block: var(--section-py); }
.section--gray { background: var(--clr-gray-100); }
.section--dark { background: var(--clr-gray-800); }

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; max-width: 560px; margin-inline: auto; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--clr-gray-800);
  letter-spacing: -.3px;
  margin-bottom: 14px;
}
.section--dark .section-title { color: var(--clr-white); }
.section-lead {
  font-size: 16px;
  color: var(--clr-gray-500);
  line-height: 1.7;
}
.section--dark .section-lead { color: var(--clr-gray-400); }

/* ── Services Grid ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: var(--clr-orange);
  box-shadow: 0 0 0 3px rgba(232,107,26,.08), var(--shadow-md);
  transform: translateY(-3px);
}
.service-card.featured { border-color: var(--clr-orange); border-width: 1.5px; }

.service-badge-tag {
  position: absolute;
  top: -11px; right: 20px;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 10px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--clr-orange-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--clr-orange); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.service-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  color: var(--clr-gray-800);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.service-desc {
  font-size: 14px;
  color: var(--clr-gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}
.service-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-orange);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 9px; }

/* ── Diferenciais ────────────────────────────────────────── */
.dif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dif-card {
  padding: 22px;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 14px;
}
.dif-num {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-orange);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}
.dif-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-gray-800);
  margin-bottom: 5px;
}
.dif-text { font-size: 13px; color: var(--clr-gray-500); line-height: 1.6; }

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
  background: var(--clr-gray-800);
  padding-block: var(--section-py);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,107,26,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 14px;
  position: relative;
}
.cta-section h2 em { font-style: normal; color: var(--clr-orange-light); }
.cta-section p {
  font-size: 16px;
  color: var(--clr-gray-400);
  margin-bottom: 36px;
  position: relative;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-gray-900);
  padding-top: 60px;
  padding-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-footer .logo-text { font-size: 15px; }
.footer-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: var(--clr-gray-500);
  line-height: 1.6;
  max-width: 220px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-gray-400);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--clr-orange); color: var(--clr-white); }

.footer-col h3 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--clr-gray-500);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--clr-orange-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  font-size: 12px;
  color: var(--clr-gray-700);
}
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { color: var(--clr-gray-700); }
.footer-legal a:hover { color: var(--clr-gray-400); }

/* ── Anim entrada ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .hero { padding-top: calc(68px + 48px); padding-bottom: 56px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .header-actions .btn-sm { display: none; }
}
