/* Agrofort – PNCF Projetos | tokens = paleta do logo (docs/design-system.md). Cores só aqui no :root. */
:root {
  /* Marca */
  --leaf: #4A8A55;
  --leaf-strong: #2F6B3A;
  --field: #6CC27C;
  --field-light: #9ADC82;
  --sun: #FBE14A;
  --sun-hover: #F5D52A;
  --night: #1E4A28;
  --night-deep: #163A1F;
  --danger: #DC2626;
  --warning: #B45309;
  --white: #FFFFFF;

  /* Mapeamento para os tokens do framework (shared/styles) */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --bg-primary: #F6FAF3;
  --bg-surface: #FFFFFF;
  --bg-soft: #EAF4E4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F8EC;

  --border-subtle: #D3E8CB;
  --border-strong: #B9D9AD;

  --text-main: #1E4A28;
  --text-muted: #4B5F50;
  --text-subtle: #5E7263;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #D5E9CF;

  --primary: #2F6B3A;
  --primary-hover: #245A2F;
  --primary-glow: rgba(47, 107, 58, 0.25);
  --accent: #4A8A55;
  --sun-glow: rgba(251, 225, 74, 0.45);
  --whatsapp-color: #25D366;
  --whatsapp-hover: #1EBE5A;
  --whatsapp-glow: rgba(37, 211, 102, 0.4);

  --glass-on-dark: rgba(255, 255, 255, 0.08);
  --glass-border-on-dark: rgba(255, 255, 255, 0.16);
  --overlay-dark: rgba(22, 58, 31, 0.92);
  --hero-overlay-strong: rgba(22, 58, 31, 0.94);
  --hero-overlay-mid: rgba(22, 58, 31, 0.72);
  --hero-overlay-clear: rgba(22, 58, 31, 0.08);

  --shadow-sm: 0 2px 8px rgba(30, 74, 40, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(30, 74, 40, 0.10), 0 8px 10px -6px rgba(30, 74, 40, 0.05);
  --shadow-lg: 0 24px 50px -12px rgba(30, 74, 40, 0.25);
  --shadow-cta: 0 12px 28px -8px rgba(180, 150, 10, 0.55);
  --glass-blur: none;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
body { font-size: 1.0625rem; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf-strong);
}
.section-title { font-size: clamp(1.8rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin-top: 14px; font-size: 1.1rem; color: var(--text-muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--leaf-strong); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); }

/* ---------- Botões ---------- */
.btn-primary, .btn-cta, .btn-ghost { cursor: pointer; text-align: center; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--sun); color: var(--night);
  padding: 17px 30px; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow-cta);
  transition: var(--transition-fast);
}
.btn-cta:hover { background: var(--sun-hover); transform: translateY(-2px); }
.btn-cta .icon { transition: transform var(--transition-fast); }
.btn-cta:hover .icon { transform: translateX(3px); }
.btn-sm { padding: 11px 20px; font-size: 0.95rem; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-full); font-weight: 700;
  border: 2px solid var(--glass-border-on-dark); color: var(--text-on-dark);
  transition: var(--transition-fast);
}
.btn-ghost:hover { background: var(--glass-on-dark); transform: translateY(-2px); }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--night-deep); color: var(--text-on-dark-muted); font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.topbar strong { color: var(--sun); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; line-height: 1.05; color: var(--leaf-strong); }
.brand-name small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.nav { display: none; gap: 28px; font-weight: 500; color: var(--text-muted); }
.nav a:hover { color: var(--leaf-strong); }
@media (min-width: 960px) { .nav { display: flex; } }
@media (max-width: 420px) { .site-header .btn-cta span { display: none; } .site-header .btn-cta { padding: 12px 14px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 85% 8%, var(--sun-glow), transparent 32%), linear-gradient(160deg, var(--night) 0%, var(--night-deep) 70%);
  color: var(--text-on-dark);
  padding: clamp(48px, 8vw, 96px) 0 clamp(140px, 16vw, 200px);
}
.hero-fields { position: absolute; inset: auto 0 0 0; width: 100%; height: clamp(120px, 18vw, 220px); z-index: -1; }
.hero-fields .f1 { fill: var(--leaf); }
.hero-fields .f2 { fill: var(--field); }
.hero-fields .f3 { fill: var(--field-light); }
.hero-fields .f4 { fill: var(--bg-primary); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.1fr 0.9fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 14px; border-radius: var(--radius-full);
  background: var(--glass-on-dark); border: 1px solid var(--glass-border-on-dark);
  font-size: 0.9rem; font-weight: 600; color: var(--text-on-dark-muted);
}
.hero-badge .icon { color: var(--sun); }
.hero-title { color: var(--text-on-dark); font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero-title em { font-style: normal; color: var(--sun); }
.hero-desc { margin: 20px 0 32px; max-width: 580px; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-on-dark-muted); }
.hero-desc strong { color: var(--text-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 0.95rem; color: var(--text-on-dark-muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .icon { color: var(--field-light); }

/* Hero com foto (modificador .hero--photo). Para voltar ao hero sem foto:
   tirar a classe hero--photo e o <picture class="hero-photo"> do index.html. */
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero--photo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--hero-overlay-mid) 0%, var(--hero-overlay-strong) 60%);
}
.hero--photo .result-card { display: none; }
@media (max-width: 767px) {
  /* Celular: foto vira faixa abaixo dos botões (atrás do texto a família sumia) */
  .hero--photo { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero--photo::before { display: none; }
  .hero--photo .hero-photo {
    position: relative; inset: auto; order: 2; height: 340px; margin-top: 8px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 28%);
    mask-image: linear-gradient(180deg, transparent 0%, black 28%);
  }
  .hero--photo .hero-photo img { object-position: 50% 30%; }
  .hero--photo .hero-fields { height: 90px; }
}
.hero--photo .hero-title, .hero--photo .hero-desc { text-shadow: 0 2px 16px var(--hero-overlay-strong); }
@media (min-width: 768px) {
  .hero--photo { padding-top: clamp(72px, 9vw, 120px); }
  .hero--photo .hero-photo img { object-position: 70% 35%; }
  .hero--photo::before { background: linear-gradient(90deg, var(--hero-overlay-strong) 0%, var(--hero-overlay-mid) 42%, var(--hero-overlay-clear) 72%); }
  .hero--photo .container { grid-template-columns: minmax(0, 640px); }
}

