/* Glassdudes – supplemental styles (non-Tailwind utilities) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Animate fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.6s ease-out forwards; }

/* Ping animation for live indicators */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.animate-ping { animation: ping 1s cubic-bezier(0,0,.2,1) infinite; }

/* Sticky header – hidden by default, shown via JS */
#sticky-header { transition: transform 0.3s ease, opacity 0.3s ease; }
#sticky-header.hidden-header { transform: translateY(-100%); opacity: 0; }
#sticky-header.visible-header { transform: translateY(0); opacity: 1; }

/* Floating CTA */
#floating-cta { transition: opacity 0.4s ease, transform 0.4s ease; }
#floating-cta.hidden-cta { opacity: 0; pointer-events: none; transform: translateY(20px); }
#floating-cta.visible-cta { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* FAQ accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer.open { max-height: 500px; }

/* Before/After gallery */
.gallery-before-after .before img { filter: grayscale(1) brightness(.5); }

/* Zapier embed container */
zapier-interfaces-page-embed { display: block; width: 100%; }

/* Hero gradient — тёмно-красный → slate-900 по диагонали */
.hero-gradient {
  background: linear-gradient(135deg, rgba(185,28,28,.95) 0%, rgba(15,23,42,.92) 100%);
}

/* Text brand colour utility (used in Tailwind JIT mode) */
.text-brand       { color: #b91c1c; }
.bg-brand         { background-color: #b91c1c; }
.border-brand     { border-color: #b91c1c; }
.hover\:bg-brand:hover { background-color: #b91c1c; }
.hover\:text-brand:hover { color: #b91c1c; }

/* ─── Article Body (.gd-article-body) ──────────────────────────────────────── */

.gd-article-body {
  max-width: 48rem;   /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
}

/* ── Вступительный абзац (первый <p> после H1 в редакторе) ── */
.gd-article-body > p:first-of-type {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75;
  font-style: italic;
  color: #374151;   /* gray-700 */
  margin-bottom: 1.5rem;
}

/* ── Обычные абзацы ── */
.gd-article-body p {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #4b5563;   /* gray-600 */
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── H2-заголовки секций ── */
.gd-article-body h2,
.gd-article-body h2.wp-block-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111827;   /* gray-900 */
  margin-top: 4rem;
  margin-bottom: 2rem;
}

/* ── H3-заголовки ── */
.gd-article-body h3,
.gd-article-body h3.wp-block-heading {
  font-size: 1.375rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ── Нумерованный список (ul.wp-block-list) ─────────────────────────────────
   Каждый <li> оформляется как карточка с красным номером слева.
   Счётчик генерируется через CSS — цифру в тексте рекомендуется удалить
   из редактора или оставить как есть (она станет частью описания).
   ────────────────────────────────────────────────────────────────────────── */
.gd-article-body ul.wp-block-list {
  list-style: none;
  padding: 2rem 3rem;
  margin: 0 0 2rem;
  background: #f9fafb;   /* gray-50 */
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  box-shadow: inset 0 2px 8px 0 rgb(0 0 0 / .04);
  counter-reset: gd-sign;
}

.gd-article-body ul.wp-block-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  counter-increment: gd-sign;
  font-size: .9375rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.7;
}

.gd-article-body ul.wp-block-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Красный нумерованный квадрат */
.gd-article-body ul.wp-block-list li::before {
  content: counter(gd-sign);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  background: #b91c1c;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 900;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgb(185 28 28 / .3);
  flex-shrink: 0;
  line-height: 1;
}

/* ── Обычный маркированный список ── */
.gd-article-body ul:not(.wp-block-list) {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.gd-article-body ul:not(.wp-block-list) li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .75rem;
}

.gd-article-body ul:not(.wp-block-list) li::before {
  content: '';
  display: inline-block;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: #b91c1c;
  margin-top: .55rem;
  flex-shrink: 0;
}

/* ── Цитата — WP Quote block (<blockquote>) ── */
.gd-article-body blockquote,
.gd-article-body .wp-block-quote {
  background: #0f172a;   /* slate-900 */
  color: #fff;
  border-left: 8px solid #b91c1c;
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}

.gd-article-body blockquote p,
.gd-article-body .wp-block-quote p {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: .75rem;
}

.gd-article-body blockquote cite,
.gd-article-body .wp-block-quote cite,
.gd-article-body .wp-block-quote__citation {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgb(255 255 255 / .6);
  font-style: normal;
}

/* ── Ссылки ── */
.gd-article-body a {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
}
.gd-article-body a:hover {
  text-decoration: underline;
}

/* ── Горизонтальный разделитель ── */
.gd-article-body hr {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 3rem 0;
}
