/*
Theme Name: Blocksy Child
Template: blocksy
Text Domain: blocksy-child
Description: Brandgineer custom child theme for Blocksy.
Version: 1.0.0
*/

/* ==========================================================================
   00 THEME METADATA
   Main stylesheet for the Brandgineer Blocksy child theme.
   ========================================================================== */

/* ==========================================================================
   01 TOKENS
   CSS Variables, Colors, Typography Tokens
   ========================================================================== */

:root {
  --bg-color-primary: var(--theme-palette-color-1, #0101A0);
  --bg-color-accent: var(--theme-palette-color-2, #53FBDD);
  --bg-color-text: var(--theme-text-color, #ffffff);
  --bg-color-heading: var(--theme-heading-color, #ffffff);
  --bg-color-border: rgba(255, 255, 255, 0.18);
  --bg-color-white: #ffffff;
  --bg-color-panel: #D4D4D433;

  --bg-container: 1500px;
  --bg-edge: 5vw;
  --bg-section-padding-y: clamp(64px, 8vw, 120px);

  --bg-radius-sm: 14px;
  --bg-radius-md: 24px;
  --bg-radius-lg: 36px;

  --bg-transition: 180ms ease;
  --bg-glow-accent: 0 0 24px rgba(83, 251, 221, 0.35);
}

/* ==========================================================================
   02 BASE
   Resets, HTML/Body defaults
   ========================================================================== */

body {
  overflow-x: hidden;
}

.bg-page {
  color: var(--bg-color-text, #ffffff);
  background: var(--bg-color-primary, #0101A0);
}

.bg-page *,
.bg-page *::before,
.bg-page *::after,
.bg-section *,
.bg-section *::before,
.bg-section *::after {
  box-sizing: border-box;
}

.bg-section :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) {
  margin: 0;
}

.bg-page :where(p),
.bg-section :where(p) {
  color: inherit;
}

.bg-page :where(img, svg),
.bg-section :where(img, svg) {
  max-width: 100%;
}

.bg-page img,
.bg-section img {
  display: block;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .bg-page *,
  .bg-page *::before,
  .bg-page *::after,
  .bg-section *,
  .bg-section *::before,
  .bg-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   03 LAYOUT
   Grid system, Containers (.bg-container), Sections (.bg-section)
   ========================================================================== */

.bg-section {
  position: relative;
  width: 100%;
  max-width: none;
  padding: var(--bg-section-padding-y) 0;
}

.bg-section--bleed,
.entry-content > .bg-section--bleed,
.entry-content.is-layout-constrained > .bg-section--bleed,
.is-layout-constrained > .bg-section--bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  justify-self: center;
  box-sizing: border-box;
}

/* Ensure WordPress/Blocksy wrappers do not clip bleed sections */
.content-area,
.entry-content,
.ct-container,
.gspb_row,
.gspb_container {
  overflow: visible;
  overflow-x: visible;
}

.bg-section--white {
  background: var(--bg-color-white);
  color: #000;
}

.bg-container,
.bg-page__container {
  width: min(100%, var(--bg-container, 1500px));
  margin-inline: auto;
  box-sizing: border-box;
}

/* Only apply padding if necessary outside Blocksy's normal container context */
.alignfull .bg-container,
.bg-section--bleed .bg-container,
.alignfull .bg-page__container,
.bg-section--bleed .bg-page__container {
  padding-inline: var(--bg-edge, 5vw);
}

@media (max-width: 767px) {
  .alignfull .bg-container,
  .bg-section--bleed .bg-container,
  .alignfull .bg-page__container,
  .bg-section--bleed .bg-page__container {
    padding-inline: 16px;
  }
}

/* ==========================================================================
   04 COMPONENTS
   Shared UI elements (Buttons, Panels, Eyebrows)
   ========================================================================== */

.bg-heading {
  /* No typography overrides to allow Blocksy inheritance */
}

.bg-heading__white {
  color: #ffffff;
  font-family: var(--theme-font-family, "Hanken Grotesk", sans-serif);
}

.bg-heading__accent {
  color: var(--bg-color-accent, #53FBDD);
}

.bg-eyebrow {
  display: inline-block;
  padding: 8px 24px;
  border: 1.5px solid #ffffff;
  border-radius: 100px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.bg-section-heading {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.bg-section-heading > *:first-child {
  margin-top: 0;
}

.bg-section-heading > *:last-child {
  margin-bottom: 0;
}

.bg-panel {
  background: var(--bg-color-panel, rgba(212, 212, 212, 0.2));
  border: 1px solid var(--bg-color-border, rgba(255, 255, 255, 0.18));
  border-radius: var(--bg-radius-md, 24px);
}

.bg-button,
.wp-element-button.bg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-decoration: none;
  transition:
    transform var(--bg-transition, 180ms ease),
    box-shadow var(--bg-transition, 180ms ease),
    opacity var(--bg-transition, 180ms ease);
}

.bg-button:hover,
.wp-element-button.bg-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--bg-glow-accent, 0 0 24px rgba(83, 251, 221, 0.35));
}

.bg-muted {
  opacity: 0.78;
}

/* --- Shared Table System --- */
.bg-service-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--bg-color-text, #ffffff);
}

.bg-service-table th,
.bg-service-table td {
  padding: clamp(12px, 1.5vw, 18px) 20px;
  border: 1px solid #A5A5A580;
  text-align: left;
}

/* Remove outer borders */
.bg-service-table tr th:first-child,
.bg-service-table tr td:first-child {
  border-left: none;
}

.bg-service-table tr th:last-child,
.bg-service-table tr td:last-child {
  border-right: none;
}

.bg-service-table thead tr th {
  border-top: none;
}

.bg-service-table tbody tr:last-child th,
.bg-service-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   05 SHARED SECTIONS
   Reusable sections (Marquee, Referral Form, FAQ, Final CTA)
   ========================================================================== */

/* --- Marquee ("Let's talk") --- */
.bg-talk-marquee {
  position: relative;
  background: #ffffff;
  padding: clamp(12px, 2vw, 20px) 0;
  overflow-x: clip;
}

.bg-talk-marquee__viewport {
  overflow: clip;
  width: 100%;
}

.bg-talk-marquee__track {
  display: flex;
  width: max-content;
  animation: bgMarqueeScroll 30s linear infinite;
}

.bg-talk-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding-right: clamp(16px, 2vw, 32px);
  flex-shrink: 0;
}

.bg-talk-marquee__text {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #000;
}

.bg-talk-marquee__text em {
  font-style: italic;
  font-weight: 400;
}

.bg-talk-marquee__image {
  display: block;
  height: clamp(20px, 2vw, 32px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes bgMarqueeScroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-talk-marquee__track {
    animation-play-state: paused;
  }
}

/* --- Referral Section --- */
.bg-referral {
  padding: clamp(60px, 6vw, 100px) 0 clamp(80px, 8vw, 120px);
}

.bg-referral__container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(40px, 5vw, 80px);
}

.bg-referral__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.bg-referral__heading {
  margin: 0 0 16px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.2;
}

.bg-referral__text {
  margin: 0 0 16px;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.85;
}

.bg-referral__link {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  margin-bottom: clamp(16px, 3vw, 32px);
  transition: var(--bg-transition);
}

.bg-referral__link:hover {
  color: var(--bg-color-accent, #53FBDD);
}

.bg-referral__image {
  margin-top: 32px;
  width: 100%;
}

.bg-referral__image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--bg-radius-md);
  object-fit: contain;
}

.bg-referral__form-panel {
  padding: clamp(32px, 4vw, 48px);
  backdrop-filter: blur(12px);
  width: 100%;
  min-width: 0;
}

@media (max-width: 767px) {
  .bg-referral__container {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
}

/* --- FAQ Section --- */
.bg-faq {
  padding: clamp(60px, 6vw, 100px) 0 clamp(80px, 8vw, 120px);
}

.bg-faq__heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2em;
  margin: 0 0 clamp(40px, 5vw, 64px);
  text-align: center;
}

.bg-faq__heading > span {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.1;
}

.bg-faq__list {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bg-faq__item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bg-radius-md);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.bg-faq__item summary {
  list-style: none;
}

.bg-faq__item summary::-webkit-details-marker {
  display: none;
}

.bg-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 4vw, 32px) clamp(32px, 5vw, 40px);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--bg-color-text, #ffffff);
  cursor: pointer;
  user-select: none;
  gap: 24px;
}

