/*
Theme Name: Create House
Theme URI: https://createhouse.lv
Author: PolarOaks
Author URI: https://polaroaks.com
Description: Custom WordPress theme for Create House — premium modular house manufacturer. 1:1 replica of Lovable design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: createhouse
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================================
   CREATE HOUSE DESIGN SYSTEM
   Pixel-perfect replica of Lovable design
   ============================================ */

/* --- Design Tokens (matched 1:1 from Lovable computed styles) --- */
:root {
  /* Primary Colors — Lovable gold = #EDAE1D */
  --ch-gold: #EDAE1D;
  --ch-gold-hover: #D9A018;
  --ch-gold-light: #F0BD3E;
  --ch-gold-muted: rgba(237, 174, 29, 0.1);
  --ch-gold-calc: #B48C64;  /* Kalkulators button color */

  /* Backgrounds — Lovable body = #FBFAF9 */
  --ch-bg: #FBFAF9;
  --ch-bg-alt: #F5F0EB;
  --ch-bg-dark: #393E46;
  --ch-bg-darker: #2B303B;
  --ch-bg-card: #FFFFFF;

  /* Text — Lovable body text = #2B303B */
  --ch-text: #2B303B;
  --ch-text-secondary: #6B7280;
  --ch-text-muted: #9CA3AF;
  --ch-text-light: #FFFFFF;
  --ch-text-nav: #393E46;

  /* Borders — Lovable = #E9E7E2 */
  --ch-border: #E9E7E2;
  --ch-border-light: #F0EBE5;

  /* Spacing — Lovable sections = 64px */
  --ch-section-py: 64px;
  --ch-container: 1280px;
  --ch-container-narrow: 960px;

  /* Radius — Lovable buttons/cards = 12px */
  --ch-radius-sm: 8px;
  --ch-radius: 12px;
  --ch-radius-lg: 16px;
  --ch-radius-xl: 24px;
  --ch-radius-full: 9999px;

  /* Shadows */
  --ch-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --ch-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --ch-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);

  /* Typography — Lovable uses Inter for ALL text including headings */
  --ch-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ch-font-serif: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --ch-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ch-font-sans);
  color: var(--ch-text);
  background-color: var(--ch-bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography (Lovable: Inter for everything) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ch-font-sans);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ch-text);
}

h1 { font-size: 60px; font-weight: 700; line-height: 1; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p {
  color: var(--ch-text-secondary);
  line-height: 1.7;
}

/* --- Layout --- */
.ch-container {
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) { .ch-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ch-container { padding: 0 4rem; } }

.ch-section {
  padding: var(--ch-section-py) 0;
}

.ch-grid {
  display: grid;
  gap: 2rem;
}

.ch-grid-2 { grid-template-columns: 1fr; }
.ch-grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .ch-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ch-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Section Heading (overline + h2 + subtitle) --- */
.ch-section-label {
  display: inline-block;
  font-family: var(--ch-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ch-gold);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .ch-section-label { font-size: 0.875rem; }
}

.ch-section-title {
  margin-bottom: 1rem;
}

.ch-section-subtitle {
  font-size: 1rem;
  color: var(--ch-text-secondary);
  max-width: 600px;
}

@media (min-width: 640px) {
  .ch-section-subtitle { font-size: 1.125rem; }
}

.ch-text-center {
  text-align: center;
}

.ch-text-center .ch-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons (Lovable: 12px radius, 14-15px font, specific padding) --- */
.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-family: var(--ch-font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--ch-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ch-transition);
  text-decoration: none;
  white-space: nowrap;
}

.ch-btn-primary {
  background-color: var(--ch-gold);
  color: #000;
  border-color: var(--ch-gold);
}

.ch-btn-primary:hover {
  background-color: var(--ch-gold-hover);
  border-color: var(--ch-gold-hover);
}

.ch-btn-outline {
  background-color: transparent;
  color: var(--ch-text);
  border-color: var(--ch-border);
}

.ch-btn-outline:hover {
  background-color: var(--ch-bg-card);
  border-color: var(--ch-text);
}

.ch-btn-dark {
  background-color: var(--ch-bg-dark);
  color: var(--ch-text-light);
  border-color: var(--ch-bg-dark);
}

.ch-btn-dark:hover {
  background-color: var(--ch-text);
}

.ch-btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.ch-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* --- Cards --- */
.ch-card {
  background: var(--ch-bg-card);
  border-radius: var(--ch-radius-xl);
  overflow: hidden;
  transition: transform var(--ch-transition), box-shadow var(--ch-transition);
}

