/*
Theme: V4441
Custom CMS theme
*/

:root {
  --bg: #edf2f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #e8eef9;
  --text: #172033;
  --muted: #5b667a;
  --line: #d7deeb;
  --primary: #2563eb;
  --accent: #0f172a;
  --accent-2: #1e293b;
  --success-soft: #dbeafe;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --container: 1180px;
  --font-body: 'Inter', Arial, sans-serif;
  --font-heading: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
p, ul, ol, blockquote, table, figure, pre { margin: 0 0 18px; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-inner { margin-top: 40px; }
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.button,
.btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button,
.btn,
.button-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}
.button-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}
.button:hover,
.btn:hover,
.button-primary:hover,
.button-secondary:hover,
.text-link:hover,
.nav-call:hover {
  transform: translateY(-1px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--accent);
}
.text-link::after {
  content: '→';
  color: var(--primary);
}
.eyebrow-badge,
.section-kicker,
.sidebar-card-label,
.footer-label,
.not-found-code,
.category-tile-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.section-heading p {
  max-width: 520px;
  color: var(--muted);
}
.compact-heading { align-items: start; }
.split-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.empty-state {
  padding: 26px;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .95rem;
}
.breadcrumbs a { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(215, 222, 235, 0.9);
}
.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}
.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-link,
.nav-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
}
.nav-link {
  color: var(--accent);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
}
.nav-call {
  color: #fff;
  background: var(--accent);
}

.home-hero { padding-top: 42px; }
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: stretch;
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.home-hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 12ch;
}
.home-hero-title strong {
  display: block;
  color: var(--primary);
  font-weight: 900;
}
.home-hero-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-contact-card {
  margin-top: 6px;
  width: fit-content;
  padding: 18px 22px;
}
.hero-contact-label {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 6px;
}
.hero-contact-phone {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
}
.home-hero-media {
  min-width: 0;
}
.home-hero-image-wrap,
.home-hero-panel {
  height: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(145deg, var(--accent), #1e3a8a 120%);
  color: #fff;
}
.home-hero-panel h2,
.home-hero-panel p { color: #fff; }
.hero-panel-line {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #93c5fd;
  margin-bottom: auto;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-tile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,245,255,.96));
}
.category-tile-featured {
  grid-column: span 2;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(37,99,235,.9));
}
.category-tile-featured h3 a,
.category-tile-featured p,
.category-tile-featured .category-tile-index,
.category-tile-featured .text-link {
  color: #fff;
}
.category-tile-featured .category-tile-index {
  background: rgba(255,255,255,.14);
}
.category-tile h3 {
  font-size: 1.45rem;
  margin-top: 18px;
}
.category-tile h3 a { color: var(--accent); }
.category-tile p {
  color: var(--muted);
  max-width: 32ch;
}
.category-tile-footer { margin-top: 18px; }

