/* Shared layout for service guides and SEO landing pages. */
.seo-template-page {
  color: var(--text);
  background: #ffffff;
}

.seo-template-page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-template-hero {
  min-height: clamp(520px, 76vh, 800px);
  padding: 24px 0 62px;
  display: flex;
  align-items: stretch;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 10, 20, 0.84), rgba(11, 18, 32, 0.72) 48%, rgba(37, 99, 235, 0.42)),
    var(--seo-hero-image) center / cover no-repeat;
}

.seo-template-hero-inner {
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seo-template-toplink {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(260px, 520px) minmax(140px, 1fr);
  align-items: center;
  gap: 18px;
}

.seo-template-logo {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-out);
}

.seo-template-logo:hover,
.seo-template-logo:focus-visible {
  transform: translateY(-2px) scale(1.015);
}

.seo-template-logo img {
  width: auto;
  height: clamp(58px, 7vw, 92px);
  max-width: 240px;
  object-fit: contain;
  border-radius: 8px;
}

.seo-template-toplink > .template-button {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  padding: 18px 28px;
  font-size: 16px;
}

.seo-template-hero-content {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: end;
}

.seo-template-hero-card,
.template-takeaway-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  background: rgba(12, 15, 26, 0.54);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.seo-template-hero-card {
  max-width: 820px;
  padding: clamp(28px, 4.5vw, 52px);
  border-bottom: 4px solid var(--blue);
}

.template-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(212, 168, 67, 0.30);
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.13);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.seo-template-hero-card h1,
.template-block h2,
.template-final-card h2 {
  font-weight: 950;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.seo-template-hero-card h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.96;
}

.seo-template-hero-card p:not(.template-kicker) {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.72;
}

.template-hero-actions,
.template-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.template-button.btn {
  min-height: auto;
  padding: 16px 24px;
  gap: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.template-button.btn-whatsapp {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #25d366, #1fcb60 45%, #128c7e);
  box-shadow: var(--shadow-green), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.template-button.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(37, 211, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.template-button.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.template-button.btn-ghost:hover,
.template-button.btn-ghost:focus-visible {
  color: #ffffff;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.template-button.btn-ghost::before {
  display: none;
  content: none;
}

.template-button.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--halo, 0);
  border-radius: inherit;
  background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.template-takeaway-card {
  padding: 24px;
  color: #ffffff;
}

.template-takeaway-title {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.template-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.template-takeaway-grid > div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  transition: transform var(--t-base) var(--ease), background var(--t-base) ease, border-color var(--t-base) ease;
}

.template-takeaway-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.template-takeaway-grid strong {
  display: block;
  color: #ffffff;
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.template-takeaway-grid span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.template-takeaway-source {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.seo-template-section {
  padding: clamp(52px, 7vw, 86px) 0;
  border-block: 1px solid #eef2f7;
  background: repeating-linear-gradient(135deg, rgba(37, 99, 235, 0.025) 0 24px, transparent 24px 64px);
}

.seo-template-container {
  max-width: 980px;
}

.seo-template-content {
  display: grid;
  gap: 24px;
}

.template-alert,
.template-block {
  position: relative;
  overflow: hidden;
}

.template-alert {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text-2);
  line-height: 1.72;
  box-shadow: var(--shadow-sm);
}

.template-alert strong {
  color: var(--text);
}

.template-alert-main,
.template-alert-note {
  display: block;
}

.template-alert-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92em;
}

.template-block {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}

.template-block::after {
  content: "";
  position: absolute;
  inset: -2px;
  opacity: 0;
  border-radius: inherit;
  background:
    radial-gradient(700px 220px at 15% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(700px 220px at 85% 0%, rgba(212, 168, 67, 0.08), transparent 55%);
  pointer-events: none;
  transition: opacity var(--duration) ease;
}

.template-block:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.20);
  box-shadow: var(--shadow-lg);
}

.template-block:hover::after {
  opacity: 1;
}

.template-block > * {
  position: relative;
  z-index: 1;
}

.template-block .template-kicker {
  color: var(--blue-dark);
  border-color: rgba(37, 99, 235, 0.13);
  background: rgba(37, 99, 235, 0.07);
}

.template-block h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.template-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 930;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.template-block p:not(.template-kicker),
.template-info-card p,
.template-steps p,
.template-final-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.template-block p:not(.template-kicker) {
  margin-top: 16px;
}

.template-key-grid,
.template-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.template-key-card,
.template-info-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}

.template-key-card:hover,
.template-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.20);
  box-shadow: var(--shadow-lg);
}

.template-key-card strong {
  display: block;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.template-key-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.template-info-card p {
  margin: 10px 0 0;
  font-size: 15px;
}

.template-check-list,
.template-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.template-check-list li {
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--blue);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-2);
  line-height: 1.65;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration) ease, border-color var(--duration-fast) ease;
}

.template-check-list li:hover {
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.26);
  border-left-color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}

.template-check-list strong {
  color: var(--text);
}