.ch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ch-shadow-lg);
}

.ch-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--ch-bg-alt);
  position: relative;
  overflow: hidden;
}

.ch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ch-card:hover .ch-card-image img {
  transform: scale(1.05);
}

/* card type label in body */
.ch-card-type-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
  margin-bottom: 0.5rem;
}

.ch-card-body {
  padding: 1.5rem;
}

.ch-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
  background: var(--ch-bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: var(--ch-radius-full);
  margin-bottom: 0.75rem;
}

.ch-card-title {
  font-family: var(--ch-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ch-text);
  margin-bottom: 0.5rem;
}

.ch-card-desc {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
}

.ch-card-area {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
}

.ch-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--ch-transition);
}

.ch-card-link:hover {
  color: var(--ch-gold);
}

.ch-card-calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: var(--ch-bg-alt);
  border: none;
  border-radius: var(--ch-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
  cursor: pointer;
  transition: all var(--ch-transition);
}

.ch-card-calc-btn:hover {
  background: var(--ch-gold-muted);
  color: var(--ch-gold);
}

.ch-card-arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ch-bg-alt);
  border-radius: 50%;
  color: var(--ch-text);
  transition: all var(--ch-transition);
  flex-shrink: 0;
}

.ch-card:hover .ch-card-arrow {
  background: var(--ch-gold);
  color: white;
}

/* --- Header --- */
.ch-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(251, 250, 249, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--ch-border-light);
  transition: all var(--ch-transition);
}

.ch-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .ch-header-inner { padding: 0 4rem; }
}

.ch-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ch-logo img,
.ch-logo-img {
  height: 48px;
  width: auto;
}

.ch-logo-placeholder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ch-text);
}

.ch-logo-placeholder.ch-logo-light {
  color: var(--ch-text-light);
}

.ch-logo-icon {
  flex-shrink: 0;
}

.ch-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ch-logo-name {
  font-family: var(--ch-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ch-logo-sub {
  font-family: var(--ch-font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ch-text-secondary);
}

.ch-logo-light .ch-logo-sub {
  color: var(--ch-text-muted);
}

.ch-nav,
.ch-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ch-nav,
  .ch-nav-desktop { display: flex; }
}

.ch-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ch-nav-item {
  list-style: none;
}

.ch-nav a,
.ch-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ch-text-nav);
  transition: color var(--ch-transition);
  position: relative;
  text-decoration: none;
}

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

.ch-nav a.active::after,
.ch-nav-item.active .ch-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ch-gold);
  border-radius: 1px;
}

.ch-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ch-btn-calculator,
.ch-btn-calc {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ch-gold-calc);
  background: transparent;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  cursor: pointer;
  transition: all var(--ch-transition);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .ch-btn-calculator,
  .ch-btn-calc { display: flex; }
}

.ch-btn-calculator:hover,
.ch-btn-calc:hover {
  color: var(--ch-gold-hover);
  background: var(--ch-gold-muted);
}

.ch-btn-calc svg {
  width: 18px;
  height: 18px;
}

.ch-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ch-text);
}

.ch-mobile-toggle .ch-close-icon {
  display: none;
}

.ch-mobile-toggle.open .ch-hamburger-icon {
  display: none;
}

.ch-mobile-toggle.open .ch-close-icon {
  display: block;
}

@media (min-width: 1024px) {
  .ch-mobile-toggle { display: none; }
}

/* Mobile Menu */
.ch-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 80px;
  background: white;
  z-index: 49;
  padding: 2rem 1.25rem;
  overflow-y: auto;
}

.ch-mobile-menu.open {
  display: block;
}

.ch-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ch-mobile-nav-list li {
  list-style: none;
}

.ch-mobile-menu a,
.ch-mobile-nav-list a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ch-text);
  border-bottom: 1px solid var(--ch-border-light);
  text-decoration: none;
}

.ch-mobile-menu-actions,
.ch-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ch-btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Chatbot trigger */
.ch-chatbot-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--ch-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ch-shadow-lg);
  cursor: pointer;
  z-index: 40;
  color: var(--ch-text);
  border: 1px solid var(--ch-border);
  transition: all var(--ch-transition);
}

