/* ═══════════════════════════════════════════════
   Microlins Barreiras — Course Page Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --primary:        #002776;
  --primary-dark:   #001b4f;
  --bg-body:        #f7f8fc;
  --bg-surface:     #ffffff;
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #94a3b8;
  --text-on-dark:   #f1f5f9;
  --border:         rgba(0, 39, 118, 0.08);
  --accent-glow:    rgba(0, 39, 118, 0.25);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* ─────────────── HEADER ─────────────── */

header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-on-dark);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

header .logo-whatsapp {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .logo-whatsapp img {
  height: 50px;
  width: auto;
  transition: transform 0.3s var(--ease);
}

header .logo-whatsapp img:hover {
  transform: scale(1.05);
}

header h1 {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─────────────── CONTAINER ─────────────── */

.container {
  padding: 2.5rem;
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* ─────────────── COURSE DETAIL ─────────────── */

.course-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-detail img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.course-detail h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--primary);
  margin: 1rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.75rem;
}

.course-detail h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), rgba(0, 61, 166, 0.6));
  border-radius: 2px;
}

.course-detail > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.course-detail .description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.75;
}

.course-detail .description p {
  margin-bottom: 1rem;
}

.course-detail .description ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.course-detail .description ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.course-detail .description ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ─────────────── FOOTER ─────────────── */

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

footer p {
  opacity: 0.7;
}

/* ─────────────── WHATSAPP FLOAT ─────────────── */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: whatsappBounce 3s ease-in-out infinite;
}

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

.whatsapp-float img {
  width: 44px;
  height: 44px;
}

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

/* ─────────────── RESPONSIVE ─────────────── */

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem;
  }

  header .logo-whatsapp {
    flex-direction: column;
    gap: 0.5rem;
  }

  header .logo-whatsapp img {
    height: 40px;
    width: auto;
  }

  .container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 10px;
  }

  .whatsapp-float img {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 2rem;
    margin: 1.5rem auto;
  }

  .whatsapp-float img {
    width: 40px;
    height: 40px;
  }
}
