/* ==========================================================================
   ForSTEEL, s.r.o. – Stylesheet
   Brand Blue: #1768b1 | Angle: 10.445° / 79.555° | Font: Host Grotesk
   ========================================================================== */

@font-face {
  font-family: 'Host Grotesk';
  src: url('Font/HostGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('Font/HostGrotesk-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand Palette */
  --blue-primary: #1768b1;
  --blue-dark: #0e4375;
  --blue-deeper: #08294a;
  --blue-medium: #1d7bcf;
  --blue-light: #e8f1fa;
  --blue-tint: #f3f7fc;
  --blue-border: #d0e1f2;

  /* Complementary Accent (Green strictly for Buttons) */
  --green-accent: #1b8a4b;
  --green-hover: #146e3b;

  /* Text & Backgrounds */
  --text-main: #0c1d31;
  --text-secondary: #324a65;
  --text-muted: #5a718a;
  --bg-white: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-subtle: #edf3f9;

  /* Layout & Geometry */
  --nav-height: 80px;
  --brand-skew: -10.445deg;
  --brand-skew-pos: 10.445deg;
  --container-max: 1580px; /* Extended by 200px from 1380px */
  --radius: 3px;           /* Smaller, unified corner radius everywhere */

  /* Unified Drop Shadows & Transitions */
  --shadow-card: 0 12px 32px rgba(8, 41, 74, 0.11), 0 2px 6px rgba(8, 41, 74, 0.05);
  --shadow-card-hover: 0 18px 40px rgba(8, 41, 74, 0.16), 0 4px 10px rgba(8, 41, 74, 0.07);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  font-size: 16px;
}

body {
  font-family: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  letter-spacing: 0.018em; /* Added tracking so letters aren't too tight */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: 0.015em;
}

p, li, dd {
  text-wrap: pretty;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button {
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Unified Slant_element.svg icon before texts */
.slant-icon {
  width: 9px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.025em;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-accent {
  background-color: var(--green-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(27, 138, 75, 0.28);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 110, 59, 0.36);
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateY(3px);
}

/* ==========================================================================
   Navigation Header (Hide on Scroll Down, Show on Scroll Up)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 104, 177, 0.14);
  box-shadow: 0 4px 20px rgba(8, 41, 74, 0.06);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo in Header */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.35rem 0;
}

.logo-svg {
  height: 36px;
  width: auto;
  display: block;
}

.logo-svg .logo-bg {
  fill: transparent;
}

.logo-svg .logo-mark {
  fill: var(--blue-primary);
  transition: fill 0.2s ease;
}

.brand-logo:hover .logo-mark {
  fill: var(--blue-dark);
}

/* Center Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--blue-primary);
  transform: scaleX(0) skewX(var(--brand-skew));
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1) skewX(var(--brand-skew));
  transform-origin: left;
}

/* Right Header Actions: Contact Button & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 0.22rem 0.35rem;
}

.lang-btn {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0.3rem 0.52rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--blue-primary);
}

.lang-btn.active {
  background-color: var(--blue-primary);
  color: #ffffff;
}

.lang-sep {
  color: var(--blue-border);
  font-size: 0.8rem;
  user-select: none;
  padding: 0 0.1rem;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-border);
  background-color: var(--blue-tint);
  gap: 5px;
  padding: 8px;
}

.ham-line {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.hamburger-btn[aria-expanded="true"] .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .ham-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--blue-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease, visibility 0.35s;
  z-index: 999;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--blue-light);
}

.mobile-nav-link:hover {
  color: var(--blue-primary);
  padding-left: 0.85rem;
}

.mobile-menu-footer {
  padding-top: 0.5rem;
}

.mobile-contact-btn {
  width: 100%;
}

/* ==========================================================================
   Hero Section (Brand Blue #1768b1 + Hero.webp)
   - Stronger contrast between the 2 diagonal background parts
   - More prominent regular diagonal lines (79.555° / 10.445°)
   - Subpixel bleed fix on bottom divider so no thin line appears in EN/CS
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 6.75rem;
  background: linear-gradient(125deg, #061f38 0%, #0b345c 45%, #12518c 100%);
  color: #ffffff;
  overflow: hidden;
}

/* Regular diagonal lines utilizing the 79.555° / 10.445° angle – more visible */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100.445deg,
    rgba(255, 255, 255, 0.085) 0px,
    rgba(255, 255, 255, 0.085) 1.5px,
    transparent 1.5px,
    transparent 36px
  );
  pointer-events: none;
}

/* Distinct second half of the hero background with greater color difference */
.hero-bg-pattern::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 54%;
  height: 130%;
  background: linear-gradient(165deg, rgba(35, 134, 224, 0.42) 0%, rgba(23, 104, 177, 0.25) 100%);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  transform: skewX(var(--brand-skew));
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.75rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.2vw, 1.16rem);
  line-height: 1.74;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  max-width: 64ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Image Frame (Blue border instead of green, unified radius & shadow) */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(255, 255, 255, 0.24);
  background-color: var(--blue-deeper);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--blue-primary);
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.hero-image-frame:hover .hero-img {
  transform: scale(1.025);
}

