/* ==========================================================================
   Nidhi Tecnologia — páginas editoriais por nicho
   Escopo isolado: somente /sites-para-*/
.niche-seo {
  background: var(--ink);
  color: var(--on-ink);
}

.niche-seo-hero {
  padding: clamp(42px, 8vw, 88px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.niche-seo-hero-grid,
.niche-seo-example-grid,
.niche-seo-local-grid,
.niche-seo-faq-grid {
  display: grid;
  gap: var(--s-7);
}

.niche-seo-intro h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 1.65rem + 2.6vw, 4.15rem);
  line-height: .99;
  letter-spacing: -.045em;
  margin-bottom: var(--s-5);
}

.niche-seo-lead {
  max-width: 64ch;
  color: var(--on-ink);
  font-size: clamp(1.05rem, .98rem + .28vw, 1.22rem);
  line-height: 1.66;
}

.niche-seo-summary {
  max-width: 64ch;
  margin-top: var(--s-4);
  color: var(--on-ink-2);
  line-height: 1.72;
}

.niche-seo-actions {
  margin-top: var(--s-6);
}

.niche-seo-location {
  margin-top: var(--s-5);
  color: var(--on-ink-3);
  font-size: .875rem;
}

.niche-seo-location strong {
  color: var(--on-ink-2);
  font-weight: 550;
}

.niche-seo-preview {
  display: grid;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #050706;
  transition: border-color .2s ease, transform .2s ease;
}

.niche-seo-preview:hover,
.niche-seo-preview:focus-visible {
  border-color: var(--line-gold);
}

.niche-seo-browserbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--on-ink-3);
  font-size: .72rem;
  border-bottom: 1px solid var(--line);
}

.niche-seo-browserbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
}

.niche-seo-browserbar span {
  margin-left: auto;
}

.niche-seo-preview-viewport {
  display: block;
  height: clamp(340px, 72vw, 560px);
  overflow: hidden;
  background: var(--ink-2);
}

.niche-seo-preview-viewport img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.niche-seo-preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 52px;
  padding: 12px 15px;
  color: var(--on-ink-2);
  font-size: .86rem;
}

.niche-seo-preview-label .icon {
  width: 18px;
  height: 18px;
  color: var(--gold-ink);
}

.niche-seo-section-head {
  max-width: 760px;
  margin-bottom: var(--s-7);
}

.niche-seo-section-head h2,
.niche-seo-example-copy h2,
.niche-seo-local h2,
.niche-seo-faq-intro h2,
.niche-seo-cta h2 {
  font-size: clamp(1.8rem, 1.45rem + 1.5vw, 2.8rem);
  line-height: 1.08;
}

.niche-seo-section-head > p:last-child,
.niche-seo-faq-intro > p:last-child,
.niche-seo-cta-box > div > p:last-child {
  margin-top: var(--s-3);
  color: var(--on-paper-2);
  max-width: 65ch;
}

.niche-seo-cards {
  display: grid;
  gap: var(--s-4);
}

.niche-info-card {
  padding: var(--s-5);
  border-top: 1px solid var(--line-paper);
  background: rgba(255,255,255,.44);
}

.niche-info-card h3 {
  color: var(--on-paper);
  font-size: 1.05rem;
  letter-spacing: -.018em;
}

.niche-info-card p {
  margin-top: var(--s-2);
  color: var(--on-paper-2);
  font-size: .94rem;
  line-height: 1.65;
}

.niche-seo-example-copy {
  align-self: start;
}

.niche-seo-example-copy h2 {
  max-width: 18ch;
  margin-bottom: var(--s-4);
}

.niche-seo-example-copy > p:not(.eyebrow) {
  color: var(--on-ink-2);
  line-height: 1.75;
  max-width: 62ch;
}

.niche-seo-example-copy > p + p {
  margin-top: var(--s-4);
}

.niche-seo-example-copy .hero-actions {
  margin-top: var(--s-6);
}

.niche-seo-fullshot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.niche-seo-fullshot img {
  width: 100%;
  height: auto;
}

.niche-seo-fullshot figcaption {
  padding: 12px 14px;
  color: var(--on-ink-3);
  border-top: 1px solid var(--line);
  font-size: .76rem;
}

