/*
  VÝKOPY – Home Page Specific Styles
  home.css (v3 optimized)
*/

/* ==================== HERO ENHANCEMENTS ==================== */
.grain-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    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");
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.25rem;
    background: rgba(230, 126, 34, 0.12);
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.75rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-item strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.proof-item span {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-cta {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.3s;
}

.hero-scroll-cta:hover { color: var(--primary); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==================== SERVICES SECTION ==================== */
#sluzby {
    background: var(--dark-surface);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 1rem auto 0;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
    opacity: 0.8;
}

.service-link:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* ==================== TRUST STATS ==================== */
.trust-stats-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(201, 130, 43, 0.3);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-icon { color: var(--primary); flex-shrink: 0; }

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 2.85rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== WHY US SECTION ==================== */
.why-us-section {
    background: var(--dark);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-content .subtitle { margin-bottom: 0.75rem; }
.why-us-content h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.why-us-content > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; }

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 2px;
}

.why-list li strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.why-list li p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.why-us-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(201, 130, 43, 0.4);
}

.badge-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-top: 4px;
}

/* ==================== BRAND SLIDER (MARQUEE) ==================== */
.brand-slider-container {
    background: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    overflow: hidden;
}

.brand-slider {
    width: 100%;
}

.brand-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: scroll 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.brand-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .brand-track { gap: 2rem; animation: scroll 20s linear infinite; }
    .brand-item { width: 100px; }
}

/* ==================== TESTIMONIALS SECTION ==================== */
#referencie {
    background: var(--bg-alt);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide { min-width: 100%; padding: 0.25rem; }

.testimonial-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.quote-icon {
    color: rgba(230, 126, 34, 0.3);
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.client-info h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonials-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials-nav .dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.testimonials-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.testimonials-empty svg {
    color: var(--glass-border);
    margin-bottom: 1.5rem;
}

.testimonials-empty p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ==================== CTA BANNER ==================== */
.cta-banner-section {
    background: var(--dark);
    padding: 4rem 0;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 20px 60px rgba(201, 130, 43, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-banner-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: -0.02em;
}

.cta-banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.cta-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--primary-hover);
    box-shadow: none;
}

.cta-banner .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

.cta-banner .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.cta-banner .btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
}

/* ==================== FOOTER ENHANCEMENTS ==================== */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact-item svg { color: var(--primary); flex-shrink: 0; }

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hours-list li strong {
    color: var(--text);
    font-weight: 600;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Optimized for GPU */
.hero-bg-parallax, .grain-overlay {
    will-change: transform, opacity;
}

/* ==================== BACK TO TOP ==================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: 1fr; gap: 3rem; }
    .why-us-image { display: none; }
    .cta-banner { flex-direction: column; text-align: center; }
    .cta-banner-actions { flex-direction: column; width: 100%; }
}

@media (max-width: 768px) {
    .hero-proof { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .proof-divider { display: none; }
    .proof-item { flex: 1 1 40%; text-align: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-card { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .projects-packets-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .why-us-grid { gap: 2rem; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .hero-badge { margin-bottom: 1.25rem; }
    .stat-card { padding: 1.75rem; }
    .hero-proof { gap: 1.25rem; }
    .proof-item { flex: 1 1 100%; }
    .proof-item strong { font-size: 2rem; }
}

.testimonial-image-wrapper { margin-right: 1rem; flex-shrink: 0; }

/* ==================== PROJECTS SLIDER ==================== */
#featured-projects { 
    background: var(--dark-surface); 
    position: relative; 
}

.projects-slider { 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    padding: 0 1rem;
    margin-top: 2rem;
}

.projects-viewport { 
    overflow: hidden; 
    border-radius: 24px;
}

.projects-track { 
    display: flex; 
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-slide { 
    min-width: 100%; 
    padding: 0.5rem;
}

.project-slide .project-packet, .project-packet-link { 
    display: block; 
    text-decoration: none; 
    color: inherit;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.project-slide .packet-img {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.projects-nav { 
    display: flex; 
    justify-content: center; 
    gap: 0.75rem; 
    margin-top: 2.5rem; 
}

.projects-nav .dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    border: none; 
    background: var(--glass-border); 
    cursor: pointer; 
    transition: all 0.3s; 
}

.projects-nav .dot.active { 
    background: var(--primary); 
    transform: scale(1.3); 
}

@media (max-width: 768px) {
    .project-slide .packet-img { height: 300px; }
}
