/**
 * AkuyDesign Theme — SEO Services page (seo-page.css)
 * Loaded only when Template: SEO Services is active.
 *
 * All layout-critical rules are scoped under .akd-seo-page to guarantee
 * correct specificity over any global resets in theme.css.
 *
 * Section order & backgrounds:
 *  1. Hero      — warm beige
 *  2. Problems  — white
 *  3. Approach  — soft off-white
 *  4. Services  — white
 *  5. Why diff  — near-black
 *  6. Fit       — warm beige
 *  7. CTA       — dark red
 */

/* ── 1. HERO ─────────────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-hero {
  background: var(--akd-bg);
  padding-top: 72px;
  padding-bottom: 0;
  overflow: hidden;
}

.akd-seo-page .akd-seo-hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: flex-end;
}

.akd-seo-page .akd-seo-hero__content {
  padding-bottom: 80px;
}

.akd-seo-page .akd-seo-hero__title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--akd-text);
  margin: 12px 0 20px;
}

.akd-seo-page .akd-seo-hero__sub {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--akd-text-soft);
  margin: 0 0 32px;
  max-width: 520px;
}

.akd-seo-page .akd-seo-hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ── SEO health dashboard panel ─────────────────────────────────────────── */

.akd-seo-panel {
  width: 100%;
  background: var(--akd-bg-dark);
  border-radius: var(--akd-radius-xl) var(--akd-radius-xl) 0 0;
  padding: 24px 28px 36px;
  color: var(--akd-white);
}

