/* ===== VARIABLES & BASE ===== */
:root {
  --color-primary: #41c387;
  --color-primary-dark: #32a16d;
  --color-bg: #0a0a0a;
  --color-bg-alt: #141414;
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --transition: all 0.3s ease;
  /* Margem de segurança para mobile */
  --safe-margin: 1.5rem;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
}

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

/* ===== LAYOUT & UTILS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--safe-margin);
}

.section {
  padding-block: 4rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #000;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(65, 195, 135, 0.5);
}

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

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

/* ===== HEADER (Mobile First) ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.menu-toggle {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: 0.4s ease-in-out;
}

.nav-links.active {
  left: 0;
}

.nav-links a {
  font-size: 1.5rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px; /* offset header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(10,10,10,1));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

/* ===== SERVICES GRID (INDEX) ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(65, 195, 135, 0.1);
}

.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.1);
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.service-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.service-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text h2 {
  text-align: left;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature {
  background: rgba(65, 195, 135, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

.feature h4 {
  margin-bottom: 0.5rem;
}

/* ===== REVIEWS SECTION ===== */
.reviews-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.reviews-container::-webkit-scrollbar {
  height: 6px;
}
.reviews-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.reviews-container::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.review-card {
  min-width: 100%;
  flex: 0 0 100%;
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  scroll-snap-align: center;
  text-align: center;
}

.review-stars {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.review-author {
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.9)), url('../fotos%20para%20site%20copereventos/eventos.webp') center/cover;
  padding: 5rem var(--safe-margin);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--color-bg-alt);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer-col p, .footer-col li {
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  color: #000;
}

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

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== SERVICOS PAGE SPECIFIC ===== */
.page-header {
  padding: 120px var(--safe-margin) 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,1)), url('../fotos%20para%20site%20copereventos/sonorizacao.webp') center/cover;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.service-row img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===== CONTATO PAGE SPECIFIC ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background: rgba(255,255,255,0.02);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px; /* Altura fixa segura para mobile */
}


/* ==========================================================
   TABLET & DESKTOP (Min-width: 768px)
========================================================== */
@media (min-width: 768px) {
  :root {
    --safe-margin: 2rem; /* Mais espaçamento lateral no desktop */
  }

  .section {
    padding-block: 6rem;
  }
  
  .logo img {
    height: 50px;
  }

  /* Header adjustments */
  header {
    background: rgba(10, 10, 10, 0.8);
  }
  .menu-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background: transparent;
  }
  .nav-links a {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
  .feature[style*="grid-column: 1 / -1"] {
    grid-column: 1 / -1;
  }

  .reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding-bottom: 1rem;
  }

  .review-card {
    min-width: 0;
    flex: none;
    padding: 2.5rem;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
  }

  /* Servicos Page */
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .service-row:nth-child(even) {
    direction: rtl;
  }
  .service-row:nth-child(even) > * {
    direction: ltr;
  }

  /* Contato Page */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .contact-info {
    padding: 3rem;
  }
  .map-container {
    height: 100%;
    min-height: 400px;
  }
  
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
  }
}
