/* ==========================================================================
   Instalatérství Vojtěch Nečas - Modern & Fast Stylesheet
   Pure Vanilla CSS - Replaces Divi builder with high performance
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #003559;
  --color-primary-dark: #00243d;
  --color-primary-light: #064b7a;
  --color-accent: #FC7502;
  --color-accent-hover: #e06400;
  --color-accent-light: #ff8c26;
  --color-tan: #E3BB93;
  --color-tan-dark: #cda277;
  --color-tan-light: #f7e8db;
  --color-emergency-bg: rgba(152, 185, 211, 0.92);
  --color-bg-light: #ededed;
  --color-bg-white: #ffffff;
  --color-text-dark: #1f2937;
  --color-text-muted: #4b5563;
  --color-text-light: #ffffff;
  --color-border: #e2e8f0;

  --font-brand: 'Bungee', cursive, sans-serif;
  --font-main: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-elevated: 6px 6px 18px rgba(0, 0, 0, 0.28);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  --header-height: 80px;
  --container-max: 1180px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

section[id], footer[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(0, 53, 89, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  height: 70px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.site-header.scrolled .logo-img {
  height: 48px;
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.2;
  letter-spacing: 0.5px;
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-text span {
  color: var(--color-accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn-contact {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-tan);
  color: var(--color-text-light) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn-contact:hover {
  background-color: var(--color-accent);
  color: var(--color-text-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 117, 2, 0.35);
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  color: var(--color-text-light);
  z-index: 1010;
  transition: all 0.2s ease;
}

.mobile-toggle:hover,
.mobile-toggle:active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  background-color: #003559;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 65px);
  padding-bottom: 110px;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/postava-uvodni-fotka-png.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 53, 89, 0.94) 0%, rgba(0, 53, 89, 0.8) 42%, rgba(0, 53, 89, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-bg-photo {
    background-position: 72% center;
  }
  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(0, 53, 89, 0.92) 0%, rgba(0, 53, 89, 0.85) 55%, rgba(0, 53, 89, 0.7) 100%);
  }
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  color: var(--color-text-light);
  max-width: 630px;
  padding: 30px 0;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-pill-badge .badge-icon {
  color: var(--color-accent);
  font-weight: 900;
  font-size: 14px;
}

.hero-tag {
  font-family: var(--font-brand);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.hero-tag span {
  color: var(--color-accent);
}

.hero-name {
  font-family: var(--font-brand);
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1.05;
  color: var(--color-text-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-subtitle strong {
  font-weight: 700;
  color: var(--color-text-light);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-size: 17px;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elevated);
  transition: var(--transition-normal);
  letter-spacing: 0.5px;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.hero-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(252, 117, 2, 0.45);
}

.hero-cta:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition-fast);
}

.hero-cta-secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   5. Benefits Section ("Očekávejte")
   -------------------------------------------------------------------------- */
.benefits-section {
  background-color: var(--color-bg-light);
  padding: 110px 0 120px;
  position: relative;
}

.benefits-section .section-title {
  text-align: center;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.benefit-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-tan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 53, 89, 0.08) 0%, rgba(227, 187, 147, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--color-primary);
  transition: var(--transition-normal);
}

.benefit-card:hover .benefit-icon-wrap {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-light);
  transform: scale(1.08) rotate(4deg);
}

.benefit-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.benefit-title {
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
  text-align: center;
}

.benefit-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  list-style: none;
  padding: 0;
}

.benefit-list li {
  position: relative;
  padding-left: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.benefit-list li::before {
  display: none;
}

/* --------------------------------------------------------------------------
   6. Services Section ("Instalatérské služby")
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(0, 53, 89, 0.88) 0%, rgba(0, 53, 89, 0.92) 100%), url('images/plumber-14.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-text-light);
  padding-top: 115px;
  padding-bottom: 125px;
}

.section-divider-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  height: clamp(40px, 4.5vw, 56px);
  pointer-events: none;
  z-index: 2;
}

.section-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
}

.services-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 55px;
}

.services-title {
  font-family: var(--font-main);
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 700;
  color: #ededed;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.services-intro {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: #d1d5db;
  background-color: rgba(0, 36, 61, 0.5);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.services-intro strong {
  color: #ffffff;
  font-weight: 700;
}

.service-rows {
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition-normal);
}

.service-row:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(252, 117, 2, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@media (min-width: 820px) {
  .service-row {
    grid-template-columns: 1fr 1.2fr;
    padding: 32px;
  }
}

.service-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 1 / 1;
  max-height: 380px;
  position: relative;
}

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

.service-row:hover .service-img {
  transform: scale(1.04);
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-card-title {
  font-family: var(--font-main);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #ededed;
  position: relative;
  padding-bottom: 12px;
}

.service-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.service-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  margin-top: 3px;
}

.check-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.check-text {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  color: #ededed;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Emergency Banner ("Instalatérská pohotovost")
   -------------------------------------------------------------------------- */
.emergency-section {
  background-color: var(--color-bg-light);
  padding: clamp(80px, 9vw, 120px) 0;
}

.emergency-card {
  background-color: var(--color-emergency-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 860px) {
  .emergency-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.emergency-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.emergency-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  animation: pulseBadge 3s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(252, 117, 2, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(252, 117, 2, 0);
  }
}

.emergency-icon-wrap svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.emergency-text-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emergency-title {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.emergency-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--color-primary);
  line-height: 1.45;
}

.emergency-desc strong {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.emergency-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 17px;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elevated);
  transition: var(--transition-normal);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.emergency-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(252, 117, 2, 0.4);
}

