/*
Theme Name: Create House
Theme URI: https://createhouse.lv
Author: PolarOaks
Author URI: https://createhouse.lv
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;

  /* Dark — used for dark sections and buttons */
  --ch-dark: #2B303B;

  /* 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);
}

/* --- Skip Link (Accessibility) --- */
.ch-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 12px 24px;
  background: var(--ch-gold);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 var(--ch-radius) 0;
  text-decoration: none;
}
.ch-skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* --- Focus Visible (WCAG 2.2) --- */
*:focus-visible {
  outline: 3px solid var(--ch-gold);
  outline-offset: 2px;
  border-radius: 2px;
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* --- 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;
  line-height: 1;
  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);
  box-shadow: 0 2px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all var(--ch-transition);
}

.ch-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  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: 1.5rem;
  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-muted-nav, #676F7E);
  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,
.ch-nav-item.current-menu-item .ch-nav-link {
  color: var(--ch-text-nav);
}

.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: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--ch-gold-calc);
  background: rgba(245, 240, 235, 0.6);
  border: 1px solid var(--ch-border-light);
  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;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  background: white;
  z-index: 9999;
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
}
/* WP admin bar offset */
.admin-bar .ch-mobile-menu {
  top: 112px;
  height: calc(100vh - 112px);
  height: calc(100dvh - 112px);
}
@media (max-width: 782px) {
  .admin-bar .ch-mobile-menu {
    top: 126px;
    height: calc(100vh - 126px);
    height: calc(100dvh - 126px);
  }
}

.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);
  background-color: rgba(255,255,255,0.1);
}

.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);
}

/* Stagger delays for sequential elements */
.ch-animate.ch-stagger-1 { transition-delay: 0.1s; }
.ch-animate.ch-stagger-2 { transition-delay: 0.2s; }
.ch-animate.ch-stagger-3 { transition-delay: 0.3s; }
.ch-animate.ch-stagger-4 { transition-delay: 0.4s; }
.ch-animate.ch-stagger-5 { transition-delay: 0.5s; }
.ch-animate.ch-stagger-6 { transition-delay: 0.6s; }

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .ch-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ch-hero-bg img,
  .ch-card-image img,
  .ch-card,
  .ch-chatbot-trigger,
  .ch-btn,
  .ch-gallery-item img {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- Hover: disable on touch --- */
@media (hover: none) {
  .ch-card:hover {
    transform: none;
    box-shadow: var(--ch-shadow);
  }
  .ch-card:hover .ch-card-image img {
    transform: none;
  }
}

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

.ch-filter-btn {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-full);
  background: rgba(241, 240, 238, 0.6);
  color: var(--ch-text-secondary);
  cursor: pointer;
  transition: all var(--ch-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-filter-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.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);
}

/* --- 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-text-center .ch-section-desc {
  margin: 0 auto;
}

.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);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ch-hero-sidebar-item.active .ch-hero-type-arrow {
  opacity: 1;
}

.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;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
}

/* --- 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);
  box-shadow: var(--ch-shadow-sm);
  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: 1px solid var(--ch-border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s, border-color 0.2s;
}

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

.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-dark);
  color: var(--ch-text-light);
}

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

.ch-demo-section .ch-section-title {
  color: var(--ch-text-light);
}

.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: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Demo list with ⊙ eye icons */
.ch-demo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ch-demo-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.ch-demo-list li::before {
  content: '◉';
  position: absolute;
  left: 0;
  color: var(--ch-gold);
  font-size: 0.75rem;
  top: 0.35em;
}

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

/* Light outline button variant for dark backgrounds */
.ch-btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ch-text-light);
}

.ch-btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Demo image with badge */
.ch-demo-image {
  position: relative;
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
}

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

.ch-demo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ch-gold);
  color: var(--ch-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--ch-radius-full);
  letter-spacing: 0.02em;
}

.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 0 0;
  line-height: 1.7;
}

.ch-calc-card .ch-section-title {
  margin-bottom: 0.75rem;
}

/* --- 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) --- */
/* Push inner-page content below the fixed 80px header */
body:not(.home) #ch-main {
  padding-top: 80px;
}

.ch-page-hero {
  position: relative;
  min-height: 50vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 48px;
  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));
}

/* Projects hero */
.ch-page-hero-projects {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.ch-page-hero-title {
  font-family: var(--ch-font-sans);
  font-size: clamp(2rem, 5vw, 3.75rem);
  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;
}

.ch-cta-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Utility: light tinted section background */
.ch-section-tinted {
  background: rgba(241, 240, 238, 0.3);
}

/* Utility: margin spacers */
.ch-mt-md { margin-top: 1.5rem; }
.ch-mb-lg { margin-bottom: 2rem; }
.ch-mb-xl { margin-bottom: 3rem; }

/* CTA card variant — beige card like Lovable */
.ch-cta-section .ch-cta-card {
  background: var(--ch-bg-alt);
  border-radius: 24px;
  padding: 64px 48px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.ch-cta-section .ch-cta-card .ch-section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   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);
  box-shadow: var(--ch-shadow-sm);
  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 {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ch-text-primary);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 1;
}

.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);
}

/* --- Drīzumā (Coming Soon) overlay --- */
.ch-coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ch-coming-soon-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--ch-gold);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ch-project-future {
  opacity: 0.85;
}

.ch-project-future:hover {
  transform: none;
  cursor: default;
}

.ch-project-future .ch-project-card-link {
  cursor: default;
}

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

/* ============================================
   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
   ============================================ */

/* Light hero for gallery (matches Lovable) */
.ch-page-hero-gallery-light {
  background: var(--ch-bg-alt);
  min-height: 500px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.ch-page-hero-gallery-light .ch-page-hero-title {
  color: var(--ch-text-primary);
}
.ch-page-hero-gallery-light .ch-page-hero-desc {
  color: var(--ch-text-secondary);
}

/* Filter buttons with icons */
.ch-gallery-filters .ch-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ch-gallery-filters .ch-filter-btn svg {
  flex-shrink: 0;
}

/* --- Masonry Gallery Grid --- */
.ch-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Hero row: first item spans 2 columns + 2 rows */
.ch-gallery-masonry .ch-gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.ch-gallery-masonry .ch-gallery-item:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.ch-gallery-masonry .ch-gallery-item:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

/* Mobile: single column */
@media (max-width: 767px) {
  .ch-gallery-masonry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ch-gallery-masonry .ch-gallery-item:nth-child(1) {
    grid-column: 1;
    grid-row: auto;
  }
  .ch-gallery-masonry .ch-gallery-item:nth-child(2),
  .ch-gallery-masonry .ch-gallery-item:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .ch-gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ch-gallery-masonry .ch-gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .ch-gallery-masonry .ch-gallery-item:nth-child(2),
  .ch-gallery-masonry .ch-gallery-item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Gallery item base */
.ch-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--ch-bg-alt);
}

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

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

