/*
Theme Name: Chongyue Pet Studio
Theme URI: https://blog.chongyuepet.cn
Author: Chongyue
Description: 宠悦小狗工厂品牌主题 —— 为 GEO（生成式引擎优化）内容站设计的可视化外壳，保留全部结构化数据与事实块语义。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: chongyue
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --sand: #f7efe4;
  --sand-deep: #efe3d3;
  --ink: #1b1815;
  --body: #4a413b;
  --muted: #8a7d74;
  --line: #ece2d5;
  --line-strong: #ddcfbd;

  --brand: #e2582d;
  --brand-600: #c6451d;
  --brand-50: #fdece5;
  --forest: #2b5648;
  --forest-600: #20443a;
  --forest-50: #e9f1ec;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(27, 24, 21, 0.04);
  --shadow-sm: 0 2px 6px rgba(27, 24, 21, 0.05);
  --shadow-md: 0 20px 45px -28px rgba(27, 24, 21, 0.35);

  --maxw: 1160px;
  --maxw-narrow: 760px;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--brand-50);
  color: var(--brand-600);
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  z-index: 999;
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin-top: 12px;
}

.section-head p {
  color: var(--muted);
  max-width: 44ch;
  margin-top: 10px;
  font-size: 0.98rem;
}

.section-head__link {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   4. Buttons & pills
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(226, 88, 45, 0.9);
}

.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 16px 28px -14px rgba(198, 69, 29, 0.9);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.pill--brand {
  background: var(--brand-50);
  color: var(--brand-600);
}

.pill--forest {
  background: var(--forest-50);
  color: var(--forest);
}

/* =========================================================
   5. Header
   ========================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.topbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.88);
}

.topbar a:hover {
  color: #fff;
}

.topbar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(226, 88, 45, 0.95);
  flex: none;
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

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

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover {
  background: var(--sand);
  color: var(--ink);
}

.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-parent > a {
  background: var(--ink);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-phone span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 24px 22px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 18px;
  width: 100%;
}

/* =========================================================
   6. Hero (page content .geo-hero)
   ========================================================= */
.page-shell {
  padding: 44px 0 72px;
}

.geo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sand) 0%, #fbf5ec 55%, #f3e8da 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 40px;
}

.geo-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 88, 45, 0.14), transparent 65%);
  pointer-events: none;
}

.geo-hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 380px;
  background: url("assets/img/hero-dog.jpg") center 32% / cover no-repeat;
  box-shadow: 0 30px 60px -30px rgba(27, 24, 21, 0.45);
}

.geo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(27, 24, 21, 0.42));
}

.geo-hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.geo-hero__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3aa76d;
  box-shadow: 0 0 0 4px rgba(58, 167, 109, 0.18);
  display: inline-block;
}

.geo-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.geo-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 28px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px -22px rgba(27, 24, 21, 0.9);
}

.hero-phone a {
  color: #fff;
}

.hero-phone a:hover {
  color: #fff;
}

/* trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
}

.trust-strip__item {
  background: var(--surface);
  padding: 22px 24px;
}

.trust-strip__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.trust-strip__value span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
}

.trust-strip__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================================
   7. Content prose
   ========================================================= */
.entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--body);
}

.entry-content > * + * {
  margin-top: 1.15em;
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  margin-top: 2.2em;
  margin-bottom: 0.65em;
  scroll-margin-top: 96px;
}

.entry-content h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  margin-bottom: 14px;
}

.entry-content h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
  margin-bottom: 0.55em;
  scroll-margin-top: 96px;
}

.entry-content h4 {
  font-size: 1.08rem;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.entry-content p {
  margin-bottom: 1.15em;
}

.entry-content strong {
  color: var(--ink);
  font-weight: 700;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content li::marker {
  color: var(--brand);
}

.entry-content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(198, 69, 29, 0.35);
}

.entry-content a:hover {
  text-decoration-color: currentColor;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 22px 26px;
  background: var(--sand);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.6em 0;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.entry-content thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.entry-content tbody td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.entry-content tbody tr:nth-child(even) td {
  background: #fdf9f4;
}

.entry-content tbody tr:hover td {
  background: var(--brand-50);
}

.entry-content code {
  background: var(--sand);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--brand-600);
}

/* FAQ pairs (Q / A 卡片) */
.faq-pair {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-pair:hover {
  border-color: var(--sand-deep);
  box-shadow: var(--shadow-sm);
}

.entry-content .faq-q {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.entry-content .faq-q::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  bottom: 0.42em;
  width: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.entry-content .faq-a {
  margin: 0;
  padding-left: 14px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.85;
}

/* =========================================================
   8. Price table block
   ========================================================= */
.geo-price-table {
  margin: 0 0 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.geo-price-table h2 {
  text-align: center;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 6px;
}

.geo-price-table h2::before {
  display: none;
}

.geo-price-table h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  margin: 14px auto 0;
}

.geo-price-table table {
  margin-top: 26px;
  border: 0;
}

.geo-price-table thead th {
  background: var(--sand);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: none;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.geo-price-table tbody td {
  font-size: 15.5px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.geo-price-table th:last-child,
.geo-price-table td:last-child {
  text-align: right;
  padding-right: 26px;
}

.geo-price-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.geo-price-table tbody tr:nth-child(even) td {
  background: transparent;
}

.geo-price-table tbody tr:hover td {
  background: #fffaf5;
}

.geo-price-table strong {
  color: var(--brand);
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.price-note {
  margin: 22px 0 0;
  padding: 14px 20px;
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  color: var(--brand-600);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}

/* =========================================================
   9. Features
   ========================================================= */
.geo-features {
  margin-bottom: 64px;
}

.geo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 64px;
}

.geo-facts > h2 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.geo-features h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.geo-features h2::before {
  display: none;
}

.geo-features > h2 {
  text-align: left;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--sand-deep);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  margin: 0;
}

/* =========================================================
   10. Fact blocks
   ========================================================= */
.geo-facts h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.geo-facts h2::before {
  display: none;
}

.fact-block {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px 26px 34px;
  transition: background 0.25s var(--ease);
}

.fact-block:last-child {
  grid-column: 1 / -1;
}

.fact-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  opacity: 0.85;
}

.fact-block:hover {
  background: #fbf4ea;
}

.fact-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.fact-block p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--body);
  margin: 0;
}

/* =========================================================
   11. Contact CTA bar
   ========================================================= */
.geo-contact-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest) 0%, #1d3f35 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 66px 48px;
  text-align: center;
}

