:root {
  --deep-blue: #002F62;
  --deep-blue-90: #14487c;
  --deep-blue-60: #4475a3;
  --deep-blue-40: #7697bd;
  --deep-blue-20: #b5c7da;
  --deep-blue-10: #dde8f2;

  --vivid-blue: #82CEEB;
  --vivid-blue-80: #9fd7ef;
  --vivid-yellow: #FFDF00;
  --snow-white: #F0F0EC;
  --color-bg: var(--snow-white);
  --color-white: #fff;
  --color-text: var(--deep-blue);
  --color-title: var(--deep-blue);

  --shadow: 0 6px 28px 0 rgba(0,47,98,0.11);
  --shadow-hover: 0 10px 40px 0 rgba(0,47,98,0.19);

  --max-width: 1200px;
  --section-padding: 64px 16px;
  --gap: 32px;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', Arial, sans-serif;
}

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

.container {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* --------- NAVIGATION FIXO --------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--deep-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 70px;
  z-index: 999;
  min-width: 0;
  box-shadow: 0 1px 12px 0 rgba(0,47,98,0.08);
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 70px;
}

.navbar-logo-link a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  height: 70px;
}

.navbar-logo-img {
  height: 42px;
  display: none;
  transition: opacity 0.4s;
}
.navbar.show-logo .navbar-logo-img {
  display: inline-block;
  opacity: 1;
}
.navbar-arqea-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  transition: color 0.3s;
}

/* Menu lateral */
.navbar-menu {
  display: flex;
  gap: 24px;
  padding-right: 70px;
}

.navbar-menu a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 0;
  transition: color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--vivid-yellow);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.1rem;
  cursor: pointer;
  padding: 0 30px;
}

@media (max-width: 900px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: var(--deep-blue);
    position: absolute;
    right: 0;
    top: 70px;
    width: 210px;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding-right: 0;
    padding-left: 18px;
    min-width: 0;
  }
  .navbar-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* --------- HERO --------- */
header.hero {
  background: linear-gradient(120deg, var(--deep-blue), var(--vivid-blue));
  color: var(--color-white);
  text-align: center;
  padding: 90px 16px 48px 16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  position: relative;
  min-width: 0;
  box-shadow: 0 6px 32px 0 rgba(0,47,98,0.13);
}

.logo-hero {
  display: block;
  margin: 0 auto 24px auto;
  max-width: 280px;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.hero-text {
  max-width: 540px;
  margin: 0 auto 32px auto;
}
.cta-btn {
  background: var(--vivid-yellow);
  color: var(--deep-blue);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.cta-btn:hover {
  background: var(--vivid-blue);
  color: var(--white);
  box-shadow: var(--shadow-hover);
}

/* SECTION Titles */
.section {
  padding: var(--section-padding);
  min-width: 0;
}
.section-title {
  font-size: 2rem;
  color: var(--color-title);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* HIGHLIGHTS */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;
  margin-top: 36px;
  min-width: 0;
}
.highlight {
  background: var(--vivid-blue-10);
  padding: 24px 20px;
  min-width: 220px;
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1 1 220px;
}
.highlight-main {
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-blue-60);
  margin-bottom: 8px;
}

/* SERVIÇOS */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.service-card {
  background: var(--color-white);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  border-bottom: 4px solid var(--vivid-yellow);
  transition: box-shadow .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
}
.service-icon {
  width: 130px;
  height: 130px;
  margin-bottom: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.service-title {
  font-weight: 700;
  color: var(--deep-blue-90);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* FRAMEWORK */
.framework-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.framework-img {
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: var(--shadow);
  background: var(--vivid-blue-20);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.framework-text {
  flex: 2 1 300px;
  min-width: 0;
}
.framework-text ul {
  margin-left: 18px;
}

/* FRAMEWORK */
.eva-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.eva-img {
  flex: 1 1 300px;
  max-width: 350px;
  box-shadow: var(--shadow);
  background: var(--vivid-blue-20);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.eva-text {
  flex: 2 1 300px;
  min-width: 0;
}
.eva-text ul {
  margin-left: 18px;
}

/* CLÃ DE ARQUITETURA */
.clan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--gap);
  justify-items: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.clan-card {
  background: var(--vivid-blue-10);
  box-shadow: var(--shadow);
  padding: 36px 10px 30px 10px;
  text-align: center;
  width: 200px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--deep-blue-40);
  margin: 0;
}
.clan-icon {
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
  margin-top: 0;
}
.clan-title {
  font-weight: 600;
  color: var(--deep-blue-90);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* DIFERENCIAIS */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  min-width: 0;
}
.badge {
  display: flex;
  flex-direction: column;
  gap: 6px;

  background: var(--vivid-yellow-40);
  color: var(--deep-blue);

  padding: 14px 20px;
  border-radius: 12px;

  border: 1.5px solid var(--vivid-yellow);
  box-shadow: var(--shadow);

  transition: all .3s ease;
}
.badge:hover {
  transform: translateY(-3px);
}

.badge-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-desc {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: .85;
}
.badge-icon {
  font-size: 1.2rem;
  color: var(--vivid-yellow);
}

/* CASES */
.cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
  margin-top: 32px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.case-card {
  background: var(--color-white);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-height: 180px;
  border-left: 4px solid var(--vivid-blue-80);
  min-width: 0;
  transition: box-shadow .2s;
}
.case-card:hover {
  box-shadow: var(--shadow-hover);
}
.case-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  min-width: 0;
}
.case-avatar {
  width: 38px;
  height: 38px;
  background: #e1e9f0;
  object-fit: cover;
  min-width: 0;
}
.case-name {
  font-weight: 700;
  color: var(--deep-blue-60);
  font-size: 1.07rem;
}
.case-role {
  color: #7a8ca3;
  font-size: 0.9rem;
}

/* FORM CONTATO */
.contact-form {
  background: var(--vivid-blue-10);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  box-sizing: border-box;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--deep-blue-20);
  padding: 13px;
  font-size: 1rem;
  background: var(--color-white);
  resize: none;
  outline: none;
  transition: border .2s;
  color: var(--deep-blue);
  min-width: 0;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--vivid-blue);
}
.contact-form button {
  background: var(--vivid-blue-80);
  color: var(--deep-blue);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 0;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.contact-form button:hover {
  background: var(--deep-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-hover);
}

.honeypot-field {
  display: none;
}

/* FOOTER */
footer {
  background: var(--deep-blue);
  color: var(--color-white);
  text-align: center;
  padding: 36px 12px;
  margin-top: 48px;
  font-size: 1rem;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 -1px 16px 0 rgba(0,47,98,0.10);
}
.footer-links {
  margin: 14px 0;
}
.footer-links a {
  color: var(--vivid-blue);
  text-decoration: none;
  margin: 0 14px;
  font-weight: 600;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--vivid-yellow);
}
.footer-logo-large {
  width: 230px;
  max-width: 95vw;
  display: block;
  margin: 0 auto 18px auto;
}

