/* === Drupalizando — style.css === */

:root {
  --drupal-blue: #0678BE;
  --drupal-blue-dark: #045a8d;
  --dark: #1a1f2e;
  --dark-mid: #2d3748;
  --text: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--drupal-blue);
  color: var(--white);
  border-color: var(--drupal-blue);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--drupal-blue-dark);
  border-color: var(--drupal-blue-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--drupal-blue);
  border-color: var(--drupal-blue);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--drupal-blue);
  color: var(--white);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
}
.nav-logo img {
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.55));
  transition: filter 0.3s;
}
.navbar.scrolled .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--dark-mid); }
.navbar.scrolled .nav-links a:not(.btn):hover { color: var(--drupal-blue); }
.nav-links .btn { margin-left: 8px; }

/* --- Hero --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark) 0%, #0d1829 60%, #091224 100%);
  padding: 120px 0 80px;
  text-align: center;
}
.hero-content { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(6, 120, 190, 0.18);
  color: #7ec8f5;
  border: 1px solid rgba(6, 120, 190, 0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 auto 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

#hero .btn-ghost {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.28);
}
#hero .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.hero-apps {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-pill {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.app-pill:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}

/* --- Section shared --- */
section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Course Grid --- */
#cursos { background: var(--bg-light); }

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

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-card-icon {
  height: 130px;
  overflow: hidden;
  line-height: 0;
}
.course-card-icon svg {
  display: block;
  width: 100%;
  height: 130px;
}
.app-icon { display: flex; align-items: center; justify-content: center; }
.app-icon svg { width: 44px; height: 44px; }
.app-pill svg { width: 22px; height: 22px; display: block; }
.drupal-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.22);
  padding: 3px 8px;
  border-radius: 4px;
}

.course-card-body {
  padding: 16px 18px 12px;
  flex: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.level-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.level-iniciante    { background: #dcfce7; color: #166534; }
.level-intermediario { background: #fef9c3; color: #854d0e; }
.level-avancado     { background: #fee2e2; color: #991b1b; }
.level-expert       { background: #ede9fe; color: #5b21b6; }

.status-badge { font-size: 11px; font-weight: 600; }
.status-available { color: #16a34a; }
.status-soon      { color: var(--text-light); }

.course-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.course-card-body p {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 12px;
}
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
}
.course-tags li {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 3px;
  padding: 2px 7px;
}

.course-card-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.course-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}
.course-card-footer .btn { font-size: 11px; padding: 8px 14px; }

/* --- How it works --- */
#como-funciona { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--drupal-blue);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* --- About --- */
#sobre { background: var(--bg-light); }

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.about-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.about-photo-fallback {
  display: none;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--drupal-blue);
  color: var(--white);
  font-size: 42px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.about-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--drupal-blue);
  margin-bottom: 8px;
}
.about-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.about-title {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.about-content > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.about-content a { color: var(--drupal-blue); text-decoration: none; }
.about-content a:hover { text-decoration: underline; }

.about-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-mid);
  text-decoration: none !important;
}
.about-links a:hover { color: var(--drupal-blue); }

/* --- Email Capture --- */
#avise-me {
  background: linear-gradient(135deg, var(--dark) 0%, #0d1829 100%);
  text-align: center;
}
.email-capture h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.email-capture > p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.capture-form .form-row {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.capture-form input[type="text"],
.capture-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.capture-form input::placeholder { color: rgba(255,255,255,0.3); }
.capture-form input:focus { border-color: rgba(255,255,255,0.38); }

/* --- Footer --- */
#footer {
  background: #0d1118;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img {
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1) opacity(0.75);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.footer-links h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links a i { margin-right: 7px; }
.footer-revax-desc {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .course-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .about-links { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links a:not(.btn) { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .capture-form .form-row { flex-direction: column; align-items: stretch; }
  .capture-form input[type="text"],
  .capture-form input[type="email"] { min-width: 0; }
  .course-card-footer { flex-direction: column; align-items: flex-start; }
}
