/* ===== T RAIL a.s. — Modern Website Styles (Light Theme) ===== */

/* --- Local Fonts --- */
/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/Inter-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/Outfit-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/Outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties --- */
:root {
  --primary: #C41E3A;
  --primary-dark: #9B1830;
  --primary-light: #E8354F;
  --accent: #E87040;
  --dark: #111827;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-card: #ffffff;
  --bg-surface: #f1f3f8;
  --border: #e2e5ed;
  --border-light: #eef0f5;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
  z-index: 1100;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}



/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Custom Branded Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 3px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- Premium Grain Texture Overlay --- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* --- Section Shared Styles --- */
.section {
  padding: clamp(60px, 10vw, 100px) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 18px 0;
  box-shadow: 0 1px 16px rgba(196, 30, 58, 0.08);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0 20px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.nav-logo img,
.nav-logo svg {
  height: 48px;
  width: auto;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.25);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO – CLEAN WHITE SPLIT LAYOUT ===== */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Slider navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.25);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

/* Slide structures */
.hero-slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Left & Right Panel adjustments inside slides */
.hero-slide .hero-panel-left {
  width: 42%;
  min-width: 380px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  position: relative;
  z-index: 2;
  box-shadow: 8px 0 40px rgba(0,0,0,0.06);
  transform: translateX(-40px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .hero-panel-left {
  transform: translateX(0);
}

.hero-slide .hero-panel-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  transform: scale(1.05);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .hero-panel-right {
  transform: scale(1);
}

.hero-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 120px 64px 60px;
}

/* Label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 36px;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

/* Heading */
.hero-heading {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 36px;
}

.hero-heading-em {
  font-style: normal;
  color: var(--primary);
  display: block;
}

.hero-subtext {
  font-size: 1.12rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* Hero CTAs Buttons - Minimal text links */
.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid rgba(196, 30, 58, 0.25);
  transition: color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-hero-link:hover {
  color: #a8001e;
  border-color: #a8001e;
  transform: translateY(-1px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid var(--border);
  transition: color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn-hero-ghost:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* KPI stats */
.hero-kpi-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.hero-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}

.hero-kpi:first-child {
  padding-left: 0;
}

.hero-kpi strong {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-kpi strong .suffix {
  color: var(--primary);
}

.hero-kpi span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.hero-kpi-sep {
  width: 1px;
  height: 36px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 36px;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(0.6); transform-origin: top; }
}

/* ---- Right photo panel ---- */
.hero-panel-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}

.hero:hover .hero-photo {
  transform: scale(1.03);
}

/* Red accent bar bottom of photo */
.hero-photo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
}

/* Keep legacy classes functional */
.hero-stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-number .suffix {
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hide legacy elements no longer used */
.hero-scroll { display: none; }

/* Slide 2 - Sector Grid */
.hero-panel-right--grid {
  display: flex;
  flex-direction: column;
}

.hero-grid-sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.hero-sector-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-sector-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.hero-sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
  transition: background 0.35s ease;
}

.hero-sector-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease;
}

.hero-sector-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-sector-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

/* Hover Animations for Sector Grid */
.hero-sector-card:hover .hero-sector-bg {
  transform: scale(1.06);
}

.hero-sector-card:hover .hero-sector-overlay {
  background: linear-gradient(to top, rgba(196, 30, 58, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-sector-card:hover .hero-sector-content {
  transform: translateY(-4px);
}

.hero-sector-card:hover .hero-sector-icon {
  opacity: 1;
  transform: scale(1.1);
}


/* ===== SLIDE 3 – CINEMATIC REVEAL (WHITE SPLIT) ===== */

#slide3 {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  background: #ffffff;
}

/* Curtain reveal overlay */
.s3-curtain {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 20;
  transform: scaleX(1);
  transform-origin: right center;
}

#slide3.active .s3-curtain {
  animation: s3CurtainSweep 0.85s cubic-bezier(0.77, 0, 0.18, 1) 0.1s both;
}

@keyframes s3CurtainSweep {
  0%   { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* Left white panel */
.s3-white-panel {
  width: 42%;
  min-width: 450px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 40px;
}

.s3-logo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Heading block styling */
.s3-heading-block {
  text-align: center;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
}

#slide3.active .s3-heading-block {
  animation: s3TitleReveal 0.7s ease 0.95s both;
}

@keyframes s3TitleReveal {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.s3-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.s3-red-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  transform: scaleX(0);
  transform-origin: center;
}

#slide3.active .s3-red-line {
  animation: s3LineExpand 0.5s cubic-bezier(0.77, 0, 0.18, 1) 1.55s both;
}

@keyframes s3LineExpand {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Grid of Pictograms */
.s3-piktogramy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  width: 100%;
  max-width: 380px;
}

.s3-pikto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  cursor: pointer;
}

