/*
AI THEME CONTRACT v3 LOCAL CSS
This is the main stylesheet of the generated theme.
No Tailwind. No Bootstrap. No Google Fonts. No remote assets.
*/

:root {
  --bg: #f4efe7;
  --surface: #fffdf9;
  --surface-alt: #efe6d8;
  --surface-dark: #1f2937;
  --text: #142033;
  --muted: #5f6b7b;
  --line: #dccfbc;
  --primary: #2563eb;
  --accent: #0f172a;
  --accent-soft: #c78f54;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --container: 1220px;
  --body-font: 'Inter', Arial, sans-serif;
  --heading-font: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(199, 143, 84, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f4efe7 100%);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 72px 0; }
.card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(220, 207, 188, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.button,
.btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover,
.btn:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.button,
.btn,
.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.site-header,
.site-footer,
.hero,
.category-hero,
.page-hero,
.post-hero,
.post-card,
.service-card,
.article-shell,
.article-content,
.article-toc,
.pagination,
.breadcrumbs,
.empty-state {}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--heading-font);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
p, ul, ol, blockquote, table, figure, pre { margin: 0 0 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 231, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 207, 188, 0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-link,
.nav-helper {
  color: var(--muted);
  font-weight: 600;
}
.nav-phone { white-space: nowrap; }

.home-hero { padding-top: 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-badge,
.hero-contact,
.section-label,
.overlay-kicker,
.aside-label,
.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(220, 207, 188, 0.9);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-contact { color: var(--primary); }
.hero-title,
.post-title,
.page-title,
.category-title {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  max-width: 11ch;
  margin-bottom: 18px;
}
.hero-title em {
  display: block;
  font-style: normal;
  color: var(--primary);
}
.hero-description,
.post-summary,
.page-intro,
.category-description,
.section-subtitle,
.section-side-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.hero-note {
  max-width: 440px;
  padding: 22px;
}
.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}
.hero-note p { color: var(--muted); }
.hero-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 0;
}
.hero-image,
.hero-image-placeholder {
  width: 100%;
  height: 620px;
  object-fit: cover;
}
.hero-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(145deg, #d9c5ab 0%, #b68c63 100%);
  color: #fff8ef;
  font-size: 1.2rem;
  text-align: center;
}
.hero-overlay-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--white);
}
.hero-overlay-card h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 0;
  max-width: 14ch;
}
.overlay-kicker {
  margin-bottom: 14px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #dbeafe;
}

.market-strip-inner,
.split-head,
.section-head,
.posts-head,
.footer-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  max-width: 14ch;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.category-tile {
  grid-column: span 4;
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-tile-featured {
  grid-column: span 8;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(37, 99, 235, 0.9) 100%);
  color: var(--white);
}
.category-tile-featured h3 a,
.category-tile-featured .category-index,
.category-tile-featured .category-card-text,
.category-tile-featured .text-link { color: var(--white); }
.category-tile-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.category-index {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-soft);
}
.category-tile h3 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  max-width: 14ch;
}
.category-card-text { color: var(--muted); }
.text-link {
  font-weight: 800;
  color: var(--primary);
}

.editorial-grid,
.post-hero-grid,
.category-hero-grid,
.page-grid {
  display: grid;
  gap: 28px;
}
.editorial-grid { grid-template-columns: 1.2fr 0.8fr; }
.editorial-panel { padding: 30px; }
.editorial-panel h2 { font-size: clamp(1.8rem, 3vw, 3rem); max-width: 12ch; }
.editorial-panel p:last-child { color: var(--muted); max-width: 60ch; }
.stats-panel {
  display: grid;
  gap: 16px;
}
.stat-chip {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-chip strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--accent);
}
.stat-chip span { color: var(--muted); }

.category-hero-grid { grid-template-columns: 1fr minmax(320px, 480px); align-items: center; }
.category-media,
.post-media,
.page-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.category-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--accent); font-weight: 700; }

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.subcategory-card { overflow: hidden; }
.subcategory-card .category-image {
  height: 220px;
  border-radius: 0;
}
.subcategory-body { padding: 22px; }
.subcategory-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.post-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card-media { display: block; }
.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.post-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
}
.post-card h3 a { color: var(--accent); }
.post-excerpt,
.post-excerpt-text {
  color: var(--muted);
  font-size: 0.98rem;
}
.post-excerpt {
  overflow: hidden;
}
.post-excerpt .article-toc {
  margin: 0;
  padding: 16px;
  box-shadow: none;
  background: var(--surface-alt);
}
.post-card-button { margin-top: auto; }