/* Filter hide/show animation */
.ch-gallery-item.ch-filter-hidden {
  display: none;
}

/* --- Realizētie Objekti Grid --- */
.ch-realized-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

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

.ch-realized-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ch-bg-alt);
}

.ch-realized-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Legacy overlay (kept for backward compat) */
.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;
    align-items: start;
  }
}

.ch-b2b-example-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ch-b2b-img-labeled {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.ch-b2b-img-labeled img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.ch-b2b-img-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #fff;
  color: var(--ch-text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ch-b2b-example-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ch-b2b-subsection-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ch-text-secondary);
  margin-bottom: 0.75rem;
}

.ch-b2b-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

.ch-b2b-stat-card-wide {
  margin-bottom: 0.5rem;
}

.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);
  margin-top: 0.25rem;
  display: block;
}

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

/* B2B Checkmark list (gold) */
.ch-b2b-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.ch-b2b-check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  font-size: 0.925rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
}

.ch-b2b-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ch-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* B2B Benefit box */
.ch-b2b-benefit-box {
  background: var(--ch-bg-alt);
  border-radius: 12px;
  padding: 1.25rem;
}

.ch-b2b-benefit-box .ch-b2b-subsection-label {
  margin-bottom: 0.5rem;
}

.ch-b2b-benefit-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ch-text-primary);
  line-height: 1.5;
  margin: 0;
}

/* B2B Help grid (2-column) */
.ch-b2b-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ch-b2b-help-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.ch-b2b-help-text .ch-section-title {
  text-align: left;
}

.ch-b2b-help-text .ch-section-label {
  text-align: left;
}

.ch-b2b-help-text .ch-section-desc {
  text-align: left;
}

.ch-b2b-help-list {
  padding-top: 0.5rem;
}

/* B2B Contact form */
.ch-b2b-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.ch-b2b-contact-text .ch-section-title {
  text-align: left;
}

.ch-b2b-contact-text .ch-section-desc {
  text-align: left;
}

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

.ch-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  font-size: 0.925rem;
  font-family: inherit;
  background: #fff;
  color: var(--ch-text-primary);
  transition: border-color var(--ch-transition);
  box-sizing: border-box;
}

.ch-input:focus {
  outline: none;
  border-color: var(--ch-gold);
}

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

.ch-btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

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

/* ===== CEĻVEDIS — Lovable layout ===== */

/* Hero: light, 2-column */
.ch-page-hero-guide-light {
  background: var(--ch-bg);
  min-height: 500px;
  padding: 3rem 0 3rem;
}
.ch-guide-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.ch-guide-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--ch-text);
}
.ch-guide-desc {
  color: var(--ch-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
}
.ch-guide-hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero icon grid (5×2) */
.ch-guide-hero-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ch-guide-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: var(--ch-bg-card);
  border: 1px solid rgba(233, 231, 226, 0.4);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ch-guide-icon-item:hover {
  border-color: var(--ch-gold);
  box-shadow: 0 2px 12px rgba(237, 174, 29, 0.1);
}
.ch-guide-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(237, 174, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text-secondary);
}
.ch-guide-icon-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-gold);
}

/* Progress bar */
.ch-guide-progress {
  padding: 1.5rem 0;
  background: var(--ch-bg);
}
.ch-guide-progress-bar {
  display: flex;
  gap: 4px;
}
.ch-guide-progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ch-border);
}
.ch-guide-progress-segment.active {
  background: var(--ch-gold);
}

/* Steps section */
.ch-guide-section {
  padding-top: 2rem;
}

/* Step card — full-width card like Lovable */
.ch-guide-step-card {
  background: var(--ch-bg-card);
  border: 1px solid rgba(233, 231, 226, 0.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}
.ch-guide-step-card:hover {
  box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.08);
}

/* Card with image: 2-column */
.ch-guide-step-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ch-guide-step-img {
  position: relative;
  overflow: hidden;
}
.ch-guide-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ch-guide-step-img-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ch-gold);
  opacity: 0.7;
  line-height: 1;
}

/* Step body (text content) */
.ch-guide-step-body {
  padding: 2rem;
}

/* Step header: icon + label/title */
.ch-guide-step-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.ch-guide-icon-sm {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.ch-guide-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.ch-guide-step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ch-text);
  line-height: 1.3;
}
.ch-guide-step-desc {
  font-size: 1rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Check list with gold icons */
.ch-guide-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ch-guide-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ch-text);
  line-height: 1.5;
}
.ch-guide-check-icon {
  flex-shrink: 0;
  color: rgba(237, 174, 29, 0.7);
  stroke: rgba(237, 174, 29, 0.7);
  margin-top: 3px;
}

/* Tip bar */
.ch-guide-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(237, 174, 29, 0.06);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ch-text-secondary);
}
.ch-guide-tip svg {
  flex-shrink: 0;
  color: var(--ch-gold);
}

/* Subtitle under CTA title */
.ch-section-title-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* PDF CTA card — 2-column like Lovable */
.ch-guide-pdf-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ch-bg-card);
  border: 1px solid rgba(233, 231, 226, 0.5);
  border-radius: 20px;
  overflow: hidden;
}
.ch-guide-pdf-left {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ch-guide-pdf-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(237, 174, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-gold);
  margin-bottom: 1.5rem;
}
.ch-guide-pdf-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ch-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.ch-guide-pdf-desc {
  font-size: 1rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.ch-guide-pdf-right {
  position: relative;
  background: linear-gradient(135deg, rgba(237,174,29,0.03), rgba(237,174,29,0.08), rgba(237,174,29,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ch-guide-pdf-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  opacity: 0.6;
  width: 100%;
}
.ch-guide-pdf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 250, 249, 0.6);
  padding: 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ch-text-secondary);
}
.ch-guide-pdf-row svg {
  flex-shrink: 0;
  color: var(--ch-gold);
  stroke: var(--ch-gold);
}

