/* ========== VARIÁVEIS DE COR ========== */
:root {
  --primary: #0b2a45;
  --secondary: #2f8f54;
  --accent: #c9a14a;
  --danger: #c0392b;
  --light-bg: #fdfdf8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 24px rgba(47, 143, 84, 0.15);
}

/* ========== RESET E BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--light-bg);
  color: #333;
  line-height: 1.6;
}

/* ========== HEADER ========== */
header {
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
}

.logo-icon {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid #042342;
  background: #fff;
}

.logo-text {
  font-size: 1.3em;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

header nav {
  display: flex;
  gap: 30px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--accent);
}

/* Botões de navegação inseridos como <button class="nav-btn"> */
header nav .nav-btn {
  background: rgba(201, 161, 74, 0.08);
  color: white;
  border: 2px solid var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

header nav .nav-btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 161, 74, 0.3);
}

header nav .nav-btn:active {
  transform: translateY(0);
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 3em;
  color: var(--primary);
  margin-bottom: 16px;
}

.destaque {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

.hero button {
  padding: 15px 30px;
  font-size: 1em;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.hero button:hover {
  background-color: #256c41;
}

/* ========== SERVIÇOS ========== */
.services {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
  flex-wrap: wrap;
}

/* Centered services helper class (used when fewer cards remain) */
.services--centered {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 60px 0 0 0;
  padding: 40px 20px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
  color: inherit !important;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  color: #666;
  font-size: 1em;
}

.service-icon {
  font-size: 2em;
  margin-bottom: 10px;
  color: goldenrod;
}

/* ========== FORMULÁRIOS ========== */
.cadastro-form,
.login-form {
  background: #fff;
  padding: 24px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
}

.cadastro-form h2,
.login-form h1 {
  margin-bottom: 16px;
  color: var(--primary);
}

.cadastro-form input,
.login-form input,
.cadastro-form select,
.login-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.cadastro-form button,
.login-form button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.cadastro-form button:hover,
.login-form button:hover {
  background: #256c41;
}

.form-error {
  color: var(--danger);
  font-weight: bold;
  margin: 10px 0;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 10px 0;
}

/* ========== UTILITÁRIOS ========== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-box {
  background: #fff;
  max-width: 700px;
  margin: 40px auto;
  padding: 24px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: left;
}

.content-box h2 {
  color: var(--primary);
  margin-bottom: 16px;
}

.content-box p {
  color: #555;
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .hamburger {
    display: flex;
  }

  header nav {
    display: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    background-color: rgba(11, 42, 69, 0.95);
    padding: 15px;
    border-radius: 6px;
    position: absolute;
    top: 80px;
    left: 15px;
    right: 15px;
    z-index: 1000;
  }

  header nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2em;
  }

  .destaque {
    font-size: 1.2em;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
    max-width: 300px;
  }

  .cadastro-form,
  .login-form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  .logo-text {
    font-size: 1.1em;
  }

  header nav a {
    margin-left: 10px;
    font-size: 0.9em;
  }

  header nav .nav-btn {
    padding: 6px 10px;
    font-size: 0.85em;
    border-width: 1px;
  }

  .hero h1 {
    font-size: 1.5em;
  }

  .hero p {
    font-size: 1em;
  }
}