.pagination-wrap { margin-top: 30px; }
.pagination {
  display: flex;
  align-items: center;
  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,0.76);
  color: var(--accent);
  font-weight: 700;
}
.pagination-current { background: var(--accent); color: var(--white); }
.is-disabled { opacity: .55; }

.post-hero-grid { grid-template-columns: 0.95fr 1.05fr; align-items: center; }
.post-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
}
.post-callout {
  margin-top: 28px;
  padding: 18px 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.post-callout span { color: var(--muted); font-weight: 700; }
.post-callout a { font-weight: 800; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}
.article-card {
  padding: clamp(22px, 4vw, 42px);
}
.article-aside {
  position: sticky;
  top: 100px;
}
.aside-panel { padding: 24px; }
.aside-panel h2 {
  font-size: 1.4rem;
  max-width: 13ch;
}
.aside-panel p:last-child { color: var(--muted); }

.page-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
}
.page-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-note {
  margin-top: 18px;
  max-width: 560px;
  padding: 22px;
}
.page-note h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.page-note p { color: var(--muted); }
.page-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.not-found-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}
.not-found-card h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.not-found-card p {
  color: var(--muted);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.empty-state {
  padding: 28px;
}
.empty-state h3 {
  font-size: 1.5rem;
}
.empty-state p { color: var(--muted); }

.site-footer {
  margin-top: 40px;
  padding: 36px 0 26px;
  border-top: 1px solid rgba(220, 207, 188, 0.9);
  background: rgba(255,255,255,0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.footer-branding h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.footer-branding p,
.footer-box p,
.footer-copy,
.kp-credit {
  color: var(--muted);
}
.footer-box { padding: 24px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(220, 207, 188, 0.7);
}
.kp-credit a { color: var(--accent); }

.article-content {
  font-size: 1.06rem;
  color: var(--text);
}
.article-content h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(220, 207, 188, 0.75);
}
.article-content h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-top: 34px;
  margin-bottom: 14px;
}
.article-content h4 {
  font-size: 1.16rem;
  margin-top: 24px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-content p,
.article-content li,
.article-content td,
.article-content th {
  color: var(--text);
}
.article-content p {
  margin-bottom: 18px;
}
.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
  margin-top: 10px;
  margin-bottom: 10px;
}
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
}
.article-content blockquote {
  padding: 22px 24px;
  border-left: 4px solid var(--accent-soft);
  background: linear-gradient(180deg, #fffaf2 0%, #f4ece0 100%);
  border-radius: 0 18px 18px 0;
  color: #4b5563;
  font-size: 1.04rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.article-content th,
.article-content td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(220, 207, 188, 0.75);
  text-align: left;
}
.article-content th {
  background: var(--surface-alt);
  color: var(--accent);
}
.article-content figure {
  margin: 28px 0;
}
.article-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}
.article-content code,
.article-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content code {
  padding: 2px 8px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
}
.article-content pre {
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #111827;
  color: #e5eefc;
}
.article-content hr {
  border: 0;
  border-top: 1px solid rgba(220, 207, 188, 0.9);
  margin: 30px 0;
}
.article-toc {
  padding: 20px;
  margin: 26px 0 34px;
  border: 1px solid rgba(199, 143, 84, 0.35);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8ed 0%, #f5eadc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.article-toc-title {
  margin-bottom: 14px;
  font-size: .92rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.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: 11px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(220, 207, 188, 0.85);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.article-toc a:hover {
  background: #ffffff;
  color: var(--primary);
}

@media (max-width: 1100px) {
  .hero-grid,
  .post-hero-grid,
  .category-hero-grid,
  .page-grid,
  .editorial-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
  }
  .category-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-tile,
  .category-tile-featured {
    grid-column: auto;
  }
  .post-list-grid,
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section { padding: 46px 0; }
  .nav-inner { min-height: 70px; }
  .hero-image-wrap,
  .hero-image,
  .hero-image-placeholder {
    min-height: 420px;
    height: 420px;
  }
  .hero-overlay-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
  }
  .post-image {
    height: 220px;
  }
  .page-image {
    height: 240px;
  }
  .category-image {
    height: 220px;
  }
  .post-card-image {
    height: 220px;
  }
  .post-list-grid,
  .subcategory-grid,
  .category-mosaic {
    grid-template-columns: 1fr;
  }
  .hero-title,
  .post-title,
  .page-title,
  .category-title {
    max-width: none;
  }
  .post-card-body,
  .subcategory-body,
  .editorial-panel,
  .aside-panel,
  .not-found-card,
  .hero-note,
  .page-note {
    padding: 20px;
  }
}
