:root {
  --primary: #0039ee;
  --primary-light: #0039ee;
  --nav: #e6eef6;
  --text: #1c1f26;
  --muted: #5f6c7b;
  --background: #f5f7fa;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  color: var(--text);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-nav {
  background: var(--primary);
  width: 100%;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  position: relative;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  align-self: center;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--nav);
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.language-switcher button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-switcher button img {
  width: 32px;
  height: 20px;
  object-fit: cover;
}

main {
  margin-top: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 10% 60px;
  color: var(--white);
  background: url('./assets/background.png') center/cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 1;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.hero,
.section {
  scroll-margin-top: 120px;
}

.hero h1 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 2.6rem;
  color: #dfe8f4;
  line-height: 1.2;
}

/* Sections */
.section {
  padding: 65px 10%;
  background: var(--background);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.section + .section {
  border-top: 1px solid #e1e5eb;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary);
  text-align: center;
}

.section-title.center {
  text-align: center;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 4px;
}

.section-subtitle {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 24px 0 12px;
  text-align: center;
}

.section-text {
  color: var(--muted);
  max-width: 900px;
  font-size: 1.4rem;
  /* margin: 0 auto; */
  text-align: start;
}

.text-training {
  color: var(--muted);
  font-weight: bold;
  font-size: 1.4rem;
  /* text-align: start; */
}

#sobre {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.about-pillars {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.pillar-card {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 300px;
  opacity: 0;
  transform: translateX(-300px);
  transition: opacity 0.5s ease, transform 1s ease-out;
}

.pillar-card.visible, .services-cards.visible,
.training-visual img.visible {
  opacity: 1;
  transform: translateX(0);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Services */
.services-block {
  min-height: 90vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
  position: relative;
  max-width: 1599px;
}

.services-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  border-radius: 4px;
  background: var(--primary);
}

.services-list li {
  flex: 1 1 calc(50% - 20px);
  min-width: 240px;
  max-width: 520px;
}

.services-list li:nth-child(odd) {
  padding-right: clamp(16px, 2vw, 28px);
}

.services-list li:nth-child(even) {
  padding-left: clamp(16px, 2vw, 28px);
}

.services-list h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.services-list p {
  color: var(--muted);
}

.services-training {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.training-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.services-cards-block {
  /* min-height: 90vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.pillar-card.visible, .service-card.visible,
.training-visual img.visible {
  opacity: 1;
  transform: translateX(0);
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateX(-300px);
  transition: opacity 0.5s ease, transform 1s ease;
  /* transition: transform 0.25s ease, box-shadow 0.25s ease; */
  flex: 1 1 200px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(30, 95, 145, 0.08); */
  /* border-radius: 50%; */
}

.service-card-icon img {
  width: 34px;
  height: 34px;
}

.service-card-label {
  font-weight: 600;
  color: var(--primary);
}

.training-visual {
  max-width: 350px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.training-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-300px);
  transition: opacity 0.5s ease, transform 0.9s ease;
}

.training-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  color: var(--muted);
  /* align-items: center; */
  font-size: 1.2rem;
  text-align: start;
}

.services-training .section-text {
  font-weight: 700;
}

@media (max-width: 900px) {

  .about-pillars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
  }

  .training-layout {
    flex-direction: column;
    gap: 20px;
  }

  .training-visual {
    justify-content: flex-start;
  }

  .training-visual img {
    opacity: 0;
    transform: translateX(-300px);
    transition: opacity 0.5s ease, transform 0.9s ease;
  }

  .service-card {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.5s ease, transform 1s ease;
    /* transition: transform 0.25s ease, box-shadow 0.25s ease; */
  }

}

/* Contact */
.contact-section {
  padding: 0;
  background: #0039ee;
  color: #fff;
}

.contact-wrapper {
  padding: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 32px;
}

.contact-banner {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* flex: 1 1 360px; */
}

.link-especialista {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  align-self: center;
}

.contact-banner-text {
  font-size: 1.5rem;
  font-weight: 600;
  max-width: 550px;
}

.contact-banner-button {
  background: #fff;
  color: #000;
  padding: 12px 18px;
  max-height: 60px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.contact-banner-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-banner-button:hover,
.contact-banner-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
/* Footer */
.footer {
  background: #0039ee;
  color: var(--white);
  padding: 0 10% 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-text p {
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 550px;
  color: #e7edff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-social-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d5bcf;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-circle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-circle:hover,
.social-circle:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  /* align-self: center; */
}

.contact-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}

.footer-contact-item a:hover,
.footer-contact-item a:focus-visible {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 12px 18px 20px;
    display: none;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  }

  .nav-menu.open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 12px;
  }

  .language-switcher {
    gap: 6px;
  }

  .hero {
    padding: 0 8%;
    min-height: 100vh;
  }

  .hero-content {
    align-items: start;
    text-align: start;
  }

  .header-nav {
    padding: 10px 18px;
    justify-content: space-between;
  }

  .contact-wrapper {
    padding: 28px 0 0;
  }

  .contact-layout {
    flex-direction: column;
    align-items: center;
    row-gap: 18px;
  }

  .contact-left,
  .contact-right {
    display: flex;
    flex-direction: column; 
    gap: 18px;
    align-items: center;
    text-align: center;
  }

  .footer {
    padding: 0 7% 26px;
  }

  .contact-banner-button {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 7%;
  }

  .services-list li,
  .service-card {
    flex-basis: 100%;
  }

  .services-list li {
    padding: 0;
  }

  .services-list::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 8px;
  }

  .language-switcher {
    align-self: flex-start;
  }
}