/* Light CTA section label (gold uppercase) */
.ch-guide-cta-light {
  padding: 5rem 0;
}
.ch-guide-cta-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ch-gold);
  margin-bottom: 0.75rem;
}

/* Contact form inside dark CTA */
.ch-guide-contact-section {
  background: var(--ch-bg-darker);
  color: #fff;
  padding: 4rem 0;
}
.ch-guide-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ch-guide-contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ch-guide-contact-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}
.ch-guide-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ch-guide-contact-input {
  background: rgba(251, 250, 249, 0.1);
  border: 1px solid rgba(251, 250, 249, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.ch-guide-contact-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.ch-guide-contact-input:focus {
  border-color: rgba(237, 174, 29, 0.5);
}
.ch-guide-contact-textarea {
  resize: vertical;
  min-height: 74px;
}
.ch-guide-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ch-bg);
  color: var(--ch-text);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ch-guide-contact-btn:hover {
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ch-guide-hero-grid {
    grid-template-columns: 1fr;
  }
  .ch-guide-hero-icons {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .ch-guide-icon-item {
    padding: 8px;
  }
  .ch-guide-icon-circle {
    width: 36px;
    height: 36px;
  }
  .ch-guide-step-with-image {
    grid-template-columns: 1fr;
  }
  .ch-guide-step-img {
    max-height: 250px;
  }
  .ch-guide-step-body {
    padding: 1.25rem;
  }
  .ch-guide-title {
    font-size: 32px;
  }
  .ch-page-hero-guide-light {
    padding: 2rem 0 2rem;
  }
  .ch-guide-pdf-card {
    grid-template-columns: 1fr;
  }
  .ch-guide-pdf-right {
    padding: 1.5rem;
  }
  .ch-guide-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   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: 2rem 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-detail-sidebar {
  position: sticky;
  top: 100px;
}

.ch-project-sidebar-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 20px -2px rgba(0, 0, 0, 0.05);
}

.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: 2rem;
  margin-top: 2rem;
}

.ch-similar-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ch-bg-card);
  box-shadow: 0 2px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ch-similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px -2px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* Similar Projects section overrides */
.ch-similar-section {
  background: rgba(241, 240, 238, 0.3);
}

.ch-similar-section .ch-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ============================================
   PROJECT DETAIL — GALLERY (Lovable 1:1)
   ============================================ */

.ch-project-gallery {
  margin-bottom: 1rem;
}

.ch-gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ch-bg-alt);
}

.ch-gallery-main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.ch-gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  color: var(--ch-text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.ch-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ch-gallery-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.ch-gallery-thumb.active {
  border-color: var(--ch-gold);
  opacity: 1;
}

.ch-gallery-thumb:hover {
  opacity: 1;
}

.ch-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .ch-gallery-thumb {
    width: 120px;
    height: 80px;
  }
}

/* ============================================
   PROJECT DETAIL — FEATURES GRID (2 columns)
   ============================================ */

.ch-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

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

.ch-features-grid li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ch-text);
  line-height: 1.5;
}

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

/* ============================================
   PROJECT DETAIL — EMBEDDED CALCULATOR
   ============================================ */

/* ============================================
   CALCULATOR — Lovable-matched design
   ============================================ */
.ch-project-calculator {
  margin-bottom: 2rem;
}

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

.ch-calc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ch-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text-secondary);
  flex-shrink: 0;
}

.ch-calc-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--ch-text);
}

.ch-calc-subtitle {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  margin-top: 0.125rem;
}

/* Info banner */
.ch-calc-info-banner {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--ch-bg);
  border-radius: 16px;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.ch-calc-info-banner svg { flex-shrink: 0; margin-top: 2px; color: var(--ch-gold); }
.ch-calc-info-banner strong { font-size: 0.875rem; color: var(--ch-text); display: block; }
.ch-calc-info-banner span { font-size: 0.8125rem; color: var(--ch-text-secondary); }

/* 2-column grid: steps left, sidebar right */
.ch-calc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.ch-calc-steps-col {
  min-width: 0;
}
.ch-calc-sidebar {
  position: sticky;
  top: 100px;
}
@media (max-width: 991px) {
  .ch-calc-layout { grid-template-columns: 1fr; }
  .ch-calc-sidebar { position: static; }
}

/* Calculator Steps */
.ch-calc-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ch-calc-step {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ch-border);
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
  background: #fff;
}

.ch-calc-step.active {
  background: var(--ch-dark);
  color: #fff;
  border-color: var(--ch-dark);
}

.ch-calc-step-num {
  font-weight: 600;
}

.ch-calc-step-sep {
  color: var(--ch-text-muted);
  font-size: 0.875rem;
}

/* Color Section */
.ch-calc-section {
  margin-bottom: 1rem;
}

.ch-calc-section-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text);
  margin-bottom: 0.25rem;
}

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

/* Preview Image */
.ch-calc-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.ch-calc-preview-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(43,48,59,0.8);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.ch-calc-color-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--ch-text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.ch-color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Color Cards */
.ch-calc-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ch-calc-color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 0.5rem;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s;
  position: relative;
}

.ch-calc-color-card.active {
  border-color: var(--ch-dark);
  border-width: 2px;
}

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

.ch-color-swatch {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.ch-color-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ch-text);
}

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

.ch-color-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ch-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-calc-disclaimer {
  font-size: 0.75rem;
  color: var(--ch-text-muted);
  text-align: center;
}

/* Calculator Footer */
.ch-calc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--ch-border);
  margin-top: 1rem;
}

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

.ch-calc-price strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ch-text);
}

/* Step label — dark circle number + bold heading */
.ch-calc-step-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ch-text);
  margin-bottom: 1rem;
}

.ch-calc-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--ch-dark);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

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