/* Sequential animations for each pictogram */
#slide3.active .s3-pikto-item:nth-child(1) {
  animation: s3PiktoReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s both;
}
#slide3.active .s3-pikto-item:nth-child(2) {
  animation: s3PiktoReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s both;
}
#slide3.active .s3-pikto-item:nth-child(3) {
  animation: s3PiktoReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.1s both;
}
#slide3.active .s3-pikto-item:nth-child(4) {
  animation: s3PiktoReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s both;
}

@keyframes s3PiktoReveal {
  0%   { opacity: 0; transform: translateY(30px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.s3-pikto-circle {
  width: 70px;
  height: 70px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.s3-pikto-circle img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.s3-pikto-item span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

/* Hover interactivity */
.s3-pikto-item:hover .s3-pikto-circle {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(196, 30, 58, 0.12);
}

.s3-pikto-item:hover .s3-pikto-circle img {
  transform: scale(1.1);
}

/* Right photo panel */
.s3-photo-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.s3-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.1);
  transition: transform 6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

#slide3.active .s3-photo {
  transform: scale(1.0);
}

/* Fade from white to photo */
.s3-photo-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 150px;
  background: linear-gradient(to right, #ffffff, transparent);
  z-index: 5;
}

/* ===== SLIDE 4 – CINEMATIC FULLSCREEN ===== */

#slide4 {
  overflow: hidden;
  background: #0a0a0a;
}

/* Full-bleed background */
.s4-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.s4-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  transition: transform 7s cubic-bezier(0.1, 0.8, 0.2, 1);
}

#slide4.active .s4-photo {
  transform: scale(1.0);
}

/* Dark gradient overlay */
.s4-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  z-index: 2;
}

/* Animated spotlight / glow sweep effect */
.s4-spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.s4-spotlight::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(196, 30, 58, 0.18) 0%,
    rgba(196, 30, 58, 0.06) 40%,
    transparent 70%);
  transform: rotate(-15deg) translateX(-100%);
  opacity: 0;
}

#slide4.active .s4-spotlight::before {
  animation: s4SpotlightSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes s4SpotlightSweep {
  0%   { opacity: 0; transform: rotate(-15deg) translateX(-100%); }
  30%  { opacity: 1; }
  100% { opacity: 0.5; transform: rotate(-15deg) translateX(240%); }
}

/* Text content block */
.s4-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40% 0 8%;
}

/* Eyebrow label */
.s4-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(12px);
}

#slide4.active .s4-eyebrow {
  animation: s4FadeUp 0.7s ease 0.6s both;
}

/* Main headline – each word animates separately */
.s4-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.s4-word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  white-space: nowrap;
}

#slide4.active .s4-word:nth-child(1) {
  animation: s4WordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

#slide4.active .s4-word:nth-child(2) {
  animation: s4WordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both;
}

.s4-word--em {
  color: var(--primary);
  text-shadow: 0 0 60px rgba(196, 30, 58, 0.45);
}

@keyframes s4WordReveal {
  0%   { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Animated red divider line */
.s4-divider {
  width: 0;
  height: 3px;
  background: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
}

#slide4.active .s4-divider {
  animation: s4LineGrow 0.6s ease 1.7s both;
}

@keyframes s4LineGrow {
  0%   { width: 0; }
  100% { width: 80px; }
}

/* Subtext */
.s4-sub {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
}

#slide4.active .s4-sub {
  animation: s4FadeUp 0.6s ease 1.9s both;
}

/* CTA button */
.s4-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  width: fit-content;
  opacity: 0;
  transform: translateY(12px);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.35);
}

#slide4.active .s4-cta {
  animation: s4FadeUp 0.6s ease 2.1s both;
}

.s4-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(196, 30, 58, 0.45);
}

@keyframes s4FadeUp {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== SLIDE 5 – CINEMATIC FULLSCREEN (Zoom-In & Blur Reveal) ===== */

#slide5 {
  overflow: hidden;
  background: #050505;
}

/* Full-bleed background with zoom-in */
.s5-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.s5-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.0);
  transition: transform 7s cubic-bezier(0.1, 0.8, 0.2, 1);
  clip-path: inset(0 100% 0 0);
}

#slide5.active .s5-photo {
  transform: scale(1.05);
  animation: s5PhotoReveal 1.6s cubic-bezier(0.77, 0, 0.175, 1) 0.2s both;
}

