/*
Theme Name: HKAI Search
Theme URI: https://hkaisearch.com
Author: Trafficholic
Description: 香港人工智能搜尋（hkaisearch）— HKISG 旗下香港 AI Search 研究團隊。
Version: 4.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: hkaisearch
*/

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-muted: #eef2f7;
  --surface: #ffffff;
  --text: #1a2332;
  --text-soft: #4b5a6f;
  --muted: #7a8799;
  --line: rgba(26, 35, 50, 0.1);
  --line-strong: rgba(26, 35, 50, 0.16);
  --accent: #1f6feb;
  --accent-2: #0b4fbf;
  --accent-soft: #e8f1ff;
  --dark: #0f1724;
  --max: 1140px;
  --font-display: "Manrope", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Manrope", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 36, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand__en {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.94rem;
  color: var(--text-soft);
  font-weight: 500;
}

.nav-item > a:hover,
.nav-item:hover > a { color: var(--text); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding-top: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-panel__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.1rem;
}

.nav-panel__inner a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.nav-panel__inner a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.nav-group {
  margin: 0.5rem 0 0.15rem;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(31, 111, 235, 0.25);
}

.btn--primary:hover {
  background: var(--accent-2);
  color: #fff !important;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: #fff;
  color: var(--accent-2);
}

.btn__code { display: none; }

/* Hero — clean white marketing */
.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(31, 111, 235, 0.1), transparent 55%),
    radial-gradient(700px 360px at 5% 80%, rgba(31, 111, 235, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
}

.hero__canvas { display: none; }

.hero__content {
  position: relative;
  padding: 5rem 0 4.5rem;
  max-width: 720px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  animation: rise 0.7s ease both;
}

.hero__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  font-style: normal;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
  animation: rise 0.7s ease 0.05s both;
}

.hero__brand span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.28em;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  text-transform: lowercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-soft);
  max-width: 16ch;
  animation: rise 0.7s ease 0.1s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  animation: rise 0.7s ease 0.16s both;
}

.hero__lead a {
  color: var(--accent);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s ease 0.22s both;
}

.hero__meta {
  display: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--soft,
.section--panel {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--dark);
  color: #f5f8fc;
}

.section--dark .section__lead,
.section--dark .pillar p,
.section--dark .step p {
  color: rgba(245, 248, 252, 0.72);
}

.section--dark .section__eyebrow,
.section--dark .pillar__idx,
.section--dark .step__n,
.section--dark .pillar em {
  color: #8eb6ff;
}

.section__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.section__eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  font-weight: 800;
  max-width: 16ch;
}

.section__lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 40rem;
}