.ch-chatbot-trigger:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* --- Footer --- */
.ch-footer {
  background: var(--ch-bg-darker);
  color: var(--ch-text-light);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .ch-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.ch-footer-brand p,
.ch-footer-about p,
.ch-footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.ch-footer-about .ch-btn-outline.ch-btn-light {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.ch-footer-about .ch-btn-outline.ch-btn-light:hover {
  color: var(--ch-text-light);
  border-color: rgba(255,255,255,0.6);
}

.ch-footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ch-footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ch-footer-heading {
  font-family: var(--ch-font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ch-text-light);
  margin-bottom: 1.25rem;
}

.ch-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ch-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ch-transition);
}

.ch-footer-links a:hover {
  color: var(--ch-text-light);
}

.ch-footer-contact-item,
.ch-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
  list-style: none;
}

.ch-footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-footer-contacts a {
  color: rgba(255,255,255,0.6);
  transition: color var(--ch-transition);
}

.ch-footer-contacts a:hover {
  color: var(--ch-text-light);
}

.ch-footer-contact-item svg,
.ch-footer-contacts li svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

.ch-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.ch-footer-copyright {
  margin: 0;
}

.ch-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.ch-footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: color var(--ch-transition);
}

.ch-footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
  .ch-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Hero Showcase (Lovable: full viewport, no margin-top, header overlays) --- */
.ch-hero {
  position: relative;
  min-height: 100svh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ch-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ch-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}

.ch-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

.ch-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .ch-hero-content { padding: 4rem; }
}

.ch-hero-label {
  font-family: var(--ch-font-sans);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ch-gold);
  margin-bottom: 1rem;
}

.ch-hero-title {
  font-family: var(--ch-font-sans);
  font-size: 60px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

@media (max-width: 768px) {
  .ch-hero-title { font-size: 36px; }
}

.ch-hero-title span {
  color: var(--ch-gold);
}

.ch-hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  max-width: 576px;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.ch-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ch-hero .ch-btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.ch-hero .ch-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Hero project sidebar */
.ch-hero-sidebar {
  display: none;
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1280px) {
  .ch-hero-sidebar { display: flex; }
}

.ch-hero-sidebar-item {
  padding: 0.75rem 0;
  border-left: 3px solid transparent;
  padding-left: 1rem;
  cursor: pointer;
  transition: all var(--ch-transition);
}

.ch-hero-sidebar-item.active {
  border-left-color: var(--ch-gold);
}

.ch-hero-sidebar-item h4 {
  font-family: var(--ch-font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.ch-hero-sidebar-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Hero scroll indicator */
.ch-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* --- Animations --- */
.ch-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ch-animate.slide-right {
  transform: translateX(-30px);
}

.ch-animate.slide-left {
  transform: translateX(30px);
}

.ch-animate.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Filter Buttons --- */
.ch-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.ch-filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-full);
  background: transparent;
  color: var(--ch-text-secondary);
  cursor: pointer;
  transition: all var(--ch-transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ch-filter-btn:hover {
  border-color: var(--ch-text);
  color: var(--ch-text);
}

.ch-filter-btn.active {
  background: var(--ch-bg-darker);
  color: white;
  border-color: var(--ch-bg-darker);
}

/* --- Page Hero (inner pages) --- */
.ch-page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
}

.ch-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ch-page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.ch-page-hero .ch-container {
  position: relative;
  z-index: 1;
}

.ch-page-hero h1 {
  color: white;
}

.ch-page-hero p {
  color: rgba(255,255,255,0.8);
}

/* --- Dark Section --- */
.ch-section-dark {
  background: var(--ch-bg-dark);
  color: var(--ch-text-light);
}

.ch-section-dark h2,
.ch-section-dark h3 {
  color: var(--ch-text-light);
}

.ch-section-dark p {
  color: rgba(255,255,255,0.7);
}

.ch-section-dark .ch-section-label {
  color: var(--ch-gold);
}

/* ============================================
   FRONT PAGE SECTIONS
   ============================================ */

/* --- Section Labels & Titles (Lovable: 14px label, 36px title) --- */
.ch-section-label {
  font-family: var(--ch-font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--ch-gold);
  margin-bottom: 0.75rem;
}

.ch-section-title {
  font-family: var(--ch-font-sans);
  font-size: 36px;
  font-weight: 600;
  color: var(--ch-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ch-section-desc {
  font-size: 18px;
  color: var(--ch-text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

.ch-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ch-section-header .ch-section-desc {
  margin: 0 auto;
}

.ch-section-cta {
  text-align: center;
  margin-top: 3rem;
}

.ch-text-gold {
  color: var(--ch-gold);
}

/* --- Hero: sidebar types (overrides to match PHP classes) --- */
.ch-hero-type {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--ch-transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0 var(--ch-radius-sm) var(--ch-radius-sm) 0;
}

.ch-hero-type.active {
  border-left-color: var(--ch-gold);
  background: rgba(255,255,255,0.1);
}

.ch-hero-type strong {
  display: block;
  font-size: 1rem;
  color: white;
}

.ch-hero-type span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.ch-hero-type-bar {
  display: none;
}

.ch-hero-type-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
}

.ch-hero .ch-btn-hero-outline {
  color: white;
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}

.ch-hero .ch-btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Hero bg placeholder when no image */
.ch-hero-bg {
  background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%);
}

.ch-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 2. About Section (Lovable: text+stats left, image right) --- */
.ch-about-section {
  background: var(--ch-bg);
}

.ch-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ch-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ch-about-text {
  font-size: 16px;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ch-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.ch-stat {
  padding: 1.5rem;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
}

.ch-stat-number {
  display: block;
  font-family: var(--ch-font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--ch-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ch-stat-label {
  font-size: 14px;
  color: var(--ch-text-secondary);
}

.ch-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ch-radius-lg);
}

.ch-about-image {
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
  min-height: 300px;
}

/* --- 3. Projects Grid --- */
.ch-projects-section {
  background: var(--ch-bg);
}

.ch-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ch-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ch-projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.ch-project-card {
  background: var(--ch-bg-card);
  border-radius: var(--ch-radius-xl);
  overflow: hidden;
  border: 1px solid var(--ch-border-light);
  transition: all var(--ch-transition);
}

.ch-project-card:hover {
  box-shadow: var(--ch-shadow-lg);
  transform: translateY(-4px);
}

.ch-card-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--ch-bg-alt), var(--ch-border));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-placeholder-lg {
  height: 350px;
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
}

.ch-placeholder-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ch-card-title {
  font-family: var(--ch-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ch-text);
}

.ch-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text);
  flex-shrink: 0;
  transition: all var(--ch-transition);
}

.ch-card-arrow:hover {
  background: var(--ch-text);
  color: white;
}

.ch-card-desc {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ch-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ch-card-area {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ch-text);
}

.ch-card-link {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  transition: color var(--ch-transition);
}

.ch-card-link:hover {
  color: var(--ch-text);
}

.ch-card-calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--ch-bg-alt);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text);
  cursor: pointer;
  transition: all var(--ch-transition);
  text-decoration: none;
}