.home-posts-strip {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.35) 100%);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-card-home {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.post-card-home h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.post-card-home h3 a { color: var(--accent); }
.post-card-content { flex: 1; }
.post-card-excerpt,
.related-excerpt,
.category-post-excerpt {
  color: var(--muted);
  font-size: .98rem;
}
.post-card-excerpt .article-toc,
.related-excerpt .article-toc,
.category-post-excerpt .article-toc {
  margin: 8px 0 0;
}
.post-card-link {
  margin-top: 18px;
  display: inline-flex;
  font-weight: 800;
}

.page-listing {
  padding: 10px 24px;
}
.page-row,
.related-page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.page-row + .page-row,
.related-page-row + .related-page-row {
  border-top: 1px solid var(--line);
}
.page-row h3,
.related-page-row h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.page-row h3 a,
.related-page-row h3 a { color: var(--accent); }
.page-row p,
.related-page-row p { color: var(--muted); margin: 0; }
.page-row-button { white-space: nowrap; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}
.post-heading-block { margin-bottom: 22px; }
.post-title {
  font-size: clamp(2rem, 4vw, 4rem);
  max-width: 13ch;
}
.post-intro,
.page-intro-text,
.category-description {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}
.post-image {
  width: 100%;
  max-width: 820px;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.post-sidebar { position: relative; }
.sticky-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
}
.sticky-card h2 {
  font-size: 1.35rem;
  margin-top: 12px;
}
.sticky-card p { color: var(--muted); }
.sidebar-phone { width: 100%; margin-top: 8px; }

.article-surface {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-content {
  padding: 34px;
  font-size: 1.05rem;
}
.article-content h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.8rem);
  margin-top: 42px;
  margin-bottom: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(215, 222, 235, 0.9);
}
.article-content h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-top: 30px;
  margin-bottom: 14px;
}
.article-content h4 {
  font-size: 1.15rem;
  margin-top: 22px;
  margin-bottom: 10px;
  text-transform: none;
}
.article-content p,
.article-content li,
.article-content td,
.article-content th {
  color: var(--text);
}
.article-content strong { color: var(--accent); }
.article-content em { color: var(--accent-2); }
.article-content ul,
.article-content ol {
  padding-left: 22px;
}
.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
  margin-top: 10px;
  margin-bottom: 10px;
}
.article-content li { margin-bottom: 8px; }
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.article-content blockquote {
  padding: 22px 24px;
  border-left: 5px solid var(--primary);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-2);
  font-size: 1.04rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
}
.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-content th {
  background: var(--surface-3);
  color: var(--accent);
}
.article-content figure {
  margin: 26px 0;
}
.article-content figcaption {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 10px;
  text-align: center;
}
.article-content code,
.article-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content code {
  background: #eaf1ff;
  padding: 2px 6px;
  border-radius: 8px;
  color: #153e75;
}
.article-content pre {
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #0b1220;
  color: #dbeafe;
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.article-toc {
  padding: 20px;
  margin: 10px 0 28px;
  border: 1px solid #cfe0ff;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.article-toc-title {
  margin-bottom: 14px;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.article-toc li { margin: 0; }
.article-toc li ul {
  margin-top: 10px;
  padding-left: 14px;
}
.article-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe7ff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}
.article-toc a:hover {
  background: #dbeafe;
}

.related-section,
.related-pages-section {
  padding-top: 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  padding: 22px;
}
.related-card h3 {
  font-size: 1.24rem;
}
.related-card h3 a { color: var(--accent); }

.category-shell { padding-top: 38px; }
.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 24px;
  padding: 28px;
  align-items: center;
}
.category-header-media {
  justify-self: end;
}
.category-image {
  width: 100%;
  max-width: 360px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.subcat-card {
  overflow: hidden;
}
.subcat-card .category-image {
  max-width: none;
  border-radius: 0;
}
.subcat-card-body {
  padding: 18px;
}
.subcat-card h3 {
  font-size: 1.15rem;
}
.subcat-card h3 a { color: var(--accent); }
.category-post-list {
  display: grid;
  gap: 20px;
}
.category-post-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
}
.category-post-media {
  display: block;
}
.post-card-image {
  width: 320px;
  height: 190px;
  object-fit: cover;
  object-position: center;
}
.category-post-body {
  padding: 22px 22px 22px 0;
}
.category-post-body h3 {
  font-size: 1.4rem;
}
.category-post-body h3 a { color: var(--accent); }
.pagination-wrap { margin-top: 28px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--accent);
  font-weight: 800;
}
.pagination .pagination-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination .is-disabled {
  opacity: .5;
}

.page-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}
.page-intro-block h1 {
  font-size: clamp(2rem, 4vw, 3.9rem);
  max-width: 12ch;
}
.page-media-side {
  justify-self: end;
}
.page-image {
  width: 100%;
  max-width: 420px;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.page-content-wrap { margin-top: 24px; }
.page-content-body {
  max-width: 920px;
}
.related-pages-list {
  padding: 10px 24px;
}

.not-found-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.not-found-card {
  padding: 36px;
  max-width: 760px;
  text-align: left;
}
.not-found-code {
  margin-bottom: 18px;
}
.not-found-card h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  max-width: 10ch;
}
.not-found-card p {
  color: var(--muted);
  max-width: 56ch;
}

.site-footer {
  margin-top: 26px;
  padding: 36px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}
.footer-grid,
.footer-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.footer-text,
.footer-note,
.kp-credit {
  color: var(--muted);
}
.footer-phone {
  display: inline-flex;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
}
.kp-credit a { color: var(--accent); }

@media (max-width: 1024px) {
  .home-hero-grid,
  .post-layout,
  .page-layout-grid,
  .category-header,
  .category-post-card {
    grid-template-columns: 1fr;
  }
  .post-sidebar { order: -1; }
  .sticky-card { position: static; }
  .page-media-side,
  .category-header-media { justify-self: start; }
  .category-post-body { padding: 0 22px 22px; }
  .post-image { max-width: none; }
  .category-image { max-width: none; }
  .post-grid,
  .related-grid,
  .subcat-grid,
  .category-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .section-heading,
  .footer-grid,
  .footer-bottom,
  .page-row,
  .related-page-row,
  .site-header-inner {
    flex-direction: column;
    align-items: start;
  }
  .home-hero-image-wrap,
  .home-hero-panel {
    min-height: 340px;
  }
  .home-hero-title,
  .post-title,
  .page-intro-block h1 {
    max-width: none;
  }
  .article-content {
    padding: 22px;
  }
  .post-grid,
  .related-grid,
  .subcat-grid,
  .category-mosaic {
    grid-template-columns: 1fr;
  }
  .category-tile-featured {
    grid-column: span 1;
  }
  .post-card-image {
    width: 343px;
    max-width: 100%;
    height: 210px;
  }
  .page-image {
    max-width: 343px;
    height: 220px;
  }
  .post-image {
    height: 220px;
  }
  .category-image {
    height: 200px;
  }
  .pagination {
    justify-content: flex-start;
  }
}
