:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --surface: #ffffff;
  --surface-muted: #f3f6fa;
  --text: #142033;
  --text-soft: #5d6b7f;
  --text-inverse: #f7fbff;
  --line: #dbe4ef;
  --primary: #38bdf8;
  --primary-dark: #0369a1;
  --accent: #8b5cf6;
  --shadow: 0 20px 60px rgba(7, 17, 31, 0.12);
  --radius: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.section {
  padding: 72px 0;
  scroll-margin-top: 24px;
}

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

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 32rem),
    linear-gradient(135deg, #07111f, #10172a);
  color: var(--text-inverse);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 900;
}

.brand-text {
  color: white;
  font-size: 1.2rem;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.nav-menu {
  position: fixed;
  inset: 72px 16px auto 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #0b1728;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a {
  color: white;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: white;
  color: var(--bg) !important;
  text-align: center;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 40%, rgba(139, 92, 246, 0.22), transparent 32rem),
    linear-gradient(135deg, #07111f, #10172a 60%, #111827);
  color: var(--text-inverse);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.split h2,
.contact-grid h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 {
  font-size: clamp(2.65rem, 12vw, 4.7rem);
  max-width: 780px;
}

.hero-text {
  margin: 20px 0 0;
  max-width: 700px;
  font-size: 1.08rem;
  color: rgba(247, 251, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.22);
}

.button-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
}

.hero-card {
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.7), rgba(139, 92, 246, 0.55), rgba(255,255,255,0.1));
  box-shadow: var(--shadow);
}

.hero-card-inner {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    #0b1728;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.hero-card p {
  color: rgba(247,251,255,0.72);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-grid div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
}

.metric-grid strong {
  display: block;
  color: white;
  font-size: 1.5rem;
}

.metric-grid span {
  color: rgba(247,251,255,0.68);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.split h2,
.contact-grid h2 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.section-heading p,
.split p,
.contact-grid p {
  color: var(--text-soft);
  font-size: 1.03rem;
}

.section-dark .section-heading p {
  color: rgba(247,251,255,0.72);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eaf7ff;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1.3rem;
}

.service-card h3,
.feature h3,
.timeline-item h3 {
  margin: 18px 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-card p,
.feature p,
.timeline-item p {
  margin: 0;
  color: var(--text-soft);
}

.split {
  display: grid;
  gap: 32px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.05);
}

.timeline-item span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg);
  color: white;
  font-weight: 900;
}

.timeline-item h3 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature p {
  color: rgba(247,251,255,0.72);
}

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfdff;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.3);
}

.footer {
  background: #050b14;
  color: white;
  padding: 42px 0 22px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer p {
  color: rgba(255,255,255,0.65);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.76);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

  .section {
    padding: 92px 0;
  }

  .hero-actions {
    flex-direction: row;
  }

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

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

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-links {
    grid-template-columns: repeat(4, auto);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    inset: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 10px 12px;
    color: rgba(255,255,255,0.78);
  }

  .nav-menu a:hover {
    color: white;
    background: transparent;
  }

  .nav-cta {
    padding: 10px 18px !important;
    margin-left: 4px;
    border-radius: 999px !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
    align-items: center;
  }

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

  .split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* Correção para menu fixo não cobrir os títulos */
html {
  scroll-padding-top: 170px;
}

section[id] {
  scroll-margin-top: 170px;
}

/* Controla altura do logo para não aumentar demais o header */
.brand-logo {
  max-height: 86px;
  width: auto;
  display: block;
}

.nav {
  min-height: 96px;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 96px;
  }

  section[id] {
    scroll-margin-top: 24px;
  }

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

  .nav {
    min-height: 16px;
  }
}

/* FIX FINAL - menu com scroll controlado por JavaScript */
html {
  scroll-padding-top: 0 !important;
}

section[id] {
  scroll-margin-top: 0 !important;
}

/* Ajuste do logo no header */
.brand {
  gap: 0;
}

.brand-text {
  display: none !important;
}

.brand-logo {
  max-height: 76px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.nav {
  min-height: 96px;
}

@media (max-width: 767px) {
  .brand-logo {
    max-height: 66px;
  }

  .nav {
    min-height: 86px;
  }
}

/* FIX final logo header/footer */
.brand-mark,
.brand-text {
  display: none !important;
}

.brand-logo {
  max-height: 74px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.footer-logo {
  max-height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.nav {
  min-height: 94px;
}

@media (max-width: 767px) {
  .brand-logo {
    max-height: 62px;
  }

  .footer-logo {
    max-height: 48px;
  }

  .nav {
    min-height: 82px;
  }
}

/* JINTRIA - ajuste premium de header e hero */
.brand {
  gap: 0;
}

.brand-mark,
.brand-text {
  display: none !important;
}

.brand-logo {
  max-height: 86px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.nav {
  min-height: 104px;
}

.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.9) 42%, rgba(7, 17, 31, 0.64) 100%),
    url("assets/jintria-hero-bg.jpeg") center center / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 48%, rgba(139, 92, 246, 0.16), transparent 38rem);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

html {
  scroll-padding-top: 0 !important;
}

section[id] {
  scroll-margin-top: 0 !important;
}

@media (max-width: 767px) {
  .brand-logo {
    max-height: 68px;
  }

  .nav {
    min-height: 88px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.92) 55%, rgba(7, 17, 31, 0.82) 100%),
      url("assets/jintria-hero-bg.jpeg") center center / cover no-repeat !important;
  }
}