@keyframes s5PhotoReveal {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Glass pane overlay mirroring screenshot 2 */
.s5-glass-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 18%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px) brightness(1.15) saturate(110%);
  -webkit-backdrop-filter: blur(10px) brightness(1.15) saturate(110%);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 4;
  transform: translateX(100%);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}

#slide5.active .s5-glass-overlay {
  animation: s5GlassReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.8s both;
}

@keyframes s5GlassReveal {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

/* Dark gradient overlay */
.s5-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  z-index: 2;
}

/* Glowing background ambient effect */
.s5-glow {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(196, 30, 58, 0.12) 0%,
    rgba(232, 112, 64, 0.04) 50%,
    transparent 80%);
  z-index: 3;
  opacity: 0;
  transition: opacity 2s ease;
}

#slide5.active .s5-glow {
  opacity: 1;
}

/* Text content block */
.s5-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20% 0 8%;
}

/* Eyebrow */
.s5-eyebrow {
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(15px);
}

#slide5.active .s5-eyebrow {
  animation: s5FadeUp 0.8s ease 0.5s both;
}

/* Headline with Blur Reveal */
.s5-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.s5-line {
  display: block;
  opacity: 0;
  filter: blur(15px);
  transform: scale(0.95) translateY(20px);
  white-space: nowrap;
}

.s5-line:not(.s5-line--em) {
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

#slide5.active .s5-line:nth-child(1) {
  animation: s5BlurReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

#slide5.active .s5-line:nth-child(2) {
  animation: s5BlurReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

#slide5.active .s5-line:nth-child(3) {
  animation: s5BlurReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
}

.s5-line--em {
  color: var(--primary);
  text-shadow: 0 0 50px rgba(196, 30, 58, 0.35);
}

@keyframes s5BlurReveal {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}

/* Divider line */
.s5-divider {
  width: 0;
  height: 3px;
  background: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

#slide5.active .s5-divider {
  animation: s5LineGrow 0.7s ease 1.6s both;
}

@keyframes s5LineGrow {
  0%   { width: 0; }
  100% { width: 80px; }
}

/* Subtext */
.s5-sub {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

#slide5.active .s5-sub {
  animation: s5FadeUp 0.7s ease 1.8s both;
}

/* CTA */
.s5-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  width: fit-content;
  opacity: 0;
  transform: translateY(15px);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.35);
}

#slide5.active .s5-cta {
  animation: s5FadeUp 0.7s ease 2.0s both;
}

.s5-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(196, 30, 58, 0.45);
}

/* Secondary CTA */
.s5-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  width: fit-content;
  opacity: 0;
  transform: translateY(15px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#slide5.active .s5-cta-secondary {
  animation: s5FadeUp 0.7s ease 2.2s both;
}

.s5-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

@keyframes s5FadeUp {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== SLIDE 6 – CINEMATIC FULLSCREEN (Edge Outline & Diagonal Reveal) ===== */

#slide6 {
  overflow: hidden;
  background: #030303;
}

/* Full-bleed background */
.s6-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Dark gradient overlay */
.s6-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 65%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  z-index: 2;
}

/* Prism flare sweep line (Diagonal beam of light) */
.s6-prism-flare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, 
    transparent 45%, 
    rgba(255, 255, 255, 0.15) 48%, 
    var(--primary) 50%, 
    rgba(232, 112, 64, 0.15) 52%, 
    transparent 55%);
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

#slide6.active .s6-prism-flare {
  animation: s6PrismSweep 3.0s cubic-bezier(0.77, 0, 0.175, 1) 0.5s both;
}

@keyframes s6PrismSweep {
  0% { transform: translate(-30%, -30%) rotate(0deg); opacity: 0; }
  20% { opacity: 0.8; }
  60% { opacity: 0.8; }
  100% { transform: translate(30%, 30%) rotate(0deg); opacity: 0; }
}

/* Glowing background ambient effect */
.s6-glow {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(196, 30, 58, 0.12) 0%,
    rgba(232, 112, 64, 0.04) 50%,
    transparent 80%);
  z-index: 3;
  opacity: 0;
  transition: opacity 2s ease;
}

#slide6.active .s6-glow {
  opacity: 1;
}

/* Edge Detection sketch overlay */
.s6-edge-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #030303;
  opacity: 0;
  mix-blend-mode: screen;
}

.s6-edge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: url(#edge-detect);
  transform: scale(1.0);
}

#slide6.active .s6-edge-overlay {
  animation: 
    s6EdgeGlow 3.0s ease-in-out 0.2s both,
    s6EdgeFadeOut 1.5s ease-out 2.8s both;
}

#slide6.active .s6-edge-img {
  animation: s6EdgeZoom 5.0s cubic-bezier(0.1, 0.8, 0.2, 1) both;
}