.template-steps {
  counter-reset: step;
  gap: 14px;
}

.template-steps li {
  counter-increment: step;
  padding: 20px 20px 20px 76px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) ease, border-color var(--t-base) ease;
}

.template-steps li:hover {
  transform: translateX(8px) translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-md);
}

.template-steps li::before {
  content: counter(step, decimal-leading-zero);
  float: left;
  width: 42px;
  height: 42px;
  margin-left: -56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  font-weight: 950;
  box-shadow: var(--shadow-blue);
}

.template-steps strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 930;
}

.template-steps p {
  margin: 8px 0 0;
  font-size: 15px;
}

.template-highlight-block,
.template-final-card {
  color: #ffffff;
  background:
    radial-gradient(700px 400px at 20% 50%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(700px 400px at 80% 50%, rgba(212, 168, 67, 0.12), transparent 60%),
    linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
}

.template-highlight-block {
  border-color: rgba(212, 168, 67, 0.24);
  box-shadow: var(--shadow-lg);
}

.template-highlight-block .template-kicker {
  color: var(--gold-light);
  border-color: rgba(212, 168, 67, 0.28);
  background: rgba(212, 168, 67, 0.12);
}

.template-highlight-block h2 {
  color: #ffffff;
}

.template-highlight-block p:not(.template-kicker) {
  color: rgba(255, 255, 255, 0.76);
}

.template-highlight-block .template-button.btn-whatsapp {
  margin-top: 22px;
}

.template-related-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.template-related-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.template-related-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  border-color: var(--blue-dark);
  background: var(--blue);
}

.template-faq-grid {
  max-width: none;
  margin-top: 24px;
}

.template-block details.faq-item {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.template-block details.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-lg);
}

.template-block .faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 17px 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.template-block .faq-item[open] summary {
  color: var(--blue-dark);
}

.template-block .faq-content {
  padding: 0 56px 20px 20px;
}

.template-block .faq-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.82;
}

.seo-template-final-cta {
  padding: 30px 0 78px;
}

.template-final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2xl);
}

.seo-template-hero-card .template-kicker,
.template-final-card .template-kicker {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.18);
}

.template-final-card .template-kicker {
  margin: 0 0 20px;
  padding: 7px 13px;
  font-size: 11px;
}

.template-final-card h2 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
}

.template-final-card p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.template-final-actions {
  min-width: 240px;
  justify-content: flex-end;
  margin-top: 0;
}

.template-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .seo-template-hero-content {
    grid-template-columns: 1fr;
  }

  .seo-template-hero-card {
    max-width: none;
  }

  .template-takeaway-card {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .seo-template-hero {
    min-height: 640px;
    padding: 18px 0 34px;
  }

  .seo-template-hero-card,
  .template-takeaway-card {
    border-radius: var(--r-lg);
  }

  .template-key-grid,
  .template-card-grid,
  .template-final-card {
    grid-template-columns: 1fr;
  }

  .template-final-actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .seo-template-toplink {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .seo-template-toplink > .template-button {
    grid-column: 2;
    max-width: none;
    padding: 12px 14px;
    font-size: 13px;
  }

  .seo-template-logo img {
    height: 44px;
    max-width: 132px;
  }

  .template-block .faq-item summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 62px;
    padding: 15px 16px;
    font-size: 15px;
  }

  .template-block .faq-content {
    padding: 0 16px 18px;
  }
}

@media (max-width: 560px) {
  .seo-template-hero {
    min-height: auto;
    background-position: center top;
  }

  .seo-template-hero-inner {
    min-height: 0;
  }

  .seo-template-section {
    padding: 38px 0;
  }

  .seo-template-hero-card,
  .template-block,
  .template-final-card,
  .template-takeaway-card {
    border-radius: 22px;
  }

  .seo-template-hero-card h1 {
    font-size: 36px;
  }

  .template-block h2,
  .template-final-card h2 {
    font-size: 28px;
  }

  .template-hero-actions,
  .template-final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .template-button.btn {
    width: 100%;
    white-space: normal;
  }

  .template-takeaway-grid {
    grid-template-columns: 1fr;
  }

  .template-steps li {
    padding-left: 18px;
  }

  .template-steps li::before {
    float: none;
    margin: 0 0 12px;
  }
}

@media (max-width: 480px) {
  .seo-template-toplink {
    grid-template-columns: 1fr;
  }

  .seo-template-logo,
  .seo-template-toplink > .template-button {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .seo-template-hero-card,
  .template-takeaway-card,
  .template-button.btn-ghost {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .template-block:hover,
  .template-key-card:hover,
  .template-info-card:hover,
  .template-check-list li:hover,
  .template-steps li:hover,
  .template-takeaway-grid > div:hover,
  .template-block details.faq-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-block:hover,
  .template-key-card:hover,
  .template-info-card:hover,
  .template-check-list li:hover,
  .template-steps li:hover,
  .template-takeaway-grid > div:hover,
  .template-button:hover,
  .template-button:focus-visible {
    transform: none;
  }
}
