/* =========================================================
   Amass — Associação Mantenedora dos Serviços Sociais
   aos Servidores Públicos do Brasil
   Design system / stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand — soft tones of the logo red */
  --brand:        #b23b37;
  --brand-600:    #9c302c;
  --brand-700:    #7f2724;
  --brand-400:    #cf5a52;
  --brand-soft:   #f6e6e4;
  --brand-tint:   #fbf1f0;

  /* Neutrals — warm, softened charcoal from the logo */
  --ink:          #2b2b2b;
  --ink-soft:     #4f4d4b;
  --muted:        #8b8681;
  --line:         #ece6e1;
  --line-soft:    #f3eeea;

  /* Surfaces */
  --bg:           #fbf8f6;
  --surface:      #ffffff;
  --surface-2:    #f7f2ef;
  --sand:         #eee2d6;

  /* Accent */
  --gold:         #c9a24a;

  /* Shape */
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 10px rgba(43, 33, 31, .06);
  --shadow:       0 14px 40px -18px rgba(43, 33, 31, .28);
  --shadow-lg:    0 30px 70px -30px rgba(127, 39, 36, .35);

  --container:    1160px;
  --header-h:     76px;

  --font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--surface-2); }
.section--brand { background: linear-gradient(160deg, #7f2724, #b23b37 60%, #c9554e); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }
.grid { display: grid; gap: 26px; }
.center { text-align: center; }

/* ---------- Headings helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-400); border-radius: 2px; }
.section--brand .eyebrow { color: #ffd9d4; }
.section--brand .eyebrow::before { background: #ffd9d4; }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.section--brand .lead { color: #fbe3e1; }
.title-lg { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; transition: .22s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(178, 59, 55, .8); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); background: var(--brand-tint); }
.btn--light { background: #fff; color: var(--brand-600); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.14); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 246, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 54px; height: auto; }
.brand__name { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brand__tag { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: .2s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brand-600); background: var(--brand-tint); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 8vw, 104px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 82% 12%, rgba(207, 90, 82, .16), transparent 60%),
  radial-gradient(50% 60% at 6% 90%, rgba(201, 162, 74, .12), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero__rings { position: absolute; right: -120px; top: -60px; width: 480px; opacity: .5; z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.hero h1 .accent { color: var(--brand-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero__points li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .93rem; color: var(--ink-soft); }
.hero__points svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* Hero visual card */
.hero__visual { position: relative; }
.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hero__card p { color: var(--muted); font-size: .92rem; }
.hero__list { display: grid; gap: 12px; margin-top: 18px; }
.hero__list li { display: flex; gap: 12px; align-items: flex-start; }
.hero__list .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.hero__list .ic svg { width: 20px; height: 20px; }
.hero__list b { display: block; font-size: .95rem; }
.hero__list span { font-size: .85rem; color: var(--muted); }
.hero__badge {
  position: absolute; left: -22px; bottom: 34px; background: var(--brand); color: #fff;
  padding: 14px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); text-align: center;
}
.hero__badge b { display: block; font-size: 1.6rem; line-height: 1; }
.hero__badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 34px; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.trust__item svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.trust__item small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

/* ---------- Cards / services ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e2d6d0; }
.card__ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-600); margin-bottom: 18px;
}
.card__ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

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

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 34px; box-shadow: var(--shadow);
}
.panel--brand { background: linear-gradient(160deg, #8f2c29, #b23b37); color: #fff; border: none; }
.panel--brand h2, .panel--brand h3, .panel--brand h4 { color: #fff; }
.panel--brand p, .panel--brand .lead { color: #fbe3e1; }
.check-list { display: grid; gap: 14px; margin-top: 6px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.check-list .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-600); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-list .ic svg { width: 15px; height: 15px; }
.panel--brand .check-list .ic { background: rgba(255,255,255,.18); color: #fff; }

/* Price / savings highlight */
.savings { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 22px; }
.savings b { font-size: 3.1rem; font-weight: 800; color: var(--brand-600); letter-spacing: -.03em; line-height: 1; }
.savings span { font-size: .95rem; color: var(--ink-soft); max-width: 22ch; }
.panel--brand .savings b { color: #fff; }
.panel--brand .savings span { color: #fbe3e1; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand-600); letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.section--brand .stat { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.section--brand .stat b { color: #fff; }
.section--brand .stat span { color: #fbe3e1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step__num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.quote__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: .98rem; color: var(--ink-soft); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; }
.quote__who b { display: block; font-size: .92rem; }
.quote__who span { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ / accordion ---------- */
.accordion { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; text-align: left; font-weight: 700; color: var(--ink); font-size: 1rem;
}
.acc__btn .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; transition: .25s; font-weight: 800; }
.acc.is-open .acc__btn .plus { background: var(--brand); color: #fff; transform: rotate(45deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc__body p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(38px, 6vw, 66px); background: linear-gradient(150deg, #8f2c29, #b23b37 55%, #c9554e); color: #fff; }
.cta__rings { position: absolute; right: -70px; bottom: -70px; width: 320px; opacity: .18; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.cta p { color: #fbe3e1; margin: 0; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 18px; }
.info { display: flex; gap: 14px; align-items: flex-start; }
.info .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-tint); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.info .ic svg { width: 22px; height: 22px; }
.info b { display: block; font-size: .95rem; }
.info a, .info span { color: var(--ink-soft); font-size: .93rem; }
.info a:hover { color: var(--brand-600); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: .18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__success {
  display: none; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius);
  background: #eaf5ec; color: #1f7a3d; border: 1px solid #cbe7d3; font-weight: 600; font-size: .93rem;
}
.form__success.is-visible { display: flex; }
.form__success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(46px, 6vw, 76px) 0; background:
  radial-gradient(50% 80% at 90% 0%, rgba(207, 90, 82, .14), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero p { max-width: 60ch; color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-600); }

/* ---------- Footer ---------- */
.site-footer { background: #241f1e; color: #cfc7c3; padding: 66px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #9c938f; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-weight: 700; }
.site-footer p { color: #a89f9b; font-size: .92rem; }
.site-footer a { color: #cfc7c3; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 11px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; font-size: .82rem; color: #9c938f; }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.social a:hover { background: var(--brand); }
.social svg { width: 20px; height: 20px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .services-grid, .quotes, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__badge { left: auto; right: 18px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) + 6px);
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links a { padding: 13px 16px; }
  .services-grid, .quotes, .steps, .footer-grid, .form__row, .stats { grid-template-columns: 1fr; }
  .brand__mark { width: 46px; }
}
