/* ===================================
   PAGES.CSS — Shared styles for subpages
   (page-hero, breadcrumb, project sections, 
    galleries, lightbox, two-col layouts, etc.)
   =================================== */

/* BREADCRUMB */
.breadcrumb-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border-light); }
.breadcrumb { max-width: var(--content-max); margin: 0 auto; padding: var(--space-3) var(--space-6); display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-faint); }
.breadcrumb a { color: var(--color-text-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--sky-blue); }
.breadcrumb .bc-current { color: var(--color-text); font-weight: 500; }

/* PAGE HERO */
.page-hero { position: relative; height: 420px; overflow: hidden; display: flex; align-items: flex-end; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,46,0.88) 0%, rgba(13,27,46,0.4) 50%, rgba(13,27,46,0.15) 100%); }
.page-hero-content { position: relative; z-index: 2; max-width: var(--content-max); margin: 0 auto; padding: var(--space-10) var(--space-6); width: 100%; color: #fff; }
.page-hero-tag { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sky-orange); margin-bottom: var(--space-3); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: var(--space-3); }
.page-hero-sub { font-size: var(--text-base); color: rgba(255,255,255,0.75); max-width: 620px; line-height: 1.7; margin-bottom: var(--space-6); }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--sky-orange); color: #fff; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.btn-hero:hover { background: #d4551f; transform: translateY(-1px); }

/* TOOL HERO — unified hero for Kalkulátor, Srovnání, Konfigurátor */
.tool-hero {
  position: relative;
  padding: 64px 24px 56px;
  text-align: center;
  overflow: hidden;
  width: 100%;
  margin: 0;
}
.tool-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.tool-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,62,0.88) 0%, rgba(26,47,94,0.80) 50%, rgba(26,58,122,0.75) 100%);
  pointer-events: none;
}
.tool-hero > *:not(.tool-hero-bg) { position: relative; z-index: 2; }
.tool-hero::after { z-index: 1; }
.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(253,101,45,0.15);
  border: 1px solid rgba(253,101,45,0.35);
  color: var(--sky-orange);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}
.tool-hero h1 em { color: var(--sky-orange); font-style: normal; }
.tool-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.tool-hero .insight-box {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--sky-orange);
  background: rgba(255,255,255,0.06);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.tool-hero .insight-box p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  max-width: none;
  margin: 0;
}
.tool-hero .insight-box strong { color: var(--sky-orange); }
@media (max-width: 640px) {
  .tool-hero { padding: 40px 16px 44px; }
  .tool-hero h1 { font-size: 24px; }
}

/* INTRO SECTION */
.intro { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.intro-inner { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-6); display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start; }
.intro-label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sky-orange); margin-bottom: var(--space-3); }
.intro h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.2; }
.intro-text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.intro-partner { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border-light); font-size: var(--text-sm); color: var(--color-text-faint); }
.intro-partner strong { color: var(--color-text); font-weight: 600; }

/* INTRO STRIP (centered) */
.intro-strip { background: var(--color-surface); padding: 60px 0; border-bottom: 1px solid var(--color-border); text-align: center; }
.intro-strip-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.intro-strip h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.intro-strip p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* PROJECT SECTIONS (per-project with gallery) */
.project-section { background: var(--color-surface); }
.project-section-alt { background: var(--color-bg); }
.project-inner { max-width: var(--content-max); margin: 0 auto; padding: 120px var(--space-6); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: start; }

/* GALLERY */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 360px; object-fit: cover; cursor: pointer; transition: opacity 0.3s ease; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.gallery-thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.7; transition: opacity var(--transition-fast), transform var(--transition-fast); }
.gallery-thumbs img:hover { opacity: 1; transform: scale(1.03); }
.thumb-more { display: flex; align-items: center; justify-content: center; background: var(--sky-blue-light); color: var(--sky-blue); border-radius: 6px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; height: 72px; cursor: pointer; }

/* PROJECT INFO */
.project-info h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.project-divider { width: 48px; height: 3px; background: var(--sky-orange); border-radius: 2px; margin-bottom: var(--space-4); }
.project-info p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-5); }
.btn-outline-project { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 2px solid var(--sky-blue); color: var(--sky-blue); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.btn-outline-project:hover { background: var(--sky-blue); color: #fff; transform: translateY(-1px); }

/* TWO-COL SECTIONS (Pro firmy style) */
.two-col-section { padding: 100px 0; }
.two-col-section.bg-white { background: var(--color-surface); }
.two-col-section.bg-gray { background: var(--color-bg); }
.two-col-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.two-col-inner.reversed { direction: rtl; }
.two-col-inner.reversed > * { direction: ltr; }
.two-col-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); }
.two-col-text h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.two-col-divider { width: 48px; height: 3px; background: var(--sky-orange); border-radius: 2px; margin-bottom: var(--space-4); }
.two-col-text p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-5); }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 2px solid var(--sky-blue); color: var(--sky-blue); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.btn-outline:hover { background: var(--sky-blue); color: #fff; transform: translateY(-1px); }

/* SECTION TAG */
.section-tag { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--sky-orange); display: block; margin-bottom: var(--space-3); }

/* FEATURE CARDS */
.feature-section { padding: 100px 0; text-align: center; }
.feature-section.bg-gray { background: var(--color-bg); }
.feature-section-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.feature-section h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.feature-section > p, .feature-section-inner > p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 640px; margin: 0 auto var(--space-8); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); text-align: left; margin-top: var(--space-8); }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card img { width: 100%; height: 160px; object-fit: cover; }
.feature-card-body { padding: var(--space-5); }
.feature-card-body h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); }
.feature-card-body p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.feature-placeholder { display: flex; align-items: center; justify-content: center; height: 160px; background: var(--sky-blue-light); color: var(--sky-blue); font-size: 40px; }

