/* ===================================
   InfoHead — Portfolio Design System
   Mesmo visual da home (azul/roxo/azul-claro)
   =================================== */

:root {
  /* Paleta InfoHead (idêntica à home) */
  --color-primary: #0B2553;
  --color-primary-light: #1E3A6F;
  --color-primary-dark: #061835;
  --color-secondary: #71257E;
  --color-secondary-light: #8A3D9E;
  --color-secondary-dark: #5A1B65;
  --color-accent: #52B6E6;
  --color-accent-light: #7AC9EE;
  --color-accent-dark: #2EA1D4;
  --color-warn: #F59E0B;
  --color-danger: #EF4444;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #0F172A;
  --color-bg-darker: #020617;

  --color-text: #0B2553;
  --color-text-light: #1E3A6F;
  --color-text-muted: #5A6B8A;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #C7D2E2;

  --color-border: #E2E8F0;

  /* Tipografia */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --fs-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.25rem);
  --fs-5xl: clamp(2.75rem, 2.1rem + 3.25vw, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(113, 37, 126, 0.35);
  --shadow-glow-accent: 0 0 30px rgba(82, 182, 230, 0.35);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   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: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { line-height: 1.7; }

/* ===================================
   LAYOUT HELPERS
   =================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: linear-gradient(135deg, #71257E 0%, #52B6E6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

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

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(113, 37, 126, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: var(--space-4);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before { transform: translateX(100%); }

.btn-lg { padding: 1.125rem 2.25rem; font-size: var(--fs-lg); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: var(--fs-sm); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(113, 37, 126, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 37, 126, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(113, 37, 126, 0.04);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(82, 182, 230, 0.4);
  font-weight: 700;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(82, 182, 230, 0.5);
}

/* ===================================
   HEADER (mesmo da home)
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed, 300);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(11, 37, 83, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8);
    gap: var(--space-6);
    box-shadow: -8px 0 32px rgba(11, 37, 83, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 0.75rem 0; }
}

/* ===================================
   FOOTER (mesmo da home)
   =================================== */

.footer {
  background: var(--color-bg-darker);
  color: var(--color-text-on-dark);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-brand p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col a {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-base);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-xs);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================
   WHATSAPP FLOAT (mesmo da home)
   =================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg { width: 30px; height: 30px; }

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===================================
   PAGE WRAPPER
   =================================== */

.page {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main { flex: 1; }

.breadcrumb {
  background: var(--color-bg-alt);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }

.breadcrumb a { color: var(--color-secondary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--color-text-muted); opacity: 0.5; }

.breadcrumb-current { color: var(--color-text-muted); }

/* ===================================
   HERO (padrão InfoHead)
   =================================== */

.hero-mini {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-mini::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82, 182, 230, 0.3) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-mini-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
}

.hero-mini-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

.hero-mini h1 {
  color: white;
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.hero-mini h1 .text-gradient {
  background: linear-gradient(135deg, #52B6E6 0%, #7AC9EE 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mini-lead {
  font-size: var(--fs-lg);
  color: var(--color-text-on-dark-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-text-muted); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }

::selection { background: var(--color-secondary); color: white; }

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
