/* Styles extracted from sitenovo.html - staff.css */
/* Prevent iOS Safari auto-zoom on form fields */
html { -webkit-text-size-adjust: 100%; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea { font-size: 1rem; }
:root {
  --primary: #2D69B3; /* Azul principal */
  --secondary: #00ff87; /* Verde destaque */
  --tertiary: #D95325; /* Laranja destaque */
  --background: #ffffff; /* Fundo claro */
  --text: #0f172a;      /* Texto escuro */
  --muted-foreground: #64748b; /* cor de texto secundário usada em legendas */
  --card-bg: #f8fafc;
  --card-border: #e2e8f0;
  --shadow: 0 4px 32px 0 rgba(30,64,175,0.08);
  --radius: 1.125rem;
  --mobile-header-height: 82px;
}

/* Reset and typography */
html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  min-height: 100%;
  transition: background 0.2s, color 0.2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

a { color: var(--primary); text-decoration:none; transition: color .2s }
a:hover { color: var(--tertiary) }

.container { width: 90%; max-width: 1200px; margin: 0 auto }

/* Header */
.site-header { background: var(--background); padding: 1rem 0; position: sticky; top:0; z-index: 60; box-shadow:0 8px 24px rgba(15,23,42,0.06); backdrop-filter: blur(6px) }
.header-flex { display:flex; align-items:center; justify-content:space-between; position: relative; min-height: var(--mobile-header-height); gap:1rem; flex-wrap:nowrap }
.logo-link { display:flex; align-items:center; gap:0.75rem; font-size:2rem; font-weight:900; color:var(--primary); letter-spacing:1px }
.logo-img { width:3rem; height:3rem; border-radius:60%; background:#fff; object-fit:cover }
.main-nav { display:flex; gap:2rem }
.nav-link { font-size:1.1rem; font-weight:600; color:var(--text); padding:0.5rem 1.125rem; border-radius:var(--radius); transition:background .2s, color .2s }
.nav-link:hover { background:var(--primary); color:#fff }

/* Mobile menu toggle button (hidden on wide screens) */
.menu-toggle { display:none; background:transparent; border:none; cursor:pointer; padding:0.25rem; align-items:center; justify-content:center; position:relative; width:2.25rem; height:2.25rem; z-index:70 }
.menu-toggle:focus { outline:2px solid rgba(45,105,179,0.2); border-radius:0.5rem }
.menu-bar { position:absolute; top:50%; left:50%; width:1.8rem; height:0.28rem; background:var(--text); border-radius:999px; transform-origin:center; transition: transform .28s ease, opacity .22s ease }
.menu-bar:nth-child(1) { transform: translate(-50%, calc(-50% - 0.45rem)) }
.menu-bar:nth-child(2) { transform: translate(-50%, -50%) }
.menu-bar:nth-child(3) { transform: translate(-50%, calc(-50% + 0.45rem)) }
.header-cta {
  display:inline-flex;
  font-weight:700;
  border-radius:999px;
  white-space:nowrap;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid transparent;
  box-shadow:0 4px 16px rgba(15,23,42,0.08);
  padding:0.32rem 1rem;
  min-height:2rem;
  font-size:0.8rem;
  background:var(--secondary);
  color:#000;
  transition:background .2s ease, box-shadow .2s ease, color .2s ease;
  position:relative;
  z-index:65;
  margin-left:auto;
}

.header-cta:hover,
.header-cta:focus-visible {
  background:rgba(0,255,135,0.85);
  color:#000;
  box-shadow:0 6px 22px rgba(15,23,42,0.14);
  outline:2px solid rgba(0,255,135,0.35);
  outline-offset:2px;
}

/* Hero */
.hero-section { position:relative; min-height:30rem; display:flex; align-items:center; box-shadow:var(--shadow); overflow:hidden }

/* Background image layer with 60% opacity using pseudo-element so content keeps full opacity */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  /* Use background-size: cover and a fallback gradient; on mobile we'll adjust position/size */
  background: linear-gradient(400deg, #fff 10%, rgba(30,64,175,0.08) 200%), url('../imagens/background_h.jpg') center/cover no-repeat;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.6; /* 60% */
  z-index: 0;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1 }
.hero-content { padding:4rem 0 3rem 0; text-align:left; max-width:600px }
.hero-title { font-size:3rem; font-weight:900; color:var(--text); margin-bottom:0.75rem; line-height:1.1 }
.hero-title .highlight { color:var(--primary) }
.hero-subtitle { font-size:1.3rem; color:#64748b; margin-bottom:2rem; font-weight:400 }
.cta-button1, .cta-button {
  background:var(--secondary);
  color:#000;
  font-weight:700;
  font-size:1.1rem;
  border:none;
  border-radius:var(--radius);
  padding:0.875rem 2rem;
  box-shadow:0 2px 16px 0 rgba(30,64,175,0.10);
  cursor:pointer;
  transition:background .2s, color .2s, box-shadow .2s, transform .2s;
  display:inline-flex; /* ensure background grows with multi-line text */
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
  -webkit-appearance: none;
  appearance: none;
  overflow-wrap: anywhere; /* allow breaks inside long words */
  word-break: break-word; /* fallback */
  hyphens: auto; /* nicer hyphenation when supported */
  -webkit-text-size-adjust: 100%; /* avoid iOS text inflation breaking layout */
}
/* Keep generic CTA buttons with blue hover behavior */
.cta-button:hover { background:var(--primary); color:#fff; box-shadow:0 4px 32px 0 rgba(30,64,175,0.18) }

/* Hero CTA: stay green on hover with subtle zoom and green glow */
.cta-button1:hover {
  background: var(--secondary);
  color: #000;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 3px rgba(0, 255, 135, 0.28),
    0 10px 26px rgba(0, 255, 135, 0.22);
}

/* Accessible focus state for hero CTA */
.cta-button1:focus-visible {
  outline: 2px solid rgba(0, 255, 135, 0.6);
  outline-offset: 2px;
  box-shadow:
    0 0 0 3px rgba(0, 255, 135, 0.28),
    0 10px 26px rgba(0, 255, 135, 0.22);
}

/* Apoie / Features cards */
.apoie-grid, .features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.5rem; margin-bottom:1.5rem }
.apoie-card, .feature-card {
  background: var(--card-bg);
  /* keep a constant border width so hover doesn't change content box and reflow text */
  border: 2px solid var(--card-border);
  box-sizing: border-box;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text);
  box-shadow: 0 2px 16px 0 rgba(30,64,175,0.04);
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* hint to the browser that transform/box-shadow will change - smoother rendering */
  will-change: transform, box-shadow;
}
.apoie-card:hover, .feature-card:hover {
  box-shadow: 0 6px 36px 0 rgba(30,64,175,0.10);
  /* only change border-color, keep border-width stable to avoid content shift */
  border-color: var(--primary);
  /* prefer a subtle vertical lift without scaling to avoid changing text wrapping */
  transform: translateY(-4px);
  cursor: pointer;
}
.feature-icon { font-size:2.5rem; margin-bottom:1.125rem; color:var(--primary); display:block }
.feature-title { font-size:1.2rem; font-weight:700; margin-bottom:10px }
.feature-desc { font-size:1rem; color:#64748b }

/* Descriptive text: left-aligned to avoid large gaps produced by full justification */
.features-section .feature-desc,
.apoie-section .feature-desc {
  /* prefer left/start alignment for better word spacing on responsive lines */
  text-align: center;
  /* allow words to break and wrap to avoid overflow and large gaps */
  /* avoid breaking words with hyphens (user requested) */
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  /* prefer not to break mid-word; allow overflow-wrap as a last resort */
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Make Features and Apoie sections visually identical and spacious */
.features-section, .apoie-section { padding: 3rem 0; }
.features-section .container, .apoie-section .container { max-width:1200px }

/* Ensure cards have consistent height and top-aligned content for better visual rhythm */
.apoie-card, .feature-card { min-height:13.75rem; justify-content:flex-start }
.apoie-icon, .feature-icon { font-size:2.6rem }

/* Slightly larger title for the sections */
.features-title { font-size:2.4rem }

/* Responsive UX: stack columns and scale fonts on smaller screens */
@media (max-width: 900px) {
  .apoie-grid, .features-grid { gap:24px }
  .apoie-card, .feature-card { padding:24px }
  .feature-icon, .apoie-icon { font-size:2.2rem }
  .features-title { font-size:1.8rem }
}

@media (max-width: 700px) {
  .lead-row { flex-direction:column }
  .lead-row .col { width:100% }
  .apoie-grid, .features-grid { grid-template-columns: 1fr }
  .apoie-card, .feature-card { min-height: unset; padding:18px }
  .feature-title { font-size:1.05rem }
  .feature-desc { font-size:0.95rem }
}

/* Lead / Form */
.lead-section { padding:3rem 0 }
.lead-section h2 { text-align:center; font-size:2.6rem; font-weight:900; margin-bottom:0.5rem }
.lead-section p.lead-sub { text-align:center; color:#64748b; margin-bottom:2rem; font: size 1.05rem }
.lead-card { max-width:660px; margin:0 auto; background:var(--card-bg); border:1px solid var(--card-border); border-radius:1.125rem; padding:1.75rem; box-shadow:0 2px 16px 0 rgba(30,64,175,0.04) }
.lead-card label { display:block; margin-bottom:0.875rem; font-size:0.95rem; color:var(--text) }
.lead-card input, .lead-card textarea, .lead-card select { width:100%; padding:0.75rem 1rem; border-radius:999px; border:1px solid var(--card-border); background:#fff; box-sizing:border-box; font-size:1rem; color:var(--text); outline:none; transition:border .15s, box-shadow .15s }
.lead-card input:focus, .lead-card textarea:focus, .lead-card select:focus { border:1.5px solid var(--primary); box-shadow:0 6px 20px rgba(30,64,175,0.06) }

/* Make textarea responsive and preserve formatting when user resizes rows */
.lead-card textarea {
  resize: vertical; /* allow only vertical resize */
  min-height: 5.25rem; /* ~4 rows */
  max-height: 26.25rem; /* reasonable max */
  line-height: 1.4;
  white-space: pre-wrap; /* preserve newlines */
  border-radius:0.75rem; /* softer corners for textarea */
}
.lead-row { display:flex; gap:1rem }
.lead-row .col { flex:1 }
.lead-cta { display:inline-block; width:100%; text-align:center; padding:0.875rem 1.25rem; background:var(--secondary); color:#000; border-radius:999px; font-weight:700; box-shadow:0 8px 28px 0 rgba(0,255,135,0.12); border:none; cursor:pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s }
/* Lead form CTA: hover stays green with subtle zoom and light-green glow */
.lead-cta:hover {
  background: var(--secondary);
  color: #000;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 3px rgba(0, 255, 135, 0.28),
    0 10px 26px rgba(0, 255, 135, 0.22);
}
/* Accessible focus state for keyboard navigation */
.lead-cta:focus-visible {
  outline: 2px solid rgba(0, 255, 135, 0.6);
  outline-offset: 2px;
  box-shadow:
    0 0 0 3px rgba(0, 255, 135, 0.28),
    0 10px 26px rgba(0, 255, 135, 0.22);
}

/* Utilities and fixes to replace inline styles */
.highlight { color: var(--primary); }
.hidden { display:none !important; }

/* Ensure apoie and features headings use consistent style */
.features-title { text-align:center; font-size:2.2rem; font-weight:900; margin-bottom:12px }
.lead-sub { text-align:center; color:#64748b }

/* Search */
.search-section { padding:48px 0 32px 0; background:#f8fafc }
.search-input { width:100%; max-width:480px; padding:16px 18px; border-radius:var(--radius); border:1.5px solid var(--primary); font-size:1.1rem; margin-bottom:24px; background:#fff; color:var(--text); outline:none; box-shadow:0 2px 16px 0 rgba(30,64,175,0.06); transition:border .2s }
.search-input:focus { border:2px solid var(--secondary) }
.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:24px; margin-top:24px }

/* Footer */
.site-footer { background:#f8fafc; color:#64748b; padding:24px 0 24px 0; margin-top:32px }
.footer-nav { background:#f3f7f9; padding:36px 0 24px 0; border-top:1px solid #e6eef6 }
.footer-nav .footer-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:40px; align-items:start; justify-items:center; max-width:900px; margin:0 auto }
.footer-brand { display:flex; flex-direction:column; gap:8px; align-items:center; text-align:center }
.footer-brand img { width:64px; height:64px; border-radius:12px; margin-bottom:6px }
.footer-links { display:flex; flex-direction:column; align-items:center; text-align:center }
.footer-links a { display:block; color:#64748b; text-decoration:none; margin-bottom:8px }
.footer-contact { display:flex; flex-direction:column; gap:8px; align-items:center; text-align:center }
.footer-social { display:flex; gap:8px; align-items:center; justify-content:center }
.footer-social a { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; border:1px solid var(--card-border); color:var(--primary); text-decoration:none }

/* Social links styling: text + icon variant */
.footer-social { display:flex; gap:12px; align-items:center }
.social-link { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; background:transparent; border-radius:8px; color:var(--primary); text-decoration:none; border:1px solid transparent; transition:background .12s, border .12s }
.social-link:hover { background:rgba(45,105,179,0.06); border-color:rgba(45,105,179,0.12) }
.social-icon { width:20px; height:20px; display:inline-block; object-fit:contain }

@media (max-width:700px) {
  .footer-social { flex-direction:column; align-items:center }
  .social-link { width:100%; justify-content:center }
}

/* Footer small text */
.footer-content { text-align:center; font-size:0.75rem; color:#6b7280; display:flex; gap:6px; align-items:center; justify-content:center; flex-direction:column; flex-wrap:wrap; padding:6px 0 }
.footer-content p { margin:4px 0 }

@media (max-width:900px) {
  .footer-nav .footer-grid { grid-template-columns:1fr; justify-items:center; row-gap:18px }
  .footer-content { flex-direction:column; align-items:center; gap:8px }
}

/* Small blue accent bar on footer (subtle) */
.site-footer { position:relative; overflow:visible }
.site-footer:before { content: ''; position:absolute; top:-6px; left:0; right:0; height:6px; background: linear-gradient(90deg, var(--primary), rgba(45,105,179,0.6)); border-top-left-radius:6px; border-top-right-radius:6px }

/* Tighten footer-nav spacing */
.footer-nav { padding:28px 0 12px 0 }
.footer-nav .footer-grid { gap:18px }

/* Bigger, bolder CTA on lead form */
.lead-cta { font-size:1.15rem; padding:16px 22px }

/* Responsivo */
@media (max-width: 900px) {
  .header-flex { gap:1rem }
  .footer-content { flex-direction:column; gap:18px }
  .main-nav { gap:18px }
  .hero-title { font-size:2.2rem }
  .features-title { font-size:1.5rem }
  .footer-grid { grid-template-columns: 1fr }
}

/* Small screens: hide nav behind toggle, stack header elements */
@media (max-width: 800px) {
  .header-flex { align-items:center; gap:0.65rem }
  /* CTA + hamburger lado a lado e compactos */
  .header-cta {
    display:inline-flex;
    order:1;
    margin-left:auto;
    padding:0.32rem 1.05rem;
    font-size:0.8rem;
    line-height:1.05;
    min-height:2.1rem;
    min-width:6.4rem;
  }
  .header-cta:focus-visible { outline:2px solid rgba(0,255,135,0.35); outline-offset:2px }
  .menu-toggle { display:flex; order: 2; margin-left:0.35rem; flex-direction: column; align-items: center; justify-content: center; position: relative }
  /* on small screens the nav becomes a full-width overlay anchored under the header */
  .main-nav {
    display:none;
    position:fixed;
    top:var(--mobile-header-height);
    left:0;
    right:0;
    margin:0;
    width:100%;
    height:calc(100vh - var(--mobile-header-height));
    background:rgba(255,255,255,0.98);
    box-shadow:0 16px 48px rgba(15,23,42,0.18);
    border-radius:0;
    padding:20px 22px 32px;
    flex-direction:column;
    gap:12px;
    z-index:55;
    overflow-y:auto;
  }
  .main-nav.open { display:flex }
  .nav-link { padding:14px 18px; font-size:1rem; white-space: normal; width:100%; text-align:left; border-radius: var(--radius) }
  .logo-link { font-size:1.6rem }
}

/* Improve hero background and content scaling on very small devices */
@media (max-width: 420px) {
  .hero-section { min-height:420px }
  .hero-section::before { background-position: center top; background-size: 140% auto; opacity:0.55 }
  .hero-content { padding:28px 0 18px 0; max-width:100% }
  .hero-title { font-size:1.6rem; line-height:1.05 }
  .hero-subtitle { font-size:1rem }
  .cta-button1, .cta-button { padding:12px 18px; font-size:1rem }
}

/* Make CTA responsive: allow it to shrink, wrap and stay inside hero */
.hero-cta-buttons { margin-top: 10px }
.cta-button1 { display:inline-flex; max-width:100%; white-space:normal; word-break:break-word; box-sizing:border-box; min-height:44px }
@media (max-width: 480px) {
  .cta-button1 { width: 100%; display:flex; margin-left:0; margin-right:0; padding:14px 20px }
}

/* Place hamburger to absolute top-right for very narrow screens */
@media (max-width: 360px) {
  .menu-toggle { position:relative; top:0; right:0; margin-left:0.2rem }
  .header-cta { padding:0.28rem 0.85rem; font-size:0.78rem; min-height:2rem; min-width:5.8rem }
  .logo-link { margin-right:auto }
}

/* When menu is open, animate hamburger to X (small visual tweak) */
.menu-toggle.open .menu-bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); opacity: 1; }
.menu-toggle.open .menu-bar:nth-child(2) { opacity:0; transform: translate(-50%, -50%); }
.menu-toggle.open .menu-bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 600px) {
  .hero-content { padding:32px 0 24px 0 }
  .features-section, .search-section { padding:32px 0 16px 0 }
  .feature-card { padding:18px 10px }
  .site-footer { padding:32px 0 12px 0 }
  .search-input { width: 100%; max-width: none; padding: 12px; font-size: 1rem; box-sizing: border-box; }
}

@media (max-width: 480px) {
  .search-input { width: 100%; padding: 10px; font-size: 0.95rem; box-sizing: border-box; }
}

/* aumentado +0.2 (base previamente ~1rem) */
.lead-sub {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

/* Ajustes responsivos (mantém o incremento proporcional) */
@media (min-width: 768px) {
  .lead-sub { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .lead-sub { font-size: 1.1rem; }
}