.geo-contact-bar::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 65%);
  pointer-events: none;
}

.geo-contact-bar h2::before {
  display: none;
}

.geo-contact-bar h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 16px;
}

.geo-contact-bar p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 2;
  margin: 0;
  position: relative;
  z-index: 1;
}

.geo-contact-bar strong {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-block;
  vertical-align: -3px;
  margin: 0 6px;
  line-height: 1.2;
}

/* =========================================================
   12. Page: article-like pages with sidebar
   ========================================================= */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.page-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 34px;
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}

.side-card--brand {
  background: linear-gradient(150deg, var(--sand) 0%, #fdf6ee 100%);
  border-color: var(--sand-deep);
}

.side-card h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.side-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

.side-card .btn {
  width: 100%;
}

.side-list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
}

.side-list li:last-child a {
  border-bottom: 0;
}

.side-list a:hover {
  color: var(--brand-600);
}

.side-list span {
  color: var(--muted);
  font-size: 12px;
}

.side-facts {
  display: grid;
  gap: 12px;
}

.side-facts div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.side-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-facts dt {
  color: var(--muted);
}

.side-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   13. Article
   ========================================================= */
.article-hero {
  padding: 46px 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf5ec 0%, var(--bg) 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  list-style: none;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-600);
}

.breadcrumb__sep {
  color: var(--line-strong);
}

.article-title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
  max-width: 21em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  padding: 52px 0 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 13.5px;
}

.toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 2px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 7px 0 7px 26px;
  color: var(--body);
  line-height: 1.55;
  position: relative;
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--line-strong);
}

.toc a:hover,
.toc a.is-active {
  color: var(--brand-600);
  border-left-color: var(--brand);
}

/* =========================================================
   14. Cards / listings
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-deep);
}

.post-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 22px 0;
}

.post-card__body {
  padding: 14px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__title {
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-card__title a {
  color: var(--ink);
}

.post-card__title a:hover {
  color: var(--brand-600);
}

.post-card__excerpt {
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.post-card__more {
  font-weight: 700;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card--wide {
  flex-direction: row;
  align-items: stretch;
}

.post-card--wide .post-card__body {
  padding: 24px 26px;
}

.post-card--wide .post-card__title {
  font-size: 1.18rem;
}

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

.blog-hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf5ec, var(--bg));
}

.blog-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.filter-row a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
}

.filter-row a:hover {
  border-color: var(--brand);
  color: var(--brand-600);
}

.filter-row a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
}

.pagination .page-numbers:hover {
  border-color: var(--brand);
  color: var(--brand-600);
}

.pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination .dots {
  border: 0;
  background: transparent;
  color: var(--muted);
}

/* =========================================================
   15. Empty state / 404
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 22px;
}

.error-404 {
  text-align: center;
  padding: 110px 0 120px;
}

.error-404__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--sand-deep);
}

.error-404 h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 14px 0 12px;
}

.error-404 p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* =========================================================
   16. Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  margin-top: 90px;
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .brand__tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-about {
  line-height: 1.85;
  max-width: 34ch;
  margin-bottom: 18px;
}

.footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
}

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

.footer-contact {
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact strong {
  color: #fff;
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact a {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  flex-wrap: wrap;
}

/* floating call (mobile) */
.call-fab {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 18px 34px -16px rgba(226, 88, 45, 0.8);
}

/* =========================================================
   17. WordPress core alignment
   ========================================================= */
.alignwide {
  max-width: 1320px;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image img {
  border-radius: var(--radius);
}

/* =========================================================
   18. Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .page-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .sidebar,
  .toc {
    position: static;
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .geo-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px;
    gap: 28px;
  }

  .geo-hero__media {
    min-height: 280px;
    grid-row: 1;
  }

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

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .geo-facts {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar__list li:not(:first-child) {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  .site-header__row {
    min-height: 66px;
  }

  .header-phone {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand__name {
    font-size: 17px;
  }

  .geo-hero {
    padding: 24px;
    border-radius: 20px;
  }

  .geo-hero h1 {
    font-size: 2rem;
  }

  .hero-phone {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 1.05rem;
  }

  .geo-price-table {
    padding: 24px 18px;
    border-radius: var(--radius);
  }

  .entry-content table {
    font-size: 13.5px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .geo-price-table table {
    display: table;
    white-space: normal;
  }

  .geo-price-table tbody td,
  .geo-price-table thead th {
    padding: 12px 10px;
    font-size: 13.5px;
  }

  .trust-strip__item {
    padding: 18px;
  }

  .trust-strip__value {
    font-size: 1.35rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .geo-contact-bar {
    padding: 38px 24px;
    border-radius: var(--radius);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .site-footer {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .call-fab {
    display: flex;
  }

  .article-title {
    font-size: 1.7rem;
  }

  .fact-block {
    padding: 22px 22px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
