:root {
  --bg: #001f3f;
  --primary: #001a33;
  --accent: #003d73;
  --light: #eaecef;
  --brand: #ffd700;
  --brand-dark: #cc9900;
  --blue-light: #2196F3;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --footer-bg: #001122;
  --footer-text: #cbd5e1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(0, 26, 51, 0.50);
  color: #fff;
  padding: 56px 24px;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 26, 51, 0.5) 0%, rgba(0, 61, 115, 0.4) 100%);
  z-index: 0;
}

header .container {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

.brand a {
  display: block;
}

.logo {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.desktop-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

/* Banner Rotativo */
.banner-slider {
  position: relative;
  min-height: 180px;
  margin-bottom: 20px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: all;
}

.banner-indicators {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-start;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 215, 0, 0.5);
  transform: scale(1.1);
}

.indicator.active {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
}

.tagline {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 18px;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-primary {
  background: var(--brand);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--primary);
}

.card p {
  margin: 8px 0;
  color: var(--text-secondary);
}

.card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

.contact-card {
  height: 100%;
}

.small-text {
  font-size: 12px;
  opacity: 0.8;
}

/* Service Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.service-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* Badge */
.badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  color: #ffffff;
  border: 1px solid var(--brand);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Sections */
section {
  padding: 60px 24px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 700;
}

.intro-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.section-subtitle {
  font-size: 24px;
  color: var(--primary);
  margin: 32px 0 20px;
  font-weight: 700;
}

/* Sobre Nós Section */
.sobre-hero {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sobre-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 48px 0;
}

.sobre-text h3 {
  font-size: 28px;
  color: var(--primary);
  margin: 0 0 8px;
}

.role {
  font-size: 16px;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 20px;
}

.sobre-text p {
  margin: 16px 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.sobre-imagem {
  position: relative;
}

.sobre-profile {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.sobre-profile:hover {
  transform: scale(1.02);
}

/* Galeria de Serviços */
.servicos-galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.galeria-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lists */
.list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.list-item {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.list-item:hover {
  border-color: var(--brand);
  background: rgba(0, 200, 83, 0.02);
}

.list-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.contact-link {
  font-size: 18px;
  font-weight: 600;
}

.cta-card {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.15));
  border: 2px solid var(--brand);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.cta-card p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #000000;
  font-weight: 600;
}

.cta-card strong {
  color: #000000;
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-grid strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-grid p {
  margin: 8px 0;
  color: var(--footer-text);
}

.footer-grid a {
  color: var(--brand);
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin: 6px 0;
  padding-left: 12px;
  position: relative;
}

.footer-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--brand);
  color: var(--brand-dark);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #00e05e;
  transform: translateY(-4px);
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .banner-slider {
    min-height: 160px;
  }

  h1 {
    font-size: 32px;
  }

  .tagline {
    font-size: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .servicos-galeria {
    grid-template-columns: 1fr;
  }

  .banner-slider {
    min-height: 140px;
  }

  h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 15px;
  }

  .banner-indicators {
    justify-content: center;
    margin-top: 16px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  header {
    padding: 32px 16px;
  }

  section {
    padding: 40px 16px;
  }

  .cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .brand {
    font-size: 0.95rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .whatsapp-float {
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}