.trust {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust__row span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pillar {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section:not(.section--dark) .pillar {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pillar__idx {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pillar em {
  display: block;
  font-style: normal;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.pillar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.value h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.value p {
  margin: 0;
  color: var(--text-soft);
}

.problem {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.problem__visual {
  min-height: 260px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(31, 111, 235, 0.12), transparent 45%),
    linear-gradient(180deg, #1a56c8, #0f1724);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.problem__visual::before {
  content: "";
  position: absolute;
  inset: 14% 12%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
}

.problem__visual code {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  font-weight: 600;
}

.service-blocks { display: grid; gap: 0; }

.service-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.service-block:last-child { border-bottom: 1px solid var(--line); }

.service-block__tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.service-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.service-block .lead {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}

.service-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
}

.service-block li {
  padding: 0.4rem 0;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
}

.service-block li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}

.step {
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section:not(.section--dark) .step {
  background: #fff;
  border-color: var(--line);
}

.step__n {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.stat span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cases { display: grid; gap: 0; }

.case {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case:last-child { border-bottom: 1px solid var(--line); }

.case__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  font-weight: 800;
}

.case__role {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.case__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.case__metrics div {
  padding: 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
}

.case__metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-2);
  font-weight: 800;
}

.case__metrics span {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.case__summary {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.case blockquote {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.case cite {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(31, 111, 235, 0.08), transparent 45%),
    #fff;
  box-shadow: var(--shadow);
}

.cta-band p { color: var(--text-soft); margin: 0.65rem 0 0; }

/* Inner pages */
.page-hero {
  padding: 3.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7faff, #fff);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 22ch;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 42rem;
}

.page-hero a {
  color: var(--accent);
  font-weight: 700;
}

.page-section {
  padding: 2.5rem 0 4rem;
}

.about-visual {
  padding-top: 2rem;
  padding-bottom: 0;
}

.about-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-detail-hero {
  margin: 0 0 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-detail-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.consult-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.consult-intro__photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.consult-intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.consult-form-wrap {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #fff !important;
  padding: 0.65rem 1rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-blocks {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.content-block {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
}

.content-block--wide { max-width: 860px; }

.content-block p { color: var(--text-soft); }

.content-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.side-panel h2 {
  margin: 0;
  font-size: 1.2rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.side-panel p { color: var(--text-soft); margin: 0; }

.prose {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.prose--home { max-width: 52rem; }

.prose .lead {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.75;
}

.prose h2 {
  margin: 2.25rem 0 0.85rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: none;
}

.prose h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.prose p { margin: 0 0 1rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li {
  margin: 0.35rem 0;
  padding: 0;
  border: 0;
  display: list-item;
  color: var(--text-soft);
}

.prose li::before { content: none; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.expert-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.expert-card__role {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.expert-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.expert-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
}

.expert-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

.expert-card li {
  margin: 0.3rem 0;
  color: var(--text-soft);
  border: 0;
  display: list-item;
  padding: 0;
}

.expert-card li::before { content: none; }

.expert-recommend {
  margin-top: 2.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.faq-block {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.55rem;
}

.faq-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.faq-block details {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.faq-block summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.faq-block details p {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
}

.guide-list,
.service-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.guide-list a,
.service-list a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.guide-list a:hover,
.service-list a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Blog */
.blog-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.topic-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: #fff;
}

.topic-chip.is-active,
.topic-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
}

.view-btn + .view-btn {
  border-left: 1px solid var(--line);
}

.view-btn.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-feed {
  display: grid;
  gap: 0.9rem;
}

.blog-feed--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-feed--list {
  grid-template-columns: 1fr;
}

.blog-feed--list .blog-card__link {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}

.blog-feed--list .blog-card__thumb {
  border-radius: var(--radius) 0 0 var(--radius);
}

.blog-feed--list .blog-card__thumb img {
  height: 100%;
  min-height: 140px;
  aspect-ratio: auto;
}

.blog-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(31, 111, 235, 0.35);
  transform: translateY(-2px);
}

.blog-card__link { display: block; padding: 0; }

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-card__topic { color: var(--accent); font-weight: 700; }

.blog-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: none;
  line-height: 1.35;
}

.blog-card__excerpt {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.blog-card__more {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.blog-card__thumb {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.blog-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__body { padding: 1.15rem 1.2rem 1.25rem; }

@media (max-width: 720px) {
  .blog-feed--grid { grid-template-columns: 1fr; }
  .blog-feed--list .blog-card__link { grid-template-columns: 1fr; }
  .blog-feed--list .blog-card__thumb { border-radius: var(--radius) var(--radius) 0 0; }
}

.blog-pagination { margin-top: 2rem; }

.blog-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: #fff;
}

.blog-pagination .current {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.blog-side { display: grid; gap: 1rem; }

.side-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.side-list a { color: var(--accent); font-weight: 600; }

.side-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.75rem 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent); }

.article-deck {
  max-width: 46rem !important;
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.article-tags span {
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: #fff;
}

.related-block { margin-top: 2.75rem; }

.related-block h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.article-toc-side a:not(.btn) {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.article-toc-side a:not(.btn):hover { color: var(--accent); }

.article-toc-side .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 0.25rem;
  text-align: center;
}

.article-toc-side .btn--primary,
.article-toc-side .btn--primary:hover,
a.btn--primary,
a.btn--primary:hover {
  color: #fff;
}

/* Form */
.consult-form {
  display: grid;
  gap: 1rem;
  max-width: 780px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.consult-form label,
.consult-form fieldset {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.consult-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}

.consult-form legend {
  padding: 0 0.3rem;
  font-size: 0.85rem;
  color: var(--accent-2);
}

.consult-form input[type="text"],
.consult-form input[type="email"],
.consult-form input[type="tel"],
.consult-form input[type="url"],
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.consult-form input:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
}

.form-success {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 111, 235, 0.25);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(245, 248, 252, 0.75);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.footer-brand__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.footer-brand__text span {
  display: block;
  font-size: 0.75rem;
  color: #8eb6ff;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  font-weight: 600;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-footer a {
  display: block;
  padding: 0.25rem 0;
  color: rgba(245, 248, 252, 0.7);
  font-size: 0.9rem;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(245, 248, 252, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Visual media layouts */
.hero--visual {
  min-height: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.hero__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.hero__portrait {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 36, 0.12);
  border: 1px solid var(--line);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.media-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.25rem;
  align-items: center;
}

.media-split--reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.media-split__image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-split__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.problem__photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.problem__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-block--media {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 2rem;
}

.service-block--media:nth-child(even) {
  direction: rtl;
}

.service-block--media:nth-child(even) > * {
  direction: ltr;
}

.service-block__media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-block__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-block__body .btn { margin-top: 1rem; }

.experts-band {
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.experts-band img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.article-cover {
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 920px;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.cta-band--visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f1724;
  border: 0;
}

.cta-band--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cta-image);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.cta-band--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 36, 0.92) 0%, rgba(15, 23, 36, 0.72) 55%, rgba(15, 23, 36, 0.55) 100%);
}

.cta-band--visual > * {
  position: relative;
  z-index: 1;
}

.cta-band--visual h2,
.cta-band--visual p,
.cta-band--visual .section__eyebrow {
  color: #fff;
}

.cta-band--visual .section__eyebrow {
  opacity: 0.85;
}

.cta-band--visual p {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 960px) {
  .pillars,
  .values,
  .steps,
  .stats,
  .problem,
  .service-block,
  .case,
  .cta-band,
  .footer-grid,
  .form-grid,
  .expert-grid,
  .content-layout,
  .blog-layout,
  .hero__split,
  .media-split,
  .media-split--reverse,
  .service-block--media,
  .consult-layout {
    grid-template-columns: 1fr;
  }

  .service-block--media:nth-child(even) { direction: ltr; }
  .hero__portrait { order: -1; }

  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }

  body.nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
  }

  .nav-panel__inner {
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.65rem;
  }

  .site-header__inner { position: relative; }
  .hero { min-height: auto; }
  .hero__content { padding: 3.5rem 0 3rem; }
  .side-panel { position: static; }
}
