/* Página de serviços: narrativa consultiva alinhada à home. */
.services-hero {
  position: relative;
  min-height: 650px;
  padding: 112px 0 104px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
  background: var(--dark-section-bg);
  border-bottom: 1px solid var(--border-dark);
}

.services-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--terracotta), transparent);
}

.services-hero::after {
  content: '';
  position: absolute;
  right: -8%;
  bottom: 12%;
  width: 46%;
  height: 38%;
  border: 1px solid rgba(220, 145, 110, .09);
  border-right: 0;
  transform: skewY(-7deg);
  pointer-events: none;
}

.services-hero-inner {
  position: relative;
  z-index: 1;
}

.services-hero .breadcrumb {
  margin-bottom: 42px;
  color: #bbaea8;
}

.services-hero .breadcrumb a { color: #e7a17f; }
.services-hero .eyebrow { margin-bottom: 20px; color: #e7a17f; }

#servicos-hero h1 {
  max-width: 860px;
  margin-bottom: 26px;
  color: #fff9f5;
  font-size: 3.1rem;
  line-height: 1.08;
}

.services-hero p {
  max-width: 780px;
  margin: 0;
  color: #d3c5bf;
  font-size: 1.06rem;
  line-height: 1.82;
}

.services-hero .hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-hero .btn.ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff9f5;
}

.services-hero .btn.ghost:hover {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .08);
}

.services-diagnostic {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(145deg, #fbf7f2 0%, #f2e7df 100%);
  border-bottom: 1px solid rgba(68, 48, 46, .09);
}

.services-diagnostic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(92, 65, 59, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 65, 59, .022) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.diagnostic-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(0, 1.2fr);
  gap: 18px 64px;
  align-items: start;
}

.diagnostic-layout .section-heading {
  position: sticky;
  top: 126px;
  margin: 0;
  padding-top: 6px;
}

.diagnostic-layout .section-heading h2 {
  max-width: 510px;
  margin: 16px 0 24px;
  font-size: 2.8rem;
  line-height: 1.08;
}

.diagnostic-layout .section-heading p {
  max-width: 500px;
  margin: 0;
  color: #655955;
  line-height: 1.78;
}

.diagnostic-questions {
  position: relative;
  display: grid;
  gap: 10px;
}

.diagnostic-questions::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 52px;
  bottom: 52px;
  left: 47px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(164, 90, 63, .38) 12%, rgba(164, 90, 63, .38) 88%, transparent);
}

.diagnostic-question {
  position: relative;
  z-index: 1;
  min-height: 132px;
  padding: 24px 28px 24px 22px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(68, 48, 46, .12);
  border-radius: 6px;
  background: rgba(255, 253, 250, .94);
  box-shadow: 0 14px 34px rgba(55, 39, 39, .065);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .35s ease, background .3s ease;
}

.diagnostic-question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--copper), var(--terracotta-dark));
  opacity: .72;
}

.diagnostic-number {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(164, 90, 63, .25);
  border-radius: 50%;
  background: #fbf4ee;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 0 0 7px rgba(255, 253, 250, .96);
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .35s ease;
}

