/* Homepage specific styles extracted from original styles.css */

/* Hero now provided by common.css */

/* Services */
.services { background: var(--kc-green) url('images/servicebg.png') no-repeat center center; background-size:fill; position:relative; min-height:900px; }
.services .container { padding:50px clamp(20px,2vw,100px); max-width:1920px; margin:0 auto; box-sizing:border-box; text-align:center; }
.services h2 { color:#fff; font-size:48px; margin-bottom:40px; }
.services-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:25px; justify-content:center; max-width:900px; margin:0 auto; }

/* 3-2 Layout: First 3 cards in first row, last 2 cards in second row centered in gaps */
.services-grid .card-wrap:nth-child(1) { grid-column: 1 / 3; }
.services-grid .card-wrap:nth-child(2) { grid-column: 3 / 5; }
.services-grid .card-wrap:nth-child(3) { grid-column: 5 / 7; }
.services-grid .card-wrap:nth-child(4) { grid-column: 2 / 4; }
.services-grid .card-wrap:nth-child(5) { grid-column: 4 / 6; }
.card-wrap { position:relative; height: 380px; min-height: 380px; max-height: 380px; width: 100%; }
.card-wrap::before { content:""; position:absolute; top:10px; left:8px; right:8px; bottom:-1px; background:#D9D9D9; border-radius:10px; z-index:0; }
.card { position:relative; background:#fff; padding:25px 12px; border-radius:10px; height:calc(100% - 15px); max-height:calc(100% - 15px); display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; box-shadow:0 6px 15px rgba(0,0,0,0.15); transition:transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1); z-index:1; overflow:hidden; box-sizing:border-box; }
.card:hover { transform:translateY(-5px) scale(1.01); box-shadow:0 8px 20px rgba(0,0,0,0.15); cursor:pointer; }
.card-link { text-decoration:none; color:inherit; display:block; height:100%; }
.card-link:hover .card { transform:translateY(-8px) scale(1.03); box-shadow:0 12px 24px rgba(0,0,0,0.15); }
.card-icon { width:65px; height:65px; margin-bottom:20px; flex-shrink:0; }
.card h3 { font-size:26px; margin:0 0 15px 0; line-height:1.2; font-weight:normal; flex-shrink:0; }
.service-title { font-weight:700; }
.card p { width:90%; font-size:14px; font-weight:400; line-height:1.4; margin-top:0; margin-bottom:0; flex:1; display:flex; flex-direction:column; justify-content:flex-start; overflow:hidden; }
.card p::after { content:""; display:block; width:24px; height:24px; margin:30px auto 0; background:url('images/down-arrow.png') no-repeat center / contain; animation:bounce 1.2s infinite ease-in-out; flex-shrink:0; }
@keyframes bounce { 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(2px);} }
.more-services { text-align:center; font-size:18px; font-weight:600; color:var(--kc-gold); margin-top:40px; margin-bottom:60px; cursor:pointer; transition:color .3s ease; }
.more-services:hover { color:#dc9c1d; }
.more-services a { position:relative; font-size:18px; font-weight:600; color:var(--kc-gold); text-decoration:none; transition:color .3s ease; }
.more-services a::after { content:""; position:absolute; left:0; bottom:-4px; width:0%; height:2px; background:currentColor; transition:width .3s ease; }
.more-services a:hover { color:#dc9c1d; }
.more-services a:hover::after { width:100%; }

/* Process Section */
.process-section { background:#fff; border-radius:0 44px 44px 44px; min-height:100vh; display:flex; flex-direction:column; padding-top:3vh; padding-bottom:50px; position:relative; align-items:center; justify-content:space-between; }
.process-section .container { max-width:1920px; margin:0 auto; padding:0 clamp(40px,5vw,160px); text-align:center; margin-bottom:40px; }
.process-section h2 { color:var(--kc-green); font-size:48px; margin-bottom:20px; font-family:'Poppins', sans-serif; line-height:1.2; }
.process-container { display:flex; gap:60px; width:80%; max-width:1920px; margin:0 auto 90px; flex:1; align-items:center; justify-content:center; }
@media (min-width:1921px){ .process-section{ min-height:900px;} .process-container{ max-height:900px;} }
.timeline { position:relative; display:flex; flex-direction:column; align-items:center; }
.step { position:relative; margin:15px 0; z-index:1; }
.step span { display:inline-block; background:#fff; border:3px solid #c49a43; border-radius:50%; padding:20px 25px; font-size:20px; font-weight:bold; position:relative; z-index:2; }
.timeline::before { content:""; position:absolute; left:50%; transform:translateX(-50%); top:10%; bottom:10%; width:4px; background:linear-gradient(to bottom, rgba(196,154,67,0) 0%, #c49a43 15%, #c49a43 85%, rgba(196,154,67,0) 100%); border-radius:2px; z-index:0; animation:growLine .6s ease-out forwards; }
@keyframes growLine { 0%{ height:0; top:50%; } 100%{ height:80%; top:10%; } }
.step.active span { background:#c49a43; color:#fff; transform:scale(1.1); transition:transform .3s ease, background .3s ease; }
.steps-content { flex:1; display:flex; flex-direction:column; justify-content:center; position:relative; min-height:400px; }
.step-item { opacity:0; transform:translateY(20px); transition:all .5s ease; position:absolute; display:flex; align-items:center; justify-content:space-between; gap:40px; width:100%; top:50%; transform:translateY(-50%); }
.step-item.active { opacity:1; transform:translateY(-50%); }
.step-item .text-block { flex:1; display:flex; flex-direction:column; justify-content:center; }
.step-item h2 { margin-bottom:5px; font-size:32px; color:var(--kc-green); }
.step-item p { font-size:18px; line-height:1.5; color:#333; }
.step-item img { max-width:700px; border-radius:10px; flex-shrink:0; }
@media (max-width:900px){ .process-container{ flex-direction:column; } .steps-content{ min-height:300px; } }

/* Stats */
.stats { margin-top:auto; padding:0px 0 0; width:100%; }
.stats .container { display:flex; justify-content:center; gap:150px; text-align:center; flex-wrap:wrap; }
.stats strong { display:block; font-size:60px; color:var(--kc-green); font-weight:bold; }
.stats p { margin:5px 0 0; font-size:16px; color:var(--kc-green); }

/* Testimonials */
.testimonials { background: var(--kc-green) url('images/test-bg.png') no-repeat center center; background-size:fill; color:#fff; padding:60px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; box-sizing:border-box; margin-bottom:0; }
.testimonials-header h2 { font-size:48px; font-weight:bold; margin-bottom:10px; }
.testimonials-header p { max-width:700px; margin:0 auto 40px; font-size:1rem; color:#d4d4d4; }
.testimonial-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:30px; max-width:1200px; width:100%; justify-items:center; margin:0 auto; }
.testimonial-card { background:#fff; color:#000; border-radius:12px; padding:20px 24px; box-shadow:0 4px 15px rgba(0,0,0,0.15); text-align:left; position:relative; width:100%; max-width:550px; }
.quote-icon { position:absolute; top:20px; left:20px; font-size:100px; line-height:.7; color:#000; }
.testimonial-card p { font-size:1rem; line-height:1.5; margin-top:45px; margin-bottom:15px; }
.author { font-size:.9rem; color:#000; }
@media (max-width:700px){ .testimonial-grid { grid-template-columns:1fr; } .testimonial-card { max-width:100%; } }

/* FAQ */
.faq { background:#fff; border-radius:44px 0 44px 44px; min-height:900px; padding:clamp(40px,5vw,160px); margin:0 auto 50px; box-sizing:border-box; box-shadow:0 4px 20px rgba(0,0,0,0.05); width:100%; margin-bottom:0; }
.faq-container { background:#fff; display:flex; flex-direction:column; gap:20px; max-width:1200px; margin:0 auto; }
.faq-title h2 { font-size:80px; line-height:1.1; color:var(--kc-green); font-weight:700; margin:40px 0; font-family:'Poppins', sans-serif; }
.faq-label { font-size:20px; color:var(--kc-green); font-weight:500; letter-spacing:1px; font-family:'Roboto', sans-serif; margin-bottom:0; }
.faq-list { display:flex; flex-direction:column; gap:20px; }
.faq-item { border-bottom:1px solid #ddd; }
.faq-question { width:100%; background:transparent; border:none; padding:20px 0; text-align:left; font-size:20px; font-weight:600; color:var(--kc-green); display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family:'Roboto', sans-serif; }
.faq-toggle { font-size:24px; }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .4s ease, padding .4s ease; font-size:18px; line-height:1.6; color:#333; padding:0; font-family:'Roboto', sans-serif; }
.faq-item.active .faq-answer { max-height:500px; padding-top:15px; padding-bottom:15px; }

/* Enhanced Floating Digital Accounting Window */
.floating-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    animation: floatUpDown 4s ease-in-out infinite;
}

.floating-window:hover {
    animation-play-state: paused;
}

.floating-window-content {
    background: linear-gradient(135deg, #0D4029 0%, #0D4029 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: all;
    width: 230px; /* Increased from 200px to accommodate "Digitálne účtovníctvo" */
    overflow: hidden;
    position: relative;
}

.floating-window-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    border-radius: 15px;
    pointer-events: none;
}

.floating-window:hover .floating-window-content {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 300px; /* Increased from 280px for better expanded state */
}

.floating-window-icon {
    text-align: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.icon-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-from, .icon-to {
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.arrow-container {
    position: relative;
    width: 20px;
    height: 2px;
    display: flex;
    align-items: center;
}

.arrow-line {
    width: 16px;
    height: 2px;
    background: var(--kc-gold);
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.arrow-head {
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    border-left: 6px solid var(--kc-gold);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.floating-window:hover .floating-window-icon {
    transform: scale(1.2) rotate(5deg);
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-window-text h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.floating-window-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff;
}

.floating-window:hover .floating-window-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

.floating-window-details p {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #e8f5e8;
    font-weight: 500;
    text-align: center;
}

.floating-window-details ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px 0;
}

.floating-window-details li {
    font-size: 13px;
    color: #fff;
    margin: 6px 0;
    padding-left: 18px;
    position: relative;
}

.floating-window-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--kc-gold);
    font-weight: bold;
}

.floating-window-details small {
    display: block;
    font-size: 12px;
    color: #b8e6b8;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

.floating-window-details .contact-link {
    color: var(--kc-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.floating-window-details .contact-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* Responsive adjustments */

/* Tablet Landscape & Desktop (1025px+) - Default styles already optimized */

/* Tablet Portrait (768px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 768px) {
  .services {
    min-height: 700px;
    background-size: cover;
  }
  
  .services .container {
    padding: 40px clamp(30px, 4vw, 60px);
  }
  
  .services h2 {
    font-size: 42px;
    margin-bottom: 35px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
  }
  
  /* Tablet layout: 2-2-1 */
  .services-grid .card-wrap:nth-child(1) { grid-column: 1 / 3; }
  .services-grid .card-wrap:nth-child(2) { grid-column: 3 / 5; }
  .services-grid .card-wrap:nth-child(3) { grid-column: 1 / 3; }
  .services-grid .card-wrap:nth-child(4) { grid-column: 3 / 5; }
  .services-grid .card-wrap:nth-child(5) { grid-column: 2 / 4; justify-self: center; }
  
  .card-wrap {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    width: 100%;
  }
  
  .card {
    padding: 20px 10px;
    height: calc(100% - 15px);
    max-height: calc(100% - 15px);
    box-sizing: border-box;
  }
  
  .card h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .card p {
    font-size: 13px;
  }
  
  .card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
  }
  
  /* Process Section Tablet */
  .process-section {
    min-height: 80vh;
    padding-top: 40px;
    border-radius: 0 30px 30px 30px;
  }
  
  .process-section h2 {
    font-size: 42px;
  }
  
  .process-container {
    gap: 40px;
    width: 90%;
    margin-bottom: 60px;
  }
  
  .step-item h2 {
    font-size: 28px;
  }
  
  .step-item p {
    font-size: 16px;
  }
  
  .step-item img {
    max-width: 500px;
  }
  
  /* Stats Tablet */
  .stats .container {
    gap: 80px;
  }
  
  .stats strong {
    font-size: 50px;
  }
  
  /* Testimonials Tablet */
  .testimonials {
    padding: 50px 30px;
  }
  
  .testimonials-header h2 {
    font-size: 42px;
  }
  
  .testimonial-grid {
    gap: 25px;
  }
  
  .testimonial-card {
    padding: 18px 20px;
  }
  
  .quote-icon {
    font-size: 80px;
  }
  
  /* FAQ Tablet */
  .faq {
    min-height: 700px;
    padding: clamp(30px, 4vw, 60px);
    border-radius: 30px 0 30px 30px;
  }
  
  .faq-title h2 {
    font-size: 65px;
    margin: 30px 0;
  }
  
  .faq-question {
    font-size: 18px;
  }
  
  .faq-answer {
    font-size: 16px;
  }
}

/* Mobile Landscape (577px - 767px) */
@media screen and (max-width: 767px) and (min-width: 577px) {
  .services {
    min-height: 600px;
  }
  
  .services .container {
    padding: 35px 30px;
  }
  
  .services h2 {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 450px;
  }
  
  /* Mobile landscape: 2x2 + 1 centered */
  .services-grid .card-wrap:nth-child(1) { grid-column: 1; }
  .services-grid .card-wrap:nth-child(2) { grid-column: 2; }
  .services-grid .card-wrap:nth-child(3) { grid-column: 1; }
  .services-grid .card-wrap:nth-child(4) { grid-column: 2; }
  .services-grid .card-wrap:nth-child(5) { grid-column: 1 / 3; justify-self: center; max-width: 200px; }
  
  .card-wrap {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    width: 100%;
  }
  
  .card {
    padding: 18px 8px;
    height: calc(100% - 15px);
    max-height: calc(100% - 15px);
    box-sizing: border-box;
  }
  
  .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .card p {
    font-size: 12px;
    width: 95%;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
}

/* Mobile Portrait (320px - 576px) */
@media screen and (max-width: 576px) {
  .services {
    min-height: auto;
    padding: 30px 0 40px;
  }
  
  .services .container {
    padding: 30px 20px;
  }
  
  .services h2 {
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.2;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto;
  }
  
  /* Reset all positioning for single column */
  .services-grid .card-wrap:nth-child(1),
  .services-grid .card-wrap:nth-child(2), 
  .services-grid .card-wrap:nth-child(3),
  .services-grid .card-wrap:nth-child(4),
  .services-grid .card-wrap:nth-child(5) {
    grid-column: 1;
    justify-self: center;
  }
  
  .card-wrap {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    width: 100%;
  }
  
  .card {
    padding: 16px 12px;
    height: calc(100% - 15px);
    max-height: calc(100% - 15px);
    box-sizing: border-box;
  }
  
  .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  
  .card p {
    font-size: 11px;
    width: 90%;
    line-height: 1.4;
  }
  
  .card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }
  
  /* Process Section Mobile */
  .process-section {
    min-height: auto;
    padding: 30px 0 40px;
    border-radius: 0 20px 20px 20px;
  }
  
  .process-section .container {
    padding: 0 20px;
  }
  
  .process-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .process-container {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
  }
  
  .timeline {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .timeline::before {
    width: 60%;
    height: 4px;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(196,154,67,0) 0%, #c49a43 15%, #c49a43 85%, rgba(196,154,67,0) 100%);
  }
  
  .step {
    margin: 0 10px;
  }
  
  .step span {
    padding: 15px 18px;
    font-size: 16px;
  }
  
  .steps-content {
    min-height: auto;
  }
  
  .step-item {
    flex-direction: column;
    gap: 20px;
    position: relative;
    transform: none;
    top: auto;
  }
  
  .step-item.active {
    transform: none;
  }
  
  .step-item .text-block {
    text-align: center;
    order: 2;
  }
  
  .step-item h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .step-item p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .step-item img {
    max-width: 100%;
    order: 1;
    border-radius: 8px;
  }
  
  /* Stats Mobile */
  .stats .container {
    flex-direction: column;
    gap: 30px;
  }
  
  .stats strong {
    font-size: 40px;
  }
  
  .stats p {
    font-size: 14px;
  }
  
  /* Testimonials Mobile */
  .testimonials {
    padding: 40px 20px;
  }
  
  .testimonials-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .testimonials-header p {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    max-width: 100%;
    padding: 16px 18px;
  }
  
  .quote-icon {
    font-size: 60px;
    top: 16px;
    left: 16px;
  }
  
  .testimonial-card p {
    margin-top: 35px;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .author {
    font-size: 12px;
  }
  
  /* FAQ Mobile */
  .faq {
    min-height: auto;
    padding: 30px 20px;
    margin-bottom: 0;
    border-radius: 20px 0 20px 20px;
  }
  
  .faq-title h2 {
    font-size: 48px;
    margin: 20px 0;
    line-height: 1.1;
  }
  
  .faq-label {
    font-size: 16px;
  }
  
  .faq-question {
    font-size: 16px;
    padding: 15px 0;
  }
  
  .faq-answer {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Floating Window Mobile - Smaller and More Compact */
  .floating-window {
    bottom: 15px;
    right: 15px;
  }
  
  .floating-window-content {
    width: 200px; /* Smaller initial width for mobile */
    padding: 10px 12px;
  }
  
  .floating-window:hover .floating-window-content {
    width: 240px; /* Smaller expanded width for mobile */
    transform: translateY(-3px) scale(1.02); /* Less dramatic scaling */
  }
  
  .floating-window-text h4 {
    font-size: 13px;
    margin: 0 0 4px 0;
  }
  
  .floating-window-icon {
    margin-bottom: 8px;
  }
  
  .icon-from, .icon-to {
    font-size: 16px;
  }
  
  .floating-window-details p {
    font-size: 11px;
    margin: 0 0 6px 0;
  }
  
  .floating-window-details li {
    font-size: 10px;
    margin: 3px 0;
    padding-left: 14px;
  }
  
  .floating-window-details small {
    font-size: 9px;
    margin-top: 6px;
  }
  
  .floating-window:hover .floating-window-details {
    max-height: 140px;
    margin-top: 8px;
  }
}

/* Extra Small Mobile (up to 375px) */
@media screen and (max-width: 375px) {
  .services-grid {
    max-width: 260px;
  }
  
  .card {
    min-height: 150px;
    padding: 14px 10px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 10px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
  }
  
  .process-section h2 {
    font-size: 28px;
  }
  
  .step-item h2 {
    font-size: 20px;
  }
  
  .step-item p {
    font-size: 12px;
  }
  
  .faq-title h2 {
    font-size: 40px;
  }
  
  /* Extra Small Mobile Floating Window - Even More Compact */
  .floating-window-content {
    width: 180px;
    padding: 8px 10px;
  }
  
  .floating-window:hover .floating-window-content {
    width: 220px;
  }
  
  .floating-window-text h4 {
    font-size: 12px;
  }
  
  .floating-window-details p {
    font-size: 10px;
  }
  
  .floating-window-details li {
    font-size: 9px;
  }
  
  .floating-window-details small {
    font-size: 8px;
  }
}