/* Type Grid — 4 columns */
.ch-calc-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ch-calc-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border: 2px solid var(--ch-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.ch-calc-type-card:hover { border-color: var(--ch-dark); }
.ch-calc-type-card.active {
  border-color: var(--ch-dark);
  background: rgba(57, 62, 70, 0.05);
}
.ch-calc-type-card svg {
  width: 28px;
  height: 28px;
  padding: 10px;
  border-radius: 50%;
  background: var(--ch-bg);
  color: var(--ch-text-secondary);
  box-sizing: content-box;
}
.ch-calc-type-card.active svg {
  background: rgba(57, 62, 70, 0.1);
  color: var(--ch-dark);
}
.ch-calc-type-card strong { font-size: 0.875rem; color: var(--ch-text); }
.ch-calc-type-card span { font-size: 0.75rem; color: var(--ch-text-secondary); line-height: 1.4; }

/* Model Grid — flex row */
.ch-calc-model-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ch-calc-model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 2px solid var(--ch-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 120px;
  flex: 1;
}

.ch-calc-model-card:hover { border-color: var(--ch-dark); }
.ch-calc-model-card.active {
  border-color: var(--ch-dark);
  background: rgba(57, 62, 70, 0.05);
}
.ch-calc-model-area { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ch-text); }
.ch-calc-model-unit { font-size: 0.75rem; color: var(--ch-text-secondary); margin-top: 0.125rem; }
.ch-calc-model-card strong { font-size: 0.8125rem; margin-top: 0.5rem; color: var(--ch-text); }
.ch-calc-model-beds { font-size: 0.75rem; color: var(--ch-text-secondary); }

/* Equipment Grid — 2x2 */
.ch-calc-equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ch-calc-equip-card {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem;
  border: 2px solid var(--ch-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.ch-calc-equip-card:hover { border-color: var(--ch-dark); }
.ch-calc-equip-card.active {
  border-color: var(--ch-dark);
  background: rgba(57, 62, 70, 0.05);
}

.ch-calc-equip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--ch-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text-secondary);
}

.ch-calc-equip-card.active .ch-calc-equip-icon {
  background: rgba(57, 62, 70, 0.08);
  color: var(--ch-dark);
}
.ch-calc-equip-info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.ch-calc-equip-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ch-calc-equip-top strong { font-size: 0.875rem; color: var(--ch-text); }
.ch-calc-equip-price { font-size: 0.875rem; font-weight: 600; white-space: nowrap; color: var(--ch-text); }
.ch-calc-equip-desc { font-size: 0.75rem; color: var(--ch-text-secondary); line-height: 1.4; }
.ch-calc-equip-diff { font-size: 0.75rem; color: var(--ch-gold); margin-top: 0.25rem; }

/* Summary Card — floating white card with shadow */
.ch-calc-summary-card {
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 20px -2px rgba(0, 0, 0, 0.05);
}

.ch-calc-summary-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ch-text);
}
.ch-calc-summary-card h4 svg { color: var(--ch-gold); }

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

/* Price summary box — warm beige bg */
.ch-calc-summary-card .ch-calc-summary-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(241, 240, 238, 0.5);
  border-radius: 16px;
  text-align: center;
}
.ch-calc-summary-card .ch-calc-summary-total > span {
  display: block;
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  margin-bottom: 0.5rem;
}
.ch-calc-summary-card .ch-calc-summary-total > strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ch-text);
  margin-bottom: 0.5rem;
}
.ch-calc-summary-card .ch-calc-summary-total > .ch-calc-disclaimer {
  margin-top: 0.25rem;
}

.ch-calc-disclaimer {
  font-size: 0.75rem;
  color: var(--ch-text-secondary);
  text-align: center;
  margin-top: 0.5rem;
}
.ch-calc-no-obligation {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ch-text-secondary);
  margin-top: 0.75rem;
}
.ch-calc-hint {
  font-size: 0.875rem;
  color: var(--ch-text-secondary);
  padding: 1rem;
  text-align: center;
}

/* CTA button inside summary */
.ch-calc-summary-card .ch-btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  height: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .ch-calc-type-grid { grid-template-columns: repeat(2, 1fr); }
  .ch-calc-equip-grid { grid-template-columns: 1fr; }
  .ch-calc-model-card { min-width: 80px; }
}

/* ============================================
   EQUIPMENT COMPARISON GRID (Standalone calculator)
   ============================================ */
.ch-equip-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ch-equip-compare-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px -2px rgba(0,0,0,0.04);
}

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

.ch-equip-compare-card strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  color: var(--ch-text);
}

.ch-equip-compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-equip-compare-card ul li {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
  padding: 0.25rem 0;
  line-height: 1.5;
}

.ch-equip-compare-card ul li::before {
  content: '✓ ';
  color: var(--ch-gold);
}

@media (max-width: 991px) {
  .ch-equip-compare-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ch-equip-compare-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PROJECT DETAIL — KAM DOMĀTS CARD
   ============================================ */

.ch-target-card {
  background: var(--ch-bg-alt);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ch-target-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ch-text);
}

.ch-target-card h3 svg {
  color: var(--ch-text-secondary);
}

