/* Stell — CONSULTORIA EM GESTÃO EMPRESARIAL LTDA
   stellconsultoronline.online — visual institucional */

:root {
  --ink: #08111f;
  --navy: #0f1c30;
  --steel: #1a2f4d;
  --slate: #2c425e;
  --line: #d4dde8;
  --line-soft: #e8eef5;
  --mist: #f0f4f8;
  --paper: #f7f9fc;
  --muted: #5a6b7d;
  --text: #1e2a3a;
  --white: #ffffff;
  --accent: #1f5a9a;
  --accent-soft: #e8f0f8;
  --ok: #0d6b5c;
  --err: #b42318;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --header: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(8, 17, 31, 0.04);
  --shadow-md: 0 12px 40px rgba(8, 17, 31, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(31, 90, 154, 0.18);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.header__inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.logo:hover { text-decoration: none; }

.logo__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--ink) 0%, var(--steel) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.logo__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.logo__sub {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.nav {
  display: none;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header__cta:hover {
  background: var(--steel);
  text-decoration: none;
  color: var(--white);
}

.menu-toggle {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 6px 22px 18px;
  box-shadow: var(--shadow-sm);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ——— Company bar ——— */
.company-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.company-bar strong { color: var(--ink); font-weight: 700; }
.company-bar a { color: var(--accent); font-weight: 600; }
.company-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (min-width: 960px) {
  .company-bar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .company-bar__sep::before {
    content: "·";
    margin: 0 12px;
    color: #9aabbc;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(56px, 9vw, 100px) 0 clamp(64px, 10vw, 108px);
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(55, 110, 170, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(20, 50, 90, 0.5) 0%, transparent 50%),
    linear-gradient(155deg, #060d18 0%, #0f1c30 42%, #1a3252 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-pulse 12s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__brand {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: rise 0.7s var(--ease) both;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb0d4;
  font-weight: 700;
  margin-bottom: 18px;
  animation: rise 0.7s var(--ease) 0.08s both;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  max-width: 920px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  animation: rise 0.75s var(--ease) 0.14s both;
}

.hero .lead,
.hero h2.lead {
  font-family: var(--font);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin-bottom: 20px;
  line-height: 1.55;
  animation: rise 0.75s var(--ease) 0.22s both;
}

.hero .body {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  margin-bottom: 26px;
  line-height: 1.75;
  animation: rise 0.75s var(--ease) 0.3s both;
}

.disclaimer-box {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid rgba(143, 176, 212, 0.75);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.84);
  max-width: 820px;
  margin-bottom: 32px;
  line-height: 1.65;
  backdrop-filter: blur(6px);
  animation: rise 0.75s var(--ease) 0.38s both;
}

.disclaimer-box strong {
  color: #c5d8ec;
  display: inline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.75s var(--ease) 0.46s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn--light:hover {
  background: #eef3f9;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: #fff;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
  width: 100%;
}
.btn--dark:hover { background: var(--steel); text-decoration: none; color: var(--white); }
.btn--dark:disabled { opacity: 0.65; cursor: not-allowed; }
.btn--inline {
  width: auto;
  display: inline-flex;
  margin-top: 8px;
}

/* ——— Sections ——— */
.section {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--white);
}
.section--mist {
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section h2,
.page h1 {
  font-family: var(--display);
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section > .container > p,
.section p,
.page p,
.page li {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.75;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.02rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Service teasers — editorial rows, not cheap cards */
.cards {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 28px 4px 28px 0;
  position: relative;
  transition: background 0.25s ease, padding-left 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  background: var(--mist);
  padding-left: 18px;
}
.card:hover::before { opacity: 1; }

.card h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
  line-height: 1.7;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

.institutional {
  max-width: 720px;
}
.institutional .btn { margin-top: 8px; }

/* ——— Inner pages ——— */
.page {
  padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px);
  background: var(--white);
  min-height: 50vh;
}

.page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--ink);
  margin: 36px 0 12px;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.page ul { padding-left: 22px; margin-bottom: 18px; }
.page li { margin-bottom: 8px; }

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 36px;
  margin-top: 8px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.panel > .hint,
.form-body > .hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:hover,
.form-group textarea:hover {
  border-color: #b8c7d8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 90, 154, 0.12);
}

.form-group input.error,
.form-group textarea.error { border-color: var(--err); }

.form-error {
  display: none;
  color: var(--err);
  font-size: 0.78rem;
  margin-top: 5px;
  font-weight: 600;
}
.form-error.visible { display: block; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  margin: 10px 0 18px;
}
.consent.error { border-color: var(--err); background: #fff5f4; }
.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.consent label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 16px;
}
.form-success.visible { display: block; animation: rise 0.5s var(--ease); }
.form-body.hidden { display: none; }

.channels {
  list-style: none;
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 8px 24px;
}

.channels li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.channels li:last-child { border-bottom: 0; }

.channels strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.channels span,
.channels a {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ——— Footer ——— */
.footer {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(40, 80, 130, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0a1422 0%, #060d18 100%);
  color: #a4b3c4;
  padding: 48px 0 28px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer strong { color: var(--white); }
.footer a { color: #c2cedb; }
.footer a:hover { color: var(--white); }

.footer__legal { margin-bottom: 28px; max-width: 900px; }

.footer__nav {
  display: grid;
  gap: 28px;
  margin: 0 0 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__nav h4 {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: 10px; }
.footer__nav a {
  font-weight: 500;
  text-decoration: none;
}
.footer__nav a:hover { text-decoration: underline; }

.footer__disclaimer {
  font-size: 0.8rem;
  color: #8596a9;
  margin-bottom: 18px;
  max-width: 920px;
  line-height: 1.7;
}

.footer__copy {
  font-size: 0.8rem;
  color: #6f8296;
}

/* ——— Responsive ——— */
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .menu-toggle { margin-left: 0; }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
  }
  .card {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 32px 28px;
  }
  .card:last-child { border-right: 0; }
  .card:hover {
    padding-left: 28px;
    background: var(--mist);
  }
  .card::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
  }
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
  }
  .footer__nav { grid-template-columns: 1fr 1fr; max-width: 480px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .logo__name { font-size: 0.98rem; }
}

@media (max-width: 480px) {
  .logo__name { font-size: 0.82rem; }
  .logo__sub { display: none; }
  .hero h1 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
