/* =========================================
   1. RESET A PROMĚNNÉ
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color-main: #000;
  --color-yellow: #ff6b35;
  --color-grey: #b3b3b3;
}

html,
body {
  overflow-x: hidden;
}

section,
.footer-container,
.services-container,
.gallery-block {
  padding-left: 20px;
  padding-right: 20px;
}

.hero-content,
.about-container {
  width: 100%;
}

.why-card,
.service-card,
.testimonial-card {
  min-width: 0;
}

/* =========================================
   2. ZÁKLADNÍ STYLY TĚLA (BODY)
   ========================================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0c;
  color: white;
}

/* Background overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

/* Background image container */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(./images/back2.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* =========================================
   3. HLAVIČKA A NAVIGACE
   ========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  gap: 5px;
}

.logo-button span {
  color: var(--color-yellow);
}

.logo-button svg {
  stroke: var(--color-yellow);
  fill: none;
  stroke-width: 2;
  margin-right: 10px;
}

.nav-list {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-grey);
  font-weight: 500;
  transition: 0.3s;
}

.nav-list a:hover {
  color: white;
}

/* =========================================
   4. TLAČÍTKA A ODZNAKY
   ========================================= */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: var(--color-yellow);
  color: black;
}

.primary:hover {
  background: var(--color-yellow);
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--color-yellow);
  color: white;
}

.secondary:hover {
  border-color: var(--bg-color-main);
}

.call-btn {
  background: var(--color-yellow);
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
}

.btn.emergency-call {
  display: flex;
  gap: 10px;
  background: var(--color-yellow);
  color: white;
  justify-content: center;
  font-size: 18px;
  padding: 18px 32px;
  box-shadow: 0 10px 20px rgba(255, 62, 62, 0.3);
}

.btn.emergency-call:hover {
  background: #e63535;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 62, 62, 0.4);
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--color-yellow);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 30px;
  border: 1px solid var(--color-yellow);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--color-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 107, 53, 0.4);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(255, 107, 53, 0);
  }
}

/* =========================================
   5. HERO SEKCE (Hlavní strana)
   ========================================= */
.hero {
  padding: 14% 5%;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--color-yellow);
}

.hero p {
  line-height: 1.6;
}

.hero-subtext {
  font-size: 20px;
  max-width: 550px;
  margin-bottom: 10px;
}

