/*
  SAGAZ Contabilidade - Estilos Globais
  Filosofia visual: Swiss Editorial Modernism
  Cores: Grafite (#2f3033), Amarelo (#f3b316), Fundo claro (#fbfaf6)
*/

:root {
  --sagaz-graphite: #2f3033;
  --sagaz-graphite-2: #414246;
  --sagaz-yellow: #f3b316;
  --sagaz-yellow-2: #ffd36b;
  --sagaz-paper: #fbfaf6;
  --sagaz-stone: #efeee8;
  --sagaz-line: rgba(47, 48, 51, 0.14);
  --sagaz-muted: #6e7075;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #fbfaf6 0%, #ffffff 46%, #f4f2eb 100%);
  color: var(--sagaz-graphite);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--sagaz-graphite);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 200ms ease;
}

/* Navbar */
.navbar {
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(47, 48, 51, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(47, 48, 51, 0.055);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  max-width: 180px;
  height: auto;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--sagaz-graphite);
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1rem !important;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link::after {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  content: "";
  background: var(--sagaz-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Botões */
.btn {
  border-radius: 0.1rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sagaz {
  background: var(--sagaz-yellow);
  color: #242424;
  border: 1px solid #d39a08;
  box-shadow: 0 14px 28px rgba(243, 179, 22, 0.25);
}

.btn-sagaz:hover {
  background: #e5a70d;
  border-color: #b88304;
  color: #1f1f1f;
}

.btn-outline {
  border: 1px solid rgba(47, 48, 51, 0.28);
  background: rgba(255, 255, 255, 0.58);
  color: var(--sagaz-graphite);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--sagaz-graphite);
  background: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding: 6rem 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.93) 39%, rgba(251, 250, 246, 0.62) 64%, rgba(251, 250, 246, 0.18) 100%);
  z-index: -1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #4f5155;
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Eyebrow / Marker */
.eyebrow, .section-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--sagaz-graphite-2);
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before, .section-marker::before {
  display: inline-block;
  width: 0;
  height: 0;
  content: "";
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.7rem solid var(--sagaz-yellow);
}

/* Seções */
.section {
  padding: clamp(5rem, 8vw, 8.5rem) 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--sagaz-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 48, 51, 0.08);
  border-radius: 0.2rem;
  backdrop-filter: blur(10px);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeInUp 600ms ease-out both;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(243, 179, 22, 0.3);
  box-shadow: 0 24px 60px rgba(243, 179, 22, 0.12);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--sagaz-muted);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sagaz-yellow);
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap 200ms ease;
}

.card a:hover {
  gap: 0.8rem;
}

/* Grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Imagens */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.editorial-image {
  width: 100%;
  border-radius: 0.2rem;
  box-shadow: 0 36px 80px rgba(47, 48, 51, 0.12);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Listas */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  color: var(--sagaz-graphite);
  font-size: 1.05rem;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
  content: "";
  background: linear-gradient(135deg, var(--sagaz-yellow) 0%, #ffd36b 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 50% 75%, 18% 100%, 0% 38%);
}

/* Formulário */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--sagaz-graphite);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(47, 48, 51, 0.15);
  border-radius: 0.15rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--sagaz-graphite);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sagaz-yellow);
  box-shadow: 0 0 0 3px rgba(243, 179, 22, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--sagaz-muted);
}

/* Footer */
.footer {
  background: var(--sagaz-graphite);
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer a {
  display: block;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 200ms ease;
}

.footer a:hover {
  color: var(--sagaz-yellow);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 700ms ease-out forwards;
}

/* Utilitários */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

.bg-light {
  background: linear-gradient(135deg, #fbfaf6 0%, #ffffff 50%, #f4f2eb 100%);
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar-toggler {
    border: none;
    padding: 0;
  }

  .navbar-nav {
    margin-top: 1rem;
  }

  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero .editorial-image {
    margin-top: 2rem;
    max-height: 350px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;750;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');
