/* ==========================================================
   Grace Systems — Landing Page
   Paleta extraída do logo: azul-marinho + azul-ciano
   ========================================================== */

:root {
  --navy-900: #06284d;
  --navy-800: #0a3566;
  --navy-700: #0b4a8b;
  --blue-600: #1467b8;
  --blue-500: #1e88d6;
  --cyan-400: #35a9e6;
  --cyan-300: #6cc4f0;

  --bg: #f7f7f7;          /* combina com o fundo das imagens do logo */
  --surface: #ffffff;
  --surface-alt: #eef4fa;
  --text: #16243a;
  --muted: #56657a;
  --border: #dde6f0;

  --grad: linear-gradient(135deg, var(--navy-700) 0%, var(--blue-500) 55%, var(--cyan-400) 100%);
  --shadow-sm: 0 2px 8px rgba(11, 74, 139, .06);
  --shadow-md: 0 12px 32px rgba(11, 74, 139, .12);
  --radius: 16px;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 136, 214, .3);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(30, 136, 214, .4); }

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn-ghost:hover { background: var(--navy-700); color: #fff; }

.btn-sm { padding: .6em 1.2em; font-size: .9rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--cyan-300); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 247, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 42px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  line-height: 1;
  color: var(--navy-700);
}
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.brand-text span { font-size: .72rem; font-weight: 500; letter-spacing: .28em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s 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 {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(53, 169, 230, .16), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(11, 74, 139, .10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
}
.hero-logo {
  width: 72%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(11, 74, 139, .18));
  animation: float 6s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(30, 136, 214, .28);
}
.orbit-1 { inset: 2%; animation: spin 40s linear infinite; }
.orbit-2 { inset: 14%; border-style: solid; border-color: rgba(11, 74, 139, .08); }

.chip {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy-700);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-web { top: 10%; left: -2%; animation-delay: -1s; }
.chip-desktop { top: 44%; right: -6%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Cards de serviço */
.cards {
  --cols: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.cards .card { flex: 0 1 calc((100% - (var(--cols) - 1) * 24px) / var(--cols)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 136, 214, .35);
}
.card p { color: var(--muted); margin: 0; }

.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad);
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(30, 136, 214, .28);
}
.card-icon svg,
.contact-list svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Processo */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  border: 1px solid var(--border);
}
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -24px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}

/* Tecnologias */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.tech-group h3 { font-size: 1rem; margin-bottom: 16px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-group {
  display: flex;
  flex-direction: column;
}
.tech-group .tags { margin-bottom: 18px; }
.tech-group p {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.tags li {
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Sobre */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  background: var(--surface);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  width: 100%;
  justify-self: center;
}
.about-media img { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.about-copy > p { color: var(--muted); font-size: 1.05rem; }

.features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.features li {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 3px solid var(--blue-500);
}
.features strong { font-family: var(--font-head); color: var(--navy-800); margin-bottom: 4px; }
.features span { color: var(--muted); font-size: .95rem; }

/* Contato */
.contact {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(53, 169, 230, .35), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dce9f7;
}
.contact h2 { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p { font-size: 1.08rem; }

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
}
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full, .contact-form .btn, .form-status { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy-800); }
.optional { font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: inherit;
  background: #fbfcfe;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 136, 214, .15);
}
.field.invalid input,
.field.invalid textarea { border-color: #d64545; }

.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; color: var(--blue-600); }
.form-status.error { color: #c23a3a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb5cf;
  padding: 40px 0;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-mark { width: 46px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #cfe0f2; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copy { width: 100%; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Animação de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards { --cols: 2; }
  .steps, .tech-groups { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }

  .hero { padding: 40px 0 72px; }
  .hero-inner, .about, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 340px; order: -1; }
  .about-media { max-width: 360px; margin: 0 auto; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .cards { --cols: 1; }
  .steps, .tech-groups, .features, .contact-form { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { font-size: .75rem; padding: 6px 10px; }
  .chip-desktop { right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