/* Card de exemplo de resultado */
.result-card {
  position: relative; background: var(--bg-surface); color: var(--text-main);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
  max-width: 440px; justify-self: center; width: 100%;
}
.result-card-tag {
  position: absolute; top: -14px; left: 24px; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--sun); color: var(--night); font-size: 0.8rem; font-weight: 700;
}
.result-card .meter { height: 10px; border-radius: var(--radius-full); background: var(--bg-soft); overflow: hidden; margin: 10px 0 18px; }
.result-card .meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--field), var(--leaf)); border-radius: inherit; }
.result-card-kicker { font-size: 0.85rem; font-weight: 700; color: var(--leaf-strong); text-transform: uppercase; letter-spacing: 0.05em; }
.result-card h3 { font-size: 1.6rem; font-weight: 800; }
.result-card ul { display: grid; gap: 10px; margin-top: 16px; }
.result-card li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-primary); font-size: 0.97rem; }
.result-card li b { font-family: var(--font-heading); color: var(--leaf-strong); font-size: 1.05rem; white-space: nowrap; }

/* ---------- Condições (sobrepõe o hero) ---------- */
.stats { margin-top: clamp(-110px, -10vw, -70px); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.stat {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 22px 18px; box-shadow: var(--shadow-md);
}
.stat .icon { width: 30px; height: 30px; color: var(--leaf); margin-bottom: 12px; }
.stat strong { display: block; font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; color: var(--text-main); line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Problema x solução ---------- */
.pain-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.pain .icon { width: 28px; height: 28px; color: var(--warning); margin-bottom: 14px; }
.pain h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pain p { color: var(--text-muted); }
.solution {
  margin-top: 28px; display: grid; gap: 20px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--leaf-strong), var(--night)); color: var(--text-on-dark);
}
@media (min-width: 860px) { .solution { grid-template-columns: 1fr auto; } }
.solution h3 { color: var(--text-on-dark); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.solution p { color: var(--text-on-dark-muted); margin-top: 8px; }

/* ---------- Linhas de crédito ---------- */
.lines { background: var(--night); color: var(--text-on-dark); position: relative; overflow: hidden; }
.lines .section-title { color: var(--text-on-dark); }
.lines .section-sub { color: var(--text-on-dark-muted); }
.lines .eyebrow { color: var(--sun); }
.lines-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .lines-grid { grid-template-columns: repeat(3, 1fr); } }
.line-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--radius-lg); background: var(--glass-on-dark); border: 1px solid var(--glass-border-on-dark);
  transition: var(--transition-normal);
}
.line-card:hover { transform: translateY(-4px); border-color: var(--field); }
.line-card .icon { width: 34px; height: 34px; color: var(--field-light); }
.line-card h3 { color: var(--text-on-dark); font-size: 1.45rem; }
.line-rate { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: var(--sun); line-height: 1; }
.line-rate small { font-size: 1rem; font-weight: 600; color: var(--text-on-dark-muted); }
.line-for { color: var(--text-on-dark-muted); }
.line-card ul { display: grid; gap: 8px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--glass-border-on-dark); font-size: 0.97rem; }
.line-card li { display: flex; gap: 8px; align-items: flex-start; }
.line-card li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--field); }
.line-card.featured { background: var(--bg-surface); color: var(--text-main); border-color: transparent; box-shadow: var(--shadow-lg); }
.line-card.featured h3 { color: var(--text-main); }
.line-card.featured .line-rate { color: var(--leaf-strong); }
.line-card.featured .line-rate small, .line-card.featured .line-for { color: var(--text-muted); }
.line-card.featured ul { border-top-color: var(--border-subtle); }
.line-card.featured .icon { color: var(--leaf); }
.line-badge { align-self: flex-start; padding: 5px 12px; border-radius: var(--radius-full); background: var(--sun); color: var(--night); font-size: 0.8rem; font-weight: 700; }

