/* ==========================================================================
   FERCON Assessoria Contábil — stylesheet (v3, tom sóbrio)
   Cores da marca: #141423 (navy) / #a7a8aa (cinza) + acento dourado discreto
   Tipografia: Michroma (rótulos/números) / Montserrat (texto e títulos)
   ========================================================================== */

:root {
  --ink: #10101c;          /* navy bem escuro do hero */
  --navy: #141423;         /* navy de marca */
  --navy-mid: #1c1c34;
  --navy-soft: #23233f;
  --gray: #a7a8aa;
  --gray-line: #2c2c46;
  --gray-light: #e8e8ec;
  --paper: #f7f6f2;        /* off-white quente */
  --white: #ffffff;
  --accent: #b9924a;        /* dourado/bronze — acento discreto e sério */
  --accent-ink: #201705;    /* texto escuro sobre o acento */
  --accent-dim: rgba(185, 146, 74, 0.10);
  --text: #16161f;
  --text-muted: #5a5a68;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 12, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 12, 20, 0.20);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Michroma", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent-dim);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  flex-shrink: 0;
}
.bg-navy .eyebrow, .hero .eyebrow { color: var(--accent); background: rgba(185,146,74,0.1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 17, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; box-sizing: border-box;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.82);
  position: relative; padding: 6px 0;
}
.nav-links a.active, .nav-links a:hover { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.nav-cta .btn-outline:hover { background: #fff; color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.2s ease; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 66px 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px;
    transform: translateX(100%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; color: var(--text) !important; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(700px 460px at 84% -10%, rgba(185,146,74,0.10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
  color: var(--white); position: relative; overflow: hidden;
  margin-top: -72px; /* sits under transparent sticky header */
  padding-top: 72px;
}
.hero-inner {
  position: relative; padding: 88px 24px 96px; max-width: var(--maxw); margin: 0 auto;
}
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--gray); font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 32px;
  margin-top: 58px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-highlight { display: flex; gap: 14px; align-items: flex-start; }
.hero-highlight .mark {
  font-family: "Michroma", sans-serif; color: var(--accent-ink); background: var(--accent);
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.hero-highlight strong { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 4px; }
.hero-highlight span { color: var(--gray); font-size: 0.79rem; line-height: 1.5; }

.hero-art {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167,168,170,0.18);
  border-radius: var(--radius);
  padding: 34px;
}
.hero-art .bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-bottom: 26px; }
.hero-art .bars span { display: block; width: 10px; border-radius: 6px; background: linear-gradient(180deg, var(--accent), var(--gray)); }
.hero-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-art li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray-light); font-size: 0.92rem; }
.hero-art li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

@media (max-width: 980px) {
  .hero-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-inner { padding: 56px 20px 64px; }
}
@media (max-width: 560px) {
  .hero-highlights { grid-template-columns: 1fr; margin-top: 44px; padding-top: 30px; }
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(500px 300px at 85% 0%, rgba(185,146,74,0.10), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--navy));
  color: var(--white); padding: 96px 24px 60px; text-align: center;
  margin-top: -72px; padding-top: 168px;
}
.page-hero .container { max-width: 720px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--gray); max-width: 60ch; margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: var(--gray); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--gray); border-bottom: 1px solid rgba(167,168,170,0.4); }
.breadcrumb a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }
.bg-alt { background: var(--white); }
.bg-navy {
  background: radial-gradient(700px 400px at 10% 0%, rgba(185,146,74,0.04), transparent 55%), var(--navy);
  color: var(--white);
}
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--gray); }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(20,20,35,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(185,146,74,0.35); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--accent-dim); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-family: "Michroma", sans-serif; font-size: 1rem;
}
.card h3 { margin-bottom: 10px; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 999px; margin-bottom: 18px;
  background: var(--accent); color: var(--accent-ink);
  font-family: "Michroma", sans-serif; font-size: 0.78rem; letter-spacing: 0.04em;
}
.card p { margin-bottom: 0; font-size: 0.94rem; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; }
.card ul li { margin-bottom: 6px; }

/* values row (grid) */
.values-row-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
@media (max-width: 880px) { .values-row-grid { grid-template-columns: 1fr; gap: 26px; } }

/* steps */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: "Michroma", sans-serif; font-size: 0.9rem;
}
.step .num::before { content: counter(step); }

/* testimonial */
.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid rgba(20,20,35,0.05); }
.testimonial-card p.quote { color: var(--text); margin-bottom: 16px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: "Michroma", sans-serif; font-size: 0.78rem;
}
.testimonial-card .who strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testimonial-card .who span { font-size: 0.78rem; color: var(--text-muted); }

.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card.mini { padding: 22px; }
.testimonial-card.mini .stars { font-size: 0.74rem; margin-bottom: 10px; }
.testimonial-card.mini p.quote { font-size: 0.85rem; line-height: 1.55; margin-bottom: 14px; }
.testimonial-card.mini .avatar { width: 32px; height: 32px; font-size: 0.68rem; }
.testimonial-card.mini .who strong { font-size: 0.82rem; }
.testimonial-card.mini .who span { font-size: 0.72rem; }

/* CTA band */
.cta-band {
  background: radial-gradient(600px 300px at 90% 0%, rgba(185,146,74,0.08), transparent 60%), linear-gradient(120deg, var(--ink), var(--navy));
  color: var(--white); border-radius: var(--radius); padding: 54px 40px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--gray); max-width: 52ch; margin: 0 auto 28px; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* faq */
.faq-item { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(20,20,35,0.06); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: "Michroma", sans-serif; font-size: 1.1rem; color: var(--navy); background: var(--accent-dim); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; background: var(--accent); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.94rem; }
.bg-navy .faq-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.bg-navy .faq-item summary { color: #fff; }
.bg-navy .faq-item .faq-body { color: var(--gray); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 36px 30px; }
.contact-info-card h3 { color: var(--white); }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(185,146,74,0.10); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: "Michroma", sans-serif; font-size: 0.8rem;
}
.contact-list strong { display: block; font-size: 0.85rem; color: var(--gray); font-weight: 600; }
.contact-list a, .contact-list span.val { color: var(--white); font-weight: 600; }

form.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 30px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--gray-light);
  font-family: "Montserrat", sans-serif; font-size: 0.94rem; background: var(--paper); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-dim); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); }

/* team */
.team-card { text-align: center; }
.team-card .photo {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; font-family: "Michroma", sans-serif; color: var(--accent); font-size: 1.3rem;
}
.team-card span.role { display: block; font-size: 0.82rem; color: var(--navy); font-weight: 700; margin-top: 4px; }

/* values */
.value-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.value-row .mark {
  font-family: "Michroma", sans-serif; color: var(--accent-ink); background: var(--accent);
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

/* footer */
.site-footer { background: var(--ink); color: var(--gray); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-grid a { font-size: 0.9rem; color: var(--gray); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--gray); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: rgba(167,168,170,0.65);
}

/* whatsapp floating button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