.hero-image-caption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1.15rem;
  background-color: rgba(8, 41, 74, 0.94);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Bottom angle divider overlapped by 2px to prevent subpixel gap line in any language/height */
.hero-angle-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--bg-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   Section Common Elements
   ========================================================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: 0.012em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 68ch;
  margin-bottom: 2rem;
}

/* ==========================================================================
   About Section (H1 + Realizace.webp)
   ========================================================================== */
.about-section {
  padding: 5.5rem 0 6rem;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--blue-border);
}

.about-container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}

.about-h1 {
  font-size: clamp(2rem, 2.9vw, 2.7rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.about-subtitle {
  font-size: clamp(1.12rem, 1.35vw, 1.28rem);
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.5;
  letter-spacing: 0.015em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.about-divider {
  width: 64px;
  height: 4px;
  background-color: var(--blue-primary);
  transform: skewX(var(--brand-skew));
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blue-light);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--blue-primary);
}

.highlight-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.highlight-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* About Image Column – Unified Drop Shadow */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--blue-border);
  background-color: var(--blue-tint);
}

.about-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: rgba(12, 29, 49, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.68rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Split Section (50% Left: Heat Pipe + References | 50% Right: Sticky Animation)
   - Subtle diagonal lines pattern in background matching Hero section
   ========================================================================== */
.split-section {
  padding: 5.5rem 0 6.5rem;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--blue-border);
  position: relative;
  overflow-x: clip;
}

.split-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100.445deg,
    rgba(23, 104, 177, 0.055) 0px,
    rgba(23, 104, 177, 0.055) 1.2px,
    transparent 1.2px,
    transparent 36px
  );
  pointer-events: none;
}

.split-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.75rem;
  row-gap: 3.5rem;
  align-items: start;
}

.split-tech-block {
  grid-column: 1;
  grid-row: 1;
}

.split-ref-block {
  grid-column: 1;
  grid-row: 2;
}

.split-anim-col {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
}

/* Technology Prose & Callout */
.tech-prose {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tech-callout {
  margin-top: 0.75rem;
  background-color: var(--bg-white);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.callout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.callout-badge {
  display: inline-block;
  background-color: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}

.callout-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-callout p {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.65;
}

/* ==========================================================================
   Sticky Animation & Legend (Right Column)
   ========================================================================== */
.sticky-anim-box {
  position: sticky;
  top: calc(var(--nav-height) + 1.25rem);
  transition: top 0.25s ease;
}

@media (max-width: 960px) {
  .sticky-anim-box {
    top: calc(var(--nav-height) * 1.5);
    margin-bottom: calc(var(--nav-height) * 1.5);
  }
}

.anim-card {
  background-color: var(--bg-white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.anim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background-color: var(--blue-deeper);
  color: #ffffff;
}

.anim-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.video-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background-color 0.2s ease;
}

.video-control-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.video-control-btn svg {
  width: 14px;
  height: 14px;
}

.video-control-btn .icon-play {
  display: none;
}

.video-control-btn.is-paused .icon-pause {
  display: none;
}

.video-control-btn.is-paused .icon-play {
  display: block;
}

/* Animation Layout inside Right Column */
.anim-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) 1.05fr;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
  background-color: #ffffff;
}

/* Border removed so animation blends seamlessly into the white background */
.video-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 336 / 560;
  background-color: #ffffff;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatpipe-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.video-poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.video-poster-fallback.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.poster-svg {
  width: 100%;
  height: 100%;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: rgba(8, 41, 74, 0.32);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-overlay-play.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-play-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--green-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.video-overlay-play:hover .overlay-play-circle {
  transform: scale(1.08);
  background-color: var(--green-hover);
}

.overlay-play-circle svg {
  width: 26px;
  height: 26px;
  margin-left: 2px;
}

