/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0085c3;
  --blue-dark:  #006aa0;
  --blue-mid:   #0099d9;
  --accent:     #40c4f0;
  --dark:       #0d1b2a;
  --dark2:      #162436;
  --text:       #1e2d3d;
  --muted:      #5e7a8f;
  --light:      #f0f5f9;
  --border:     #dde5ed;
  --white:      #ffffff;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin-bottom: 1.125rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.bg-light { background: var(--light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 133, 195, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.375rem 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.875rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img { height: 36px; width: auto; object-fit: contain; }

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.125rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

.nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-menu .nav-cta {
  background: var(--blue-dark);
  color: var(--white);
  margin-left: 0.5rem;
}
.nav-menu .nav-cta:hover { background: var(--blue); color: var(--white); }
.nav-menu .nav-cta.active { background: var(--blue); color: var(--white); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.28s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/header-bg-microflex.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(13, 27, 42, 0.85) 0%,
    rgba(13, 27, 42, 0.70) 55%,
    rgba(0, 100, 160, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--white);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(64,196,240,0.1);
  border: 1px solid rgba(64,196,240,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto 0.625rem;
  line-height: 1.72;
}

.hero-sectors {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.48);
  margin-bottom: 2.75rem;
}
.hero-sectors strong { color: rgba(255,255,255,0.75); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== QUEM SOMOS ===== */
.about-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.about-header .section-body { margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem 1.875rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.feature-card:hover {
  border-color: #b3d9ef;
  box-shadow: 0 8px 32px rgba(0,133,195,0.09);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: #e4f4fc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== ESTRUTURA ===== */
.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header-center .section-body { margin: 0 auto; }

.estrutura-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.estrutura-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.estrutura-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.card-thumb {
  overflow: hidden;
  height: 215px;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.estrutura-card:hover .card-thumb img { transform: scale(1.06); }

.card-body {
  padding: 1.5rem 1.75rem 1.875rem;
}
.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.card-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== PRODUTOS ===== */
.produtos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.produtos-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.14);
}
.produtos-img img { width: 100%; height: auto; display: block; }
.produtos-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.07);
}

.produtos-text .section-body { margin-bottom: 2rem; }

.produtos-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.5rem;
}
.produtos-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.produtos-list li i {
  color: var(--blue);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== CERTIFICAÇÕES ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #daf0fb, #b8e3f7);
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.625rem;
}
.cert-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== CONTATO ===== */
.contato-section {
  background: var(--dark);
  padding-bottom: 0;
}

.contato-section .section-tag  { color: var(--accent); }
.contato-section .section-title { color: var(--white); }
.contato-section .section-body  { color: rgba(255,255,255,0.52); }
.contato-section .section-body a { color: var(--accent); transition: color 0.2s; }
.contato-section .section-body a:hover { color: #80d9f7; }

.contato-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  margin-top: 3.5rem;
  padding-bottom: 5rem;
}

/* form */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-control::placeholder { color: rgba(255,255,255,0.28); }
.form-control:focus {
  border-color: var(--blue-mid);
  background: rgba(0,153,217,0.07);
}

.form-group.has-error .form-control { border-color: #f87171; }

.help-block {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1.1em;
  margin-top: 0.25rem;
}

#success { margin-bottom: 0.75rem; font-size: 0.9rem; }

.alert {
  position: relative;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert strong { font-weight: 600; }

.alert-success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
}
.alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.alert .close {
  position: absolute;
  top: 0.375rem;
  right: 0.625rem;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.65;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.375rem;
}
.alert .close:hover { opacity: 1; }

textarea.form-control { resize: vertical; min-height: 118px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* contact info */
.contato-info { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.25rem; }

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(0,133,195,0.18);
  border: 1px solid rgba(0,133,195,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.info-value, .info-value a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  transition: color 0.2s;
}
.info-value a:hover { color: var(--accent); }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent) !important;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.3rem;
  transition: color 0.2s !important;
}
.map-link:hover { color: #80d9f7 !important; }

/* ===== FOOTER ===== */
footer {
  background: #060f1b;
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--blue); color: var(--white); }

.subfooter {
  background: #030810;
  padding: 1.25rem 0;
  text-align: center;
}
.subfooter a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.775rem;
  transition: color 0.2s;
}
.subfooter a:hover { color: rgba(255,255,255,0.58); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 90ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 180ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 270ms; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .produtos-layout,
  .contato-layout { grid-template-columns: 1fr; gap: 2.75rem; }

  .estrutura-grid,
  .cert-grid,
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* mobile nav */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.75rem 1rem; font-size: 0.875rem; }
  .nav-menu .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: flex; }

  .estrutura-grid,
  .cert-grid,
  .features-grid { grid-template-columns: 1fr; }

  .form-row-2 { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-socials { justify-content: center; }

  .contato-layout { padding-bottom: 4rem; }
}
