/* Home Page Specific Styles */

/* Grid-3 pro desktop - zajištění zobrazení 3 karet vedle sebe */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Hero Section Styles */
.hero {
  background-image: linear-gradient(rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.4)), url('../../images/heroback.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

/* Optimistické styly pro hero text */
.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 0.5rem 0;
}

.service-main .service-card {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, filter 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-main .service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3) !important;
  color: white !important;
  filter: brightness(1.05) !important;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.service-header .card-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-header .card-icon i {
  color: white;
  font-size: 1.2rem;
}

.service-main .service-header .card-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-main .service-header .card-icon i {
  font-size: 1.8rem;
}

.service-header h3,
.service-header h4 {
  margin: 0;
  color: white;
}

.service-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.2rem 0 0 0;
  font-weight: 400;
}

.service-main .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/gastro4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.service-main .service-card > * {
  position: relative;
  z-index: 1;
}

.service-main .service-card h3 {
  font-size: 2.2rem;
  color: white;
}

.service-main .service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
}

.service-main .btn-primary {
  background: white;
  color: var(--primary-color);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  align-self: flex-start;
}

.service-main .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.service-secondary-row .service-card {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, filter 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-secondary-row .service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 30px rgba(31, 41, 55, 0.3) !important;
  color: white !important;
  filter: brightness(1.08) !important;
}

.service-secondary-row .service-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/ducato.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.service-secondary-row .service-card:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/elektro.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.service-secondary-row .service-card > * {
  position: relative;
  z-index: 1;
}

.service-secondary > .service-card:nth-child(1) {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, filter 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-secondary > .service-card:nth-child(1):hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3) !important;
  color: white !important;
  filter: brightness(1.08) !important;
}

.service-secondary > .service-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/AC5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.service-secondary > .service-card:nth-child(1) > * {
  position: relative;
  z-index: 1;
}

.service-card-yellow {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: white !important;
}

.service-card-yellow:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3) !important;
  color: white !important;
  filter: brightness(1.05) !important;
}

.service-card-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/electric.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.service-card-yellow > * {
  position: relative;
  z-index: 1;
}

.service-secondary .service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: white;
}

.service-secondary .service-card p {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.service-secondary .service-features {
  margin-bottom: auto;
}

.service-secondary .service-features li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.8rem;
  position: relative;
}

.service-secondary .btn-secondary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.service-secondary .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-main .service-card {
    padding: 2rem;
    clip-path: none;
    border-radius: var(--border-radius);
  }
  
  .service-secondary {
    gap: 1rem;
  }
  
  .service-secondary-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.7rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.1rem 0;
  }

  .service-main .service-card {
    padding: 0.5rem;
  }

  .service-main .service-card h3 {
    font-size: 0.9rem;
  }

  .service-main .service-card p {
    font-size: 0.65rem;
  }

  .service-main .service-header .card-icon {
    width: 30px;
    height: 30px;
  }

  .service-main .service-header .card-icon i {
    font-size: 0.9rem;
  }

  .service-secondary {
    gap: 0.3rem;
  }

  .service-secondary-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .service-secondary .service-card {
    padding: 0.4rem;
  }

  .service-secondary .service-card h4 {
    font-size: 0.75rem;
  }

  .service-secondary .service-card p {
    font-size: 0.65rem;
  }

  .service-secondary .service-features li {
    font-size: 0.6rem;
  }

  .service-header {
    gap: 0.25rem;
    margin-bottom: 0.3rem;
  }

  .service-header .card-icon {
    width: 25px;
    height: 25px;
  }

  .service-header .card-icon i {
    font-size: 0.75rem;
  }

  .service-subtitle {
    font-size: 0.6rem;
  }

  .service-features {
    margin-bottom: 0.4rem;
  }

  .service-features li {
    font-size: 0.65rem;
    padding: 0.15rem 0;
    padding-left: 0.8rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .card {
    padding: 0.5rem 0.4rem;
  }

  .card-icon {
    width: 25px;
    height: 25px;
  }

  .card-icon i {
    font-size: 0.8rem;
  }

  .card h3 {
    font-size: 0.8rem;
  }

  .card p {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.65rem;
  }

  .services-grid {
    gap: 0.3rem;
    padding: 0.1rem 0;
  }

  .service-main .service-card {
    padding: 0.4rem;
  }

  .service-main .service-card h3 {
    font-size: 0.85rem;
  }

  .service-main .service-card p {
    font-size: 0.6rem;
  }

  .service-main .service-header .card-icon {
    width: 25px;
    height: 25px;
  }

  .service-main .service-header .card-icon i {
    font-size: 0.8rem;
  }

  .service-secondary {
    gap: 0.25rem;
  }

  .service-secondary-row {
    gap: 0.25rem;
  }

  .service-secondary .service-card {
    padding: 0.35rem;
  }

  .service-secondary .service-card h4 {
    font-size: 0.7rem;
  }

  .service-secondary .service-card p {
    font-size: 0.6rem;
  }

  .service-secondary .service-features li {
    font-size: 0.55rem;
  }

  .service-header {
    gap: 0.2rem;
    margin-bottom: 0.25rem;
  }

  .service-header .card-icon {
    width: 22px;
    height: 22px;
  }

  .service-header .card-icon i {
    font-size: 0.7rem;
  }

  .service-subtitle {
    font-size: 0.55rem;
  }

  .service-features {
    margin-bottom: 0.3rem;
  }

  .service-features li {
    font-size: 0.6rem;
    padding: 0.1rem 0;
    padding-left: 0.7rem;
  }

  .card {
    padding: 0.4rem 0.3rem;
  }

  .card .card-icon {
    width: 50px;
    height: 50px;
  }

  .card h3 {
    font-size: 0.75rem;
  }

  .card p {
    font-size: 0.6rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-info {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
}
