/* ============================================================
   DUHO CRM — site temporário
   Paleta e tipografia herdadas do tema do CRM (AllianceCrmTheme.cs / app.css)
   ============================================================ */
:root {
  --blue: #2456E8;
  --blue-darken: #173BAA;
  --blue-lighten: #5B7FF0;
  --accent: #0EA5E9;
  --navy: #0B1E4B;

  --bg: #F7F8FC;
  --bg-gray: #EEF0F7;
  --surface: #FFFFFF;
  --surface-tint: #F4F7FE;

  --text: #1B2333;
  --text-secondary: #64708A;
  --lines: #E4E7F0;

  --success: #1B9E5A;
  --error: #D8394C;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 30, 75, 0.06), 0 1px 3px rgba(11, 30, 75, 0.10);
  --shadow-md: 0 10px 30px rgba(11, 30, 75, 0.12);
  --gradient: linear-gradient(120deg, #173BAA 0%, #2456E8 55%, #0EA5E9 130%);
  --container: 1120px;
  --font: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 .75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, opacity .12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--lines);
}
.btn-ghost:hover { background: var(--surface-tint); border-color: var(--blue-lighten); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--lines);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-menu a:hover { color: var(--blue); text-decoration: none; }
.nav-menu a.btn { color: #fff; }
.nav-menu a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(36, 86, 232, 0.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--lines);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 24px 4.5rem;
}
.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.75rem 0 1rem;
}
.hero-note { font-size: .85rem; color: var(--text-secondary); margin: 0; }

/* Hero mock */
.mock-window {
  background: var(--surface);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--gradient);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpi {
  background: var(--surface-tint);
  border: 1px solid var(--lines);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.mock-kpi small { display: block; font-size: .62rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.mock-kpi b { font-size: 1.35rem; color: var(--text); }
.mock-pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-col {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 120px;
}
.mock-col-h { display: block; font-size: .6rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.mock-col i {
  display: block;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--lines);
  border-left: 3px solid var(--blue);
  margin-bottom: 6px;
}
.mock-col:last-child i { border-left-color: var(--success); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--surface-tint); border-block: 1px solid var(--lines); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-cards { grid-template-columns: repeat(4, 1fr); }
.grid-benefits { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-lighten); }
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--lines);
  margin-bottom: .9rem;
}
.card p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

.benefit {
  background: var(--surface);
  border: 1px solid var(--lines);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.benefit p { margin: 0; color: var(--text-secondary); }

/* ---------- Contato ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { margin-bottom: .5rem; color: var(--text-secondary); }
.contact-list strong { color: var(--text); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--lines);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  padding: .7rem .85rem;
  border: 1.5px solid var(--lines);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 86, 232, 0.15);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: .9rem 0 0; font-size: .9rem; font-weight: 500; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-icon { height: 28px; width: auto; }
.site-footer p { margin: 0; font-size: .9rem; }
.footer-top { color: #fff; font-size: .9rem; font-weight: 500; }
.footer-top:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-art { order: -1; max-width: 460px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--lines);
    box-shadow: var(--shadow-md);
    padding: .5rem 24px 1rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { display: block; padding: .8rem 0; }
  .nav-menu a.btn { margin-top: .5rem; }
  .grid-cards, .grid-benefits { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
