/* ═══════════════════════════════════════════════════════════════
   FEDESPMG · components.css  —  Mobile-first
   Buttons · Navbar · Mobile menu · Cards · Forms · Footer
   ═══════════════════════════════════════════════════════════════ */

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap);
  padding: 13px 22px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  user-select: none;
}
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 16px; font-size: 13px; min-height: 38px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; min-height: 52px; }

@media (min-width: 768px) {
  .btn-lg { padding: 17px 30px; font-size: 16px; }
}

.btn-primary {
  background: var(--red-600); color: #fff; border-color: var(--red-600);
}
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(200,32,30,0.4); }
.btn-primary:active { background: var(--red-700); }

.btn-navy {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
}
.btn-navy:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(10,18,40,0.35); }

.btn-outline {
  background: transparent; color: var(--navy-900); border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--text); border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-mid); }

.btn-ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.25);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }

.btn-arrow { transition: transform 0.3s var(--ease); width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(10,18,40,0.04);
  padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center;
  padding: 4px 0;
  min-height: var(--tap);
}
.nav-logo {
  height: 40px; width: auto;
  display: block;
  transition: height 0.3s var(--ease);
}
.nav-menu { display: none; }     /* hidden on mobile, shown on lg */
.nav-cta  { display: none; }     /* hidden on mobile, shown on lg */

.nav-burger {
  display: flex; flex-direction: column; gap: 5px;
  width: var(--tap); height: var(--tap);
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease);
}
.nav-burger:hover { background: var(--bg-mid); }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy-900); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* lg+ : show desktop menu */
@media (min-width: 1024px) {
  .nav { padding: 22px 0; }
  .nav.scrolled { padding: 14px 0; }
  .nav-logo { height: 46px; }
  .nav.scrolled .nav-logo { height: 38px; }
  .nav-menu {
    display: flex; align-items: center; gap: 2px;
  }
  .nav-menu a {
    display: flex; align-items: center;
    min-height: var(--tap);
    padding: 8px 14px;
    font-size: 14.5px; font-weight: 500;
    color: var(--text-soft);
    border-radius: var(--r-sm);
    transition: color 0.25s var(--ease);
    position: relative;
  }
  .nav-menu a:hover { color: var(--navy-900); }
  .nav-menu a.active { color: var(--navy-900); font-weight: 600; }
  .nav-menu a.active::after {
    content: ''; position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px; background: var(--red-600); border-radius: 2px;
  }
  .nav-cta { display: inline-flex; margin-left: 12px; }
  .nav-burger { display: none; }
}

/* ── MOBILE NAV (drawer) ─────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  display: flex; flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  width: var(--tap); height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease);
}
.mobile-close:hover { background: var(--bg-mid); }
.mobile-links { display: flex; flex-direction: column; gap: 0; }
.mobile-links a {
  display: flex; align-items: center;
  min-height: 56px;
  padding: 6px 4px;
  font-size: 20px; font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}
.mobile-links a:hover { color: var(--red-600); }
.mobile-cta {
  width: 100%;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

/* ── CARDS (generic) ─────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (min-width: 768px) { .card { padding: 32px; } }

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--red-50);
  color: var(--red-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}
.card-icon.navy { background: var(--navy-50); color: var(--navy-700); }
.card:hover .card-icon { transform: scale(1.05); }
@media (min-width: 768px) { .card-icon { width: 48px; height: 48px; margin-bottom: 20px; } }

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p  { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
@media (min-width: 768px) { .card h3 { font-size: 19px; margin-bottom: 10px; } }

/* ── FORMS ──────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.form-card-header {
  padding: 24px 22px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
}
.form-card-header::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; height: 3px; width: 64px;
  background: var(--red-600);
}
.form-card-header .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.form-card-header .eyebrow::before { background: var(--red-500); }
.form-card-header h3 { color: #fff; margin-bottom: 4px; font-size: 20px; }
.form-card-header p  { color: rgba(255,255,255,0.6); font-size: 13.5px; }

.form-body { padding: 24px 22px; }
@media (min-width: 768px) {
  .form-card-header { padding: 28px 32px; }
  .form-card-header h3 { font-size: 22px; }
  .form-body { padding: 32px; }
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.field-label-text { font-size: 13px; font-weight: 600; color: var(--text); }
.field-label-req  { font-size: 11px; color: var(--red-600); font-weight: 500; }

.field-input, .field-select {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px; /* never < 16px on mobile to prevent iOS zoom */
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  min-height: var(--tap);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.field-input::placeholder { color: var(--text-dim); }
.field-input:focus, .field-select:focus {
  border-color: var(--navy-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22,40,90,0.08);
}
.field-input.has-error { border-color: var(--red-600); background: var(--red-50); }
.field-input.has-error:focus { box-shadow: 0 0 0 4px rgba(200,32,30,0.1); }

