/* ===== RESET & VARIÁVEIS ===== */
:root {
  --brand: #0C443C;
  --brand-light: #F1F5F0;
  --surface-1: #FFFFFF;
  --surface-2: #F7F7F5;
  --surface-3: #E9E9E6;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A57;
  --text-muted: #8A8A86;
  --border: #DEDEDA;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--surface-1);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ===== NAVEGAÇÃO ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface-1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 42px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 48px 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--brand);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 42px;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 22px auto 0;
  line-height: 1.65;
}

.hero-slogan {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--brand);
  margin-top: 36px;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-bottom: 14px;
}

.hero-slogan::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1.5px;
  background: var(--brand);
  opacity: 0.5;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTÕES ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-size: 12px;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-light);
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 0.5px solid var(--border);
}

.btn-secondary:hover { background: var(--surface-2); }

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

/* ===== ABOUT — OUR STORY ===== */
.about {
  padding: 96px 48px;
  background: var(--surface-1);
}

.about-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: -0.3px;
}

.about-story {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.about-story p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-story p:last-child { margin-bottom: 0; }

.about-partners {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.partner-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  background: var(--surface-1);
}

.partner-focus {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}

.partner-role {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.3px;
}

/* ===== JOURNEY — HOW IT WORKS ===== */
.journey {
  background: var(--brand);
  padding: 80px 48px;
}

.journey-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--brand-light);
  opacity: 0.55;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.journey-title {
  font-size: 30px;
  font-weight: 500;
  color: var(--brand-light);
  text-align: center;
  margin: 0 auto 64px;
  letter-spacing: -0.3px;
  display: block;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
}

.journey-step {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.journey-num {
  font-size: 40px;
  font-weight: 300;
  color: var(--brand-light);
  opacity: 0.5;
  display: block;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.journey-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-light);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
  line-height: 1.35;
}

.journey-step-desc {
  font-size: 12px;
  color: var(--brand-light);
  opacity: 0.75;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.journey-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-light);
  opacity: 0.35;
  border-radius: 2px;
}

/* ===== CORE ===== */
.core {
  padding: 96px 48px;
  background: var(--surface-2);
}

.core-container {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.core-text-block { flex: 1; }

.core-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.core-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.core-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.core-bullets {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.core-bullets li {
  font-size: 13px;
  color: var(--text-primary);
}

.core-visual {
  flex: 0 0 380px;
  aspect-ratio: 1.3 / 1;
  border-radius: 14px;
  min-height: 260px;
}

/* ===== SERVICES ===== */
.services {
  padding: 96px 48px;
  background: var(--surface-1);
}

.services-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 30px 26px;
  background: var(--surface-1);
  transition: border-color 0.2s;
}

.service-card:hover { border-color: var(--brand); }

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  color: var(--brand);
  font-size: 26px;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.service-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NETWORK ===== */
.network {
  padding: 96px 48px;
  background: var(--surface-2);
}

.network-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.network-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
  line-height: 1.75;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.network-item { text-align: center; }

.network-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-dot i {
  color: white;
  font-size: 20px;
}

.network-label {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
  display: block;
}

/* ===== CONTACT ===== */
.contact {
  padding: 96px 48px;
  background: var(--surface-1);
}

.contact-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.contact-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.flash-message {
  max-width: 600px;
  margin: 0 auto 28px;
  padding: 14px 20px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
}

.flash-message.success {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand);
}

.flash-message.error {
  background: #fff0f0;
  color: #b33;
  border: 1px solid #b33;
}

form#quoteForm {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface-2);
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group .error-message {
  font-size: 11px;
  color: #b33;
  min-height: 14px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: #b33; }

.btn-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form-loading {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface-2);
  padding: 72px 48px 32px;
  border-top: 0.5px solid var(--border);
}

.footer-cta {
  text-align: center;
  margin-bottom: 48px;
}

.footer-cta-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.footer-slogan {
  text-align: center;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.3px;
}

/* ===== POP-UP ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.popup-modal {
  background: var(--surface-1);
  max-width: 480px;
  width: 90%;
  padding: 44px 32px 36px;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  animation: slideUp 0.4s ease;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 10px;
}

.popup-close:hover { color: var(--text-primary); }

.popup-icon { margin-bottom: 20px; }

.popup-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.popup-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.popup-btn { display: inline-block; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .core-container { flex-direction: column; gap: 40px; }
  .core-visual { flex: 1; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .network-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .hero-title { font-size: 34px; }
  .about-title, .core-title, .services-title,
  .network-title, .contact-title { font-size: 24px; }
  .journey-title { font-size: 26px; margin-bottom: 48px; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    padding: 18px 0 10px;
    border-top: 0.5px solid var(--border);
    margin-top: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 24px 56px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 13px; }
  .hero-slogan { letter-spacing: 4px; font-size: 10px; }

  .about { padding: 64px 24px; }
  .about-story { text-align: left; }
  .about-partners { flex-direction: column; align-items: center; }
  .partner-card { width: 100%; max-width: 320px; }

  .journey { padding: 64px 24px; }
  .journey-steps { grid-template-columns: 1fr; gap: 40px; }

  .core { padding: 64px 24px; }
  .services { padding: 64px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .network { padding: 64px 24px; }

  .contact { padding: 64px 24px; }
  .footer { padding: 56px 24px 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .popup-modal { padding: 36px 24px 28px; }
  .popup-title { font-size: 19px; }
}

@media (max-width: 480px) {
  .nav { padding: 14px 18px; }
  .hero-title { font-size: 22px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 260px; }
  .journey-num { font-size: 32px; }
  .network-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}