.hero-location {
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-buttons .btn {
  width: 100%;
}

/* =========================================
   WHY US SEKCE
   ========================================= */

.why-us {
  padding: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-header {
  text-align: center;
  margin-bottom: 50px;
}

.why-header h2 {
  font-size: 36px;
}

.why-header span {
  color: var(--color-yellow);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.why-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 26px;
  margin-bottom: 15px;
}

.why-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.why-card p {
  color: #9ca3af;
  line-height: 1.6;
}

/* CTA */

.why-cta {
  text-align: center;
  margin-top: 50px;
}

.why-cta p {
  margin-bottom: 20px;
  color: #d1d5db;
}

.why-cta a {
  display: block;
  margin: 0 auto;
  max-width: 35%;
}

/* =========================================
   ABOUT SEKCE
   ========================================= */

.about {
  padding: 40px 30px;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.about span {
  color: var(--color-yellow);
}

.about p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-location {
  margin-top: 25px;
  color: var(--color-yellow);
  font-weight: 600;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 720px) {
  .branding {
    padding: 60px 20px;
  }

  .why-us {
    padding: 60px 20px;
  }

  .about {
    padding: 60px 20px;
  }

  .why-cta a {
    max-width: 80%;
  }
}

/* Fade In */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.branding,
.why-header,
.about-content {
  animation: fadeUp 0.8s ease forwards;
}

/* Cards animation */

.why-card {
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.why-card:nth-child(1) {
  animation-delay: 0.1s;
}
.why-card:nth-child(2) {
  animation-delay: 0.2s;
}
.why-card:nth-child(3) {
  animation-delay: 0.3s;
}
.why-card:nth-child(4) {
  animation-delay: 0.4s;
}
.why-card:nth-child(5) {
  animation-delay: 0.5s;
}
.why-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover jemné glow */

.branding h2 span,
.why-header span,
.about span {
  transition: 0.3s ease;
}

.branding:hover h2 span,
.why-header:hover span,
.about:hover span {
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

/* CTA pulse */

.why-cta .btn {
  position: relative;
}

.why-cta .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 rgba(255, 107, 53, 0.5);
  animation: pulseCTA 2.5s infinite;
}

@keyframes pulseCTA {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* Jemný hover lift pro sekce */

.branding,
.about {
  transition: 0.4s ease;
}

.branding:hover,
.about:hover {
  transform: translateY(-2px);
}

/* =========================================
   6. STATISTIKY
   ========================================= */

.stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 40px 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: bold;
  color: var(--color-yellow);
}

.stat-text {
  color: #9ca3af;
  margin-top: 5px;
}

/* =========================================
   7. SLUŽBY (Podstránka a Grid)
   ========================================= */

.page-header {
  padding: 20px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.page-header h1 span {
  color: var(--color-yellow);
}

.page-header p {
  color: #9ca3af;
  font-size: 20px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: rgba(25, 25, 28, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow);
}

.service-card.highlight {
  border: 1px solid rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.05);
}

.service-icon {
  margin-bottom: 20px;
  background: rgba(255, 107, 53, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-yellow);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 15px;
  color: #ffffff;
}

.service-card p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.card-footer strong {
  display: block;
  font-size: 13px;
  color: #ff6b35;
  margin-bottom: 10px;
}

.service-card .btn-link,
.card-footer .btn-link {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  transition: 0.3s;
}

.service-card .btn-link:hover {
  color: #ffffff;
  gap: 5px;
}

/* =========================================
   8. TESTIMONIALS (Recenze)
   ========================================= */
.testimonials {
  padding: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.testimonials-header h2 span {
  color: var(--color-yellow);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.testimonial-card:hover {
  border-color: var(--color-yellow);
  background: rgba(255, 107, 53, 0.02);
}

.stars {
  color: var(--color-yellow);
  margin-bottom: 15px;
  font-size: 18px;
}

.testimonial-card p {
  font-style: italic;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.client-info strong {
  display: block;
  color: white;
  font-size: 16px;
}

.client-info span {
  color: #6b7280;
  font-size: 13px;
}

.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}

.testimonials-cta .btn-link {
  color: var(--color-yellow);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.testimonials-cta .btn-link:hover {
  border-bottom: 1px solid var(--color-yellow);
}

/* =========================================
   9. RESPONZIVITA (Media Queries)
   ========================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLETY */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 20px;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .stats {
    flex-direction: column;
    gap: 30px;
  }
}

/* MOBILNÍ TELEFONY */
@media (max-width: 720px) {
  .header {
    padding: 20px;
  }
  .nav-list {
    gap: 15px;
    font-size: 14px;
  }
  .hero {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-subtext {
    font-size: 16px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .stats {
    padding: 40px 20px;
  }
  .stat-number {
    font-size: 32px;
  }
  .page-header {
    padding: 20px;
  }
  .page-header h1 {
    font-size: 32px;
  }
  .services-container {
    padding: 20px 20px 60px;
  }
  .testimonials {
    padding: 60px 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 5px;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand span {
  color: var(--color-yellow);
}

.footer-item {
  color: #9ca3af;
  font-size: 14px;
}

.footer-item a {
  color: #9ca3af;
  text-decoration: none;
  transition: 0.3s;
}

.footer-item a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* Mobile */

@media (max-width: 720px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-container {
    padding: 30px 20px;
  }
}

/* =========================================
   SCROLL TOP BUTTON
   ========================================= */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-yellow);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   SIDE ANIMATIONS
   ========================================= */

.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: 0.8s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: 0.8s ease;
}

.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* cards stagger */

.service-card,
.testimonial-card,
.why-card,
.stat {
  transform: translateY(30px);
  transition: 0.7s ease;
}

.service-card.visible,
.testimonial-card.visible,
.why-card.visible,
.stat.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   GALLERY
   ========================================= */

.gallery-block {
  padding: 40px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-block h2 {
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95); /* Чуть темнее для акцента */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Убедись, что это самое большое число */
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scroll-top {
    display: none;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