/* --------------------------------------------------------------------------
   8. About Section ("O mně")
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(90deg, rgba(0, 53, 89, 0.92) 20%, rgba(0, 53, 89, 0.75) 60%, rgba(0, 53, 89, 0.45) 100%), url('images/2699D876-C095-4D7F-8478-8CF2207D4ABE_1_201_a.jpeg');
  background-size: cover;
  background-position: right center;
  color: var(--color-text-light);
  padding: 110px 0 120px;
}

.about-content {
  max-width: 720px;
}

.about-title {
  font-family: var(--font-main);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.about-text {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-text strong {
  color: #ffffff;
  font-weight: 700;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.about-badge {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.about-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

/* --------------------------------------------------------------------------
   9. Photo Gallery Section ("Fotogalerie")
   -------------------------------------------------------------------------- */
.gallery-section {
  background-color: var(--color-bg-light);
  padding: 110px 0 120px;
}

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

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

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 6px 6px 18px 0px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  background-color: #d8d8d8;
  transition: var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 53, 89, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 20, 36, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-title {
  margin-top: 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 53, 89, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2010;
}

.lightbox-btn:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* --------------------------------------------------------------------------
   10. Contact Form Section ("Potřebujete instalatéra? Napište.")
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  background-color: var(--color-tan);
  padding-top: 105px;
  padding-bottom: 115px;
}

.contact-container {
  max-width: 780px;
  margin: 0 auto;
}

.contact-header {
  text-align: left;
  margin-bottom: 30px;
}

.contact-title {
  font-family: var(--font-main);
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.2;
  color: var(--color-primary);
}

.contact-title strong {
  font-weight: 800;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0, 53, 89, 0.15);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-text-dark);
  font-size: 15px;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 53, 89, 0.12);
}

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

.contact-submit-btn {
  align-self: flex-start;
  font-family: var(--font-brand);
  font-size: 16px;
  text-transform: uppercase;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.contact-submit-btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.contact-privacy-note {
  font-size: 13px;
  line-height: 1.5;
  color: #4a3b2c;
  margin-top: 14px;
}

.form-status-message {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
}

.form-status-message.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-status-message.loading {
  display: block;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Section divider bottom */
.section-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  height: clamp(40px, 4.5vw, 54px);
  pointer-events: none;
  z-index: 2;
}

.section-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
}

/* --------------------------------------------------------------------------
   11. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  background-image: linear-gradient(360deg, #001f35 0%, rgba(0, 53, 89, 0.98) 100%);
  color: var(--color-text-light);
  padding: 85px 0 45px;
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 36px;
}

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

.footer-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-tan);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
  color: var(--color-text-light);
}

.footer-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.footer-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-tan);
  transition: var(--transition-fast);
}

.footer-card:hover .footer-card-icon {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(252, 117, 2, 0.1);
}

.footer-card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-card-content {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.footer-card-content a {
  color: #ffffff;
  display: block;
}

.footer-card-content a:hover {
  color: var(--color-accent);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-legal p {
  margin-bottom: 8px;
}

.footer-bottom-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: center;
  }
}

.copyright {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-tan);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  transition: var(--transition-fast);
}

@media (min-width: 768px) {
  .back-to-top {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.back-to-top:hover {
  color: var(--color-accent);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   12. Floating Quick Call Button (Mobile)
   -------------------------------------------------------------------------- */
.floating-call-btn {
  display: none;
}