/* ---------- Quem pode ---------- */
.rules-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
.rules { background: var(--bg-surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); }
.rules h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 18px; }
.rules ul { display: grid; gap: 14px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rules li .icon { margin-top: 3px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; }
.rules-yes li .icon, .rules-yes h3 .icon { color: var(--white); background: var(--leaf-strong); }
.rules-no li .icon, .rules-no h3 .icon { color: var(--white); background: var(--danger); }
.rules h3 .icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; }
.docs-note { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--bg-soft); color: var(--text-muted); font-size: 0.97rem; }
.docs-note strong { color: var(--text-main); }

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--sun); color: var(--night);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Quiz ---------- */
.quiz-section { background: linear-gradient(180deg, var(--bg-soft), var(--bg-primary)); scroll-margin-top: 80px; }
.quiz-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .quiz-wrap { grid-template-columns: 0.8fr 1.2fr; } }
.quiz-aside .section-title { text-align: left; }
.quiz-aside ul { display: grid; gap: 12px; margin-top: 24px; }
.quiz-aside li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.quiz-aside li .icon { color: var(--leaf-strong); }
.quiz { max-width: none; width: 100%; margin: 0; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); border-color: var(--border-subtle); min-height: 420px; }
.quiz-progress-fill { background: linear-gradient(90deg, var(--field), var(--leaf)); }
.quiz-step { color: var(--leaf-strong); font-weight: 700; }
.quiz-title { color: var(--text-main); }
.quiz-option { font-size: 1.05rem; font-weight: 500; padding: 17px 18px; border-width: 2px; border-color: var(--border-subtle); cursor: pointer; }
.quiz-option:hover, .quiz-option.selected { border-color: var(--leaf); background: var(--bg-card-hover); }
.quiz-back { cursor: pointer; }
.quiz .btn-primary { width: 100%; padding: 17px 24px; font-size: 1.05rem; }
.quiz-result-items li::before { color: var(--leaf-strong); }
.quiz--warning .quiz-result-items li::before { color: var(--warning); }
.quiz--negative .quiz-result-items li::before { color: var(--danger); }
.quiz--negative .quiz-result-kicker { color: var(--danger); }
.field span { color: var(--text-main); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; text-align: left; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-main);
}
.faq-question .icon { color: var(--leaf); transition: transform var(--transition-normal); }
.faq-item.active .faq-question .icon { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-normal); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 22px 20px; color: var(--text-muted); }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--sun); text-align: center; position: relative; overflow: hidden; }
.final-cta .section-title { color: var(--night); }
.final-cta p { margin: 14px auto 30px; max-width: 620px; color: var(--night); font-size: 1.1rem; }
.final-cta .btn-primary { padding: 18px 32px; font-size: 1.1rem; font-family: var(--font-heading); background: var(--night); }
.final-cta .btn-primary:hover { background: var(--night-deep); }
.final-cta small { display: block; margin-top: 14px; color: var(--night); font-weight: 500; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--night-deep); color: var(--text-on-dark-muted); padding: 56px 0 100px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand img { width: 84px; height: 84px; border-radius: var(--radius-md); background: var(--white); padding: 4px; margin-bottom: 14px; }
.site-footer h4 { color: var(--text-on-dark); font-size: 1rem; margin-bottom: 14px; }
.site-footer li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.site-footer li .icon { margin-top: 3px; color: var(--field); }
.site-footer a:hover { color: var(--sun); }
.partner { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--glass-border-on-dark); color: var(--text-on-dark); font-weight: 600; }
.partner .icon { color: var(--sun); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--glass-border-on-dark); display: grid; gap: 8px; font-size: 0.85rem; }
.footer-bottom a { text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp-color); color: var(--white); box-shadow: var(--shadow-lg);
  transition: var(--transition-fast);
}
.wa-float:hover { background: var(--whatsapp-hover); transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Página inicial: cards de serviços ---------- */
.services-grid { display: grid; gap: 20px; }
@media (min-width: 620px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.service-card:hover, .service-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-card--link { color: inherit; text-decoration: none; }
.service-photo {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--border-subtle));
}
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Foto horizontal: mantém rosto + aperto de mão no recorte retrato 3:4 */
.service-photo img[src*="credito-rural"] { object-position: 18% center; }
.service-photo .icon {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; color: var(--leaf-strong); opacity: 0.85;
}
.service-photo:not(.no-photo) .icon { display: none; }
.service-photo.no-photo img { display: none; }
.service-body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
}
.service-body h3 { font-size: 1.08rem; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.service-arrow {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--bg-surface); color: var(--leaf-strong);
  transition: var(--transition-fast);
}
.service-arrow .icon { width: 18px; height: 18px; }
.service-card:hover .service-arrow, .service-card:focus-visible .service-arrow {
  background: var(--sun); border-color: var(--sun); color: var(--night); transform: translateX(3px);
}
.service-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--sun); color: var(--night); font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}

