/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-primary: #4A6CF7;
  --blue-dark: #3B5DE7;
  --blue-light: #EEF1FB;
  --blue-bg: #F4F6FC;
  --white: #ffffff;
  --text-dark: #1E2A3A;
  --text-body: #4A5568;
  --text-label: #2D3748;
  --card-border: #E8ECF4;
  --card-shadow: rgba(74, 108, 247, 0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Header ===== */
.header {
  padding: 16px 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.header-pill {
  background: var(--blue-primary);
  border-radius: 50px;
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Entrar Button */
.btn-entrar {
  display: none;
  color: var(--blue-primary);
  background: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  border: 2px solid var(--white);
}

.btn-entrar:hover {
  background: transparent;
  color: var(--white);
}

/* Hamburger */
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.hamburger img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
}

.hamburger.hamburger-open {
  background: var(--white);
}

.hamburger.hamburger-open img {
  width: 18px;
  height: 18px;
  border-radius: 0;
}

.hamburger:hover {
  opacity: 0.9;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  background: var(--white);
  border-radius: 0 0 20px 20px;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 4px;
}

.mobile-nav-link {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 12px;
  transition: background var(--transition);
}

.mobile-nav-link:hover {
  background: var(--blue-light);
}

.btn-entrar-mobile {
  background: var(--blue-primary);
  color: var(--white) !important;
  text-align: center;
  border-radius: 50px;
  margin-top: 8px;
  font-weight: 600;
}

.btn-entrar-mobile:hover {
  background: var(--blue-dark);
}

/* ===== Hero ===== */
.hero {
  padding: 48px 24px 40px;
  text-align: center;
  background: var(--white);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 32px;
}

.hero-title strong {
  font-weight: 800;
  display: block;
  font-size: 32px;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.btn-primeiro-acesso {
  display: inline-block;
  background: var(--blue-primary);
  color: var(--white);
  padding: 16px 60px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.35);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.btn-primeiro-acesso:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(74, 108, 247, 0.45);
  transform: translateY(-2px);
}

.btn-primeiro-acesso:active {
  transform: translateY(0);
}

.hero-login-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.link-clique {
  color: var(--blue-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.link-clique:hover {
  color: var(--blue-dark);
}

.mobile-br {
  display: inline;
}

/* ===== Services ===== */
.services {
  background: var(--blue-bg);
  padding: 40px 24px 48px;
  flex: 1;
}

.services-content {
  max-width: 900px;
  margin: 0 auto;
}

.services-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-left: 4px;
}

.services-title strong {
  font-weight: 700;
}

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

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid var(--card-border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 4px 20px var(--card-shadow);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:active {
  transform: translateY(-1px);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-label);
  line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #5B7BFF 100%);
  padding: 40px 24px 32px;
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
}

/* ===== Accessibility Button ===== */
.accessibility-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(74, 108, 247, 0.4);
  z-index: 200;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0;
  overflow: hidden;
}

.accessibility-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accessibility-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

/* ===== Desktop Breakpoint ===== */
@media (min-width: 768px) {
  .header {
    padding: 20px 32px 0;
  }

  .header-pill {
    padding: 10px 12px 10px 28px;
  }

  .desktop-nav {
    display: flex;
  }

  .btn-entrar {
    display: inline-block;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .hero {
    padding: 60px 32px 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-title strong {
    font-size: 40px;
    display: inline;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    align-items: center;
  }

  .btn-primeiro-acesso {
    width: auto;
    padding: 16px 48px;
  }

  .hero-login-text {
    text-align: left;
  }

  .mobile-br {
    display: none;
  }

  .services {
    padding: 48px 32px 64px;
  }

  .services-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 32px;
    padding-left: 0;
  }

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

  .service-card {
    padding: 28px 24px;
  }

  .footer {
    padding: 48px 32px 36px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1024px) {
  .nav-link {
    font-size: 14px;
    padding: 8px 14px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-title strong {
    font-size: 46px;
  }

  .service-card {
    padding: 32px 28px;
    gap: 18px;
  }

  .service-label {
    font-size: 15px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: fadeInUp 0.6s ease-out;
}

.hero-actions {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.service-card {
  animation: fadeInUp 0.5s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }
.service-card:nth-child(7) { animation-delay: 0.4s; }
.service-card:nth-child(8) { animation-delay: 0.45s; }

/* ===== Login Page ===== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 40px 24px 80px;
  background: var(--white);
}

.login-box {
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.back-link {
  display: inline-block;
  color: var(--blue-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--blue-dark);
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-label);
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  background: var(--white);
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
}

.form-input::placeholder {
  color: #A0AEC0;
}

.input-hint {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.btn-submit {
  background: var(--blue-primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
  box-shadow: 0 4px 20px rgba(74, 108, 247, 0.35);
  margin-top: 8px;
  width: 100%;
}

.btn-submit:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(74, 108, 247, 0.45);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.alert-error {
  background: #FFF5F5;
  color: #C53030;
  border: 1px solid #FED7D7;
}