/* TOOLS SECTION */
.tools-section { background: var(--color-surface); padding: 100px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.tools-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.tools-header { text-align: center; margin-bottom: var(--space-10); }
.tools-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.tools-subtitle { font-size: var(--text-base); color: var(--color-text-muted); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.tool-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-7); transition: all var(--transition-base); display: flex; flex-direction: column; }
.tool-card:hover { border-color: var(--sky-blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tool-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--sky-blue-light); color: var(--sky-blue); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); }
.tool-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); }
.tool-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-4); flex: 1; }
.tool-link { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--sky-blue); }
.tool-card:hover .tool-link { color: var(--sky-blue-dark); }

/* BANNERS */
.velkoobchod-banner { background: var(--sky-blue); color: #fff; padding: 80px 0; }
.velkoobchod-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); text-align: center; }
.velkoobchod-inner h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; margin-bottom: var(--space-4); }
.velkoobchod-inner .banner-text { font-size: var(--text-base); color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto var(--space-3); line-height: 1.7; }
.velkoobchod-inner .banner-contact { font-size: var(--text-sm); color: rgba(255,255,255,0.6); margin-bottom: var(--space-6); }

/* PAGE CTA */
.page-cta { background: var(--sky-blue); color: #fff; }
.page-cta-inner { max-width: var(--content-max); margin: 0 auto; padding: var(--space-10) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.page-cta h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.page-cta p { font-size: var(--text-base); color: rgba(255,255,255,0.75); margin-top: var(--space-1); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: #fff; color: var(--sky-blue); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; border-radius: var(--radius-md); transition: all var(--transition-fast); flex-shrink: 0; }
.btn-white:hover { background: var(--sky-blue-light); transform: translateY(-1px); }

/* SITE FOOTER (compact) */
.site-footer { background: #0D1B2E; color: rgba(255,255,255,0.6); padding: var(--space-6); text-align: center; font-size: var(--text-xs); }
.site-footer a { color: rgba(255,255,255,0.4); transition: color var(--transition-fast); }
.site-footer a:hover { color: rgba(255,255,255,0.7); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px; font-weight: 300; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; z-index: 10000; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 48px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; user-select: none; padding: 20px; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-family: var(--font-display); font-size: var(--text-sm); }

/* CONTENT GALLERY (for architekty page sections) */
.content-section { padding: 100px 0; }
.content-section.bg-white { background: var(--color-surface); }
.content-section.bg-gray { background: var(--color-bg); }
.content-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.content-inner h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-3); }
.content-divider { width: 48px; height: 3px; background: var(--sky-orange); border-radius: 2px; margin-bottom: var(--space-4); }
.content-inner > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-6); max-width: 720px; }
.content-gallery { margin-top: var(--space-6); }
.content-gallery-main { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-2); }
.content-gallery-main img { width: 100%; height: 400px; object-fit: cover; cursor: pointer; }
.content-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-2); }
.content-gallery-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.7; transition: all var(--transition-fast); }
.content-gallery-thumbs img:hover { opacity: 1; transform: scale(1.02); }
.btn-architect { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--sky-blue); color: var(--sky-blue); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-fast); margin-top: var(--space-5); }
.btn-architect:hover { background: var(--sky-blue); color: #fff; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .page-hero { height: 300px; }
  .intro-inner { grid-template-columns: 1fr; }
  .project-inner { grid-template-columns: 1fr; padding: 80px var(--space-6); }
  .gallery-main img { height: 240px; }
  .two-col-inner { grid-template-columns: 1fr; }
  .two-col-inner.reversed { direction: ltr; }
  .two-col-img { height: 260px; }
  .page-cta-inner { flex-direction: column; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-section, .two-col-section, .content-section { padding: 60px 0; }
  .velkoobchod-banner { padding: 60px 0; }
  .content-gallery-main img { height: 240px; }
}

/* ===================================
   FEATURES SECTION (Pro architekty)
   =================================== */
.features-section { background: var(--color-bg); padding: 100px 0; }
.features-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.features-header { text-align: center; margin-bottom: var(--space-10); }
.features-header .section-tag { display: block; margin-bottom: var(--space-3); }
.features-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-4); }
.features-intro { font-size: var(--text-base); color: var(--color-text-muted); max-width: 720px; margin: 0 auto; line-height: 1.7; }
.features-cta { text-align: center; margin-top: var(--space-8); }

.feature-card-img { width: 100%; height: 160px; object-fit: cover; }
.feature-card-placeholder { display: flex; align-items: center; justify-content: center; height: 160px; background: var(--sky-blue-light); color: var(--sky-blue); }
.feature-card-placeholder svg { width: 48px; height: 48px; }

/* CTA BANNER (architect zone) */
.cta-banner { background: var(--sky-blue); color: #fff; padding: 80px 0; text-align: center; }
.cta-banner-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.cta-banner-inner h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; margin-bottom: var(--space-3); }
.cta-banner-inner p { font-size: var(--text-base); color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto var(--space-6); line-height: 1.6; }

/* CONTENT SECTION CTA */
.content-cta { margin-top: var(--space-5); }

/* GALLERY (generic) */
.gallery { margin-top: var(--space-6); }
.gallery-more { display: flex; align-items: center; justify-content: center; background: var(--sky-blue-light); color: var(--sky-blue); border-radius: 6px; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; height: 80px; cursor: pointer; }

/* RESPONSIVE additions */
@media (max-width: 768px) {
  .features-section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr !important; }
  .cta-banner { padding: 60px 0; }
}
