/* ==========================================================================
   Santiero Tecnologia — estilos
   Identidade visual "Conceito 2 — Tecnologia e Conexão"
   Paleta principal: Verde moderno #22C55E · Grafite #1F2933 · Branco
   Paleta alternativa: Esmeralda #059669 · Grafite escuro #111827 · Cinza claro #F3F4F6
   ========================================================================== */

:root {
  --green: #22c55e;        /* verde moderno: botões, ícones, destaques e texto sobre fundo escuro */
  --emerald: #059669;      /* esmeralda: degradês, números e ícones sobre fundo claro */
  --green-text: #047857;   /* esmeralda escuro: texto verde pequeno sobre fundo claro (contraste AA) */
  --green-soft: #e7f8ee;   /* fundo de ícones e etiquetas */
  --ink: #1f2933;          /* grafite: títulos */
  --dark: #111827;         /* grafite escuro: fundos escuros */
  --dark-2: #0b1220;       /* rodapé */
  --text: #374151;
  --muted: #4b5563;
  --on-dark: #d1d5db;      /* texto corrido sobre fundo escuro */
  --bg: #ffffff;
  --bg-alt: #f3f4f6;       /* cinza claro */
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  --max: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

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

img, svg { max-width: 100%; display: block; }
a { color: var(--green-text); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Rótulo em caixa alta bem espaçada, como o "TECNOLOGIA" do logotipo */
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em;
  font-size: .76rem; font-weight: 600; color: var(--green-text);
  margin-bottom: 1em;
}

/* Botões ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--green);
  color: var(--dark);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: #3ad070; border-color: #3ad070; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34,197,94,.3); }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; box-shadow: none; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: block; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a:not(.btn):hover { color: var(--green-text); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.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); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .brand img { height: 34px; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* Hero (fundo escuro com linhas de conexão, como no manual da marca) ------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 85% 60%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(5,150,105,.15), transparent 50%),
    var(--dark);
  padding: clamp(72px, 11vw, 130px) 0;
}
.hero-waves {
  position: absolute; right: 0; bottom: 0;
  width: min(75%, 980px); height: 100%;
  color: var(--green);
  pointer-events: none;
}
.hero-waves .glow { filter: drop-shadow(0 0 6px rgba(34,197,94,.9)); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--green); }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 640px; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { margin: 22px 0 0; font-size: .9rem; color: var(--on-dark); }
.hero-mark { width: 100%; max-width: 360px; justify-self: center; filter: drop-shadow(0 0 40px rgba(34,197,94,.25)); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero-waves { opacity: .45; width: 100%; }
}

/* Seções ----------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-header { max-width: 700px; margin-bottom: 48px; }
.section-header p:last-child { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Cards de serviço */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(34,197,94,.5); }
.card > p { color: var(--muted); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pillar { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-text); margin-bottom: .4em; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.checklist li { position: relative; padding-left: 24px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* Sub-blocos de serviços (dashboards e IA) */
.subblocks { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 24px; }
.subblock { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--radius); padding: 26px 28px; }
.subblock .card-icon { flex-shrink: 0; margin: 0; background: #fff; }
.subblock p { color: var(--muted); margin: 0; }

/* Problemas que resolvemos */
.problems {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.problems li {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 20px 24px;
}
.problems strong { display: block; color: var(--ink); margin-bottom: 4px; }
.problems span { color: var(--muted); font-size: .95rem; }
.callout {
  margin: 32px 0 0; padding: 22px 26px; border-radius: var(--radius);
  background: var(--dark); color: #fff; font-size: 1.08rem; font-weight: 600;
}
.callout strong { color: var(--green); }

/* Como trabalhamos: linha numerada (horizontal no desktop, vertical no celular) */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 32px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li { position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px;
  background: #fff; border: 2px solid var(--green);
  font-size: 1.15rem; font-weight: 800; color: var(--emerald);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 68px; right: -20px;
  height: 2px; background: linear-gradient(90deg, var(--green), rgba(34,197,94,.2));
}
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-left: 76px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 64px; bottom: -20px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--green), rgba(34,197,94,.2)); }
}

/* Exemplos: antes → depois */
.example { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.example p { margin: 0; font-size: .95rem; }
.example-before, .example-after { border-radius: 10px; padding: 16px 18px; }
.example-before { background: var(--bg-alt); color: var(--muted); }
.example-after { background: var(--green-soft); color: var(--ink); margin-top: 32px; position: relative; flex-grow: 1; }
.example-after::before {
  content: "↓"; position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  font-weight: 800; color: var(--emerald); line-height: 1.5;
}
.example-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.example-before .example-label { color: var(--muted); }
.example-after .example-label { color: var(--green-text); }

/* Por que a Santiero (faixa de confiança) */
.trust {
  color: var(--on-dark);
  background: radial-gradient(ellipse at 100% 0%, rgba(34,197,94,.14), transparent 50%), var(--dark);
}
.trust h2 { color: #fff; }
.trust .eyebrow { color: var(--green); }
.trust-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.trust-list li { border-top: 2px solid var(--green); padding-top: 18px; }
.trust-list strong { display: block; color: #fff; margin-bottom: 6px; }
.trust-list span { font-size: .93rem; }

/* Sobre */
.about { display: grid; gap: 48px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.signature {
  background: var(--bg-alt); border-left: 4px solid var(--green); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.signature img { width: 64px; height: auto; margin-bottom: 18px; }
.signature p { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.signature span { display: block; color: var(--emerald); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Perguntas frequentes */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.faq details[open] { border-color: rgba(34,197,94,.5); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; font-weight: 600; line-height: 1; color: var(--emerald); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Contato */
.contact {
  color: var(--on-dark);
  background: radial-gradient(ellipse at 0% 100%, rgba(34,197,94,.14), transparent 50%), var(--dark);
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--green); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: inherit;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.contact-note { margin: 14px 0 20px; font-size: .9rem; }
.contact-item > svg { width: 40px; height: 40px; padding: 8px; flex-shrink: 0; border-radius: 10px; border: 2px solid var(--green); fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--green); font-weight: 700; }
.contact-item strong { display: block; color: #fff; font-size: 1.1rem; font-weight: 600; }
a.contact-item:hover strong { color: var(--green); }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.form h3 { font-size: 1.35rem; }
.form-hint { color: var(--muted); font-size: .9rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--ink); }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.form textarea { resize: vertical; }
.form-error { color: #b91c1c; font-weight: 600; margin: 14px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Rodapé */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.6); font-size: .85rem; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { height: 34px; width: auto; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 4px; }
.site-footer strong { color: #fff; }
.site-footer .footer-tagline { color: var(--green); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
@media (max-width: 600px) { .site-footer { padding-bottom: 96px; } }

/* Página 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound img { width: 280px; margin: 0 auto 28px; }
.notfound .code { font-size: 4.5rem; font-weight: 800; color: var(--emerald); margin: 0; line-height: 1; }

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