:root {
  --purple: #6d28d9;
  --purple-dark: #4c1d95;
  --yellow: #facc15;
  --bg: #f5f3ff;
  --white: #ffffff;
  --gray-900: #111827;
  --gray-700: #4b5563;
  --gray-500: #9ca3af;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #ede9fe, var(--bg));
  color: var(--gray-900);
  line-height: 1.6;
}

/* ================================
   MARCA D'ÁGUA — SITE DEMONSTRAÇÃO
   ================================ */

body::after {
  content: "SITE DEMONSTRAÇÃO • EHCR TECNOLOGIAS";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  /* TEXTO SEMPRE VISÍVEL */
  color: rgba(120, 120, 120, 0.3);

  transform: rotate(-30deg);

  /* LISTRAS SEMPRE VISÍVEIS */
  background-image: repeating-linear-gradient(
    -30deg,
    rgba(120, 120, 120, 0.10) 0px,
    rgba(120, 120, 120, 0.10) 2px,
    transparent 1px,
    transparent 140px
  );
}

/* Base layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  padding: 6rem 0;
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.section-sub {
  max-width: 620px;
  margin: 0.75rem auto 0;
  color: var(--gray-700);
  font-size: 0.96rem;
}

.center {
  text-align: center;
}

.muted {
  color: var(--gray-700);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(245, 243, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: conic-gradient(from 140deg, var(--yellow), var(--purple), var(--purple-dark), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}

.brand-text strong {
  display: block;
  font-size: 1.02rem;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--purple));
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white) !important;
  box-shadow: 0 14px 36px rgba(76, 29, 149, 0.5);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-900);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  box-shadow: 0 20px 50px rgba(76, 29, 149, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(76, 29, 149, 0.75);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: transparent;
  color: var(--gray-900);
}

.btn-outline:hover {
  background: var(--white);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.full {
  width: 100%;
}

/* HERO */
.hero {
  padding: 7rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--purple);
}

.hero-sub {
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  background: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.badge strong {
  font-size: 0.98rem;
}

/* Hero image + painel */
.hero-media {
  position: relative;
}

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-panel {
  position: absolute;
  right: 1.5rem;
  bottom: -1.5rem;
  width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.hero-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.hero-panel .panel-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.7rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.panel-row span {
  color: var(--gray-700);
}

.panel-row .green {
  color: #16a34a;
}

.hero-panel small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 1.5rem 1.6rem;
}

.service-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.9rem;
}

.service-body ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.service-body ul li::before {
  content: "• ";
  color: var(--purple);
}

/* Resultados */
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.results-numbers {
  display: grid;
  gap: 1.2rem;
}

.kpi span {
  display: block;
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 0.2rem;
}

.kpi strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple-dark);
}

.results-numbers small {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* Chart */
.results-chart {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.results-chart h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#chartTributos {
  width: 100%;
  display: block;
}

.chart-legend {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  margin-right: 0.3rem;
}

.dot.atual {
  background: rgba(248, 113, 113, 0.9);
}

.dot.otimizado {
  background: rgba(34, 197, 94, 0.9);
}

/* Depoimentos */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.t-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.t-head img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.t-head strong {
  display: block;
  font-size: 0.98rem;
  color: var(--gray-900);
}

.t-head span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Contato */
.contact-section {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin: 1.8rem 0 2rem;
}

.contact-list strong {
  display: inline-block;
  min-width: 95px;
}

.contact-map img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

/* Contact form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.contact-form-card h3 {
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--gray-700);
}

input,
select,
textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  border-radius: 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.4);
  background: #ffffff;
}

.contact-form small {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Footer */
.footer {
  margin-top: 3.5rem;
  padding: 1.2rem 0 1.7rem;
  background: #020617;
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-note {
  color: #9ca3af;
}

/* Responsivo */
@media (max-width: 1040px) {
  .hero-grid,
  .results-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    margin-top: 2rem;
  }

  .hero-panel {
    position: static;
    margin-top: 1rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav {
    position: absolute;
    inset: 60px 1.5rem auto 1.5rem;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    padding: 1rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .service-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
