/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — Microlins Barreiras LP
   ═══════════════════════════════════════════════ */

:root {
  /* Palette — Microlins Brand */
  --primary:        #002776;
  --primary-dark:   #001b4f;
  --primary-light:  #003da6;
  --secondary:      #ffd700;
  --secondary-dark: #e6c200;

  /* Surfaces */
  --bg-body:     #f7f8fc;
  --bg-surface:  #ffffff;
  --bg-card:     rgba(255, 255, 255, 0.85);
  --bg-dark:     #001840;

  /* Borders */
  --border:       rgba(0, 39, 118, 0.08);
  --border-hover: rgba(0, 39, 118, 0.2);

  /* Text */
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #94a3b8;
  --text-on-dark:   #f1f5f9;
  --text-on-primary:#ffffff;

  /* Accents */
  --accent-glow:    rgba(0, 39, 118, 0.25);
  --gold-glow:      rgba(255, 215, 0, 0.3);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container:  min(1200px, 92vw);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 50px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ═══════════════════ RESET & BASE ═══════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}


/* ═══════════════════ NAV ═══════════════════ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition:
    background 0.4s var(--ease),
    padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

header.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  padding: 0.6rem 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--border);
}

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

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

.logo img {
  height: 44px;
  transition: transform 0.3s var(--ease);
}

.logo img.logo-dark {
  display: none;
}

.logo img.logo-light {
  display: block;
}

header.nav--scrolled .logo img.logo-dark {
  display: block;
}

header.nav--scrolled .logo img.logo-light {
  display: none;
}

.logo img:hover {
  transform: scale(1.04);
}


/* ═══════════════════ BUTTONS ═══════════════════ */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-on-primary);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.cta-button:active {
  transform: translateY(0);
}


/* ═══════════════════ HERO ═══════════════════ */

.hero {
  position: relative;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0, 39, 118, 0.85), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0, 61, 166, 0.6), transparent),
    linear-gradient(to bottom, rgba(0, 39, 118, 0.75) 40%, rgba(0, 24, 64, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero .cta-button {
  background: rgba(0, 39, 118, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  animation: heroPulse 3s ease-in-out infinite;
}

.hero .cta-button:hover {
  background: rgba(0, 39, 118, 0.85);
  box-shadow: 0 8px 40px rgba(0, 39, 118, 0.4), 0 0 60px rgba(255, 215, 0, 0.1);
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
  50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.3), 0 0 60px rgba(0, 39, 118, 0.2); }
}


/* ═══════════════════ COUNTDOWN ═══════════════════ */

.countdown {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--text-primary);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.countdown #time {
  font-weight: 800;
  font-size: 1.1em;
  color: var(--primary);
}


/* ═══════════════════ BENEFITS ═══════════════════ */

.benefits {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
}

.benefits h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.benefit-items {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.benefit-item {
  flex-basis: 45%;
  max-width: 420px;
  text-align: center;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.benefit-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 40px rgba(0, 39, 118, 0.04);
}

.benefit-item img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease);
}

.benefit-item:hover img {
  transform: scale(1.03);
}

.benefit-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ═══════════════════ COURSES ═══════════════════ */

.courses {
  padding: var(--section-py) 0;
  background: var(--bg-body);
}

.courses h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 39, 118, 0.05);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.course-card:hover img {
  transform: scale(1.05);
}

.course-info {
  padding: 1.5rem;
}

.course-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.course-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-info .cta-button {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}


/* ═══════════════════ LEAD FORM ═══════════════════ */

.lead-form {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  margin: 3rem auto;
  position: relative;
  z-index: 2;
}

.lead-form h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#lead-capture-form {
  display: flex;
  flex-direction: column;
}

#lead-capture-form input,
#lead-capture-form select {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: var(--bg-surface);
}

#lead-capture-form input:focus,
#lead-capture-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#lead-capture-form button {
  margin-top: 0.5rem;
}

#lead-capture-form p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}


/* ═══════════════════ TESTIMONIALS ═══════════════════ */

.testimonials {
  background: linear-gradient(135deg, var(--primary), var(--bg-dark));
  color: var(--text-on-dark);
  padding: var(--section-py) 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--r-lg);
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
  opacity: 0.9;
}

.testimonial-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.testimonial-card img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}


/* ═══════════════════ CTA SECTION ═══════════════════ */

.cta-section {
  text-align: center;
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--secondary), #ffe44d);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(0, 39, 118, 0.06), transparent),
    radial-gradient(ellipse 30% 40% at 30% 50%, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 2rem;
  position: relative;
}

.cta-section .cta-button {
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 39, 118, 0.25);
}


/* ═══════════════════ FOOTER ═══════════════════ */

footer {
  background: var(--text-primary);
  color: var(--text-on-dark);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

footer p {
  opacity: 0.7;
}


/* ═══════════════════ WHATSAPP BUTTON ═══════════════════ */

.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 100;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: whatsappBounce 3s ease-in-out infinite;
}

.whatsapp-button:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* ═══════════════════ REVEAL ANIMATIONS ═══════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 100px 0 60px;
  }

  .benefit-items {
    flex-direction: column;
    align-items: center;
  }

  .benefit-item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .benefit-item img {
    width: 200px;
    height: 200px;
  }

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

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

@media (max-width: 480px) {
  .whatsapp-button {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .benefit-item img {
    width: 180px;
    height: 180px;
  }
}
