/* =============================================
   Medicina do Trabalho 12 — Estilos Globais
   Design: Corporate Editorial Contemporâneo
   Paleta: Verde musgo #3D6B4F | Creme #FDF6EC | Verde escuro #1A3C2A | Dourado #C9A84C
   Tipografia: Cormorant Garamond + Nunito Sans + Oswald
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1A3C2A;
  --green-mid: #3D6B4F;
  --green-light: #52B788;
  --cream: #FDF6EC;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --white: #ffffff;
  --gray-100: #F5F5F0;
  --gray-200: #E8E8E0;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-label: 'Oswald', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26,60,42,0.08);
  --shadow-md: 0 8px 24px rgba(26,60,42,0.12);
  --shadow-lg: 0 20px 48px rgba(26,60,42,0.18);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--gray-800); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--green-dark);
  color: rgba(253,246,236,0.8);
  padding: 0.5rem 0;
  font-size: 0.75rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253,246,236,0.8);
  font-family: var(--font-label);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.topbar a:hover { color: var(--gold); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}
.logo-sub {
  display: block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--green-mid); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.btn-header {
  background: var(--green-mid);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-header:hover { background: var(--green-dark); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,60,42,0.92) 0%, rgba(26,60,42,0.7) 60%, rgba(26,60,42,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  max-width: 680px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-line {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}
.hero-badge span:last-child {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(253,246,236,0.82);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}
.scroll-line { width: 1px; height: 2rem; background: rgba(253,246,236,0.3); }
.scroll-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,0.3); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(253,246,236,0.5);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--green-dark); }

/* ===== STATS ===== */
.stats { background: var(--green-mid); padding: 2.5rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(253,246,236,0.7);
  text-transform: uppercase;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--green-dark); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.gold-line {
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
}
.gold-line.mx-auto { margin-left: auto; margin-right: auto; }
.section-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--green-mid);
  text-transform: uppercase;
}
.section-label.light { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-title.light { color: var(--cream); }
.section-title em { font-style: italic; color: var(--gold); }
.section-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-cta { text-align: center; margin-top: 3rem; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,60,42,0.6), transparent);
}
.service-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}
.service-body { padding: 1.5rem; }
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.service-card:hover .service-body h3 { color: var(--green-mid); }
.service-body p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-link {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  text-transform: uppercase;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img { position: relative; }
.about-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--green-dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.about-text {
  font-size: 0.95rem;
  color: rgba(253,246,236,0.75);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(253,246,236,0.85);
}

/* ===== MINI SERVICES ===== */
.mini-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.mini-card {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.mini-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.mini-card p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ===== CTA ===== */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: var(--green-mid);
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 50% 50%, var(--gold) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0.5rem 0 1rem;
}
.cta-content p {
  font-size: 1rem;
  color: rgba(253,246,236,0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer { background: var(--green-dark); color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(253,246,236,0.65);
  line-height: 1.7;
  margin: 1.25rem 0 1.5rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(253,246,236,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253,246,236,0.7);
  transition: all var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--green-dark); }
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(253,246,236,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(253,246,236,0.75);
  margin-bottom: 0.875rem !important;
}
.contact-list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: rgba(253,246,236,0.75); transition: color var(--transition); }
.contact-list a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(253,246,236,0.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(253,246,236,0.45); }

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.5s infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(37,211,102,0.65); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(26,60,42,0.82); }
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(253,246,236,0.55);
  margin-top: 1rem;
}
.breadcrumb a { color: rgba(253,246,236,0.55); transition: color var(--transition); }
.breadcrumb a:hover, .breadcrumb span.current { color: var(--gold); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mini-services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav, .btn-header { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 1.25rem;
    z-index: 99;
  }
  .nav.open + .btn-header {
    display: block;
    margin: 0 1.5rem 1.5rem;
  }
  .header-inner { position: relative; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { top: auto; bottom: -1.5rem; right: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-checks { grid-template-columns: 1fr; }
  .hero-content { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mini-services-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