.overlay-play-text {
  font-size: 0.86rem;
  font-weight: 700;
  background-color: rgba(8, 41, 74, 0.85);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
}

/* Legend Styling */
.anim-legend {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--blue-light);
}

.legend-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--blue-tint);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.legend-step:hover {
  border-color: var(--blue-primary);
  transform: translateX(3px);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 2px;
  transform: skewX(var(--brand-skew));
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.step-desc {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

/* ==========================================================================
   References Cards (Equal Structure & Height, SVG Years)
   - Scope text sits directly under "Rozsah dodávky" heading, with any remaining
     vertical space pushed below the text.
   ========================================================================== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ref-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
  height: 100%;
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue-primary);
}

.ref-year-graphic {
  background-color: var(--blue-tint);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.ref-card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.ref-meta-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: 0.25rem;
}

.ref-plant {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.ref-scope {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0;
}

/* ==========================================================================
   Contact Section + PITAGORAS Supplement
   - Unified shadow under Contact cards
   - Removed duplicate bottom summary line
   ========================================================================== */
.contact-section {
  padding: 5.5rem 0 4.5rem;
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.contact-person-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.person-photo-wrap {
  width: 175px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(8, 41, 74, 0.14));
}

.person-details {
  display: flex;
  flex-direction: column;
}

.person-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
}

.person-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.15rem;
}

.person-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-link:hover {
  color: var(--blue-primary);
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--blue-primary);
  flex-shrink: 0;
}

/* Company Info Card */
.contact-company-card {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.contact-company-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: -25px;
  width: 90px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  transform: skewX(var(--brand-skew));
  pointer-events: none;
}

.company-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7ec0ff;
  margin-bottom: 0.4rem;
}

.company-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.company-dl {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dl-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0.75rem;
  font-size: 0.98rem;
}

.dl-row dt {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.dl-row dd {
  font-weight: 600;
  color: #ffffff;
}

.company-web-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-web-link:hover {
  color: #7ec0ff;
}

/* ==========================================================================
   Supplementary Info: PITAGORAS (Subtle, Less Prominent by Requirement)
   ========================================================================== */
.research-supplement {
  margin-top: 3.25rem;
  padding: 1.5rem 1.75rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--blue-light);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius);
}

.research-inner {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  align-items: start;
}

.research-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.research-heading {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
}

.research-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Footer with White Logo
   ========================================================================== */
.site-footer {
  background-color: var(--blue-deeper);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 2rem;
  border-top: 3px solid var(--blue-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logo-wrap:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-logo-svg {
  height: 34px;
  width: auto;
  display: block;
}

.footer-bottom {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

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

.footer-link-btn {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Cookie Notice Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 880px;
  background-color: var(--text-main);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 5px solid var(--blue-primary);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  padding: 1.15rem 1.5rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: rgba(23, 104, 177, 0.25);
  color: #66b5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-icon svg {
  width: 20px;
  height: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cookie-text p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.cookie-buttons {
  flex-shrink: 0;
}

/* ==========================================================================
   Scroll Reveal Animations (Subtle & Professional)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1280px) {
  .anim-layout {
    grid-template-columns: 1fr;
  }

  .video-stage {
    max-width: 240px;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero-container,
  .about-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .research-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 960px) {
  /* Navigation switches to Hamburger */
  .main-nav,
  .nav-contact-btn {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  /* Split Section becomes 1 column in order:
     1. Technologie Heat Pipe
     2. Animace
     3. Reference */
  .split-container {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .split-tech-block {
    grid-column: 1;
    grid-row: 1;
  }

  .split-anim-col {
    grid-column: 1;
    grid-row: 2;
    height: auto;
  }

  .split-ref-block {
    grid-column: 1;
    grid-row: 3;
  }

  .sticky-anim-box {
    position: relative;
    top: 0;
    margin-bottom: 0;
  }

  .anim-layout {
    grid-template-columns: minmax(200px, 240px) 1fr;
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --nav-height: 70px;
  }

  .container,
  .header-inner {
    padding: 0 1.25rem;
  }

  .logo-svg,
  .footer-logo-svg {
    height: 28px;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 4.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .about-section,
  .split-section,
  .contact-section {
    padding: 3.75rem 0;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .anim-layout {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .contact-person-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .person-photo-wrap {
    width: 140px;
  }

  .contact-company-card {
    padding: 1.5rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons,
  .cookie-buttons .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
