/* ══════════════════════════════════════════════════════════════════════════════
   site.css — shared styles for non-calculator pages of Finanças do Motorista
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Clean neutral palette */
  --c-bg:         #FFFFFF;        /* white base — cards read clearly */
  --c-surface:    #FFFFFF;
  --c-bg-alt:     #F2F7F4;        /* very light green-tinted white — section rhythm */
  --c-border:     #E2E8E4;        /* subtle green-tinted border */
  --c-text:       #18170F;
  --c-muted:      #6B7A70;        /* green-tinged muted text */

  /* Deep forest green */
  --c-primary:    #0B3D25;
  --c-primary-dk: #072918;
  --c-primary-lt: #ECF5EF;
  --c-primary-mid:#1A6642;

  /* Typography */
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout tokens */
  --radius:    10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Site nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
}

.site-nav__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__logo {
  font-size: .9375rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.02em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo:hover {
  color: var(--c-primary-dk);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--c-text);
  background: var(--c-bg);
}

.site-nav__cta {
  flex-shrink: 0;
}

/* Mobile nav: hide link list, keep logo + CTA */
@media (max-width: 639px) {
  .site-nav__links {
    display: none;
  }
}

/* ── Site footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-primary);
  color: #fff;
  padding: 48px 24px 32px;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.site-footer__brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.site-footer__tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  max-width: 280px;
}

.site-footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .15s;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  max-width: 960px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

@media (max-width: 639px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Page hero ─────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0B3D25 0%, #1A6642 60%, #1f7a4e 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px 88px;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
}

.page-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--c-primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(11,61,37,.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Light variant used inside hero (white text already, show as ghost) */
.page-hero .btn-primary {
  background: #fff;
  color: var(--c-primary);
}

.page-hero .btn-primary:hover {
  background: #f0f0ec;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--c-primary);
  background: transparent;
  border: 2px solid var(--c-primary);
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, transform .12s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--c-primary-lt);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Ghost variant for use on dark backgrounds */
.page-hero .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.page-hero .btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.tool-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c4bdb0;
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  background: var(--c-primary-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}

.tool-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.01em;
}

.tool-card__desc {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.65;
  flex: 1;
}

.tool-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Coming soon cards ─────────────────────────────────────────────────────── */
.coming-soon-card {
  background: #F9F8F5;
  border: 1.5px dashed var(--c-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: .72;
}

.coming-soon-card .tool-card__icon {
  background: #EEECE7;
  color: var(--c-muted);
}

.coming-soon-card .tool-card__title {
  color: var(--c-muted);
}

.badge-soon {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: #E8E5DE;
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
}

/* ── Section container ─────────────────────────────────────────────────────── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section--sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section--lg {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ── Section titles ────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--c-text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-top: 10px;
  max-width: 560px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Content sections (long-form text) ─────────────────────────────────────── */
.content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--c-text);
  margin: 2rem 0 .75rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 1.5rem 0 .5rem;
}

.content-section p {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: .75rem;
}

.content-section ul,
.content-section ol {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.8;
  color: var(--c-muted);
  font-size: .9375rem;
  margin-bottom: .75rem;
}

.content-section ol {
  list-style: decimal;
}

.content-section li + li {
  margin-top: .35rem;
}

.content-section strong {
  font-weight: 700;
  color: var(--c-text);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--c-border);
}

.faq-item__question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  user-select: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-muted);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] .faq-item__question::after,
.faq-item--open .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  font-size: .9375rem;
  color: var(--c-muted);
  line-height: 1.7;
  padding-top: 12px;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .8125rem;
  color: var(--c-muted);
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: var(--c-border);
}

.breadcrumb a {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color .12s;
}

.breadcrumb a:hover {
  color: var(--c-primary-dk);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-muted);
  font-weight: 400;
}

/* ── Tool card grid helper ─────────────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Section alt — alternating background for visual rhythm ─────────────────── */
.section-alt {
  background: var(--c-bg-alt);
  /* full-width band while content stays at max-width */
  width: 100%;
  max-width: 100%;
  padding: 64px 24px;
}

.section-alt > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Utility: divider ──────────────────────────────────────────────────────── */
.site-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* ── Responsive breakpoints ────────────────────────────────────────────────── */

/* 640px — small tablet / large phone */
@media (min-width: 640px) {
  .site-nav__links {
    display: flex;
  }

  .page-hero {
    padding: 96px 24px 104px;
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* 900px — desktop */
@media (min-width: 900px) {
  .page-hero {
    padding: 112px 24px 120px;
  }

  .section {
    padding: 80px 24px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