@keyframes s6EdgeGlow {
  0% { opacity: 0; filter: brightness(0.8) contrast(1.2); }
  25% { opacity: 1; filter: brightness(1.8) contrast(1.5) drop-shadow(0 0 15px rgba(255,255,255,0.4)); }
  75% { opacity: 1; filter: brightness(1.2) contrast(1.2); }
  100% { opacity: 0.8; }
}

@keyframes s6EdgeZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

@keyframes s6EdgeFadeOut {
  0% { opacity: 0.8; }
  100% { opacity: 0; filter: blur(8px) brightness(3); }
}

/* Photo reveal in sync with blueprint */
.s6-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.0);
  transition: transform 7s cubic-bezier(0.1, 0.8, 0.2, 1);
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

#slide6.active .s6-photo {
  transform: scale(1.06);
  animation: 
    s6DiagonalReveal 4.0s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both,
    s6PhotoFadeIn 3.5s ease 0.5s both;
}

@keyframes s6PhotoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes s6DiagonalReveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}


/* Text content block */
.s6-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40% 0 8%;
}

/* Eyebrow */
.s6-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(15px);
}

#slide6.active .s6-eyebrow {
  animation: s6FadeUp 0.8s ease 0.6s both;
}

/* Headline with Tracking Expand */
.s6-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.s6-track {
  display: block;
  opacity: 0;
  letter-spacing: -0.05em;
  transform: translateY(20px);
  white-space: nowrap;
}

#slide6.active .s6-track:nth-child(1) {
  animation: s6TrackingReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

#slide6.active .s6-track:nth-child(2) {
  animation: s6TrackingReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}

.s6-track--em {
  color: var(--primary);
  text-shadow: 0 0 50px rgba(196, 30, 58, 0.35);
}

@keyframes s6TrackingReveal {
  0% {
    opacity: 0;
    letter-spacing: -0.05em;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    letter-spacing: -0.02em;
    transform: translateY(0);
  }
}

/* Divider line */
.s6-divider {
  width: 0;
  height: 3px;
  background: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
}

#slide6.active .s6-divider {
  animation: s6LineGrow 0.7s ease 1.6s both;
}

@keyframes s6LineGrow {
  0%   { width: 0; }
  100% { width: 80px; }
}

/* Subtext */
.s6-sub {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 40px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

#slide6.active .s6-sub {
  animation: s6FadeUp 0.7s ease 1.8s both;
}

/* CTA */
.s6-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  width: fit-content;
  opacity: 0;
  transform: translateY(15px);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.35);
}

#slide6.active .s6-cta {
  animation: s6FadeUp 0.7s ease 2.0s both;
}

.s6-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(196, 30, 58, 0.45);
}

@keyframes s6FadeUp {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== SLIDE 7: INTERACTIVE SHOWCASE ===== */
#slide7 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  overflow: hidden;
}

.s7-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.s7-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  transition: transform 10s ease;
}

#slide7.active .s7-photo {
  transform: scale(1.08);
}

.s7-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 2;
}

.s7-container {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* Left panel content */
.s7-content-panel {
  display: flex;
  flex-direction: column;
}

.s7-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}

.s7-info-block {
  display: none;
  animation: s7FadeInContent 0.5s ease forwards;
}

.s7-info-block.active {
  display: block;
}

@keyframes s7FadeInContent {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s7-headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.s7-headline span {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s7-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  max-width: 600px;
}

/* Services list */
.s7-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.s7-list li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.s7-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 767px) {
  .s7-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Action CTA */
.s7-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
}

.s7-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(196, 30, 58, 0.45);
}

/* Right panel: Glassmorphic interactive cards */
.s7-interactive-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.s7-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Neon card glow border */
.s7-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.s7-card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: translate(-50%, -50%);
}

.s7-card:hover .s7-card-glow,
.s7-card.active .s7-card-glow {
  opacity: 1;
}

.s7-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.s7-card:hover .s7-card-icon,
.s7-card.active .s7-card-icon {
  background: rgba(196, 30, 58, 0.15);
  border-color: rgba(196, 30, 58, 0.3);
  color: var(--primary);
  transform: scale(1.05);
}

.s7-card-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  transition: color 0.3s ease;
}

