/* FPM CRM — site institucional (Guide Book oficial) */
:root {
  --terracotta: #c85a32;
  --terracotta-soft: #e28b6a;
  --gold: #d4a359;
  --sand: #f8f5f0;
  --night: #1d2a3a;
  --night-muted: rgba(29, 42, 58, 0.72);
  --white: #ffffff;
  --line: rgba(29, 42, 58, 0.12);
  --shadow-soft: 0 18px 48px rgba(29, 42, 58, 0.08);
  --radius: 1rem;
  --max: 68rem;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--night);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(200, 90, 50, 0.12), transparent 55%),
    radial-gradient(90% 70% at 100% 10%, rgba(212, 163, 89, 0.16), transparent 50%),
    linear-gradient(180deg, var(--sand) 0%, #fffdf9 42%, var(--sand) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--night);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--night);
  color: var(--sand);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 245, 240, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--night);
  border-radius: 0.65rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--night);
  text-decoration: none;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.brand[aria-current="page"] .brand-name,
.footer-col a[aria-current="page"] {
  color: var(--terracotta);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(200, 90, 50, 0.28);
}

.nav-cta:hover {
  background: #b34e2b;
  color: var(--white) !important;
}

.nav-cta.is-disabled,
.btn.is-disabled {
  background: rgba(29, 42, 58, 0.28);
  color: var(--white) !important;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none !important;
}

.nav-cta.is-disabled:hover,
.btn.is-disabled:hover {
  background: rgba(29, 42, 58, 0.28);
  transform: none;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--night);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--night-muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background: #b34e2b;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(29, 42, 58, 0.22);
  color: var(--night);
}

.btn-secondary:hover {
  border-color: var(--night);
  color: var(--night);
}

.pending-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(212, 163, 89, 0.12);
  color: var(--night-muted);
  font-size: 0.92rem;
  max-width: 40rem;
}

.hero-visual {
  position: relative;
  min-height: 18rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    linear-gradient(145deg, rgba(200, 90, 50, 0.92), rgba(212, 163, 89, 0.75) 55%, rgba(29, 42, 58, 0.92)),
    var(--night);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 30% 40%, rgba(248, 245, 240, 0.22), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(226, 139, 106, 0.35), transparent 45%);
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  width: min(68%, 16rem);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.hero-caption {
  position: relative;
  margin-top: 1.25rem;
  color: var(--sand);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-kicker {
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  max-width: 18ch;
}

.section-intro {
  color: var(--night-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  padding: 1.4rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  font-family: var(--font-display);
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.pillar p {
  margin: 0;
  color: var(--night-muted);
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .how-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.how-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.how-list p {
  margin: 0;
  color: var(--night-muted);
}

.cta-band {
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    linear-gradient(120deg, var(--night) 0%, #243447 55%, rgba(200, 90, 50, 0.92) 140%);
  color: var(--sand);
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: rgba(248, 245, 240, 0.82);
  max-width: 40rem;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--night);
}

.cta-band .btn-primary:hover {
  background: #e0b575;
  color: var(--night);
}

.cta-band .pending-note {
  background: rgba(248, 245, 240, 0.08);
  color: rgba(248, 245, 240, 0.86);
  border-left-color: var(--gold);
  margin-top: 1rem;
}

/* Legal pages */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 16ch;
}

.legal {
  padding-bottom: 4rem;
}

.legal article {
  max-width: 48rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.legal p,
.legal li {
  color: var(--night-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.badge-pending {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 163, 89, 0.18);
  color: var(--night);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(29, 42, 58, 0.03);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
}

.footer-brand span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-top: 0.2rem;
}

.footer-col h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  color: var(--night-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--terracotta);
}

.footer-meta {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--night-muted);
  font-size: 0.88rem;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.7rem 0.75rem;
    border-radius: 0.55rem;
  }

  .nav-menu a:hover {
    background: rgba(200, 90, 50, 0.08);
  }

  .site-header {
    position: relative;
  }

  .nav {
    position: relative;
  }
}