.ch-target-card p {
  font-size: 0.9375rem;
  color: var(--ch-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   SIDEBAR CTA
   ============================================ */

.ch-sidebar-cta {
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--ch-border);
}

.ch-sidebar-cta p {
  font-size: 0.8125rem;
  color: var(--ch-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ch-btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================
   CONTACT FORM SECTION (legacy full-width)
   ============================================ */

.ch-contact-section {
  background: #393E46;
  color: #FBFAF9;
}

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

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

.ch-contact-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #FBFAF9;
}

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

/* ============================================
   CONTACT CARD — card-style (rounded, on light bg)
   ============================================ */

.ch-contact-card-section {
  background: transparent;
  padding: 3rem 1.5rem;
}

.ch-contact-card {
  background: #393E46;
  border-radius: 28px;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  color: #FBFAF9;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ch-contact-card {
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Left side: heading + contact info */
.ch-contact-card-left h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #FBFAF9;
}

.ch-contact-card-left > p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Contact info links */
.ch-contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ch-contact-card-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.ch-contact-card-info a:hover {
  color: #FBFAF9;
}

.ch-contact-card-info a svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Right side: form */
.ch-contact-card-form {
  min-width: 0;
}

/* ── WPForms dark overrides for card ── */

.ch-contact-card div.wpforms-container-full .wpforms-form .wpforms-field-label {
  display: none !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form input[type="text"],
.ch-contact-card div.wpforms-container-full .wpforms-form input[type="email"],
.ch-contact-card div.wpforms-container-full .wpforms-form input[type="tel"],
.ch-contact-card div.wpforms-container-full .wpforms-form input[type="url"],
.ch-contact-card div.wpforms-container-full .wpforms-form input[type="number"],
.ch-contact-card div.wpforms-container-full .wpforms-form textarea,
.ch-contact-card div.wpforms-container-full .wpforms-form select {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 10px !important;
  color: #FBFAF9 !important;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.8125rem !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form input::placeholder,
.ch-contact-card div.wpforms-container-full .wpforms-form textarea::placeholder {
  color: rgba(255,255,255,0.4) !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form input:focus,
.ch-contact-card div.wpforms-container-full .wpforms-form textarea:focus,
.ch-contact-card div.wpforms-container-full .wpforms-form select:focus {
  border-color: var(--ch-gold) !important;
  background: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form textarea {
  min-height: 70px !important;
  max-height: 100px !important;
  height: 70px !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form .wpforms-field {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form button[type="submit"],
.ch-contact-card div.wpforms-container-full .wpforms-form .wpforms-submit,
.ch-contact-card .wpforms-render-modern .wpforms-submit {
  background: transparent !important;
  color: #FBFAF9 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 10px !important;
  padding: 0.625rem 2rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  width: 100% !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.ch-contact-card .wpforms-render-modern .wpforms-submit:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: none !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  padding-top: 0.25rem !important;
}

.ch-contact-card .wpforms-render-modern {
  --wpforms-button-background-color: transparent !important;
  --wpforms-button-border-color: rgba(255,255,255,0.3) !important;
  --wpforms-button-text-color: #FBFAF9 !important;
  --wpforms-field-border-color: rgba(255,255,255,0.2) !important;
  --wpforms-field-border-color-active: var(--ch-gold) !important;
  --wpforms-field-background-color: rgba(255,255,255,0.08) !important;
  --wpforms-field-text-color: #FBFAF9 !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FBFAF9' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.875rem center !important;
  -webkit-appearance: none !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
  display: none !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-form label.wpforms-error {
  color: #ff6b6b !important;
}

.ch-contact-card div.wpforms-container-full .wpforms-confirmation-container-full {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--ch-gold) !important;
  color: #FBFAF9 !important;
}

/* Responsive — card full-width on mobile */
@media (max-width: 767px) {
  .ch-contact-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  .ch-contact-card-section {
    padding: 2rem 1rem;
  }
}

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

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

.ch-contact-form input,
.ch-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-family: var(--ch-font-sans);
  font-size: 0.875rem;
  background: rgba(255,255,255,0.18);
  color: #FBFAF9;
  transition: border-color 0.2s;
}

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

.ch-contact-form input:focus,
.ch-contact-form textarea:focus {
  outline: none;
  border-color: var(--ch-gold);
  background: rgba(255,255,255,0.12);
}

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

.ch-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #FBFAF9;
  border: 1px solid rgba(255,255,255,0.3);
}

.ch-contact-form button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
  .ch-calc-colors {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }

  .ch-calc-color-card {
    padding: 0.75rem 0.25rem;
  }

  .ch-color-swatch {
    width: 32px;
    height: 32px;
  }

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

  .ch-project-detail-content h1 {
    font-size: 1.5rem;
  }

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

/* ============================================
   BREADCRUMB
   ============================================ */

.ch-breadcrumb {
  padding: 1rem 0 0;
  margin-top: -1rem;
}

.ch-breadcrumb a {
  color: var(--ch-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.ch-breadcrumb-sep {
  color: var(--ch-text-muted);
  margin: 0 0.375rem;
  font-size: 0.875rem;
}

.ch-breadcrumb-current {
  color: var(--ch-text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   BACK LINK (← Atpakaļ uz projektiem)
   ============================================ */

.ch-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ch-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

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

/* ============================================
   CTA BANNER (Gatavi sākt savu projektu?)
   ============================================ */

.ch-cta-banner {
  background: transparent;
  padding: 3rem 1.5rem;
}

.ch-cta-banner-card {
  background: #393E46;
  border-radius: 28px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.ch-cta-banner-card .ch-section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.ch-cta-banner-card p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}

.ch-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--ch-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.ch-btn-white:hover {
  background: #F0F0F0;
  transform: translateY(-1px);
}

.ch-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--ch-gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.ch-btn-gold:hover {
  background: #c5923e;
  transform: translateY(-1px);
}

/* ============================================================
   AI CHATBOT WIDGET
   ============================================================ */

/* Toggle poga */
#chChatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.ch-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ch-dark, #1a1a1a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}
.ch-chat-toggle:hover {
  transform: scale(1.08);
  background: #2a2a2a;
}

/* Popup konteiners */
.ch-chat-popup {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  flex-direction: column;
  overflow: hidden;
  animation: chChatSlideUp 0.25s ease;
}

@keyframes chChatSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.ch-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--ch-dark, #1a1a1a);
  color: #fff;
}
.ch-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ch-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ch-gold, #D4A853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ch-chat-title {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.ch-chat-status {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.ch-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.ch-chat-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Ziņu zona */
.ch-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch-chat-msg {
  display: flex;
}
.ch-chat-msg-user {
  justify-content: flex-end;
}
.ch-chat-msg-assistant {
  justify-content: flex-start;
}

.ch-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.ch-chat-msg-user .ch-chat-bubble {
  background: var(--ch-dark, #1a1a1a);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ch-chat-msg-assistant .ch-chat-bubble {
  background: #f1f0ee;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

/* Typing indikators */
.ch-chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
}
.ch-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #999;
  animation: chTypingDot 1.2s infinite;
}
.ch-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ch-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Ātrie jautājumi */
.ch-chat-quick {
  padding: 8px 16px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ch-chat-quick-btn {
  background: #f1f0ee;
  border: 1px solid #e0dfdd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ch-chat-quick-btn:hover {
  background: var(--ch-dark, #1a1a1a);
  color: #fff;
  border-color: var(--ch-dark, #1a1a1a);
}

/* Input zona */
.ch-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}
.ch-chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: border-color 0.15s;
}
.ch-chat-input:focus {
  border-color: var(--ch-gold, #D4A853);
}
.ch-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ch-dark, #1a1a1a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.ch-chat-send:disabled {
  opacity: 0.4;
  cursor: default;
}
.ch-chat-send:not(:disabled):hover {
  background: #2a2a2a;
}

/* Mobile */
@media (max-width: 480px) {
  #chChatWidget {
    bottom: 16px;
    right: 16px;
  }
  .ch-chat-popup {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 70px;
    right: -8px;
    border-radius: 12px;
  }
  .ch-chat-toggle {
    width: 52px;
    height: 52px;
  }
}

/* ════════════════════════════════════════
   WPForms – Create House Design Overrides
   ════════════════════════════════════════ */

/* Container */
div.wpforms-container-full .wpforms-form {
  font-family: var(--ch-font-sans);
}

/* Labels */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: var(--ch-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ch-text);
  margin-bottom: 0.375rem;
}

/* Inputs, textareas, selects */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-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;
  box-shadow: none;
  -webkit-appearance: none;
}

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

div.wpforms-container-full .wpforms-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  padding-top: 0.5rem;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit,
.wpforms-render-modern .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 2rem !important;
  font-family: var(--ch-font-sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--ch-dark) !important;
  border: none !important;
  border-radius: var(--ch-radius) !important;
  cursor: pointer;
  transition: background var(--ch-transition), transform var(--ch-transition);
  -webkit-appearance: none;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover,
.wpforms-render-modern .wpforms-submit:hover {
  background: var(--ch-text) !important;
  transform: translateY(-1px);
}

/* Override WPForms Modern render accent color */
.wpforms-render-modern {
  --wpforms-button-background-color: var(--ch-dark) !important;
  --wpforms-button-border-color: var(--ch-dark) !important;
  --wpforms-field-border-color: var(--ch-border) !important;
  --wpforms-field-border-color-active: var(--ch-gold) !important;
  --wpforms-button-text-color: #fff !important;
}

/* Kontakti page — full form layout */
.ch-contact-form-wrap div.wpforms-container-full .wpforms-form {
  max-width: 100%;
}

/* Compact form variant (front-page, single-project, page-projekts) */
.ch-wpforms-compact {
  flex: 1;
  min-width: 0;
}

.ch-wpforms-compact div.wpforms-container-full .wpforms-form .wpforms-field {
  margin-bottom: 0.75rem;
}

/* Sub-labels (below inputs) — hide for cleaner look */
div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
  display: none;
}

/* Required asterisk */
div.wpforms-container-full .wpforms-form .wpforms-required-label {
  color: var(--ch-gold);
}

/* Error styling */
div.wpforms-container-full .wpforms-form .wpforms-error {
  border-color: #e74c3c !important;
}

div.wpforms-container-full .wpforms-form label.wpforms-error {
  color: #e74c3c;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* Confirmation message */
div.wpforms-container-full .wpforms-confirmation-container-full {
  background: var(--ch-bg-section);
  border: 1px solid var(--ch-gold);
  border-radius: var(--ch-radius);
  padding: 1.5rem;
  color: var(--ch-text);
  font-family: var(--ch-font-sans);
}

/* Responsive — compact form full width on mobile */
@media (max-width: 768px) {
  .ch-wpforms-compact {
    width: 100%;
  }
}

/* ════════════════════════════════════════
   WPForms — Dark Section Override
   (ch-contact-section: homepage, B2B, ceļvedis)
   Matches original Lovable design: transparent inputs,
   white borders, no labels, outlined button
   ════════════════════════════════════════ */

/* Hide labels — use placeholders instead */
.ch-contact-section div.wpforms-container-full .wpforms-form .wpforms-field-label {
  display: none !important;
}

/* Show required asterisk is gone with label, that's fine */

/* Inputs: transparent bg, white border, white text */
.ch-contact-section div.wpforms-container-full .wpforms-form input[type="text"],
.ch-contact-section div.wpforms-container-full .wpforms-form input[type="email"],
.ch-contact-section div.wpforms-container-full .wpforms-form input[type="tel"],
.ch-contact-section div.wpforms-container-full .wpforms-form input[type="url"],
.ch-contact-section div.wpforms-container-full .wpforms-form input[type="number"],
.ch-contact-section div.wpforms-container-full .wpforms-form textarea,
.ch-contact-section div.wpforms-container-full .wpforms-form select {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 10px !important;
  color: #FBFAF9 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
}

.ch-contact-section div.wpforms-container-full .wpforms-form input::placeholder,
.ch-contact-section div.wpforms-container-full .wpforms-form textarea::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

.ch-contact-section div.wpforms-container-full .wpforms-form input:focus,
.ch-contact-section div.wpforms-container-full .wpforms-form textarea:focus,
.ch-contact-section div.wpforms-container-full .wpforms-form select:focus {
  border-color: var(--ch-gold) !important;
  background: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
}

/* Textarea shorter */
.ch-contact-section div.wpforms-container-full .wpforms-form textarea {
  min-height: 100px !important;
}

/* Reduce field spacing */
.ch-contact-section div.wpforms-container-full .wpforms-form .wpforms-field {
  margin-bottom: 0.75rem !important;
  padding: 0 !important;
}

/* Submit button: outlined, transparent */
.ch-contact-section div.wpforms-container-full .wpforms-form button[type="submit"],
.ch-contact-section div.wpforms-container-full .wpforms-form .wpforms-submit,
.ch-contact-section .wpforms-render-modern .wpforms-submit {
  background: transparent !important;
  color: #FBFAF9 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 10px !important;
  padding: 0.75rem 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  width: 100% !important;
}

.ch-contact-section div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.ch-contact-section div.wpforms-container-full .wpforms-form .wpforms-submit:hover,
.ch-contact-section .wpforms-render-modern .wpforms-submit:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: none !important;
}

/* Submit container less padding */
.ch-contact-section div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  padding-top: 0.25rem !important;
}

/* Override WPForms modern render variables for dark section */
.ch-contact-section .wpforms-render-modern {
  --wpforms-button-background-color: transparent !important;
  --wpforms-button-border-color: rgba(255,255,255,0.3) !important;
  --wpforms-button-text-color: #FBFAF9 !important;
  --wpforms-field-border-color: rgba(255,255,255,0.2) !important;
  --wpforms-field-border-color-active: var(--ch-gold) !important;
  --wpforms-field-background-color: rgba(255,255,255,0.08) !important;
  --wpforms-field-text-color: #FBFAF9 !important;
}

/* Select dropdown arrow white */
.ch-contact-section div.wpforms-container-full .wpforms-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FBFAF9' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  -webkit-appearance: none !important;
}

/* Error styling on dark bg */
.ch-contact-section div.wpforms-container-full .wpforms-form label.wpforms-error {
  color: #ff6b6b !important;
}

/* Confirmation message on dark bg */
.ch-contact-section div.wpforms-container-full .wpforms-confirmation-container-full {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--ch-gold) !important;
  color: #FBFAF9 !important;
}

/* ========== LIGHTBOX ========== */
.ch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ch-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.ch-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.ch-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ch-lightbox-close:hover {
  opacity: 1;
}

/* ========== LEGAL PAGES ========== */
.ch-legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--ch-text);
}

.ch-legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ch-text);
}

