/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --color-primary: #cc0002;
  --color-primary-hover: #a50002;
  --color-primary-light: #fef2f2;

  /* Secondary */
  --color-secondary: #0f172a;

  /* Surface */
  --color-surface: #ffffff;
  --color-surface-light: #f8fafc;
  --color-surface-dark: #e2e8f0;

  /* Semantic */
  --color-success: #16a34a;
  --color-error: #cc0002;

  /* Text */
  --color-foreground: #0f172a;
  --color-background: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-surface-light);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* Antialiasing para imagem */
  image-rendering: auto;
  filter: blur(0.5px) contrast(1.1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: -0.025em;
  transition: color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  filter: blur(0.4px) contrast(1.1);
}

.logo-text:hover {
  color: var(--color-primary-hover);
}

/* Nav Desktop */
.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--color-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

/* Language Switch Button */
.lang-switch {
  background-color: #606060;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  filter: grayscale(0) brightness(1);
}

.lang-switch:hover {
  background-color: #4a4a4a;
  color: white !important;
}

/* Mobile Menu */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-nav {
  display: none;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-light);
  padding: 0.5rem 1rem 0.75rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--color-foreground);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s;
}

.mobile-nav a:hover {
  background-color: var(--color-surface-light);
  color: var(--color-primary);
}

/* Main Content */
main {
  flex-grow: 1;
  padding-top: 4rem;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-surface-dark);
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero {
    height: 700px;
  }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--color-background), rgba(255, 255, 255, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: white;
  width: 100%;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: bold;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero p {
  font-size: 1.125rem;
  color: #e5e7eb;
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-weight: 300;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn {
  padding: 0.75rem 2rem;
  font-weight: bold;
  border-radius: 0.375rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: #606060;
  color: white;
}

.btn-secondary:hover {
  background-color: #a0a0a0;
}

/* Services Section */
.section {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--color-primary);
  margin: 0 auto;
  border-radius: 9999px;
}

.section-header p {
  margin-top: 1rem;
  color: #4b5563;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-surface-light);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(204, 0, 2, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.625;
}

/* Footer */
footer {
  background-color: var(--color-surface);
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid var(--color-surface-light);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-brand {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-brand {
    margin-bottom: 0;
    align-items: flex-start;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s;
}

.footer-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-foreground);
}

.footer-tagline {
  font-size: 0.875rem;
  color: #9ca3af;
  max-width: 20rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-tagline {
    text-align: left;
  }
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-surface-light);
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.nav-desktop a.active {
  color: var(--color-primary);
  font-weight: bold;
}

/* Fonte Inter aplicada - suave e moderna */

/* Anti-aliasing simples e limpo */
.logo-text,
h1,
h2,
h3,
h4,
h5,
h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Especial para logo */
.logo-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 1px rgba(204, 0, 2, 0.3),
    0 0 2px rgba(204, 0, 2, 0.1);
}

.blog-main {
  padding-top: 0px !important;
}