/* ==========================================================
   Farias Contábil - estilos
   ========================================================== */
:root {
  --navy-900: #0a1a2f;
  --navy-800: #0f2540;
  --navy-700: #163357;
  --navy-600: #1f4470;
  --orange: #f3992e;
  --orange-600: #e0841a;
  --orange-100: #fdf0e0;
  --ink: #1b2533;
  --muted: #5d6b7e;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 37, 64, .08);
  --shadow-lg: 0 20px 50px rgba(15, 37, 64, .15);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; line-height: 1.2; margin: 0 0 .6em; color: var(--navy-800); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { fill: currentColor; }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 14px;
}
.hl { color: var(--orange); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 "Inter", sans-serif; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(243, 153, 46, .35); }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--ghost-dark { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn--whatsapp svg { width: 20px; }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { color: var(--orange-600); }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy-800); }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; display: block; width: 190px; }
.logo { width: 100%; transition: opacity .3s; }
.logo--dark { position: absolute; inset: 0; opacity: 0; }
.header.is-scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(15, 37, 64, .08); --header-h: 70px; }
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: #fff; font-weight: 500; font-size: .96rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.header.is-scrolled .nav a:not(.btn) { color: var(--navy-800); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.header.is-scrolled .nav-toggle span { background: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, var(--navy-600) 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.hero__bg {
  position: absolute; inset: auto -20% -80% -20%; height: 90%;
  border-radius: 50% 50% 0 0;
  border-top: 3px solid rgba(243, 153, 46, .55);
  box-shadow: 0 -30px 80px rgba(243, 153, 46, .12);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: rgba(255, 255, 255, .75); font-size: .93rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; color: var(--orange); }

.hero__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: 1.4rem; }
.hero__card p { color: rgba(255, 255, 255, .75); }
.hero__card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange); color: #fff; margin-bottom: 22px;
}
.hero__card-icon svg { width: 28px; }
.link-arrow { color: var(--orange); font-weight: 600; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover { color: #fff; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Seções ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__head p { color: var(--muted); font-size: 1.07rem; }

.grid { display: grid; gap: 26px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-600); margin-bottom: 22px;
  transition: background .3s, color .3s;
}
.card__icon svg { width: 28px; }
.card:hover .card__icon { background: var(--orange); color: #fff; }

/* ---------- Números ---------- */
.stats { background: var(--navy-800); color: #fff; padding: 70px 0; }
.grid--stats { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat strong { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1.1 "Montserrat", sans-serif; color: var(--orange); }
.stat strong::before { content: "+"; }
.stat span { color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* ---------- Empresa ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.about__visual { display: grid; gap: 20px; }
.about__badge {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: rgba(255, 255, 255, .85); border-radius: 20px; padding: 44px 36px;
  position: relative; overflow: hidden;
}
.about__badge::after {
  content: ""; position: absolute; right: -40%; top: -60%; width: 150%; height: 120%;
  border-radius: 50%; border-bottom: 3px solid var(--orange); opacity: .7;
}
.about__badge-num { display: block; font: 800 4rem/1 "Montserrat", sans-serif; color: var(--orange); margin-bottom: 10px; }
.about__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about__pillars div { background: #fff; border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); }
.about__pillars strong { display: block; font-family: "Montserrat", sans-serif; color: var(--navy-800); }
.about__pillars span { font-size: .85rem; color: var(--muted); }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--navy-800); }
blockquote {
  margin: 28px 0 0; padding: 20px 24px;
  border-left: 4px solid var(--orange); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--navy-700); box-shadow: var(--shadow);
}

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; padding: 60px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: .87rem; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(243, 153, 46, .15);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #d64545; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__msg { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form__msg.is-error { color: #c23a3a; }
.form__msg.is-ok { color: #1f8a4c; }

.contact__info { display: grid; gap: 16px; }
.info { display: flex; gap: 18px; background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.info h4 { margin: 0 0 4px; font-size: 1rem; }
.info p { margin: 0; color: var(--muted); font-size: .95rem; }
.info__icon { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--orange); }
.info__icon svg { width: 22px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { width: 200px; margin-bottom: 18px; }
.footer__brand p { max-width: 380px; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .7); font-size: .95rem; word-break: break-word; }
.footer a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .88rem; }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__bottom p { margin: 0; }
.to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff !important; }
.to-top:hover { background: var(--orange); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1; animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--navy-900);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn), .header.is-scrolled .nav a:not(.btn) { color: #fff; font-size: 1.3rem; }
  .header.nav-open .nav { opacity: 1; visibility: visible; }
  .header.nav-open .nav-toggle span { background: #fff; }
  .header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header.nav-open .logo--light { opacity: 1; position: relative; z-index: 2; }
  .header.nav-open .logo--dark { opacity: 0; }
  .grid--stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .grid--services { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact__form { padding: 26px 20px; }
  .about__pillars { grid-template-columns: 1fr; }
  .hero__card { padding: 28px 24px; }
  .header__logo { width: 160px; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
}
