/* ==================================================
   CRONO SISTEMAS — Site estático
   Cores oficiais do logo:
   Azul: #184981 / #194a82
   Verde: #207c2f
   ================================================== */

:root {
  --blue: #184981;
  --blue-dark: #194a82;
  --blue-light: #e8f1fb;
  --green: #207c2f;
  --green-light: #e7f4e9;
  --gold: #b8860b;
  --gold-light: #fff8e1;

  --bg: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow: 0 10px 25px -5px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 20px 40px -12px rgb(24 73 129 / 0.18);
  --shadow-gold: 0 20px 40px -12px rgb(184 134 11 / 0.18);

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --container: 1152px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

/* ==================================================
   Tipografia / seções
   ================================================== */

.section {
  padding: 5rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.section__header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__title em {
  color: var(--green);
  font-style: normal;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section__subtitle--light {
  color: rgba(255, 255, 255, 0.8);
}

/* ==================================================
   Botões
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgb(32 124 47 / 0.3);
}

.btn--primary:hover {
  background: #1a6b27;
  box-shadow: 0 6px 20px rgb(32 124 47 / 0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-light);
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgb(184 134 11 / 0.3);
}

.btn--gold:hover {
  background: #9a7009;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--blue-light);
  color: var(--blue);
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--blue);
}

.badge--light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==================================================
   Header
   ================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header--scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  width: auto;
  height: 42px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================
   Hero
   ================================================== */

.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(32, 124, 47, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(24, 73, 129, 0.08) 0%, transparent 40%),
    var(--bg);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.hero__title em {
  color: var(--green);
  font-style: normal;
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.hero__trust svg {
  width: 20px;
  height: 20px;
  fill: var(--green);
}

/* Dashboard illustration */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.dashboard-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

.dashboard-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-card__header {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.dashboard-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-light);
}

.dashboard-card__dot:first-child {
  background: #ef4444;
}

.dashboard-card__dot:nth-child(2) {
  background: #f59e0b;
}

.dashboard-card__dot:nth-child(3) {
  background: var(--green);
}

.dashboard-card__body {
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.stat {
  display: grid;
  gap: 0.25rem;
}

.stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.stat__trend {
  justify-self: start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat__trend--up {
  background: var(--green-light);
  color: var(--green);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 110px;
}

.chart__bar {
  flex: 1;
  height: var(--h);
  min-height: 20%;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  animation: grow 1.2s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.chart__bar--accent {
  background: var(--green);
}

@keyframes grow {
  to {
    transform: scaleY(1);
  }
}

.invoice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
}

.invoice__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
}

.invoice__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--blue);
}

.invoice__info {
  display: grid;
  font-size: 0.9rem;
}

.invoice__info strong {
  color: var(--text);
}

.invoice__info span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.invoice__status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
}

/* ==================================================
   Cards
   ================================================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.card__icon--blue {
  background: var(--blue-light);
  color: var(--blue);
}

.card__icon--green {
  background: var(--green-light);
  color: var(--green);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features__grid .card--feature {
  background: var(--surface);
  border: none;
  box-shadow: var(--shadow-sm);
}

.features__grid .card--feature:hover {
  box-shadow: var(--shadow);
}

/* ==================================================
   Preços
   ================================================== */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.pricing-card--featured {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-card--gold {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 100%);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgb(32 124 47 / 0.25);
}

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.pricing-card__desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}

.pricing-card__price--custom {
  min-height: 78px;
  align-items: center;
}

.pricing-card__currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pricing-card__value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.pricing-card__period {
  color: var(--text-muted);
  font-weight: 500;
  align-self: flex-end;
  margin-bottom: 0.5rem;
}

.pricing-card__features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-card__features svg {
  width: 20px;
  height: 20px;
  fill: var(--green);
  flex-shrink: 0;
}

/* ==================================================
   Contato
   ================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact__info {
  max-width: 420px;
}

.contact__list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact__list svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact__form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form__input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 73, 129, 0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
  color: var(--green);
  font-weight: 600;
}

/* ==================================================
   Footer
   ================================================== */

.footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==================================================
   Responsivo
   ================================================== */

@media (max-width: 1024px) {
  .hero__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual {
    order: -1;
  }

  .dashboard-card {
    transform: none;
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero__actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero__actions .btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    flex: 1;
  }

  .grid--3,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header__actions .btn {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }
}

/* ==================================================
   BOTÃO FLUTUANTE WHATSAPP
   ================================================== */

.whatsapp-float {
  position: fixed;
  left: 1.5rem;
  bottom: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #25d366;
  animation: whatsapp-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__tooltip {
  position: absolute;
  left: calc(100% + 0.75rem);
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float__tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #111827;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