.bg-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.bg-faq__icon::after {
  content: '';
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bg-faq__item[open] .bg-faq__icon {
  border-color: var(--bg-color-accent, #53FBDD);
  background: rgba(83, 251, 221, 0.05);
}

.bg-faq__item[open] .bg-faq__icon::after {
  border-color: var(--bg-color-accent, #53FBDD);
  transform: translateY(2px) rotate(225deg);
}

.bg-faq__answer {
  padding: 0 clamp(32px, 5vw, 40px) clamp(32px, 5vw, 40px);
  font-weight: 400;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.75;
  line-height: 1.6;
}

.bg-faq__answer p {
  margin: 0;
}

/* --- Final CTA Section --- */
.bg-final-cta {
  padding: clamp(80px, 10vw, 160px) 0 clamp(100px, 12vw, 200px);
  text-align: center;
}

.bg-final-cta__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-final-cta__heading {
  margin: 0 0 clamp(32px, 5vw, 48px);
  max-width: 1200px;
}

.bg-final-cta__button {
  margin: 0;
}

/* ==========================================================================
   06 SERVICE / PAGE SECTIONS
   Sections specific to Hero, SEO/AEO, Pricing, etc.
   ========================================================================== */

/* --- Homepage Sections --- */

.bg-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: auto;
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
  padding: 0 0 clamp(52px, 7vh, 88px);
  background-color: var(--bg-color-primary, #0101A0);
  background-image:
    linear-gradient(to bottom,
      rgba(1, 1, 160, 0) 0%,
      rgba(1, 1, 160, 0) 44%,
      rgba(1, 1, 160, 0.55) 72%,
      var(--bg-color-primary, #0101A0) 100%),
    url("assets/images/home/banner-index.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Trừ chiều cao WordPress admin bar khi đang login */
body.admin-bar .bg-hero {
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
}

.bg-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - var(--bg-edge, 5vw), 1180px);
  margin-inline: auto;
  text-align: center;
}

.bg-hero__title {
  margin: 0;
}

.bg-hero__subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
}

.bg-hero__button-wrap {
  margin-top: 20px;
}

.bg-hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
}

.bg-hero__scroll svg {
  width: 24px;
  height: auto;
  display: block;
}

/* Fade-in cho chữ/button */
.bg-hero__fade {
  opacity: 0;
  transform: translateY(16px);
  animation: bgFadeUp 700ms ease forwards;
}

.bg-hero__fade:nth-child(2) {
  animation-delay: 120ms;
}

.bg-hero__fade:nth-child(3) {
  animation-delay: 220ms;
}

@keyframes bgFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-services {
  position: relative;
  padding: clamp(84px, 9vw, 150px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg-color-primary, #0101A0);
}

.bg-services__list {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(64px, 7vw, 100px);
}

.bg-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.25fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.bg-service__content {
  max-width: 600px;
}

.bg-service__content>*:first-child {
  margin-top: 0;
}

.bg-service__content>*:last-child {
  margin-bottom: 0;
}

.bg-service__title {
  margin-top: 16px;
  margin-bottom: 18px;
}

.bg-service__title-text {
  font-size: clamp(28px, 3vw, 42px);
  color: var(--bg-color-accent, #53FBDD);
  line-height: 1.2;
}

.bg-service__text {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.84;
}

.bg-service__points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.78;
}

.bg-service__media {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

.bg-service__media img {
  width: 100%;
  display: block;
  border-radius: inherit;
}

.bg-why {
  padding: clamp(80px, 8vw, 120px) 0 clamp(40px, 4vw, 60px);
  text-align: center;
}

.bg-why__heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.24em;
  margin: 0;
}

.bg-why__subtitle {
  margin: 16px auto 0;
  max-width: 600px;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.85;
}

.bg-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(48px, 6vw, 64px);
  max-width: 1280px;
  margin-inline: auto;
  text-align: left;
}

.bg-why-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: var(--bg-transition);
}

.bg-why-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.bg-why-card__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.bg-why-card__icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bg-why-card__title {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.bg-ai-proof {
  padding: clamp(40px, 4vw, 60px) 0 clamp(80px, 8vw, 120px);
}

.bg-ai-proof__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.bg-ai-proof__heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.24em;
  margin: 0;
}

.bg-ai-proof__subtitle {
  font-size: 26px;
  max-width: 800px;
  margin: 16px auto 0;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.85;
}

.bg-ai-proof__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

.bg-ai-proof__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.bg-ai-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  background: #D4D4D433;
  border: 0.5px solid #FFFFFF;
  border-radius: var(--bg-radius-md);
  backdrop-filter: blur(10px);
}

.bg-ai-proof-stat__number {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.bg-ai-proof-stat__value,
.bg-ai-proof-stat__percent {
  font-family: "Quantico", sans-serif;
  font-size: clamp(48px, 5vw, 64px);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.bg-ai-proof-stat__text {
  margin: 0;
  color: var(--bg-color-text, #ffffff);
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.9;
}

.bg-ai-proof__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-ai-proof__media img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--bg-radius-md);
  object-fit: contain;
}

.bg-ai-proof__footer {
  text-align: center;
  margin-top: clamp(64px, 8vw, 100px);
}

.bg-ai-proof__bottom-text {
  margin: 0 auto 32px;
  max-width: 800px;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--bg-color-text, #ffffff);
}

.bg-ai-proof__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: nowrap;
}

.bg-ai-proof__cta-text {
  margin: 0;
  font-size: clamp(14px, 2vw, 22px);
  color: var(--bg-color-text, #ffffff);
  opacity: 0.85;
}

.bg-ai-proof__cta .wp-block-button {
  flex-shrink: 0;
}

.bg-clients {
  padding: clamp(60px, 6vw, 100px) 0 clamp(60px, 6vw, 100px);
  text-align: center;
}

.bg-clients__heading {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.24em;
  margin: 0 0 clamp(48px, 6vw, 80px);
}

.bg-clients__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bg-clients__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.bg-clients__slide img {
  display: block;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.bg-clients__slide--tall img {
  max-height: 64px;
}

/* Homepage Responsive */
@media (max-width: 1024px) {
  .bg-service {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .bg-service__content,
  .bg-service__media {
    max-width: 760px;
  }

  .bg-service__media {
    width: 100%;
  }

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

@media (max-width: 782px) {
  body.admin-bar .bg-hero {
    height: calc(100vh - 46px);
    height: calc(100svh - 46px);
  }
}

@media (max-width: 767px) {
  :root {
    --bg-edge: 32px;
  }

  .bg-hero {
    background-position: center top;
    padding-bottom: 56px;
  }

  .bg-hero__subtitle {
    max-width: 92%;
  }

  .bg-services {
    padding: 72px 0 86px;
  }

  .bg-services__list {
    gap: 76px;
    margin-top: 64px;
  }

  .bg-service__title {
    margin-top: 18px;
  }

  .bg-service__points {
    gap: 8px;
  }

  .bg-service__media {
    border-radius: 18px;
  }

  .bg-why__grid {
    grid-template-columns: 1fr;
  }

  .bg-ai-proof__body {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   07 VENDORS / FORMS
   Third-party overrides (Fluent Forms)
   ========================================================================== */

/* --- Referral Form Overrides --- */
.bg-referral .fluentform .ff-el-form-check-label {
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  line-height: 1.3;
  white-space: normal;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.bg-referral .fluentform .ff-el-form-check-label:hover {
  border-color: var(--theme-palette-color-2, #53FBDD);
}

.bg-referral .fluentform .ff-el-form-check-input {
  margin: 0;
  flex-shrink: 0;
}

.bg-referral .fluentform .ff-el-form-check-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ==========================================================================
   08 UTILITIES
   Helper classes
   ========================================================================== */

.bg-reveal {
  opacity: 1;
  transform: none;
}

html.bg-reveal-enabled .bg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.bg-reveal-enabled .bg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.bg-reveal--delay-1 { transition-delay: 0.1s; }
.bg-reveal--delay-2 { transition-delay: 0.2s; }
.bg-reveal--delay-3 { transition-delay: 0.3s; }
.bg-reveal--delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html.bg-reveal-enabled .bg-reveal,
  html.bg-reveal-enabled .bg-reveal.is-visible,
  html.bg-reveal-enabled .bg-reveal[class*="bg-reveal--delay"] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Service / SEO-AEO Sections --- */

.bg-service-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: auto;
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
  padding: 0 0 clamp(52px, 7vh, 88px);
  background-color: var(--bg-color-primary, #0101A0);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

body.admin-bar .bg-service-hero {
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
}

.bg-service-hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bg-service-hero__title {
  margin: 0;
}

.bg-service-hero__subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
}

.bg-service-hero__button-wrap {
  margin-top: 20px;
}

.bg-service-hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
}

.bg-service-hero__scroll svg {
  width: 24px;
  height: auto;
  display: block;
}

.bg-seo-aeo-hero {
  background-image:
    linear-gradient(to bottom,
      rgba(1, 1, 160, 0) 0%,
      rgba(1, 1, 160, 0) 44%,
      rgba(1, 1, 160, 0.65) 72%,
      var(--bg-color-primary, #0101A0) 100%),
    url("assets/images/seo-aeo/seo-aeo-kv.png");
}

@media (max-width: 768px) {
  .bg-seo-aeo-hero {
    background-position: center 15%;
  }
}

.bg-seo-aeo-stats {
  padding: clamp(60px, 8vw, 120px) 0;
  text-align: center;
}

.bg-seo-aeo-stats__heading {
  margin: 0 0 clamp(48px, 6vw, 80px);
}

.bg-seo-aeo-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.bg-seo-aeo-stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.bg-seo-aeo-stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -20px;
  width: 1px;
  height: 80%;
  background-color: rgba(255, 255, 255, 0.15);
}

.bg-seo-aeo-stats__value {
  color: var(--bg-color-accent, #53FBDD);
  font-family: 'Quantico', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.bg-seo-aeo-stats__text {
  color: var(--bg-color-text, #ffffff);
  line-height: 1.5;
  margin: 0 auto;
  opacity: 0.9;
  max-width: 280px;
}

@media (max-width: 992px) {
  .bg-seo-aeo-stats__grid {
    gap: 24px;
  }
  .bg-seo-aeo-stats__item:not(:last-child)::after {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .bg-seo-aeo-stats__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  
  .bg-seo-aeo-stats__item:not(:last-child)::after {
    top: auto;
    bottom: -32px;
    right: 20%;
    left: 20%;
    width: 60%;
    height: 1px;
  }
}

.bg-seo-aeo-system {
  padding: clamp(60px, 8vw, 120px) 0;
}

.bg-seo-aeo-system__intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.bg-seo-aeo-system__heading {
  margin: 0;
  white-space: nowrap;
}

.bg-seo-aeo-system__copy {
  margin: 0;
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
  line-height: 1.6;
}

.bg-seo-aeo-system__body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
}

.bg-seo-aeo-system__steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.bg-seo-aeo-system__line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.bg-seo-aeo-system__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.bg-seo-aeo-system__step:hover,
.bg-seo-aeo-system__step:focus-visible {
  opacity: 0.8;
  outline: none;
}

.bg-seo-aeo-system__step--active,
.bg-seo-aeo-system__step--active:hover {
  opacity: 1;
}

.bg-seo-aeo-system__step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.bg-seo-aeo-system__step--active .bg-seo-aeo-system__step-icon {
  background-color: var(--bg-color-accent, #53FBDD);
  border-color: var(--bg-color-accent, #53FBDD);
  color: var(--bg-color-primary, #0101A0);
  box-shadow: 0 0 20px rgba(83, 251, 221, 0.3);
}

.bg-seo-aeo-system__step-content {
  display: flex;
  flex-direction: column;
}

.bg-seo-aeo-system__step-title {
  font-family: 'Quantico', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  color: #fff;
  margin: 0 0 8px;
}

.bg-seo-aeo-system__step-desc {
  color: #fff;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.bg-seo-aeo-system__visual {
  position: relative;
  border-radius: var(--bg-radius-lg, 24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: rgba(255, 255, 255, 0.03);
}

.bg-seo-aeo-system__media-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
}

.bg-seo-aeo-system__media-panel--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.bg-seo-aeo-system__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .bg-seo-aeo-system__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
  }
  
  .bg-seo-aeo-system__heading {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .bg-seo-aeo-system__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .bg-seo-aeo-system__heading {
    white-space: normal;
  }
  
  .bg-seo-aeo-system__line {
    display: none;
  }
  
  .bg-seo-aeo-system__step {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .bg-seo-aeo-system__visual {
    aspect-ratio: 4/3;
  }
}

.bg-seo-aeo-compare {
  padding-bottom: clamp(60px, 8vw, 120px);
}

.bg-seo-aeo-compare__heading {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.bg-seo-aeo-compare__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bg-seo-aeo-compare__label-cell {
  border: none !important;
  width: 25%;
}

.bg-seo-aeo-compare__header {
  font-family: 'Quantico', sans-serif;
  color: var(--bg-color-accent, #53FBDD);
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px);
  text-align: center !important;
  width: 37.5%;
}

.bg-seo-aeo-compare__label {
  font-weight: 700;
  color: #fff;
  width: 25%;
  font-size: clamp(16px, 1.2vw, 18px);
}

.bg-seo-aeo-compare__cell {
  opacity: 0.9;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bg-seo-aeo-compare__table {
    min-width: 600px;
  }
}

.bg-seo-aeo-supercharge {
  padding-bottom: clamp(60px, 10vw, 160px);
}

.bg-seo-aeo-supercharge__heading {
  color: var(--bg-color-accent, #53FBDD);
  margin-bottom: clamp(60px, 8vw, 100px);
}

.bg-seo-aeo-supercharge__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.bg-seo-aeo-supercharge__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bg-seo-aeo-supercharge__icon-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.bg-seo-aeo-supercharge__icon {
  width: clamp(80px, 7vw, 100px);
  height: clamp(80px, 7vw, 100px);
  background-color: var(--bg-color-accent, #53FBDD);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color-primary, #0101A0);
  flex-shrink: 0;
}

.bg-seo-aeo-supercharge__icon svg {
  width: 40%;
  height: auto;
}

.bg-seo-aeo-supercharge__connector {
  flex-grow: 1;
  height: 2px;
  background-color: var(--bg-color-accent, #53FBDD);
  position: relative;
  min-width: 20px;
}

.bg-seo-aeo-supercharge__connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--bg-color-accent, #53FBDD);
  border-right: 2px solid var(--bg-color-accent, #53FBDD);
  transform: translateY(-50%) rotate(45deg);
}

.bg-seo-aeo-supercharge__title {
  color: var(--bg-color-accent, #53FBDD);
  font-family: 'Quantico', sans-serif;
  font-size: clamp(18px, 1.4vw, 24px);
  margin: 0;
  line-height: 1.3;
}

.bg-seo-aeo-supercharge__text {
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .bg-seo-aeo-supercharge__flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }

  .bg-seo-aeo-supercharge__connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .bg-seo-aeo-supercharge__flow {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.bg-seo-aeo-one-system {
  padding-bottom: clamp(60px, 10vw, 160px);
}

.bg-seo-aeo-one-system__header {
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}

.bg-seo-aeo-one-system__heading {
  color: var(--bg-color-accent, #53FBDD);
  margin-bottom: 24px;
}

.bg-seo-aeo-one-system__copy {
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
  margin-bottom: 32px;
}

.bg-seo-aeo-one-system__button-wrap {
  display: flex;
  justify-content: center;
}

.bg-seo-aeo-one-system__button-icon {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5em;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

.bg-seo-aeo-one-system__figure {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bg-seo-aeo-one-system__image {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .bg-seo-aeo-one-system__figure {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .bg-seo-aeo-one-system__image {
    max-width: none;
    width: 800px;
  }
}

.bg-seo-aeo-pricing {
  padding-bottom: clamp(60px, 10vw, 160px);
}

.bg-seo-aeo-pricing__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.bg-seo-aeo-pricing__heading {
  color: var(--bg-color-accent, #53FBDD);
  margin-bottom: 16px;
}

.bg-seo-aeo-pricing__copy {
  color: var(--bg-color-text, #ffffff);
  opacity: 0.9;
  margin-bottom: 0;
}

.bg-seo-aeo-pricing__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 48px;
}

.bg-seo-aeo-pricing__table {
  min-width: 900px;
}

.bg-seo-aeo-pricing__header-cell {
  font-family: 'Quantico', sans-serif;
  color: var(--bg-color-accent, #53FBDD);
  text-transform: uppercase;
  font-size: clamp(18px, 1.5vw, 22px);
  text-align: center !important;
}

.bg-seo-aeo-pricing__feature-label {
  font-weight: 700;
  color: #fff;
  width: 25%;
  font-size: clamp(16px, 1.2vw, 18px);
}

.bg-seo-aeo-pricing__cell {
  color: #fff;
  opacity: 0.9;
  line-height: 1.5;
  text-align: left !important;
}

.bg-seo-aeo-pricing__cell--centered {
  text-align: center !important;
}

.bg-seo-aeo-pricing__table tr td:first-child,
.bg-seo-aeo-pricing__table tr th:first-child {
  text-align: left !important;
}

.bg-seo-aeo-pricing__check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.bg-seo-aeo-pricing__check {
  width: 20px;
  height: 20px;
  background-color: var(--bg-color-accent, #53FBDD);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color-primary, #0101A0);
  flex-shrink: 0;
}

.bg-seo-aeo-pricing__check svg {
  width: 12px;
  height: auto;
}

.bg-seo-aeo-pricing__footer {
  display: flex;
  justify-content: center;
}

.bg-seo-aeo-pricing__button-icon {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5em;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .bg-seo-aeo-pricing__table {
    min-width: 700px;
  }
}

/* ==========================================================================
   09 LEGACY MIGRATION NOTES
   Phase 1: style.css was enqueued as the future main stylesheet.
   Phase 2: Global CSS files (tokens, base, layout, components, utilities) migrated here.
   Phase 3: Shared components (Marquee, FAQ, Referral, etc.) migrated here.
   Phase 4: Homepage sections migrated here.
   Phase 5: Service/SEO-AEO sections migrated here.
   Phase 6: Final consolidation; all page-specific enqueues disabled.
   ========================================================================== */