.ch-card-calc-btn:hover {
  background: var(--ch-bg-card);
  border-color: var(--ch-text);
}

/* --- 4. Process Timeline (Lovable horizontal) --- */
.ch-process-section {
  background: var(--ch-bg);
}

.ch-tl {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 64px;
}

/* Row grid: 6 equal columns */
.ch-tl-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.ch-tl-step {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem;
}

.ch-tl-top .ch-tl-step {
  align-items: flex-start;
  padding-bottom: 1.5rem;
}

.ch-tl-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ch-text);
}

.ch-tl-pct {
  font-family: var(--ch-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ch-text);
  margin-bottom: 0.25rem;
}

.ch-tl-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ch-text);
  line-height: 1.4;
}

.ch-tl-sub {
  font-size: 0.75rem;
  color: var(--ch-text-secondary);
  margin-top: 0.125rem;
}

.ch-tl-hl {
  /* Highlighted manufacturing step */
}

.ch-tl-badge-lg {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ch-text);
}

.ch-tl-title-bold {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ch-text);
}

/* --- Track line --- */
.ch-tl-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 64px;
  align-items: center;
  position: relative;
  height: 32px;
  overflow: visible;
}

.ch-tl-seg {
  height: 2px;
  background: var(--ch-text);
  position: relative;
}

/* Dashed first segment */
.ch-tl-seg.ch-tl-dashed {
  background: transparent;
  border-top: 2px dashed var(--ch-text);
  height: 0;
}

/* Vertical tick marks at each segment boundary */
.ch-tl-seg::before {
  content: '';
  position: absolute;
  left: 0;
  top: -12px;
  width: 1px;
  height: 24px;
  background: var(--ch-border);
}

/* Arrow heads at the end of each segment */
.ch-tl-seg::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--ch-text);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ch-tl-seg.ch-tl-dashed::before {
  top: -13px;
}

.ch-tl-seg.ch-tl-dashed::after {
  top: -5px;
}

/* Left tick on the first segment */
.ch-tl-row + .ch-tl-track .ch-tl-seg:first-child::before {
  /* already positioned left:0 */
}

