/* ============================================================
   Kanaan Assessoria — Design System
   Paleta indigo (cor da logo #23266e) · tipografia Inter/Sora
   ============================================================ */
:root {
  /* Brand — derivada da logo (#23266e índigo) */
  --navy: #23266e;
  --navy-700: #191b54;
  --blue: #3a40a6;
  --blue-600: #2f3490;
  --blue-500: #6166cc;
  --blue-50: #ecedf9;

  /* Neutrals (levemente tingidos de índigo p/ coesão) */
  --ink: #1b1d3a;
  --muted: #5e6184;
  --line: #e6e7f3;
  --bg: #ffffff;
  --bg-alt: #f4f5fb;
  --white: #ffffff;
  --whats: #25d366;

  /* System */
  --radius: 4px;
  --radius-sm: 3px;
  --shadow-sm: 0 1px 2px rgba(35, 38, 110, .07), 0 4px 16px rgba(35, 38, 110, .06);
  --shadow-md: 0 10px 30px rgba(35, 38, 110, .12);
  --shadow-lg: 0 24px 60px rgba(35, 38, 110, .18);
  --container: 1160px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --ff-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-display: 'Sora', var(--ff-sans);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; color: var(--navy); letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.5rem); margin: 14px 0 12px; }
.section__head p { color: var(--muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow--light { color: #b9bbef; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(58, 64, 166, .30); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 12px 28px rgba(58, 64, 166, .40); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: var(--shadow-lg); }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }
.btn--whats svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 14px; overflow: visible; }
.brand__k { height: 56px; width: auto; display: block; flex: none; }
.brand__name { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; overflow: visible; }
.brand__name strong { font-family: var(--ff-display); font-weight: 800; font-size: 1.34rem; line-height: 1.22; letter-spacing: .04em; color: var(--navy); }
.brand__name small { font-size: .72rem; line-height: 1.3; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
/* logo completa (rodapé) */
.brand-logo { height: 50px; width: auto; display: block; }
.brand-logo--light { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blue); transition: width .25s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--blue); }
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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; background:
  radial-gradient(1100px 520px at 85% -10%, var(--blue-50), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 84px 0 96px; }
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.45rem); margin: 18px 0 20px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 38px; }
.hero__trust { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--ff-display); font-size: 1.5rem; color: var(--navy); }
.hero__trust span { font-size: .86rem; color: var(--muted); }

/* Hero visual */
.hero__visual { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); }
.hero__card--main { position: relative; z-index: 2; width: min(360px, 100%); padding: 24px; margin: 0 0 30px 30px; animation: float 6s var(--ease) infinite; }
.hero__card-head { display: flex; gap: 7px; margin-bottom: 18px; }
.hero__card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero__card-head .dot:first-child { background: var(--blue-500); }
.hero__metric { display: flex; flex-direction: column; margin-bottom: 16px; }
.hero__metric span { font-size: .8rem; color: var(--muted); }
.hero__metric strong { font-family: var(--ff-display); font-size: 1.7rem; color: var(--blue); }
.hero__bars { display: flex; align-items: flex-end; gap: 9px; height: 90px; margin-bottom: 18px; }
.hero__bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--blue-500), var(--blue)); opacity: .85; }
.hero__row { display: flex; align-items: center; justify-content: space-between; font-size: .9rem;
  padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.hero__row b { color: var(--navy); font-family: var(--ff-display); }
.hero__row b.up { color: #1c9c63; }
.hero__card--badge { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 16px 20px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--navy), var(--blue)); border: 0; animation: float 6s var(--ease) infinite .8s; }
.hero__badge-num { font-family: var(--ff-display); font-weight: 800; font-size: 1.8rem; color: #fff; }
.hero__badge-txt { font-size: .76rem; color: #c2c4ef; letter-spacing: .04em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Strip (banda de imagem) ---------- */
.strip { position: relative; overflow: hidden; background: var(--navy); color: #dfe1f6; }
.strip::before { content: ""; position: absolute; inset: 0;
  background: url("../img/office-1.jpg") center/cover; transform: scale(1.06); filter: blur(2px) brightness(.55); }
.strip::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(35, 38, 110, .82) 0%, rgba(25, 27, 84, .80) 100%); }
.strip__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center; max-width: 780px; margin: 0 auto;
  padding: 60px 24px; text-align: center; font-size: 1.32rem; line-height: 1.4; }
.strip strong { color: #fff; font-family: var(--ff-display); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--feats { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- Service cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-50); color: var(--blue);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--blue); color: #fff; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- About ---------- */
.about__media { display: grid; }
.about__photo {
  position: relative; border-radius: var(--radius); min-height: 460px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__bg { position: absolute; inset: -14px; background-size: cover; background-position: center;
  filter: blur(2px) brightness(.92); }
.about__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(58, 64, 166, .28) 0%, rgba(25, 27, 84, .82) 88%);
}
.about__badge {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 20px; padding: 22px 24px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}
.about__badge strong { flex: none; font-family: var(--ff-display); font-weight: 800; font-size: 3.4rem; line-height: .9; }
.about__badge span { font-size: .98rem; color: #eceefb; }
.about__badge b { color: #fff; font-weight: 700; }
.about__content h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.3rem); margin: 14px 0 18px; }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__content p strong { color: var(--ink); }
.values { display: grid; gap: 12px; margin: 22px 0 30px; }
.values li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 1rem; }
.values__tag {
  flex: none; min-width: 96px; text-align: center; padding: 7px 12px; border-radius: var(--radius);
  font-weight: 600; font-size: .82rem; color: var(--blue); background: var(--blue-50);
}

/* ---------- Feats ---------- */
.feat { padding: 30px 26px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.feat:hover { transform: translateY(-5px); }
.feat__num { font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem; color: var(--blue);
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px;
  background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .95rem; }

/* ---------- CTA section ---------- */
.section--cta { position: relative; overflow: hidden; background: var(--navy-700); color: #fff; }
.section--cta::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/desk-accounting.jpg") center/cover; transform: scale(1.06);
  filter: blur(3px) brightness(.5);
}
.section--cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(35, 38, 110, .90) 0%, rgba(25, 27, 84, .86) 100%);
}
.cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta__inner h2 { color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); margin: 12px 0 14px; max-width: 16em; }
.cta__inner p { color: #c9cbef; max-width: 38em; }

/* ---------- Contact ---------- */
.contact__info h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.3rem); margin: 14px 0 14px; }
.contact__info > p { color: var(--muted); margin-bottom: 28px; }
.contact__list { display: grid; gap: 22px; margin-bottom: 32px; }
.contact__list li { display: flex; gap: 16px; }
.contact__ico { flex: none; width: 46px; height: 46px; border-radius: 6px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__list strong { display: block; color: var(--navy); font-family: var(--ff-display); font-size: .98rem; margin-bottom: 3px; }
.contact__list div { color: var(--muted); font-size: .97rem; }
.contact__list a:hover { color: var(--blue); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #bcbedf; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; font-size: .94rem; max-width: 32em; color: #9da0cf; }
.footer h4 { color: #fff; font-size: .96rem; margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { color: #bcbedf; font-size: .94rem; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact p { font-size: .94rem; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; color: #9093c4; }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 14px; background: var(--whats); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.whats-float svg { width: 30px; height: 30px; }
.whats-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--feats { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 72px; }
  .hero__visual { min-height: 320px; order: 2; }
  .grid--split { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 10px; text-align: center; }
}

@media (max-width: 560px) {
  .grid--cards, .grid--feats { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__visual { min-height: 300px; padding: 16px; }
  .hero__card--main { width: 100%; max-width: 340px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