.field-error {
  display: none;
  font-size: 12.5px; color: var(--red-600);
  margin-top: 6px; font-weight: 500;
}
.field-error.show { display: block; }

@media (min-width: 768px) {
  .field-input, .field-select { font-size: 15px; }
}

/* Upload */
.upload {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 24px 16px;
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.upload:hover, .upload.dragging {
  border-color: var(--navy-700);
  background: var(--navy-50);
}
.upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.upload:hover .upload-icon { border-color: var(--navy-700); background: var(--navy-50); }
.upload-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-sub   { font-size: 12px; color: var(--text-muted); }

.upload-preview {
  display: none; margin-top: 12px;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.upload-preview img {
  width: 100%; max-height: 220px; object-fit: contain;
  background: var(--bg-soft);
}
.upload-remove {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: var(--navy-900); color: #fff;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s var(--ease);
}
.upload-remove:hover { background: var(--red-600); }

.form-submit {
  width: 100%;
  min-height: 52px;
  padding: 15px;
  background: var(--navy-900); color: #fff;
  font-size: 15px; font-weight: 600;
  border-radius: var(--r-sm);
  margin-top: 8px;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover {
  background: var(--red-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(200,32,30,0.4);
}
.form-submit svg { transition: transform 0.3s var(--ease); }
.form-submit:hover svg { transform: translateX(4px); }

.form-privacy {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-privacy-icon {
  width: 32px; height: 32px;
  background: var(--bg-mid);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.form-privacy p { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.form-privacy strong { color: var(--text); font-weight: 600; }

.form-success {
  display: none; padding: 48px 22px; text-align: center;
}
.form-success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: var(--red-100); color: var(--red-600);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p  { font-size: 15px; max-width: 400px; margin: 0 auto; }

@media (min-width: 768px) {
  .form-success { padding: 56px 32px; }
  .form-success h3 { font-size: 24px; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand-block .footer-logo {
  display: block;
  margin-bottom: 28px;
}
.footer-brand-block .footer-logo img {
  height: clamp(120px, 18vw, 180px);
  width: auto;
  max-width: 100%;
  display: block;
  margin-inline: auto;
  /* Logo vermelha invertida para branca sobre fundo navy escuro */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand-block .footer-brand-desc {
  text-align: center;
  margin-inline: auto;
  max-width: 360px;
}
.footer-brand-block .footer-socials {
  justify-content: center;
}
.footer-brand-desc {
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social {
  width: var(--tap); height: var(--tap);
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.footer-social:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14.5px; color: rgba(255,255,255,0.7);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--red-500); }

.footer-contact-item { margin-bottom: 14px; }
.footer-contact-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-contact-item a {
  display: inline-block;
  font-size: 14.5px; color: #fff;
  padding: 2px 0;
  transition: color 0.2s var(--ease);
}
.footer-contact-item a:hover { color: var(--red-500); }
.footer-contact-item span { font-size: 14.5px; color: rgba(255,255,255,0.7); }

.footer-bottom {
  padding: 22px 0;
  display: flex; flex-direction: column;
  gap: 8px;
  text-align: center;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.4); }

@media (min-width: 768px) {
  .footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 56px; }
  .footer-brand-block { grid-column: span 2; max-width: 100%; }
  .footer-bottom {
    flex-direction: row; justify-content: space-between; text-align: left;
    padding: 26px 0;
  }
}
@media (min-width: 1024px) {
  .footer { padding-top: 80px; }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
  }
  .footer-brand-block { grid-column: span 1; }
}