/* House icon at the end */
.ch-tl-house {
  width: 52px;
  height: 52px;
  background: var(--ch-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: 12px;
  flex-shrink: 0;
  position: relative;
  top: -12px;
}

/* Bottom row descriptions */
.ch-tl-bottom {
  padding-top: 1.25rem;
}

.ch-tl-desc p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
  line-height: 1.5;
  padding-right: 0.5rem;
}

/* Mobile: stack vertically */
@media (max-width: 1023px) {
  .ch-tl-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ch-tl-track {
    display: none;
  }
  .ch-tl-top .ch-tl-step {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--ch-bg-card);
    border: 1px solid var(--ch-border-light);
    border-radius: var(--ch-radius-lg);
  }
  .ch-tl-bottom {
    display: none;
  }
}

/* --- 5. Modularity Section --- */
.ch-modularity-section {
  background: transparent;
}

.ch-modularity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ch-modularity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.ch-modularity-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  order: 2;
}

@media (min-width: 1024px) {
  .ch-modularity-features {
    order: 1;
  }
}

.ch-mod-feature {
  text-align: center;
  padding: 24px;
  background: rgba(241, 240, 238, 0.5);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s;
}

.ch-mod-feature:hover {
  background: rgba(241, 240, 238, 0.8);
}

.ch-mod-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-gold);
}

.ch-mod-feature h3 {
  font-family: var(--ch-font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-mod-feature p {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
}

.ch-modularity-text {
  order: 1;
}

@media (min-width: 1024px) {
  .ch-modularity-text {
    order: 2;
  }
}

.ch-modularity-text p {
  font-size: 1.0625rem;
  color: var(--ch-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ch-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.ch-check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ch-text-secondary);
}

.ch-check-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--ch-text);
  font-size: 0.5rem;
  top: 0.45em;
}

/* --- 6. Demo Section --- */
.ch-demo-section {
  background: var(--ch-bg);
}

.ch-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ch-demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ch-demo-content p {
  font-size: 1.0625rem;
  color: var(--ch-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ch-demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ch-demo-note {
  font-size: 0.8125rem;
  color: var(--ch-text-muted);
  font-style: italic;
}

/* --- 7. Calculator CTA (Lovable: light bg card with gold button) --- */
.ch-calc-section {
  background: var(--ch-bg-alt);
}

.ch-calc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2.5rem;
  background: var(--ch-bg-card);
  border-radius: var(--ch-radius-xl);
  border: 1px solid var(--ch-border);
  gap: 2rem;
}

.ch-calc-card .ch-calc-text {
  text-align: left;
}

@media (max-width: 768px) {
  .ch-calc-card {
    flex-direction: column;
    text-align: center;
  }
  .ch-calc-card .ch-calc-text { text-align: center; }
}

.ch-calc-card p {
  font-size: 1.0625rem;
  color: var(--ch-text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* --- 8. Final CTA --- */
.ch-cta-section {
  background: var(--ch-bg);
  padding-bottom: 4rem;
}

.ch-cta-content {
  text-align: center;
}

.ch-cta-content p {
  font-size: 1.0625rem;
  color: var(--ch-text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.ch-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Container narrow --- */
.ch-container-narrow {
  max-width: var(--ch-container-narrow);
}

/* --- 9. Contact Section (Ir jautājums?) --- */
.ch-contact-section {
  background: var(--ch-bg-darker);
  padding: 64px 0;
  color: #fff;
}

.ch-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .ch-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.ch-contact-text h2 {
  font-family: var(--ch-font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ch-contact-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.ch-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ch-contact-form input,
.ch-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--ch-font-sans);
  font-size: 0.9375rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.ch-contact-form input::placeholder,
.ch-contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.ch-contact-form input:focus,
.ch-contact-form textarea:focus {
  border-color: rgba(255,255,255,0.6);
}

.ch-contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.ch-btn-contact {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ch-btn-contact:hover {
  border-color: #fff;
  color: #fff;
}

/* --- Contact Form (generic) --- */
.ch-form-group {
  margin-bottom: 1.25rem;
}

.ch-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text);
  margin-bottom: 0.5rem;
}

.ch-form-input,
.ch-form-textarea,
.ch-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--ch-font-sans);
  font-size: 0.9375rem;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  background: var(--ch-bg-card);
  color: var(--ch-text);
  transition: border-color var(--ch-transition);
  outline: none;
}

.ch-form-input:focus,
.ch-form-textarea:focus,
.ch-form-select:focus {
  border-color: var(--ch-gold);
  box-shadow: 0 0 0 3px var(--ch-gold-muted);
}

.ch-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Utilities --- */
.ch-mt-0 { margin-top: 0; }
.ch-mt-4 { margin-top: 1rem; }
.ch-mt-8 { margin-top: 2rem; }
.ch-mb-0 { margin-bottom: 0; }
.ch-mb-4 { margin-bottom: 1rem; }
.ch-mb-8 { margin-bottom: 2rem; }

.ch-hidden { display: none; }

@media (min-width: 768px) {
  .ch-md-show { display: block; }
  .ch-md-flex { display: flex; }
}

@media (min-width: 1024px) {
  .ch-lg-show { display: block; }
  .ch-lg-flex { display: flex; }
}

/* ============================================
   SUB-PAGES — Shared Styles
   ============================================ */

/* --- Page Hero (shared by all sub-pages) --- */
.ch-page-hero {
  position: relative;
  min-height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 120px;
  padding-bottom: 60px;
}

.ch-page-hero-simple {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ch-page-hero-bg {
  position: absolute;
  inset: 0;
}

.ch-page-hero-bg .ch-page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.ch-page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.ch-page-hero-title {
  font-family: var(--ch-font-sans);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.ch-page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
}

/* Simple page hero (no bg image) */
.ch-page-hero-gallery,
.ch-page-hero-guide,
.ch-page-hero-news,
.ch-page-hero-contact,
.ch-page-hero-calc,
.ch-page-hero-features {
  background: var(--ch-bg-darker);
  min-height: auto;
  padding-bottom: 48px;
}

/* --- Breadcrumb --- */
.ch-breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--ch-text-muted);
}

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

.ch-breadcrumb a:hover {
  color: var(--ch-text-primary);
}

.ch-breadcrumb span {
  margin: 0 0.5rem;
}

/* --- CTA Section (dark) --- */
.ch-cta-section {
  padding: 80px 0;
}

.ch-cta-section .ch-section-title {
  margin-bottom: 1rem;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

/* --- Project Filters --- */
.ch-project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  justify-content: center;
}

.ch-filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--ch-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ch-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ch-transition);
}