.akd-seo-panel__header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.akd-seo-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.akd-seo-panel__dot--r { background: #FF5F57; }
.akd-seo-panel__dot--y { background: #FFBD2E; }
.akd-seo-panel__dot--g { background: #28CA41; }

.akd-seo-panel__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-left: 8px;
}

.akd-seo-panel__score {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.akd-seo-panel__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.akd-seo-panel__row {
  display: grid;
  grid-template-columns: 80px 1fr 28px;
  gap: 10px;
  align-items: center;
}

.akd-seo-panel__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.akd-seo-panel__bar {
  height: 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 100px;
  overflow: hidden;
}
.akd-seo-panel__bar span {
  display: block;
  height: 100%;
  background: var(--akd-accent);
  border-radius: 100px;
}

.akd-seo-panel__val {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  text-align: right;
}

.akd-seo-panel__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.akd-seo-panel__badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--akd-accent);
}

.akd-seo-panel__arrow {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
}

/* ── 2. PROBLEMS ─────────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-problems {
  background: var(--akd-white);
  padding-block: var(--akd-section-py);
}

.akd-seo-page .akd-seo-problems__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.akd-seo-page .akd-seo-problems__header .akd-section-title {
  margin-bottom: 0;
}

.akd-seo-problems__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--akd-border);
  border-radius: var(--akd-radius-lg);
  overflow: hidden;
}

.akd-seo-problem-row {
  display: grid;
  grid-template-columns: 48px 56px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--akd-border);
  background: var(--akd-white);
  transition: background var(--akd-dur);
}
.akd-seo-problem-row:last-child { border-bottom: none; }
.akd-seo-problem-row:hover { background: var(--akd-bg-soft); }

.akd-seo-problem-row__num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--akd-accent-alpha2);
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}

.akd-seo-problem-row__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--akd-radius);
  background: var(--akd-accent-alpha);
  color: var(--akd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.akd-seo-problem-row__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--akd-text);
  margin: 0 0 4px;
  line-height: 1.35;
}

.akd-seo-problem-row__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--akd-text-soft);
  margin: 0;
}

/* ── 3. APPROACH ─────────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-approach {
  background: var(--akd-bg-soft);
  padding-block: var(--akd-section-py);
}

.akd-seo-page .akd-seo-approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.akd-seo-approach__card {
  border-radius: var(--akd-radius-xl);
  overflow: hidden;
  box-shadow: var(--akd-shadow-md);
  display: flex;
  flex-direction: column;
}

.akd-seo-approach__card-top {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.akd-seo-approach__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.akd-seo-approach__num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
}

.akd-seo-approach__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px 10px;
}

.akd-seo-approach__icon {
  color: rgba(255,255,255,0.75);
}

.akd-seo-approach__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--akd-white);
  margin: 0;
}

.akd-seo-approach__card-body {
  background: var(--akd-white);
  padding: 24px 28px 28px;
  flex: 1;
}

.akd-seo-approach__desc {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--akd-text-soft);
  margin: 0;
}

/* ── 4. SERVICES ─────────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-services {
  background: var(--akd-white);
}

/* ── 5. WHY DIFFERENT ────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-why {
  background: var(--akd-bg-point);
  padding-block: var(--akd-section-py);
}

.akd-seo-page .akd-seo-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.akd-seo-why__title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--akd-white);
  margin: 12px 0 18px;
}

.akd-seo-why__sub {
  font-size: 0.97rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.52);
  margin: 0 0 28px;
}

.akd-seo-why__illustration {
  margin-top: 8px;
  opacity: 0.80;
}

.akd-seo-why__values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.akd-seo-why__value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px;
  border-radius: var(--akd-radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: background var(--akd-dur);
}
.akd-seo-why__value:hover {
  background: rgba(255,255,255,0.07);
}

.akd-seo-why__value-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--akd-radius);
  background: rgba(139,28,36,0.22);
  color: var(--akd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.akd-seo-why__value strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--akd-white);
  margin-bottom: 3px;
}

.akd-seo-why__value p {
  font-size: 0.845rem;
  line-height: 1.63;
  color: rgba(255,255,255,0.46);
  margin: 0;
}

/* ── 6. FIT ──────────────────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-fit {
  background: var(--akd-bg);
  padding-block: var(--akd-section-py);
  border-top: 1px solid var(--akd-border);
}

.akd-seo-page .akd-seo-fit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.akd-seo-fit__heading {
  position: sticky;
  top: calc(var(--akd-header-h) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.akd-seo-fit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.akd-seo-fit__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--akd-white);
  border: 1px solid var(--akd-border);
  border-radius: var(--akd-radius-lg);
  padding: 16px 20px;
  transition: box-shadow var(--akd-dur), border-color var(--akd-dur);
}
.akd-seo-fit__item:hover {
  box-shadow: var(--akd-shadow-sm);
  border-color: var(--akd-accent-alpha2);
}

.akd-seo-fit__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--akd-accent);
  color: var(--akd-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.akd-seo-fit__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--akd-text);
  margin-bottom: 2px;
}

.akd-seo-fit__item span {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--akd-text-soft);
}

/* ══════════════════════════════════════════════════════════════════════════
   JAPANESE TEMPLATE VARIANTS
   The Japanese SEO page (page-ja-seo.php) uses card-style components instead
   of the row-based layout used by the English template.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── JA: Problem cards ──────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-problem {
  background: var(--akd-bg-dark);
  padding-block: var(--akd-section-py);
}

.akd-seo-page .akd-seo-problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.akd-seo-problem__card {
  background: var(--akd-bg-dark);
  border: 1px solid rgba(194, 93, 93, 0.6);
  border-radius: var(--akd-radius-xl);
  padding: 28px 24px;
  transition: box-shadow var(--akd-dur);
}
.akd-seo-problem__card:hover { box-shadow: var(--akd-shadow-sm); }

.akd-seo-problem__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--akd-radius-lg);
  background: var(--akd-accent-alpha);
  color: var(--akd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.akd-seo-problem__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--akd-white);
  margin: 0 0 8px;
  line-height: 1.35;
}

.akd-seo-problem__desc {
  font-size: 0.875rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
}

/* ── JA: Approach step cards ────────────────────────────────────────────── */

.akd-seo-step-card {
  border-radius: var(--akd-radius-xl);
  overflow: hidden;
  box-shadow: var(--akd-shadow-md);
  display: flex;
  flex-direction: column;
}

.akd-seo-step-card__top {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.akd-seo-step-card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.akd-seo-step-card__num {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
}

.akd-seo-step-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px 10px;
}

.akd-seo-step-card__icon { color: rgba(255,255,255,0.75); }

.akd-seo-step-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--akd-white);
  margin: 0;
}

.akd-seo-step-card__body {
  background: var(--akd-white);
  padding: 24px 28px 28px;
  flex: 1;
}

.akd-seo-step-card__body p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--akd-text-soft);
  margin: 0;
}

/* ── JA: Service cards ──────────────────────────────────────────────────── */

.akd-seo-page .akd-seo-services {
  padding-block: var(--akd-section-py);
}

.akd-seo-page .akd-seo-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.akd-seo-service-card {
  background: var(--akd-bg-soft);
  border: 1px solid var(--akd-border);
  border-radius: var(--akd-radius-xl);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--akd-dur), border-color var(--akd-dur);
}
.akd-seo-service-card:hover {
  box-shadow: var(--akd-shadow-sm);
  border-color: var(--akd-accent-alpha2);
}

.akd-seo-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.akd-seo-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--akd-radius);
  background: var(--akd-accent-alpha);
  color: var(--akd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.akd-seo-service-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--akd-accent);
  background: var(--akd-accent-alpha);
  border-radius: 100px;
  padding: 3px 10px;
}