.ch-legal-content p {
  margin-bottom: 1rem;
}

.ch-legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.ch-legal-content li {
  margin-bottom: 0.5rem;
}

.ch-legal-content a {
  color: var(--ch-gold);
  text-decoration: underline;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.ch-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 2px;
}
.ch-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  line-height: 1;
}
.ch-lang-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.ch-lang-btn.active {
  color: var(--ch-dark);
  background: var(--ch-gold);
}
/* Mobile variant */
.ch-lang-switcher--mobile {
  margin-right: 8px;
}
/* Scrolled header — darker pills */
.ch-header.scrolled .ch-lang-switcher {
  background: rgba(0,0,0,0.06);
}
.ch-header.scrolled .ch-lang-btn {
  color: rgba(0,0,0,0.7);
}
.ch-header.scrolled .ch-lang-btn:hover {
  color: var(--ch-dark);
  background: rgba(0,0,0,0.08);
}
.ch-header.scrolled .ch-lang-btn.active {
  color: #fff;
  background: var(--ch-dark);
}



/* ============================================================
   CHATBOT — mobile pielāgojumi
   ============================================================ */
/* Noņemam veco proxy ikonu (footer.php) */
.ch-chatbot-trigger {
  display: none !important;
}

@media (max-width: 640px) {
  /* Chatbot widget pozīcija mobilajā */
  #chChatWidget {
    bottom: 16px;
    right: 16px;
  }
  /* Popup aizpilda visu ekrānu mobilajā */
  .ch-chat-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    bottom: 0;
    right: 0;
  }
  /* Toggle poga mazāka mobilajā */
  .ch-chat-toggle {
    width: 52px;
    height: 52px;
  }
}



