/* Cavalheiro Sites — Estilos Premium */

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

/* ========== Variáveis ========== */
:root {
  --radius: 0.875rem;
  --background: #0b0f1a;
  --foreground: #f4f6fb;
  --card: #13192b;
  --card-foreground: #f4f6fb;
  --primary: #4f8ef7;
  --primary-foreground: #080c16;
  --primary-glow: #7db0ff;
  --secondary: #1a2238;
  --secondary-foreground: #f4f6fb;
  --muted: #181f33;
  --muted-foreground: #a8b2c8;
  --accent: #4f8ef7;
  --accent-foreground: #080c16;
  --border: rgba(70, 85, 120, 0.35);
  --input: rgba(70, 85, 120, 0.35);
  --ring: #4f8ef7;
  --gradient-primary: linear-gradient(135deg, #4f8ef7, #7db0ff);
  --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(79, 142, 247, 0.18), transparent 55%),
                   radial-gradient(ellipse at 80% 30%, rgba(65, 120, 230, 0.15), transparent 60%);
  --gradient-surface: linear-gradient(180deg, #13192b, #0d1322);
  --shadow-elegant: 0 20px 50px -20px rgba(79, 142, 247, 0.35);
  --shadow-glow: 0 0 60px -10px rgba(79, 142, 247, 0.55);
  --shadow-soft: 0 8px 32px -12px rgba(0, 0, 0, 0.6);
  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 142, 247, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(65, 120, 230, 0.10), transparent);
  background-attachment: fixed;
}

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

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

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ========== Utilitários ========== */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-3 { row-gap: 0.75rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.-top-32 { top: -8rem; }
.-right-32 { right: -8rem; }
.-z-10 { z-index: -10; }
.z-0 { z-index: 0; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }

.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.border { border-width: 1px; border-style: solid; }
.border-primary-20 { border-color: rgba(79, 142, 247, 0.2); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.ring-1 { box-shadow: 0 0 0 1px var(--border); }

.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-96 { height: 24rem; }
.h-px { height: 1px; }
.min-h-screen { min-height: 100vh; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 9rem; padding-bottom: 9rem; }

.pt-36 { padding-top: 9rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }

.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-28 { margin-top: 7rem; }

.mb-8 { margin-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ========== Tipografia ========== */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-15 { font-size: 15px; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-11 { font-size: 11px; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }

.leading-relaxed { line-height: 1.625; }
.leading-1-05 { line-height: 1.05; }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-0-18 { letter-spacing: 0.18em; }
.tracking-0-2 { letter-spacing: 0.2em; }
.tracking-0-22 { letter-spacing: 0.22em; }

.uppercase { text-transform: uppercase; }

.text-foreground { color: var(--foreground); }
.text-foreground-90 { color: rgba(244, 246, 251, 0.9); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-card-30 { background-color: rgba(19, 25, 43, 0.3); }
.bg-card-50 { background-color: rgba(19, 25, 43, 0.5); }
.bg-card-60 { background-color: rgba(19, 25, 43, 0.6); }
.bg-card-70 { background-color: rgba(19, 25, 43, 0.7); }
.bg-primary { background-color: var(--primary); }
.bg-primary-10 { background-color: rgba(79, 142, 247, 0.1); }
.bg-transparent { background-color: transparent; }

.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-90 { opacity: 0.9; }
.opacity-004 { opacity: 0.04; }

.blur-3xl { filter: blur(64px); }

/* ========== Gradientes e sombras customizados ========== */
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* ========== Componentes específicos ========== */
.nav-scrolled {
  backdrop-filter: blur(24px);
  background-color: rgba(11, 15, 26, 0.7);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
  background: var(--gradient-hero);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image:
    linear-gradient(to right, white 1px, transparent 1px),
    linear-gradient(to bottom, white 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: rgba(19, 25, 43, 0.5);
  backdrop-filter: blur(8px);
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-secondary:hover {
  background-color: rgba(19, 25, 43, 0.7);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.9; }

.card-service {
  position: relative;
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--gradient-surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card-service:hover {
  border-color: rgba(79, 142, 247, 0.4);
}
.card-service:hover .card-glow {
  opacity: 1;
}
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: var(--shadow-elegant);
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 142, 247, 0.1);
  color: var(--primary);
  border: 1px solid rgba(79, 142, 247, 0.2);
  margin-bottom: 1.25rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  font-weight: 600;
}
.section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background-color: var(--primary);
}

/* ========== FAQ ========== */
.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: rgba(19, 25, 43, 0.6);
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 500;
}
.faq-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}
.faq-item.active .faq-btn svg {
  transform: rotate(45deg);
}
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s, opacity 0.3s;
}
.faq-item.active .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-content > div {
  overflow: hidden;
}
.faq-content p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* ========== Testimonial ========== */
.testimonial {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--gradient-surface);
  display: flex;
  flex-direction: column;
}

/* ========== Animações ========== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ========== Hover utilitários ========== */
.hover-text-foreground:hover { color: var(--foreground); }
.hover-text-primary:hover { color: var(--primary); }
.hover-opacity-90:hover { opacity: 0.9; }
.hover-gap-3:hover { gap: 0.75rem; }
.group:hover .group-hover-translate-x-1 { transform: translateX(0.25rem); }

/* ========== Transições ========== */
.transition { transition: all 0.2s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.2s ease; }

/* ========== Grid columns responsivo ========== */
@media (min-width: 640px) {
  .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md-text-5xl { font-size: 3rem; }
  .md-text-6xl { font-size: 3.75rem; }
  .md-text-7xl { font-size: 4.5rem; }
  .md-text-xl { font-size: 1.25rem; }
  .md-p-16 { padding: 4rem; }
  .md-p-14 { padding: 3.5rem; }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== Footer ========== */
footer a { transition: color 0.2s; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

@media (max-width: 768px) {

  .card-service,
  .testimonial,
  .faq-item {
    margin-bottom: 12px;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .py-28 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}