.diagnostic-question-copy small {
  display: block;
  margin-bottom: 7px;
  color: var(--terracotta-dark);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.diagnostic-question-copy h3 {
  margin: 0 0 7px;
  color: #302729;
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.22;
}

.diagnostic-question-copy p {
  max-width: 540px;
  margin: 0;
  color: #71645e;
  font-size: .91rem;
  line-height: 1.58;
}

.diagnostic-question:hover {
  border-color: rgba(164, 90, 63, .32);
  background: #fffdfa;
  box-shadow: 0 20px 44px rgba(67, 42, 38, .1);
  transform: translateX(6px);
}

.diagnostic-question:hover .diagnostic-number {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #fff;
  transform: scale(1.04);
}

.diagnostic-statement {
  grid-column: 2;
  margin: 0;
  padding: 25px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(164, 90, 63, .22);
  border-radius: 6px;
  background: linear-gradient(115deg, #ead8ce, #f5e9e2);
  box-shadow: 0 16px 38px rgba(75, 48, 42, .07);
}

.diagnostic-statement span {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta-dark);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.diagnostic-statement strong {
  display: block;
  max-width: 580px;
  color: #3b2d2d;
  font-family: var(--serif);
  font-size: 1.26rem;
  line-height: 1.4;
}

.diagnostic-statement p {
  max-width: 570px;
  margin: 8px 0 0;
  color: #665752;
  font-size: .87rem;
  line-height: 1.55;
}

.diagnostic-statement .text-link {
  flex: 0 0 auto;
  margin-bottom: 3px;
  white-space: nowrap;
}

.services-list {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdfa 0%, #f3eae4 100%);
  border-block: 1px solid rgba(68, 48, 46, .09);
}

.services-list::before {
  content: '';
  position: absolute;
  left: -260px;
  top: 15%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(164, 90, 63, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(164, 90, 63, .022), 0 0 0 96px rgba(164, 90, 63, .016);
  pointer-events: none;
}

.services-list-heading {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-bottom: 58px;
}

.services-list-heading h2 {
  max-width: 760px;
  margin: 16px 0 22px;
  font-size: 3rem;
  line-height: 1.07;
}

.services-list-heading p {
  max-width: 720px;
  margin: 0;
  line-height: 1.8;
}

.services-composition {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.services-card {
  position: relative;
  grid-column: span 3;
  min-height: 290px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(68, 48, 46, .13);
  border-radius: 7px;
  background: rgba(255, 253, 250, .93);
  box-shadow: 0 14px 34px rgba(53, 37, 38, .065);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, background .35s ease, box-shadow .35s ease;
}

.services-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: auto -16% -44% 24%;
  height: 78%;
  border: 1px solid currentColor;
  border-radius: 50% 50% 0 0;
  opacity: .05;
  transform: rotate(-8deg) translateY(18px);
  transition: opacity .35s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}

.services-card > * {
  position: relative;
  z-index: 1;
}

.services-number {
  align-self: flex-end;
  color: rgba(71, 53, 50, .25);
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: .9;
}

.services-card h3 {
  max-width: 300px;
  margin: 0 0 14px;
  color: #302729;
  font-size: 1.3rem;
  line-height: 1.22;
}

.services-card p {
  max-width: 420px;
  min-height: 76px;
  margin: 0 0 24px;
  color: #70625d;
  font-size: .93rem;
  line-height: 1.68;
}

.services-card i {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--terracotta);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
}

.services-card i b {
  font-size: 1rem;
  font-weight: 500;
  transition: transform .3s ease;
}

.services-card--strategy { grid-column: span 7; }
.services-card:nth-child(2) { grid-column: span 5; }
.services-card:nth-child(7) { grid-column: span 5; }
.services-card--management { grid-column: span 7; }

.services-card--strategy,
.services-card--management {
  color: #f7eee8;
  border-color: rgba(255, 255, 255, .1);
  background: var(--dark-section-bg);
  box-shadow: 0 22px 52px rgba(31, 23, 26, .18);
}

.services-card--strategy .services-number,
.services-card--management .services-number { color: rgba(232, 169, 139, .3); }
.services-card--strategy h3,
.services-card--management h3 { color: #fff8f3; }
.services-card--strategy p,
.services-card--management p { color: #d2c3bc; }
.services-card--strategy i,
.services-card--management i { color: #e8a17e; }

.services-card--nude {
  border-color: rgba(164, 90, 63, .17);
  background: linear-gradient(145deg, #efddd5, #f7ece6);
}

.services-card:hover {
  z-index: 2;
  border-color: rgba(221, 151, 119, .62);
  background: linear-gradient(145deg, #a85d47, #884234);
  box-shadow: 0 25px 54px rgba(96, 48, 38, .22);
  transform: translateY(-7px);
}

.services-card:hover::before { opacity: .35; transform: rotate(-8deg) translateY(0); }
.services-card:hover .services-number { color: rgba(255, 232, 220, .3); }
.services-card:hover h3 { color: #fffaf6; }
.services-card:hover p { color: #f0dcd3; }
.services-card:hover i { color: #ffe4d7; }
.services-card:hover i b { transform: translateX(5px); }

.services-guidance {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  background: var(--dark-section-bg);
  border-block: 1px solid var(--border-dark);
}

.services-guidance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(760px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 122, 85, .5), transparent);
  transform: translateX(-50%);
}

.guidance-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 92px;
  align-items: center;
}

.guidance-layout .eyebrow { margin-bottom: 18px; color: #e8a17e; }
.guidance-layout h2 { max-width: 480px; margin: 0; color: #fff8f3; font-size: 3rem; line-height: 1.06; }
.guidance-copy { padding: 46px 48px; border: 1px solid rgba(247, 241, 234, .11); border-radius: 7px; background: linear-gradient(145deg, rgba(252, 248, 243, .07), rgba(164, 90, 63, .06)); box-shadow: 0 28px 68px rgba(0, 0, 0, .2); }
.guidance-copy p { margin: 0 0 24px; color: #d3c5bf; line-height: 1.8; }
.guidance-copy strong { display: block; margin-bottom: 30px; color: #f4e8e1; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }

.services-final {
  background: linear-gradient(135deg, #ead8cf 0%, #f7eee8 52%, #efe3db 100%);
  border-bottom: 1px solid rgba(68, 48, 46, .1);
}

.services-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 72px;
}

.services-final .eyebrow { margin-bottom: 18px; }
.services-final h2 { max-width: 820px; margin: 0 0 20px; font-size: 3rem; line-height: 1.07; }
.services-final p { max-width: 680px; margin: 0; color: #675954; font-size: 1.02rem; line-height: 1.75; }
.services-final-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.services-final-actions .btn { width: 100%; text-align: center; }

@media (max-width: 1100px) {
  #servicos-hero h1 { max-width: 780px; font-size: 2.85rem; }
  .diagnostic-layout { gap: 30px 42px; }
  .guidance-layout { gap: 58px; }
  .services-card { min-height: 310px; padding: 30px 25px; }
}

@media (max-width: 980px) {
  .services-hero { min-height: 600px; padding: 92px 0 86px; }
  #servicos-hero h1 { font-size: 2.65rem; }
  .services-diagnostic { padding: 78px 0; }
  .diagnostic-layout { grid-template-columns: 1fr; gap: 30px; }
  .diagnostic-layout .section-heading { position: static; }
  .diagnostic-statement { grid-column: 1; }
  .services-list-heading h2, .diagnostic-layout .section-heading h2, .guidance-layout h2, .services-final h2 { font-size: 2.55rem; }
  .services-card:nth-child(n) { grid-column: span 6; }
  .guidance-layout { grid-template-columns: 1fr; gap: 42px; }
  .guidance-copy { padding: 40px; }
  .services-final-layout { grid-template-columns: 1fr; align-items: start; gap: 34px; }
  .services-final-actions { flex-direction: row; min-width: 0; }
}

@media (max-width: 620px) {
  .services-hero { min-height: 0; padding: 74px 0 72px; }
  .services-hero .breadcrumb { margin-bottom: 34px; }
  #servicos-hero h1 { font-size: 2.2rem; }
  .services-hero p { font-size: .98rem; }
  .services-hero .hero-actions, .services-final-actions { flex-direction: column; }
  .services-hero .btn, .services-final-actions .btn { width: 100%; text-align: center; }
  .diagnostic-layout .section-heading h2, .services-list-heading h2, .guidance-layout h2, .services-final h2 { font-size: 2.15rem; }
  .services-diagnostic { padding: 66px 0; }
  .diagnostic-questions::before { top: 44px; bottom: 44px; left: 37px; }
  .diagnostic-question { min-height: 0; padding: 20px 18px 20px 16px; grid-template-columns: 42px 1fr; gap: 14px; }
  .diagnostic-number { width: 42px; height: 42px; font-size: .78rem; box-shadow: 0 0 0 5px rgba(255, 253, 250, .96); }
  .diagnostic-question-copy h3 { font-size: 1.16rem; }
  .diagnostic-question-copy p { font-size: .86rem; }
  .diagnostic-statement { padding: 22px 20px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .diagnostic-statement strong { font-size: 1.14rem; }
  .diagnostic-statement .text-link { white-space: normal; }
  .services-composition { grid-template-columns: 1fr; gap: 12px; }
  .services-card, .services-card:nth-child(n), .services-card--strategy, .services-card--management { grid-column: 1; min-height: 270px; padding: 28px 24px; }
  .services-card p { min-height: 0; }
  .guidance-copy { padding: 32px 26px; }
  .guidance-copy strong { font-size: 1.2rem; }
}
