/* ==========================================================================
   Previx — Assessoria e Consultoria em Segurança do Trabalho
   Paleta extraída da logo: navy #092252 / green #599A21
   ========================================================================== */

:root {
  --navy: #092252;
  --navy-dark: #061733;
  --navy-soft: #16336f;
  --green: #599A21;
  --green-dark: #487d1a;
  --green-light: #eef6e5;
  --bg: #f6f8fb;
  --white: #ffffff;
  --text: #33373d;
  --text-muted: #64707d;
  --border: #e2e7ee;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(9, 34, 82, 0.06);
  --shadow-md: 0 12px 32px rgba(9, 34, 82, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-logo { height: 88px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul { display: flex; gap: 26px; }

.site-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  padding: 10px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

.site-nav a:hover,
.site-nav a.active { border-color: var(--green); color: var(--green-dark); }

.nav-cta { line-height: 1; }
.site-nav a.nav-cta:hover { color: #fff; border-color: transparent; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  color: #fff;
  padding: 90px 0;
  min-height: 640px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,17,39,.25) 0%, rgba(6,17,39,.1) 35%, rgba(6,17,39,.55) 100%),
    linear-gradient(90deg, rgba(9,34,82,.35) 0%, rgba(9,34,82,.15) 45%, rgba(9,34,82,.05) 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-glass {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-glass-main { min-width: 0; }
.hero-glass-main .lead { max-width: 100%; }

.hero-glass-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 44px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(89,154,33,.18);
  border: 1px solid rgba(89,154,33,.4);
  color: #b7e089;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: .5em;
}

.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-stats-bar li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: .88rem;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
}

.hero-stats-bar svg { flex-shrink: 0; color: var(--green); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { background: var(--green-light); border-color: #d6ecc4; color: var(--green-dark); }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* ---------- Value pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pillar-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 12px;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.08rem; text-transform: capitalize; }
.pillar p { font-size: .92rem; margin-bottom: 0; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
}
.service-card h3 { font-size: 1.02rem; margin-bottom: 4px; text-transform: capitalize; }
.service-card p { font-size: .88rem; margin-bottom: 0; }

.services-cta { text-align: center; margin-top: 44px; }

/* ---------- Sobre / About split ---------- */
.about-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-visual {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  border-radius: 20px;
  padding: 44px 32px;
  color: #fff;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.about-visual .big-num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; }
.about-visual .big-label { font-size: .85rem; color: rgba(255,255,255,.75); }
.about-visual hr { border: none; border-top: 1px solid rgba(255,255,255,.18); margin: 4px 0; }

.about-copy h2 { margin-bottom: .5em; }
.about-checklist { display: grid; gap: 14px; margin-top: 24px; }
.about-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.about-checklist svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }
.about-checklist strong { color: var(--navy); display: block; font-size: .96rem; }
.about-checklist span { font-size: .88rem; color: var(--text-muted); }

/* ---------- Testimonials placeholder ---------- */
.testimonial-note {
  border: 1px dashed #c9d3e0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
}
.testimonial-note strong { color: var(--navy); display: block; margin-bottom: 6px; font-family: var(--font-heading); }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 0; }
.cta-band .btn-navy:hover { background: var(--navy-dark); }

/* ---------- Página interna: hero secundário ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto; }

/* ---------- Serviços (página completa) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .service-icon { width: 52px; height: 52px; }
.service-detail h3 { font-size: 1.12rem; margin-bottom: 6px; }
.service-detail p { margin-bottom: 10px; }
.service-detail p:last-child { margin-bottom: 0; }

.service-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.service-list li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Clínicas parceiras ---------- */
.clinics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.clinic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.clinic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.clinic-card h3 { font-size: 1.05rem; margin-bottom: 16px; }

.clinic-units { display: grid; gap: 16px; }
.clinic-units li { display: flex; gap: 10px; align-items: flex-start; }
.clinic-units svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.clinic-units strong { display: block; font-size: .88rem; color: var(--navy); margin-bottom: 2px; }
.clinic-units span { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Formulário de orçamento ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-row .req { color: var(--green); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.form-error { font-size: .78rem; color: #c0392b; min-height: 1em; display: block; margin-top: 2px; }
.form-feedback {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 20px;
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { background: var(--green-light); color: var(--green-dark); }
.form-feedback.error { background: #fdecea; color: #c0392b; }

.form-side h2 { font-size: 1.5rem; }
.form-side-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.form-side-item .service-icon { width: 44px; height: 44px; flex-shrink: 0; }
.form-side-item h4 { font-size: .96rem; margin-bottom: 4px; color: var(--navy); }
.form-side-item p { font-size: .87rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 68px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  transition: background .15s ease;
}
.footer-social a:hover { background: var(--green); }

.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: .88rem; }
.site-footer a:hover { color: var(--green); }
.footer-legal p { color: rgba(255,255,255,.6); font-size: .84rem; margin-bottom: 6px; }

.footer-bottom { padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .8rem; margin: 0; text-align: center; }
.dev-badge { height: 50px; width: auto; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: 520px; }
  .hero-bg { background-position: 51% center; }
  .hero-glass { grid-template-columns: 1fr; padding: 32px 0; }
  .hero-glass-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 24px;
    margin-top: 8px;
  }
  .about-split { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clinics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 18px;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .brand-logo { height: 56px; }
  .site-nav a { display: block; padding: 10px 4px; }
  .nav-cta { text-align: center; }

  .hero { padding: 56px 0; min-height: 460px; }
  .hero-glass { padding: 24px 0; }
  section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .clinics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 14px; }
  .container { padding: 0 12px; }
}