/* BOTÃO "VOLTAR AO TOPO" FIXO */
.btn-backtotop-fixed {
  position: fixed;
  right: 28px;
  bottom: 36px;
  z-index: 1001;
  background: var(--vivid-blue-80, #9fd7ef);
  border: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, opacity .2s, visibility .2s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 100vw;
}
.btn-backtotop-fixed svg {
  display: block;
}
.btn-backtotop-fixed:hover {
  background: var(--deep-blue-40, #7697bd);
}
.btn-backtotop-fixed.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .logo-hero {
    max-width: 225px;
    margin-bottom: 14px;
  }
  .footer-logo-large {
    width: 170px;
  }
  .btn-backtotop-fixed {
    right: 10px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
  .clan-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
  .clan-card {
    width: 140px;
    height: 150px;
    padding: 18px 5px 14px 5px;
  }
  .clan-icon {
  width: 90px;
  height: 90px;
  }
}

/* Co-fundadores */
.cofounders-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 36px;
}
.cofounder-card {
  background: var(--vivid-blue-10);
  box-shadow: var(--shadow);
  padding: 32px 30px 24px 30px;
  text-align: center;
  width: 340px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
.cofounder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,47,98,.07);
  margin-bottom: 14px;
}
.cofounder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-blue-90);
}
.cofounder-role {
  font-size: 1rem;
  color: var(--deep-blue-60);
  margin-bottom: 7px;
}
.cofounder-desc {
  font-size: 0.98rem;
  color: #264c75;
  margin-top: 6px;
}
.cofounder-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s, box-shadow 0.14s;
  border-radius: 50%;
  outline: none;
  box-shadow: none;
}
.cofounder-linkedin:hover svg circle {
  fill: #0a66c2;
}
.cofounder-linkedin svg {
  display: block;
}

/* Parcerias */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 18px;
}
.partner-card {
  background: var(--color-white);
  box-shadow: var(--shadow);
  padding: 22px 18px 12px 18px;
  text-align: center;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 8px;
}
.partner-name {
  font-size: 1.04rem;
  color: var(--deep-blue-90);
  font-weight: 600;
}
.partners-info {
  margin-top: 18px;
  color: #4d6f9a;
  font-size: 1.04rem;
  text-align: center;
}

@media (max-width: 900px) {
  .cofounders-list {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .cofounder-card {
    width: 98%;
    min-width: unset;
    max-width: 360px;
  }
}
