:root {
  --color-primary: #2c5282;
  --color-secondary: #bee3f8;
  --color-accent: #4299e1;
  --color-background: #f7fafc;
  --color-text: #2d3748;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

header {
  background-color: var(--color-primary);
  color: white;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--color-primary);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-secondary);
}

.hero {
  text-align: center;
  padding: 8rem 2rem 4rem;  
  background: linear-gradient(rgba(44, 82, 130, 0.9), rgba(44, 82, 130, 0.9));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-image {
  width: 100%;
  height: auto;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-text h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-text p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.service-card h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.missao blockquote {
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: 8px;
}

.keyword {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.keyword::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.keyword:hover::after {
  transform: scaleX(1);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-info .icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

textarea {
  height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.privacy-link {
  color: var(--color-primary);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

button {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background: var(--color-accent);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  padding: 1rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

html {
  scroll-padding-top: 80px; 
}

.subject-dropdown {
  position: relative;
  width: 100%;
}

.subject-button {
  width: 100%;
  padding: 0.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color 0.3s;
}

.subject-button:hover {
  border-color: var(--color-primary);
  background: white;
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.subject-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 4px;
  padding: 0.5rem;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subject-options.show {
  display: block;
}

.subject-options label {
  display: block;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subject-options label:hover {
  background-color: var(--color-background);
}

.subject-options input[type="checkbox"] {
  margin-right: 0.5rem;
}

.subject-button.active .dropdown-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
    height: auto;
  }
  
  .hero {
    padding-top: 10rem; 
  }
  
  .profile {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .profile-image {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}