.ch-filter-btn:hover,
.ch-filter-btn.active {
  background: var(--ch-bg-darker);
  color: #fff;
  border-color: var(--ch-bg-darker);
}

/* --- Projects Grid --- */
.ch-projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ch-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ch-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Project Card --- */
.ch-project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ch-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.ch-project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ch-project-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ch-project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ch-project-card:hover .ch-project-card-img img {
  transform: scale(1.05);
}

.ch-project-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
  margin-bottom: 0.5rem;
}

.ch-project-card-body {
  padding: 1.25rem 1.5rem;
}

.ch-project-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ch-project-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ch-text-primary);
}

.ch-project-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ch-border);
  color: var(--ch-text-primary);
  transition: background var(--ch-transition), color var(--ch-transition);
  flex-shrink: 0;
}

.ch-project-card:hover .ch-project-arrow-btn {
  background: var(--ch-dark);
  color: #fff;
  border-color: var(--ch-dark);
}

.ch-project-card-desc {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-project-area {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ch-gold);
}

.ch-project-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text-primary);
}

.ch-project-calc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--ch-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text-secondary);
  background: var(--ch-bg-alt);
  transition: background var(--ch-transition), color var(--ch-transition);
}

.ch-project-calc-link svg {
  flex-shrink: 0;
}

.ch-project-calc-link:hover {
  background: #e8e2d8;
  color: var(--ch-text-primary);
}

/* ============================================
   MANUFACTURING PAGE
   ============================================ */

.ch-process-steps {
  max-width: 700px;
  margin: 2rem auto 0;
}

.ch-process-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ch-border);
}

.ch-process-step:last-child {
  border-bottom: none;
}

.ch-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ch-text-primary);
}

.ch-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-step-content p {
  font-size: 0.9rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
}

/* --- Quality Grid --- */
.ch-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .ch-quality-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-quality-card {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.ch-quality-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--ch-text-primary);
}

.ch-quality-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-quality-card p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
}

/* ============================================
   GALLERY PAGE
   ============================================ */

.ch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .ch-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .ch-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.ch-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ch-gallery-item:hover img {
  transform: scale(1.05);
}

.ch-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.ch-gallery-item:hover .ch-gallery-overlay {
  opacity: 1;
}