@media (max-width: 768px) {
  .floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(252, 117, 2, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 990;
    transition: var(--transition-normal);
  }

  .floating-call-btn:hover,
  .floating-call-btn:active {
    transform: scale(1.08);
  }

  .floating-call-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
  }
}

/* --------------------------------------------------------------------------
   13. Responsive Styles & Modern Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    height: 72px;
  }

  .site-header.scrolled {
    height: 64px;
  }

  .logo-img {
    height: 48px;
  }

  .site-header.scrolled .logo-img {
    height: 42px;
  }

  @media (min-width: 380px) {
    .logo-text {
      display: block;
      font-size: 13px;
      line-height: 1.15;
    }
  }
}

/* --------------------------------------------------------------------------
   14. Mobile Drawer & Backdrop (Independent Component)
   -------------------------------------------------------------------------- */
@media (min-width: 861px) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 99999;
  box-shadow: -10px 0 40px rgba(0, 35, 60, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.drawer-brand-text strong {
  font-family: var(--font-brand);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.drawer-brand-text span {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close:hover,
.drawer-close:active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Drawer Nav Links */
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.drawer-link-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.drawer-link:hover,
.drawer-link:active,
.drawer-link.active {
  background-color: #f0f7ff;
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 18px;
}

.drawer-link-emergency {
  color: #dc2626 !important;
}

.drawer-link-emergency:hover {
  background-color: #fef2f2 !important;
  border-left-color: #dc2626 !important;
}

.drawer-link-contact {
  margin-top: 8px;
  background-color: var(--color-primary);
  color: #ffffff !important;
}

.drawer-link-contact:hover {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

/* Drawer Bottom Actions (Call & Info) */
.drawer-actions {
  margin-top: auto;
  padding: 18px 20px 28px;
  background-color: #fafafa;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: #ffffff !important;
  font-family: var(--font-brand);
  font-size: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(252, 117, 2, 0.35);
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-call-btn:hover,
.drawer-call-btn:active {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.drawer-meta-info {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.drawer-meta-info strong {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   15. Mobilní optimalizace sekcí (telefony pod 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Úvodní sekce - perfektní odsazení a čitelnost */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 52px;
  }

  .hero-content {
    padding: 12px 0 24px;
  }

  .hero-pill-badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-tag {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .hero-name {
    font-size: 38px;
    line-height: 1.05;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* Benefity */
  .benefits-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 36px;
  }

  .benefit-card {
    padding: 26px 20px;
  }

  /* Služby */
  .services-section {
    padding: 90px 0 95px;
    background-attachment: scroll;
  }

  .services-title {
    font-size: 28px;
  }

  .service-rows {
    gap: 40px;
  }

  .service-row {
    padding: 22px 18px;
    gap: 22px;
    border-radius: var(--radius-lg);
  }

  .service-img-wrap {
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }

  .service-card-title {
    font-size: 20px;
  }

  .checklist-item {
    gap: 10px;
  }

  .check-text {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Pohotovost - přehledně na střed na mobilu */
  .emergency-section {
    padding: 45px 0;
  }

  .emergency-card {
    padding: 28px 20px;
    text-align: center;
    align-items: center;
  }

  .emergency-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .emergency-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto;
  }

  .emergency-icon-wrap svg {
    width: 36px;
    height: 36px;
  }

  .emergency-title {
    font-size: 22px;
  }

  .emergency-desc {
    font-size: 14px;
  }

  .emergency-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    margin-top: 8px;
  }

  /* O mně */
  .about-section {
    padding: 80px 0 90px;
    background-image: linear-gradient(180deg, rgba(0, 53, 89, 0.95) 0%, rgba(0, 53, 89, 0.92) 100%), url('images/2699D876-C095-4D7F-8478-8CF2207D4ABE_1_201_a.jpeg');
  }

  .about-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 15px;
    gap: 16px;
  }

  .about-badges {
    gap: 8px;
    margin-top: 24px;
  }

  .about-badge {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* Fotogalerie */
  .gallery-section {
    padding: 80px 0 90px;
  }

  .gallery-grid {
    gap: 12px;
  }

  /* Lightbox zavírací tlačítko pohodlné pro prst */
  .lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 2025;
  }

  .lightbox-img {
    max-height: 72vh;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  /* Kontaktní formulář */
  .contact-section {
    padding-top: 80px;
    padding-bottom: 95px;
  }

  .contact-title {
    font-size: 26px;
    margin-bottom: 26px;
  }

  .contact-submit-btn {
    width: 100%;
    align-self: stretch;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Patička */
  .site-footer {
    padding: 65px 0 35px;
  }

  .footer-card {
    padding: 20px 16px;
  }
}