.s7-card-text p {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Active card state */
.s7-card.active {
  background: rgba(196, 30, 58, 0.06);
  border-color: rgba(196, 30, 58, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(196, 30, 58, 0.15);
}

.s7-card.active::before {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(196, 30, 58, 0.2) 100%);
}

.s7-card.active .s7-card-text h3 {
  color: var(--primary);
}

/* Responsive adjustment for slide 7 */
@media (max-width: 991px) {
  .s7-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .s7-interactive-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .s7-card {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 767px) {
  .s7-interactive-panel {
    flex-direction: column;
  }
  .s7-card {
    flex: 1 1 100%;
  }
  .s7-stats {
    gap: 20px;
  }
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-soft);
  position: relative;
  z-index: 5;
  margin-top: -40px;
}

/* FIRESTA HOLDING badge in About section */
.about-holding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(196, 30, 58, 0.07);
  border: 1px solid rgba(196, 30, 58, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.about-holding-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.about-feature:hover {
  background: var(--white);
  border-color: rgba(196, 30, 58, 0.15);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.06);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-image {
  position: relative;
}

.about-image-card {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 20px 28px;
  background: var(--white);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.about-accent-box .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.about-accent-box .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.service-card:hover {
  background: var(--white);
  border-color: rgba(196, 30, 58, 0.2);
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(196, 30, 58, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon.elektro {
  background: rgba(196, 30, 58, 0.08);
  color: var(--primary);
  box-shadow: 0 0 0 rgba(196, 30, 58, 0);
}

.service-card:hover .service-icon.elektro {
  background: rgba(196, 30, 58, 0.15);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

.service-icon.zeleznice {
  background: rgba(196, 30, 58, 0.08);
  color: var(--primary);
  box-shadow: 0 0 0 rgba(196, 30, 58, 0);
}

.service-card:hover .service-icon.zeleznice {
  background: rgba(196, 30, 58, 0.15);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

.service-icon.pozemni {
  background: rgba(196, 30, 58, 0.08);
  color: var(--primary);
  box-shadow: 0 0 0 rgba(196, 30, 58, 0);
}

.service-card:hover .service-icon.pozemni {
  background: rgba(196, 30, 58, 0.15);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

.service-icon.inzenyrske {
  background: rgba(196, 30, 58, 0.08);
  color: var(--primary);
  box-shadow: 0 0 0 rgba(196, 30, 58, 0);
}

.service-card:hover .service-icon.inzenyrske {
  background: rgba(196, 30, 58, 0.15);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

/* PNG ikony — mix-blend-mode pro bílé pozadí */
.service-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon-img {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.service-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-list li a {
  color: inherit;
  transition: var(--transition);
  text-decoration: none;
}

.service-list li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ===== CERTIFICATES ===== */
.certificates {
  background: var(--bg-soft);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.cert-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  background: var(--white);
  border-color: rgba(196, 30, 58, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.06);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cert-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== REFERENCES ===== */
.references {
  background: var(--bg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 35px rgba(196, 30, 58, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
  transform: translateY(-2px);
}


.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(196, 30, 58, 0.15);
}

.ref-card.hidden {
  display: none;
}

.ref-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ref-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-card:hover .ref-image img {
  transform: scale(1.06);
}

.ref-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(196, 30, 58, 0.1);
}

/* Row of multiple tags on one card */
.ref-tags-row {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-tags-row .ref-tag {
  position: static;
}

/* Red YouTube badge */
.ref-tag--yt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 20, 20, 0.92);
  color: #fff !important;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ref-tag--yt:hover {
  background: rgba(180, 10, 10, 0.97);
  transform: scale(1.06);
}

.ref-body {
  padding: 22px 24px 26px;
}

.ref-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ref-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ref-location svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Video variant of ref-card */
.ref-image--video {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.ref-image--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ref-card--video {
  cursor: default;
}

.ref-card--video:hover {
  transform: translateY(-6px);
}

.ref-tag--video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.88);
  color: #fff;
  border: none;
}

/* Play button overlay for video thumbnail */
.ref-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.ref-card--video:hover .ref-video-play {
  transform: translate(-50%, -50%) scale(1.15);
}

/* YouTube button inside ref-card */
.ref-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 16px;
  background: #FF0000;
  color: #fff;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
}

.ref-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header .section-subtitle {
  margin: 0 auto;
}

.contact-regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.region-card:hover {
  border-color: rgba(196, 30, 58, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.region-header {
  padding: 24px 28px;
  background: rgba(196, 30, 58, 0.03);
  border-bottom: 1px solid var(--border-light);
  min-height: clamp(70px, 10vw, 85px);
  display: flex;
  align-items: center;
}

.region-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.region-header h3 .icon {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.region-body {
  padding: 24px 28px;
}

.contact-person {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-person:last-child {
  border-bottom: none;
}

.contact-person .name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-person .position {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 6px;
  font-style: italic;
}

.contact-person .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-person .info a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.contact-person .info a:hover {
  color: var(--primary);
}

/* Company HQ card */
.hq-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid rgba(196, 30, 58, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.hq-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hq-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hq-details p {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hq-details .icon {
  color: var(--primary);
  width: 20px;
  min-width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hq-map {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hq-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Branch offices side-by-side grid */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.branch-card {
  background: var(--bg-card);
  border: 1px solid rgba(196, 30, 58, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 30, 58, 0.2);
}

.branch-card .hq-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.branch-card .hq-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (max-width: 992px) {
  .branches-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.footer-links a {
  position: relative;
  width: fit-content;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::after {
  width: 100%;
}

.social-link {
  background: rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
  color: var(--white) !important;
  transform: translateY(-5px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link[aria-label="LinkedIn"]:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex !important; /* Force visibility */
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 1 !important; /* Ensure visibility if fade-in fails */
  transform: none !important;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-iso {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-iso span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
    overflow: hidden; /* Prevent accent box from causing horizontal scroll */
    padding-bottom: 20px;
    margin-bottom: 10px;
  }

  .about-accent-box {
    right: 0;
    bottom: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hq-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important; /* Force white background */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998; /* Extremely high */
    padding: 60px 24px;
    margin: 0;
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Hide background elements when menu is open */
  body.menu-open .nav-logo,
  body.menu-open .scroll-progress {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px 24px;
    color: var(--text-primary);
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
  }

  .nav-links a.active {
    background: rgba(196, 30, 58, 0.05);
    border-color: rgba(196, 30, 58, 0.2);
    color: var(--primary);
  }

  .nav-cta {
    margin-top: 10px;
    width: 100% !important;
    max-width: 320px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 9999; /* Above nav-links */
    position: fixed;
    top: 25px;
    right: 24px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-regions {
    grid-template-columns: 1fr;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .hq-card {
    padding: 24px;
    gap: 24px;
  }

  .hq-map {
    height: 200px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Disable or simplify heavy animations on very small screens */
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card:hover .service-icon {
    transform: none;
  }
}

/* ===== LOXONE ===== */
.loxone-label {
  color: #61b13b !important;
}
.loxone-label::before {
  background: #61b13b !important;
}

/* Loxone Banner Card */
.loxone-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(97, 177, 59, 0.04) 0%, rgba(97, 177, 59, 0.01) 100%);
  border: 1px solid rgba(97, 177, 59, 0.15);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  overflow: hidden;
}

.loxone-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.loxone-shape {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(97, 177, 59, 0.12);
}

.loxone-shape-1 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  animation: loxoneFloat 8s ease-in-out infinite;
}

.loxone-shape-2 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  right: 120px;
  border-color: rgba(97, 177, 59, 0.08);
  animation: loxoneFloat 10s ease-in-out infinite reverse;
}

.loxone-shape-3 {
  width: 80px;
  height: 80px;
  top: 20px;
  right: 240px;
  background: rgba(97, 177, 59, 0.03);
  animation: loxoneFloat 6s ease-in-out infinite 1s;
}

@keyframes loxoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.loxone-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.loxone-banner-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  margin-top: -8px;
}

.loxone-banner-left {
  flex: 1;
}

.loxone-banner-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 540px;
}

.loxone-banner-right {
  flex-shrink: 0;
}

.loxone-banner-logo-wrap {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(97, 177, 59, 0.15);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(97, 177, 59, 0.06);
}

.loxone-banner-logo-wrap img {
  max-width: 180px;
  height: auto;
}

.btn-loxone {
  background: transparent;
  color: #61b13b;
  border: 1px solid #61b13b;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-loxone svg {
  transition: transform 0.3s ease;
}
.btn-loxone:hover {
  background: #61b13b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(97, 177, 59, 0.3);
}
.btn-loxone:hover svg {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .loxone-banner {
    padding: 40px 24px;
    text-align: center;
  }
  .loxone-banner-content {
    flex-direction: column;
    gap: 32px;
  }
  .loxone-banner-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .loxone-banner-logo-wrap {
    padding: 24px;
    max-width: 200px;
    margin: 0 auto;
  }
  .loxone-banner-logo-wrap img {
    max-width: 100%;
  }
  .loxone-banner-actions {
    justify-content: center;
    margin-top: 32px;
  }
  .loxone-shape-1, .loxone-shape-2, .loxone-shape-3 {
    display: none;
  }
}

.loxone-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease;
}

.loxone-content.expanded {
  max-height: 2500px;
  opacity: 1;
  padding-top: 20px;
}

.loxone-showcase {
  background: linear-gradient(135deg, rgba(97, 177, 59, 0.04) 0%, rgba(97, 177, 59, 0.01) 100%);
  border: 1px solid rgba(97, 177, 59, 0.15);
  padding: 40px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.loxone-intro {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.loxone-intro-text {
  flex: 1;
}

.loxone-intro-text h3 {
  color: #61b13b;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.loxone-intro-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.loxone-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(97, 177, 59, 0.1);
}

.loxone-feature-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(97, 177, 59, 0.08);
}

.loxone-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(97, 177, 59, 0.1);
  border-color: rgba(97, 177, 59, 0.25);
}

.loxone-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(97, 177, 59, 0.1);
  color: #61b13b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
}

.loxone-feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.loxone-feature-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .loxone-intro {
    flex-direction: column;
  }
  .loxone-features {
    grid-template-columns: 1fr;
  }
  .loxone-showcase {
    padding: 28px 20px;
  }
}

/* Loxone CTA Button */
.btn-loxone-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #61b13b;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: none;
}
.btn-loxone-cta:hover {
  background: #4e9a2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(97, 177, 59, 0.3);
}
.btn-loxone-cta svg {
  transition: transform 0.3s ease;
}
.btn-loxone-cta:hover svg {
  transform: translateX(3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: rgba(196, 30, 58, 0.9);
  color: var(--white);
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(196, 30, 58, 0.4);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

/* ===== CERTIFICATE PAGE STYLES ===== */
.subpage-main {
  padding-top: clamp(80px, 12vw, 120px);
}

.cert-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
  justify-content: center;
}

@media (min-width: 1200px) {
  .cert-page-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-view-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.cert-view-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.cert-view-card.placeholder-only {
  cursor: default;
}

.cert-view-card.placeholder-only:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.cert-view-card.placeholder-only:hover .cert-view-image img {
  transform: none;
}


.cert-view-image {
  position: relative;
  aspect-ratio: 1 / 1.414; /* Standard A4 aspect ratio */
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.cert-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: var(--transition-slow);
}

.cert-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(196, 30, 58, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.cert-view-card:hover .cert-view-overlay {
  opacity: 1;
}

.cert-view-card:hover .cert-view-image img {
  transform: scale(1.05);
}

.cert-view-overlay span {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cert-view-info {
  padding: 24px 16px;
  text-align: center;
}

.cert-view-info h3 {
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.cert-view-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.cert-pdf-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
  padding-bottom: 2px;
  transition: var(--transition);
}

.cert-pdf-link:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}


/* Documents Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.doc-item:hover {
  border-color: var(--primary);
  background: rgba(196, 30, 58, 0.02);
  transform: translateX(5px);
}

.doc-icon {
  width: 56px;
  height: 56px;
  background: rgba(196, 30, 58, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.doc-text {
  flex: 1;
}

.doc-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.doc-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.doc-action {
  color: var(--text-muted);
  transition: var(--transition);
}

.doc-item:hover .doc-action {
  color: var(--primary);
  transform: translateY(2px);
}

/* Lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.cert-lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.cert-lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.cert-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cert-lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox-close:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

@media (max-width: 640px) {
  .cert-lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 992px) {
  .cert-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-page-grid {
    grid-template-columns: 1fr;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== PROJECT DETAIL PAGES ===== */
.project-hero {
  padding-bottom: 80px;
}

.project-featured {
  margin-top: -60px;
  margin-bottom: 80px;
  position: relative;
  z-index: 5;
}

.featured-img-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  background: var(--white);
  aspect-ratio: 16 / 9;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 32px; 
  background: var(--white); 
  padding: 40px; 
  border-radius: var(--radius-md); 
  box-shadow: var(--shadow-md);
  margin: 0 auto 60px auto;
  max-width: 900px;
}

.info-item span {
  display: block; 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color: var(--text-muted); 
  margin-bottom: 8px;
}

.info-item strong {
  font-size: 1.1rem; 
  color: var(--text-primary);
}

.project-description {
  margin: 0 auto;
  max-width: 900px;
}

.gallery-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-md); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  cursor: pointer; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-featured {
    margin-top: -40px;
    margin-bottom: 40px;
  }
  
  .featured-img-wrap {
    aspect-ratio: 4 / 3;
  }
  
  .project-info-grid {
    padding: 30px 24px;
  }
}

/* ===== HERO SLIDER – DOT NAVIGATION ===== */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  pointer-events: auto;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.3);
}

.hero-dot:hover:not(.active) {
  background: rgba(196, 30, 58, 0.4);
  border-color: var(--primary);
}

/* Swipe hint visible only on touch devices */
@media (hover: none) and (pointer: coarse) {
  .hero-dots {
    bottom: 20px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== HERO SLIDER RESPONSIVENESS ===== */
@media (max-width: 991px) {
  /* --- HERO SECTION: Dynamic height so active slide can grow --- */
  #hero {
    height: auto !important;
    min-height: 100svh;
    overflow: visible;
  }

  #hero .hero-slides-wrapper {
    position: relative;
    height: auto !important;
  }

  /* All inactive slides stay absolutely hidden */
  .hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
  }

  /* The active slide flows with content (relative) */
  .hero-slide.active {
    position: relative !important;
    height: auto !important;
    min-height: 100svh;
  }

  /* Arrows: smaller, tucked closer to edges */
  #hero .hero-arrow {
    width: 40px;
    height: 40px;
  }
  #hero .hero-arrow--prev { left: 8px; }
  #hero .hero-arrow--next { right: 8px; }

  /* ---- SLIDE 1 & 2: Split layout → vertical stack ---- */
  .hero-slide .hero-panel-left {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-slide .hero-panel-content {
    padding: 100px 28px 36px !important;
  }

  .hero-slide .hero-panel-right {
    width: 100% !important;
    height: 260px !important;
    flex: none !important;
    transform: none !important;
  }

  /* ---- SLIDE 2: Sector grid ---- */
  .hero-panel-right--grid {
    height: auto !important;
    flex: none !important;
  }

  .hero-grid-sectors {
    height: 260px !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
  }

  .hero-sector-card {
    padding: 20px !important;
  }

  .hero-sector-content h3 {
    font-size: 0.9rem !important;
  }

  .hero-sector-icon {
    width: 24px !important;
    height: 24px !important;
  }

  /* ---- SLIDE 3: Specializations ---- */
  #slide3 {
    flex-direction: column !important;
  }

  #slide3 .s3-white-panel {
    width: 100% !important;
    min-width: 0 !important;
    padding: 100px 28px 36px !important;
  }

  #slide3 .s3-photo-panel {
    width: 100% !important;
    height: 200px !important;
    flex: none !important;
  }

  #slide3 .s3-photo-fade {
    width: 100% !important;
    height: 80px;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    background: linear-gradient(to bottom, #ffffff, transparent) !important;
  }

  #slide3 .s3-piktogramy-grid {
    gap: 16px 24px !important;
  }

  #slide3 .s3-pikto-circle {
    width: 56px !important;
    height: 56px !important;
  }

  #slide3 .s3-pikto-circle img {
    width: 26px !important;
    height: 26px !important;
  }

  /* ---- SLIDES 4, 5, 6: Cinematic fullscreen ---- */
  #slide4 .s4-content,
  #slide5 .s5-content,
  #slide6 .s6-content {
    padding: 100px 28px 60px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent horizontal overflow from nowrap headings */
  #slide4 .s4-word,
  #slide5 .s5-line,
  #slide6 .s6-track {
    white-space: normal !important;
  }

  #slide4 .s4-headline,
  #slide5 .s5-headline,
  #slide6 .s6-headline {
    font-size: clamp(2rem, 7vw, 3.2rem) !important;
    margin-bottom: 20px !important;
  }

  #slide4 .s4-sub,
  #slide5 .s5-sub,
  #slide6 .s6-sub {
    margin-bottom: 24px !important;
    font-size: 0.8rem !important;
  }

  /* ---- SLIDE 7: Interactive showcase ---- */
  #slide7 .s7-container {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
    gap: 24px !important;
  }

  #slide7 .s7-headline {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
  }

  #slide7 .s7-description {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

  #slide7 .s7-interactive-panel {
    gap: 12px !important;
  }

  #slide7 .s7-card {
    padding: 14px 18px !important;
    gap: 14px !important;
  }
}

@media (max-width: 576px) {
  /* ---- HERO SLIDES: Extra small phones ---- */
  .hero-slide .hero-panel-content {
    padding: 88px 20px 28px !important;
  }

  .hero-slide .hero-panel-left .hero-heading {
    font-size: clamp(2.2rem, 10vw, 2.8rem) !important;
  }

  .hero-slide .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #hero .hero-arrow {
    display: none !important;
  }

  #slide4 .s4-headline,
  #slide5 .s5-headline,
  #slide6 .s6-headline {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }

  #slide7 .s7-list {
    grid-template-columns: 1fr !important;
  }
}

/* ===== CONTACT PERSON HIGHLIGHT PROTOTYPE ===== */
@keyframes contactHighlight {
  0% {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  15% {
    background-color: rgba(218, 37, 28, 0.12);
    box-shadow: 0 0 15px rgba(218, 37, 28, 0.25);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--radius-sm);
  }
  85% {
    background-color: rgba(218, 37, 28, 0.12);
    box-shadow: 0 0 15px rgba(218, 37, 28, 0.25);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--radius-sm);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }
}

.contact-person.highlight-flash {
  animation: contactHighlight 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}