.akd-seo-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--akd-text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.akd-seo-service-card__desc {
  font-size: 0.87rem;
  line-height: 1.68;
  color: var(--akd-text-soft);
  margin: 0;
  flex: 1;
}

.akd-seo-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--akd-accent);
  text-decoration: none;
  margin-top: 18px;
  transition: gap var(--akd-dur);
}
.akd-seo-service-card__link:hover { gap: 8px; }

/* ── JA: Why + Fit combined section ────────────────────────────────────── */

/* Section eyebrow/title inherit from dark bg set by .akd-seo-why */
.akd-seo-page .akd-seo-why .akd-section-title { color: var(--akd-white); }
.akd-seo-page .akd-seo-why .akd-eyebrow { color: rgba(255,255,255,0.45); }

.akd-seo-why__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.akd-seo-why__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  padding: 12px 16px;
  border-radius: var(--akd-radius);
  border: 1px solid rgba(194, 93, 93, 0.6);
  background: rgba(193, 110, 110, 0.3);
  line-height: 1.5;
  transition: background var(--akd-dur);
}
.akd-seo-why__points li:hover { background: rgba(255,255,255,0.07); }

.akd-seo-why__points li svg {
  color: var(--akd-white);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Fit box inside the dark why section */
.akd-seo-page .akd-seo-why .akd-seo-fit {
  background: rgba(169, 71, 71, 0.4);
  border: 1px solid rgba(65, 2, 2, 0.9);
  border-radius: var(--akd-radius-xl);
  padding: 28px;
}

.akd-seo-fit__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--akd-white);
  margin: 0 0 16px;
  line-height: 1.35;
}

.akd-seo-page .akd-seo-why .akd-seo-fit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.akd-seo-page .akd-seo-why .akd-seo-fit__list li {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--akd-white);
  padding: 10px 14px;
  border-radius: var(--akd-radius);
  border: 1px solid rgba(194, 93, 93, 0.6);
  background: rgba(193, 110, 110, 0.3);
}

/* ── TABLET 769px – 1024px ───────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {

  .akd-seo-page .akd-seo-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .akd-seo-page .akd-seo-hero__content {
    padding-bottom: 48px;
  }

  .akd-seo-page .akd-seo-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  }

  .akd-seo-page .akd-seo-problems__header {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 36px;
  }

  .akd-seo-problem-row {
    grid-template-columns: 36px 48px 1fr;
    column-gap: 16px;
    padding: 20px 22px;
  }

  .akd-seo-page .akd-seo-approach__grid {
    gap: 14px;
  }

  .akd-seo-page .akd-seo-why__grid {
    gap: 48px;
  }

  .akd-seo-page .akd-seo-fit__grid {
    gap: 40px;
  }

  .akd-seo-fit__heading {
    position: static;
  }
}

/* ── MOBILE ≤ 768px ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  .akd-seo-page .akd-seo-hero {
    padding-top: 48px;
  }

  .akd-seo-page .akd-seo-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: stretch; /* reset desktop align-items: flex-end */
  }

  .akd-seo-page .akd-seo-hero__content {
    padding-bottom: 0;
  }

  .akd-seo-page .akd-seo-hero__visual {
    width: 100%;
  }

  .akd-seo-panel {
    border-radius: var(--akd-radius-xl) var(--akd-radius-xl) 0 0;
  }

  .akd-seo-page .akd-seo-problems__header {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .akd-seo-problem-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 18px 20px;
  }

  .akd-seo-problem-row__num {
    display: none;
  }

  .akd-seo-problem-row__icon {
    grid-row: 1;
    grid-column: 1;
    width: 44px;
    height: 44px;
  }

  .akd-seo-problem-row__body {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .akd-seo-page .akd-seo-approach__grid {
    grid-template-columns: 1fr;
  }

  .akd-seo-page .akd-seo-why__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .akd-seo-why__illustration {
    display: none;
  }

  .akd-seo-page .akd-seo-fit__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .akd-seo-fit__heading {
    position: static;
  }

  .akd-seo-fit__heading .akd-btn {
    display: none;
  }

  /* JA variants — mobile */
  .akd-seo-page .akd-seo-problem__grid  { grid-template-columns: 1fr; }
  .akd-seo-page .akd-seo-services__grid { grid-template-columns: 1fr; }
  .akd-seo-step-card__title              { font-size: 1.25rem; }
}

/* ── TABLET only — JA variant overrides ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .akd-seo-page .akd-seo-services__grid { grid-template-columns: repeat(2, 1fr); }
  .akd-seo-page .akd-seo-problem__grid  { grid-template-columns: repeat(2, 1fr); }
}