.ch-gallery-overlay span {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ============================================
   B2B PAGE
   ============================================ */

.ch-b2b-scenarios {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .ch-b2b-scenarios {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ch-b2b-card {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ch-b2b-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ch-b2b-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--ch-text-primary);
}

.ch-b2b-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-b2b-card p {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.ch-link-arrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text-primary);
  transition: opacity var(--ch-transition);
}

.ch-link-arrow:hover {
  opacity: 0.7;
}

/* B2B Example */
.ch-b2b-example {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .ch-b2b-example {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.ch-b2b-example-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ch-b2b-example-images img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.ch-b2b-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ch-border);
  font-size: 0.9rem;
}

.ch-b2b-detail-label {
  font-weight: 600;
  color: var(--ch-text-primary);
}

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

.ch-b2b-stat {
  text-align: center;
}

.ch-b2b-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ch-text-primary);
}

.ch-b2b-stat-label {
  font-size: 0.75rem;
  color: var(--ch-text-secondary);
}

.ch-b2b-disclaimer {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.ch-check-list-lg li {
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ch-border);
}

/* ============================================
   CONSTRUCTION GUIDE PAGE
   ============================================ */

.ch-guide-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.ch-guide-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ch-border);
}

.ch-guide-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.ch-guide-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ch-bg-darker);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  z-index: 1;
}

.ch-guide-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-guide-step-desc {
  font-size: 0.9rem;
  color: var(--ch-text-secondary);
  margin-bottom: 0.75rem;
}

.ch-guide-step-list {
  list-style: none;
  padding: 0;
}

.ch-guide-step-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.5;
}

.ch-guide-step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ch-gold);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.ch-contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .ch-contact-page-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.ch-contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.ch-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ch-contact-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text-primary);
}

.ch-contact-item-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  margin-bottom: 0.25rem;
}

.ch-contact-item a {
  color: var(--ch-text-primary);
  font-weight: 500;
}

.ch-contact-map-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.ch-contact-map-links a {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
  text-decoration: underline;
}

.ch-contact-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ch-border);
}

.ch-contact-hours p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* White Hero (Contact, etc.) */
.ch-page-hero-white {
  padding: 4rem 0 2rem;
  background: #fff;
}

.ch-page-hero-title-dark {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ch-text-primary);
  margin-bottom: 1rem;
}

.ch-page-hero-desc-dark {
  font-size: 1rem;
  color: var(--ch-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Form */
.ch-contact-form-wrap {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 2rem;
}

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

@media (max-width: 600px) {
  .ch-form-row {
    grid-template-columns: 1fr;
  }
}

.ch-contact-page-form .ch-form-group {
  margin-bottom: 1.25rem;
}

.ch-contact-page-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ch-text-primary);
}

.ch-contact-page-form input,
.ch-contact-page-form select,
.ch-contact-page-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--ch-font-sans);
  background: #fff;
  color: var(--ch-text-primary);
  transition: border-color var(--ch-transition);
}

.ch-contact-page-form input:focus,
.ch-contact-page-form select:focus,
.ch-contact-page-form textarea:focus {
  outline: none;
  border-color: var(--ch-text-primary);
}

.ch-contact-page-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   NEWS PAGE
   ============================================ */

.ch-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ch-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ch-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ch-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ch-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.ch-news-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ch-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.ch-news-card-body {
  padding: 1.25rem;
}

.ch-news-date {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.ch-news-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-news-desc {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* ============================================
   CALCULATOR PAGE
   ============================================ */

.ch-calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ch-calc-layout {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.ch-calc-step {
  margin-bottom: 2rem;
}

.ch-calc-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ch-calc-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ch-bg-darker);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ch-calc-step-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.ch-calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .ch-calc-type-options {
    grid-template-columns: repeat(4, 1fr);
  }
  .ch-calc-model-options {
    grid-template-columns: repeat(5, 1fr);
  }
  .ch-calc-level-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-calc-option {
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all var(--ch-transition);
}

.ch-calc-option:hover {
  border-color: var(--ch-text-primary);
}

.ch-calc-option.active {
  border-color: var(--ch-text-primary);
  background: var(--ch-bg-alt);
}

.ch-calc-option strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.ch-calc-option span {
  display: block;
  font-size: 0.75rem;
  color: var(--ch-text-secondary);
}

.ch-calc-option small {
  display: block;
  font-size: 0.6875rem;
  color: var(--ch-text-muted);
  margin-top: 0.25rem;
}

/* Calculator Summary */
.ch-calc-summary {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.ch-calc-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ch-calc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ch-border);
  font-size: 0.875rem;
}

.ch-calc-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.125rem;
}