/* ============================================================
   LIGHTBOX — prev/next navigācija
   ============================================================ */
.ch-lightbox-prev,
.ch-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 3rem;
  line-height: 1;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  z-index: 1002;
  border-radius: 4px;
  transition: background 0.2s;
  user-select: none;
}
.ch-lightbox-prev:hover,
.ch-lightbox-next:hover {
  background: rgba(0,0,0,0.8);
}
.ch-lightbox-prev { left: 16px; }
.ch-lightbox-next { right: 16px; }
.ch-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1002;
}
@media (max-width: 640px) {
  .ch-lightbox-prev,
  .ch-lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }
  .ch-lightbox-prev { left: 8px; }
  .ch-lightbox-next { right: 8px; }
}

/* Realizētie projekti filtra poga */
.ch-filter-btn-realized {
  text-decoration: none;
  background: var(--ch-gold) !important;
  color: var(--ch-dark) !important;
  border-color: var(--ch-gold) !important;
}
.ch-filter-btn-realized:hover {
  background: var(--ch-gold-hover) !important;
}

/* ============================================================
   TIKTOK / FORUMS PAGE — TikTok-style profile + grid
   ============================================================ */

/* --- TikTok Profile Section --- */
.ch-tt-profile {
  background: #fff;
  color: var(--ch-text, #1a1a2e);
  padding: 2.5rem 0 0;
  text-align: center;
}
.ch-tt-profile-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}
.ch-tt-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
}
.ch-tt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-tt-handle {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--ch-text, #1a1a2e);
}
.ch-tt-name {
  font-size: 0.95rem;
  font-weight: 400;
  color: #666;
  margin: 0 0 1rem;
}
.ch-tt-stats-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}
.ch-tt-stat {
  text-align: center;
}
.ch-tt-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ch-text, #1a1a2e);
}
.ch-tt-stat span {
  font-size: 0.75rem;
  color: #888;
}
.ch-tt-bio {
  font-size: 0.85rem;
  color: #444;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.ch-tt-bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.ch-tt-bio-link svg {
  stroke: #fe2c55;
  flex-shrink: 0;
}
.ch-tt-bio-link a {
  color: #fe2c55;
  text-decoration: none;
  font-weight: 500;
}
.ch-tt-bio-link a:hover {
  text-decoration: underline;
}
.ch-tt-actions {
  margin-bottom: 1.5rem;
}
.ch-tt-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: #fe2c55;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.ch-tt-follow-btn:hover {
  background: #e6224d;
  color: #fff;
}
.ch-tt-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e0e0e0;
}
.ch-tt-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ch-text, #1a1a2e);
  border-bottom: 2px solid var(--ch-text, #1a1a2e);
  cursor: default;
}
.ch-tt-tab svg {
  stroke: var(--ch-text, #1a1a2e);
  fill: none;
}
/* Tabs row: tabs left, sort right */
.ch-tt-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
.ch-tt-tabs-row .ch-tt-tabs {
  border-bottom: none;
}
/* Sort buttons */
.ch-tt-sort {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 2px;
}
.ch-tt-sort-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.ch-tt-sort-btn.active {
  background: var(--ch-text, #1a1a2e);
  color: #fff;
}
.ch-tt-sort-btn:hover:not(.active) {
  color: var(--ch-text, #1a1a2e);
}
@media (max-width: 768px) {
  .ch-tt-tabs-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
  }
  .ch-tt-sort {
    margin-bottom: 12px;
  }
}

/* --- TikTok Video Grid --- */
.ch-tt-feed {
  background: #fff;
  padding: 2px 0 0;
}
.ch-tt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
}
.ch-tt-item {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  cursor: pointer;
  background: #f0f0f0;
}
.ch-tt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.ch-tt-item:hover img {
  transform: scale(1.05);
}
.ch-tt-item-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}
.ch-tt-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.2s;
}
.ch-tt-item:hover .ch-tt-item-overlay {
  background: rgba(0,0,0,0.3);
}
.ch-tt-play-icon {
  opacity: 0;
  transition: opacity 0.2s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.ch-tt-item:hover .ch-tt-play-icon {
  opacity: 1;
}
.ch-tt-item-views {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Load more button */
.ch-tt-load-more {
  display: inline-block;
  padding: 10px 32px;
  background: transparent;
  color: var(--ch-text, #1a1a2e);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ch-tt-load-more:hover {
  border-color: #fe2c55;
  color: #fe2c55;
}

/* --- Video Lightbox (kept from before) --- */
.ch-video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.ch-video-lightbox.active {
  display: flex;
}
.ch-video-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0 8px;
}
.ch-video-lightbox-prev,
.ch-video-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}
.ch-video-lightbox-prev:hover,
.ch-video-lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.ch-video-lightbox-prev { left: 16px; }
.ch-video-lightbox-next { right: 16px; }
.ch-video-lightbox-content {
  display: flex;
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.ch-video-lightbox-video {
  flex: 0 0 400px;
  max-width: 400px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-video-lightbox-iframe {
  width: 100%;
  height: 710px;
  border: none;
}
.ch-video-lightbox-info {
  flex: 1;
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 710px;
}
.ch-video-lightbox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
  margin-bottom: 1rem;
}
.ch-video-lightbox-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  padding: 4px;
}
.ch-video-lightbox-header strong {
  display: block;
  font-size: 0.95rem;
}
.ch-video-lightbox-date {
  font-size: 0.8rem;
  color: #888;
}
.ch-video-lightbox-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #ddd;
  flex: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ch-video-lightbox-meta {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.85rem;
}
.ch-video-lightbox-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ch-video-lightbox-meta svg {
  stroke: #aaa;
}
.ch-video-lightbox-open {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Mobile lightbox + grid */
@media (max-width: 768px) {
  .ch-tt-grid {
    gap: 1px;
  }
  .ch-tt-profile-inner {
    padding: 0 0.75rem;
  }
  .ch-tt-handle {
    font-size: 1.1rem;
  }
  .ch-tt-stats-row {
    gap: 1.5rem;
  }
  .ch-video-lightbox-content {
    flex-direction: column;
    max-height: 95vh;
    width: 98%;
  }
  .ch-video-lightbox-video {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  .ch-video-lightbox-iframe {
    height: 500px;
  }
  .ch-video-lightbox-info {
    max-height: 250px;
    padding: 1rem;
  }
  .ch-video-lightbox-prev { left: 4px; width: 36px; font-size: 2rem; }
  .ch-video-lightbox-next { right: 4px; width: 36px; font-size: 2rem; }
}

/* ============================================================
   CONSOLIDATED MOBILE FIX — header, menu, hamburger
   Replaces 3 separate blocks with one definitive fix
   ============================================================ */
@media (max-width: 1023px) {
  /* 1. HEADER: tikai logo + hamburger, viss pārējais paslēpts */
  .ch-header-actions {
    display: none !important;
  }
  .ch-nav-desktop {
    display: none !important;
  }
  
  /* 2. Header inner: logo kreisajā, hamburger labajā */
  .ch-header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  /* 3. Hamburger vienmēr redzams un pieejams */
  .ch-mobile-toggle {
    display: flex !important;
    z-index: 51;
    order: 99;
    flex-shrink: 0;
  }
  
  /* 4. Mobile menu — pilna platuma, fiksēts pozīcijā, VIRS visa satura */
  .ch-mobile-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 80px !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    padding: 1rem 1.25rem 2rem !important;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
  }
  .ch-mobile-menu.open {
    display: block !important;
  }
  
  /* 5. Menu saites — kompaktas, pilna platuma */
  .ch-mobile-menu a,
  .ch-mobile-nav-list a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    display: block;
    color: var(--ch-text, #1a1a2e);
    border-bottom: 1px solid var(--ch-border-light, #eee);
    text-decoration: none;
  }
  
  /* 6. Mobile actions (kalkulators, CTA) */
  .ch-mobile-actions {
    margin-top: 1.25rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
  }
  .ch-mobile-actions .ch-btn-calc {
    display: flex !important;
  }
  
  /* 7. Body scroll lock + header z-index boost when menu open */
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .ch-header {
    z-index: 10000 !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 480px) {
  .ch-mobile-menu a,
  .ch-mobile-nav-list a {
    padding: 0.65rem 0;
    font-size: 1rem;
  }
}

/* ============================================================
   CRITICAL: Header z-index boost when mobile menu is open
   Menu is INSIDE <header> so header's z-index limits menu's z-index.
   When menu-open class is on body, boost header above all content.
   ============================================================ */
body.menu-open .ch-header {
  z-index: 10000 !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ============================================================
   MOBILE HEADER: language switcher + hamburger wrapper
   ============================================================ */
/* Desktop: hide the mobile-only lang+hamburger wrapper */
.ch-mobile-header-right {
  display: none;
}
@media (max-width: 1023px) {
  .ch-mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  /* Header-mobile lang switcher: dark text on light bg */
  .ch-lang-switcher--header-mobile {
    margin-right: 0;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    padding: 2px;
  }
  .ch-lang-switcher--header-mobile .ch-lang-btn {
    color: var(--ch-text, #1a1a2e);
    border-color: rgba(0,0,0,0.15);
    padding: 4px 10px;
    font-size: 0.8rem;
  }
  .ch-lang-switcher--header-mobile .ch-lang-btn:hover {
    color: var(--ch-dark, #000);
    background: rgba(0,0,0,0.08);
  }
  .ch-lang-switcher--header-mobile .ch-lang-btn.active {
    color: #fff;
    background: var(--ch-dark, #1a1a2e);
  }
  /* Scrolled header variant */
  .ch-header.scrolled .ch-lang-switcher--header-mobile {
    background: rgba(0,0,0,0.06);
  }
  .ch-header.scrolled .ch-lang-switcher--header-mobile .ch-lang-btn {
    color: rgba(0,0,0,0.7);
  }
  .ch-header.scrolled .ch-lang-switcher--header-mobile .ch-lang-btn.active {
    color: #fff;
    background: var(--ch-dark, #1a1a2e);
  }
}
/* Mobile menu: dark text for lang switcher inside menu too */
.ch-mobile-actions .ch-lang-switcher,
.ch-mobile-actions .ch-lang-switcher--mobile {
  background: rgba(0,0,0,0.06);
}
.ch-mobile-actions .ch-lang-btn {
  color: var(--ch-text, #1a1a2e) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.ch-mobile-actions .ch-lang-btn.active {
  color: #fff !important;
  background: var(--ch-dark, #1a1a2e) !important;
}
