/* Layout */

/* Hlavička & Navigace */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(20, 25, 22, 0.05);
  background: rgba(255, 255, 255, 0.97);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo picture {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

@media (max-width: 640px) {
  .brand-logo img {
    height: 44px;
  }
}

/* Navigační menu */
.nav-menu {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding-block: 6px;
  }

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

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
  }

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

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

.header-cta-btn {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta-btn {
    display: inline-flex;
  }
}

.header-phone {
  display: none;
}

@media (min-width: 1200px) {
  .header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
  }
}

/* Mobilní hamburger tlačítko */
.nav-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle-btn {
    display: none;
  }
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobilní menu panel */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-hover);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* HERO SEKCE */
.hero-section {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background: var(--bg);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 55fr 45fr;
    gap: 56px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 12px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-dot {
  color: var(--accent);
}

/* Hero fotografie a trust karta */
.hero-photo-wrapper {
  position: relative;
  padding-top: 130px; /* prostor pro hlavu vystupující nad kartu */
  display: flex;
  justify-content: center;
}

/* Architektonický půdorys za kartou */
.hero-blueprint-behind {
  position: absolute;
  top: 15px;
  right: -50px;
  width: 125%;
  height: 95%;
  background-image: url('../assets/images/pudorys-bg.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* Tmavě zelená karta ve tvaru PENB energetické šipky */
.hero-card-backdrop {
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  z-index: 1;
  filter: drop-shadow(0 28px 52px rgba(18, 34, 28, 0.34)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
}

.hero-arrow-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Kontejner transparentní fotografie */
.hero-popout-container {
  position: relative;
  z-index: 2;
  margin-top: -130px; /* vytáhne hlavu nad horní hranu karty */
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-popout-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.38));
}

/* Plovoucí razítko AES */
.hero-float-stamp {
  position: absolute;
  top: 95px;
  right: 15px;
  z-index: 3;
  width: 95px;
  height: 95px;
  filter: drop-shadow(0 12px 24px rgba(15, 30, 24, 0.38));
  transform: rotate(4deg);
  pointer-events: none;
}

.hero-float-stamp picture,
.hero-float-stamp img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Plovoucí badge 800+ zpracovaných průkazů */
.hero-float-badge {
  position: absolute;
  bottom: 26px;
  left: -20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  box-shadow: 0 16px 36px -8px rgba(18, 34, 28, 0.24), 0 4px 12px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #b8492e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(216, 93, 63, 0.35);
}

.hero-badge-content {
  display: flex;
  flex-direction: column;
}

.hero-badge-val {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-badge-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Floating animace */
@keyframes hero-stamp-float {
  0%, 100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes hero-badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-stamp,
  .hero-float-badge {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-photo-wrapper {
    padding-top: 90px;
  }
  .hero-card-backdrop {
    top: 90px;
  }
  .hero-blueprint-behind {
    top: 0;
    right: -20px;
    width: 120%;
    opacity: 0.14;
  }
  .hero-popout-container {
    margin-top: -90px;
    width: 94%;
  }
  .hero-float-stamp {
    top: 70px;
    right: 8px;
    width: 72px;
    height: 72px;
  }
  .hero-float-badge {
    bottom: 12px;
    left: 8px;
    padding: 8px 16px 8px 10px;
  }
  .hero-badge-icon {
    width: 32px;
    height: 32px;
  }
  .hero-badge-val {
    font-size: 15px;
  }
  .hero-badge-lbl {
    font-size: 10px;
  }
}

/* Sekce: Co je PENB & Split grid */
.feature-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.feature-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.feature-image-card.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.feature-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sekce FAQ layout (2 sloupce: vlevo nadpis a kontaktní info, vpravo akordeon) */
.faq-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .faq-section-grid {
    grid-template-columns: 38fr 62fr;
    gap: 64px;
  }
}

/* O mně sekce */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 42fr 58fr;
    gap: 64px;
  }
}

.about-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-badges-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.about-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.about-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--technical);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sekce Formuláře layout */
.form-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .form-section-grid {
    grid-template-columns: 40fr 60fr;
    gap: 64px;
  }
}

.form-info-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

/* Osobní karta specialisty s fotografií v kruhu */
.form-specialist-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.specialist-avatar-circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18, 34, 28, 0.12);
  border: 3px solid #ffffff;
}

.specialist-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specialist-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.specialist-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.specialist-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

.specialist-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--technical);
}

.specialist-quote {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 3px;
}

@media (max-width: 420px) {
  .form-specialist-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
}

.form-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.form-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--technical);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobilní Sticky CTA Lišta */
.mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  background: rgba(37, 61, 53, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform var(--transition-normal);
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.mobile-sticky-cta .btn {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
}

.mobile-phone-call-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  text-decoration: none;
}

/* Patička webu */
.site-footer {
  background: var(--technical);
  color: #ffffff;
  padding-top: clamp(80px, 8.8vw, 120px);
  padding-bottom: clamp(60px, 7vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 110px; /* dodatečný prostor kvůli mobilní sticky CTA liště */
  }
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.4fr;
    gap: 48px;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  transition: color var(--transition-fast);
}

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

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-author:hover {
  color: #ffffff;
}

.footer-author img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.82;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-author:hover img {
  opacity: 1;
  transform: translateY(-1px);
}