.ch-calc-summary-total strong {
  font-size: 1.25rem;
}

.ch-calc-disclaimer {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  margin-bottom: 1rem;
}

.ch-calc-note {
  font-size: 0.8125rem;
  color: var(--ch-text-muted);
  text-align: center;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   DEMO HOUSE PAGE
   ============================================ */

.ch-demo-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ch-demo-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-demo-feature {
  text-align: center;
  padding: 1.5rem;
  background: var(--ch-bg-alt);
  border-radius: 16px;
}

.ch-demo-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--ch-text-primary);
}

.ch-demo-feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ch-demo-feature p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
}

/* Demo About Grid */
.ch-demo-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ch-demo-about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.ch-demo-about-img img {
  width: 100%;
  border-radius: 16px;
}

/* Demo B2B */
.ch-demo-b2b {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Demo Steps */
.ch-demo-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 600px;
  margin: 2rem auto;
}

@media (min-width: 768px) {
  .ch-demo-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-demo-step {
  text-align: center;
}

.ch-demo-step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ch-bg-darker);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.ch-demo-step p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
}

.ch-demo-booking-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   PARTNERS PAGE
   ============================================ */

.ch-partner-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ch-partner-benefits {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ch-partner-benefit {
  text-align: center;
  padding: 1.5rem;
  background: var(--ch-bg-alt);
  border-radius: 16px;
}

.ch-partner-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--ch-text-primary);
}

.ch-partner-benefit h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ch-partner-benefit p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
}

/* Partner Types */
.ch-partner-types {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .ch-partner-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ch-partner-type {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.ch-partner-type h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-partner-type p {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
}

/* Partner Downloads */
.ch-partner-downloads {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

@media (min-width: 640px) {
  .ch-partner-downloads {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ch-partner-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  background: #fff;
}

.ch-partner-file strong {
  display: block;
  font-size: 0.875rem;
}

.ch-partner-file span {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
}

.ch-partner-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ch-text-muted);
  margin-top: 1rem;
}

/* ============================================
   FEATURES PAGE
   ============================================ */

.ch-viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ch-viz-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ch-text-primary);
}

.ch-viz-btns {
  display: flex;
  gap: 6px;
}

.ch-viz-btn {
  padding: 6px 14px;
  border: 1px solid var(--ch-border);
  border-radius: 8px;
  background: transparent;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--ch-transition);
}

.ch-viz-btn:hover,
.ch-viz-btn.active {
  background: var(--ch-bg-darker);
  color: #fff;
  border-color: var(--ch-bg-darker);
}

.ch-viz-preview {
  text-align: center;
}

.ch-viz-preview img {
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  margin: 0 auto;
}

.ch-viz-caption {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.ch-viz-note {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  font-style: italic;
}

/* Features Coming */
.ch-features-coming {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .ch-features-coming {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ch-feature-coming {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.ch-feature-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ch-status-dev {
  background: #e8f5e9;
  color: #2e7d32;
}

.ch-status-planned {
  background: #fff3e0;
  color: #e65100;
}

.ch-feature-coming h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ch-feature-coming p {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

/* Full-width hero image */
.ch-project-hero-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ch-project-hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ch-project-detail-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  color: var(--ch-text-primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  z-index: 2;
}

.ch-back-link {
  display: inline-block;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
}

/* Content + Sidebar */
.ch-project-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ch-project-detail-grid {
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
  }
}

.ch-project-detail-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ch-project-detail-desc {
  font-size: 0.95rem;
  color: var(--ch-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ch-project-detail-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.ch-project-detail-price {
  font-size: 1.25rem;
  margin: 1.5rem 0;
}

.ch-project-detail-price strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.ch-project-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sidebar Card */
.ch-project-sidebar-card {
  background: #fff;
  border: 1px solid var(--ch-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.ch-sidebar-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ch-sidebar-spec {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ch-border);
}

.ch-sidebar-spec:last-child {
  border-bottom: none;
}

.ch-sidebar-spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-gold);
  flex-shrink: 0;
}

.ch-sidebar-spec-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ch-text-muted);
}

.ch-sidebar-spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ch-text-primary);
}

/* Similar Projects */
.ch-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .ch-similar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ch-similar-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ch-border);
  transition: transform 0.2s;
}

.ch-similar-card:hover {
  transform: translateY(-2px);
}

.ch-similar-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.ch-similar-info {
  padding: 1rem;
}

.ch-similar-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ch-similar-info span {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
}
