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

html {
  overflow-x: hidden;
}

:root {
  --primary: #2d3093;
  --primary-dark: #1e2070;
  --primary-light: #3d42b8;
  --secondary: #bb8706;
  --secondary-dark: #9a6f05;
  --bg: #0d0e1a;
  --bg-alt: #111226;
  --bg-card: #181a30;
  --text: #e8e8f0;
  --text-muted: #9090ab;
  --border: rgba(255,255,255,0.07);
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

#header.scrolled {
  background: rgba(13, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

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

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  width: 100%;
  justify-content: center;
}

.section {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/guarda-corpo.webp') center center / cover no-repeat;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 14, 26, 0.92) 0%,
    rgba(45, 48, 147, 0.55) 50%,
    rgba(13, 14, 26, 0.85) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(187, 135, 6, 0.12);
  border: 1px solid rgba(187, 135, 6, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--secondary);
  font-style: normal;
}

.hero-content p:not(.hero-badge) {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(232,232,240,0.85);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  display: block;
  width: 4px;
  height: 10px;
  background: var(--secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s ease infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 48, 147, 0.5);
  box-shadow: 0 16px 40px rgba(45, 48, 147, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

.service-info {
  padding: 20px;
}

.service-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.service-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--secondary);
  color: #0d0e1a;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.about-badge strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars {
  color: var(--secondary);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author {
  background: none;
  padding: 0;
  margin-top: auto;
}

.testimonial-author cite {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  color: #fff;
  font-size: 0.95rem;
}

.contact-item p,
.contact-item address {
  font-style: normal;
}

.contact-item p,
.contact-item time {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-map {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  filter: invert(90%) hue-rotate(180deg);
}

#footer {
  background: #080910;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.dev-credit {
  position: absolute;
  bottom: 14px;
  left: 20px;
  font-size: 11px;
  color: rgba(144, 144, 171, 0.55);
}

.dev-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dev-credit a:hover {
  color: rgba(144, 144, 171, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-region {
  font-size: 0.8rem;
  color: rgba(144, 144, 171, 0.5);
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2).animate-on-scroll { transition-delay: 0.08s; }
.service-card:nth-child(3).animate-on-scroll { transition-delay: 0.16s; }
.service-card:nth-child(4).animate-on-scroll { transition-delay: 0.24s; }
.service-card:nth-child(5).animate-on-scroll { transition-delay: 0.08s; }
.service-card:nth-child(6).animate-on-scroll { transition-delay: 0.16s; }
.service-card:nth-child(7).animate-on-scroll { transition-delay: 0.24s; }
.service-card:nth-child(8).animate-on-scroll { transition-delay: 0.32s; }

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

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

  .about-image {
    display: none;
  }

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

}

@media (max-width: 768px) {
  #nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    align-items: center;
    justify-content: center;
  }

  #nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav-link {
    font-size: 1.3rem;
    padding: 12px 24px;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }
}

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

  .logo img {
    height: 42px;
  }
}