.niche-feature-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-paper);
  background: var(--line-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.niche-feature {
  padding: clamp(20px, 4vw, 30px);
  background: var(--paper-card);
}

.niche-feature h3 {
  color: var(--on-paper);
  font-size: 1rem;
}

.niche-feature p {
  margin-top: 7px;
  color: var(--on-paper-2);
  font-size: .9rem;
  line-height: 1.62;
}

.niche-seo-local-grid {
  align-items: start;
}

.niche-seo-local h2 {
  max-width: 17ch;
}

.niche-seo-copy {
  display: grid;
  gap: var(--s-4);
  color: var(--on-ink-2);
  line-height: 1.78;
}

.niche-process-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-lg);
  background: var(--line-paper);
}

.niche-process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper-card);
}

.niche-process-list li > span {
  color: var(--gold);
  font: 650 .83rem/1 var(--font-display);
  padding-top: 4px;
}

.niche-process-list h3 {
  color: var(--on-paper);
  font-size: 1rem;
}

.niche-process-list p {
  margin-top: 6px;
  color: var(--on-paper-2);
  font-size: .91rem;
  line-height: 1.6;
}

.niche-seo-faq-grid {
  align-items: start;
}

.niche-seo-faq-intro {
  position: relative;
}

.niche-seo-faq-intro > p:last-child {
  color: var(--on-ink-2);
}

.niche-faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.niche-faq-item {
  border-bottom: 1px solid var(--line);
}

.niche-faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 17px 42px 17px 0;
  color: var(--on-ink);
  font: 560 1rem/1.45 var(--font-display);
  cursor: pointer;
  list-style: none;
}

.niche-faq-item summary::-webkit-details-marker {
  display: none;
}

.niche-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 17px;
  color: var(--gold-ink);
  font: 400 1.35rem/1 var(--font-sans);
}

.niche-faq-item[open] summary::after {
  content: "−";
}

.niche-faq-answer {
  padding: 0 0 var(--s-5);
  color: var(--on-ink-2);
  line-height: 1.72;
}

.niche-related-grid {
  display: grid;
  gap: var(--s-4);
}

.niche-related-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px var(--s-4);
  min-height: 118px;
  padding: var(--s-3);
  background: var(--paper-card);
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  color: var(--on-paper);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.niche-related-card:hover,
.niche-related-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(135,100,43,.42);
}

.niche-related-card img {
  grid-row: 1 / 4;
  width: 92px;
  height: 92px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.niche-related-card > span {
  align-self: end;
  color: var(--on-paper-3);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.niche-related-card > strong {
  font: 620 1rem/1.25 var(--font-display);
}

.niche-related-card > em {
  color: var(--gold);
  font-size: .8rem;
  font-style: normal;
}

.niche-seo-cta {
  padding-top: 0;
}

.niche-seo-cta-box {
  display: grid;
  gap: var(--s-6);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(212,173,115,.055), rgba(255,255,255,.01));
}

.niche-seo-cta-box > div > p:last-child {
  color: var(--on-ink-2);
}

.niche-seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

@media (min-width: 700px) {
  .niche-seo-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .niche-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .niche-process-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .niche-related-card {
    grid-template-columns: 104px 1fr;
  }

  .niche-related-card img {
    width: 104px;
    height: 104px;
  }
}

@media (min-width: 1024px) {
  .niche-seo-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .72fr);
    gap: clamp(56px, 7vw, 96px);
    align-items: center;
  }

  .niche-seo-preview-viewport {
    height: 590px;
  }

  .niche-seo-example-grid {
    grid-template-columns: minmax(0, .7fr) minmax(430px, 1fr);
    gap: clamp(64px, 8vw, 112px);
    align-items: start;
  }

  .niche-seo-fullshot {
    max-height: 830px;
  }

  .niche-seo-fullshot img {
    width: 100%;
  }

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

  .niche-seo-local-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    gap: clamp(64px, 8vw, 112px);
  }

  .niche-process-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .niche-process-list li {
    grid-template-columns: 1fr;
  }

  .niche-seo-faq-grid {
    grid-template-columns: minmax(260px, .58fr) minmax(0, 1fr);
    gap: clamp(64px, 8vw, 112px);
  }

  .niche-seo-faq-intro {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
  }

  .niche-seo-cta-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .niche-seo-cta-actions {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .niche-seo-preview,
  .niche-related-card {
    transition: none;
  }
}
