/* ==========================================================================
   Astrotech Eletrônicos LTDA — Design System & Custom Styles
   ========================================================================== */

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

/* Design Tokens */
:root {
  /* Colors */
  --primary: #001564;
  --primary-dark: #000c3d;
  --primary-light: #1233a0;
  --accent: #009fe3;
  --claro-red: #e30613;
  --text: #1f2933;
  --text-light: #627d98;
  --muted: #4b5563;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #dbe3ef;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  /* Typography */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 21, 100, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 21, 100, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 21, 100, 0.1);
  --shadow-outline: 0 0 0 3px rgba(0, 159, 227, 0.35);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Focus States (Acessibilidade) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

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

/* Seções */
section {
  padding: 100px 0;
  position: relative;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-title);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  gap: 8px;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: white;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
  transform: translateY(0);
}

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

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1010;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

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

/* Toggler Menu Mobile */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1010;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 120px 0 100px 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
  background: radial-gradient(circle at 10% 20%, rgba(245, 247, 251, 1) 0%, rgba(255, 255, 255, 1) 90%);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 24px;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff5f5; /* Fundo vermelho suave */
  border: 1px solid rgba(227, 6, 19, 0.25); /* Borda vermelha Claro */
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.05);
}

.hero-badge span {
  color: var(--claro-red);
  font-weight: 800;
}

.hero-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-extra-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   Sobre a Empresa Section
   ========================================================================== */
.sobre-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-content {
  display: flex;
  flex-direction: column;
}

.sobre-label {
  font-family: var(--font-title);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.sobre-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.sobre-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.sobre-text p:last-child {
  margin-bottom: 0;
}

/* Grid de Cards de Credibilidade */
.credibilidade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cred-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cred-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cred-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.cred-card:hover .cred-icon {
  background-color: var(--primary);
  color: white;
}

.cred-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cred-text {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

/* ==========================================================================
   Serviços Section
   ========================================================================== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.servico-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition);
}

.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.servico-card:hover::before {
  width: 8px;
  background-color: var(--primary);
}

.servico-icon {
  width: 56px;
  height: 56px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  transition: var(--transition);
}

.servico-card:hover .servico-icon {
  background-color: var(--primary);
  color: white;
}

.servico-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.servico-text {
  color: var(--text-light);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ==========================================================================
   Contato Section
   ========================================================================== */
.contato-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.contato-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contato-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contato-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.contato-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contato-content {
  display: flex;
  flex-direction: column;
}

.contato-card-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contato-link {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: var(--transition-fast);
}

.contato-card:hover .contato-link {
  color: var(--accent);
}

.contato-link address {
  font-style: normal;
}

/* Box Lateral CTA */
.contato-box-cta {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contato-box-cta::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: var(--primary-light);
  border-radius: 50%;
  bottom: -60px;
  right: -60px;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.contato-cta-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.contato-cta-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.contato-box-cta .btn {
  align-self: flex-start;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   Rodapé / Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px 0;
  color: var(--text-light);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-relationship {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-relationship span {
  color: var(--claro-red);
  font-weight: 700;
}

.footer-dados-corporativos {
  max-width: 750px;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-link-item a {
  color: var(--muted);
  transition: var(--transition-fast);
}

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

.footer-copyright {
  color: var(--muted);
}

/* ==========================================================================
   Legal Pages Styling
   ========================================================================== */
.legal-main {
  padding: 60px 0 100px 0;
  background-color: var(--bg-soft);
}

.legal-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-title);
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: var(--font-title);
  color: var(--primary);
  margin: 32px 0 16px 0;
  font-weight: 700;
}

.legal-content h1 {
  font-size: 1.75rem;
}

.legal-content h2 {
  font-size: 1.35rem;
}

.legal-content h3 {
  font-size: 1.15rem;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-light);
}

.legal-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-dark);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.5);
  animation: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

@keyframes float-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   Responsive / Mobile Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .sobre-container {
    gap: 40px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* Globals */
  section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  /* Header & Navigation Mobile */
  .logo-img {
    height: 46px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 40px;
    transition: var(--transition);
    border-top: 1px solid var(--border);
    z-index: 1005;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
  }
  
  .nav-menu .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Hamburger Animado */
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Hero Section */
  .hero {
    padding: 80px 0 60px 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  /* Sobre Nós */
  .sobre-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sobre-content {
    text-align: center;
  }
  
  .sobre-title {
    font-size: 1.85rem;
  }
  
  .credibilidade-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cred-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Serviços */
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .servico-card {
    padding: 30px;
  }

  /* Contato */
  .contato-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .contato-box-cta {
    padding: 32px;
    text-align: center;
  }
  
  .contato-box-cta .btn {
    align-self: center;
    max-width: 280px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Legal Pages */
  .legal-card {
    padding: 30px 20px;
  }
  
  .legal-title {
    font-size: 1.85rem;
  }
  
  .legal-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  /* Floating WhatsApp Button Mobile Offset */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   Cookie Banner LGPD
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  max-width: 460px;
  background-color: rgba(0, 12, 61, 0.98); /* Fundo escuro (Primary Dark) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 12, 61, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9); /* Fonte em cor clara */
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent); /* Link destacado */
  text-decoration: underline;
  font-weight: 600;
}

.cookie-text a:hover {
  color: white;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner .btn {
  background-color: white !important;
  color: var(--primary-dark) !important;
  padding: 8px 24px;
  font-size: 0.85rem;
}

.cookie-banner .btn:hover {
  background-color: var(--accent) !important;
  color: white !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 20px;
    right: 20px;
    bottom: 90px;
    max-width: none;
    padding: 16px 20px;
  }
}