/* Popup de cadastro dos serviços: fundo verde (como #quem-pode), form em card branco */
dialog.popup--servico {
  width: min(960px, calc(100% - 32px));
  padding: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-soft);
  /* iOS: 100vh inclui a barra do Safari e cortava o fim do popup; dvh = área realmente visível */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}
.popup-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.popup-info { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px); }
.popup-info .eyebrow { color: var(--leaf-strong); margin-bottom: 0; }
.popup-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--night); }
.popup-desc { font-size: 1.1rem; line-height: 1.6; color: var(--text-main); }
dialog.popup--servico form {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  margin: clamp(16px, 3vw, 28px);
  padding: clamp(24px, 3.5vw, 36px);
}
dialog.popup--servico form small { display: block; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 767px) {
  .popup-grid { grid-template-columns: 1fr; }
  .popup-desc:not(.is-open) {
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .popup-more {
    align-self: flex-start; min-height: 44px; padding: 0; margin-top: -4px;
    background: none; border: 0; cursor: pointer;
    color: var(--leaf-strong); font: inherit; font-weight: 700; text-decoration: underline;
    transition: opacity .2s ease;
  }
  .popup-more:hover { opacity: .75; }
  .popup-more:focus-visible { outline: 2px solid var(--leaf-strong); outline-offset: 2px; }
  dialog.popup--servico form { margin: 0 16px calc(16px + env(safe-area-inset-bottom)); padding: 22px 24px 26px; }
}

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