/* ==========================================================================
   OPTIMAL POWER - SERVICES ARCHITECTURE (HOMEPAGE SLIDER + CLINICAL HUB)
   ========================================================================== */

/* --------------------------------------------------------------------------
   PART 1: HOMEPAGE SERVICES SLIDER (.services-section)
   Source: draft/index.html & draft/style.css
   -------------------------------------------------------------------------- */

.services-section { 
    padding: 15vh 0; 
    background: var(--bg); 
    position: relative; 
    z-index: 5; 
    opacity: 0; 
    transform: translateY(40px); 
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-section.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Header & Title */
.services-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    padding: 0 var(--inner-px); 
    margin-bottom: 50px; 
}

.services-title { 
    font-family: 'Oswald', sans-serif; 
    font-size: clamp(3rem, 6vw, 6rem); 
    text-transform: uppercase; 
    color: var(--text-dark); 
    line-height: 1;
}

/* Slider Navigation */
.slider-nav { 
    display: flex; 
    gap: 15px; 
}

.nav-arrow { 
    width: 55px; 
    height: 55px; 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s; 
    color: var(--text-dark); 
    background: transparent;
    cursor: pointer;
}

.nav-arrow:hover { 
    background: var(--card-dark); 
    color: var(--accent); 
    border-color: var(--card-dark); 
}

.nav-arrow i, .nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

/* Slider Container */
.services-scroll-container { 
    display: flex; 
    gap: 60px; 
    overflow-x: auto; 
    padding: 40px var(--inner-px) 80px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.services-scroll-container::-webkit-scrollbar { 
    display: none; 
}

/* Service Cards */
.service-item-wrapper { 
    flex: 0 0 460px; 
    display: flex;
    flex-direction: column;
}

.service-card { 
    height: 540px; 
    width: 100%; 
    position: relative; 
    border-radius: 45px; 
    background: var(--card-dark); 
    color: var(--text-light); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    padding: 55px; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.6s cubic-bezier(0.1, 0.8, 0.2, 1); 
}

.service-card:hover { 
    background: var(--accent); 
    color: var(--text-dark); 
    transform: translateY(-15px); 
    border-color: var(--accent); 
    box-shadow: 0 30px 60px rgba(195, 229, 111, 0.4);
}

.service-tag { 
    align-self: flex-start; 
    background: rgba(255,255,255,0.1); 
    padding: 8px 18px; 
    border-radius: 50px; 
    font-size: 10px; 
    font-weight: 900; 
    color: var(--text-light); 
    text-transform: uppercase; 
    transition: 0.4s; 
}

.service-card:hover .service-tag { 
    background: var(--card-dark); 
    color: var(--text-light); 
}

.service-name { 
    font-family: 'Oswald', sans-serif;
    font-size: 42px; 
    font-weight: 700; 
    line-height: 1.1; 
    margin-top: 40px; 
    text-transform: uppercase;
}

.service-price { 
    font-size: 18px; 
    font-weight: 900; 
    color: var(--text-light); 
    text-decoration: underline var(--accent) 3px; 
    align-self: flex-end; 
    transition: 0.4s; 
}

.service-card:hover .service-price { 
    color: var(--text-dark); 
    text-decoration-color: var(--text-dark); 
}

.service-info-below { 
    margin-top: 45px; 
    opacity: 0; 
    transform: translateY(15px); 
    transition: 0.4s ease; 
    padding: 0 15px; 
    color: rgba(0,0,0,0.5); 
    font-size: 16px; 
    line-height: 1.6; 
    font-weight: 500; 
}

.service-item-wrapper:hover .service-info-below { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Progress Indicator */
.progress-bar-container { 
    width: 400px; 
    height: 2px; 
    background: #eee; 
    margin-left: var(--inner-px); 
    position: relative; 
    overflow: hidden; 
}

.progress-line { 
    width: 33%; 
    height: 100%; 
    background: var(--card-dark); 
    position: absolute; 
    left: 0; 
    transition: transform 0.2s; 
}

/* --------------------------------------------------------------------------
   PART 2: SERVICES HUB (.services-hub, .services-grid-section)
   Source: draft/uslugi.html & draft/services.css
   -------------------------------------------------------------------------- */

.services-hub {
    background: var(--bg);
    color: var(--text-dark);
}

/* Services Hero */
.services-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 var(--inner-px);
    background: var(--card-dark);
    color: var(--text-light);
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 0.8;
}

.monumental-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -6px;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-subheader {
    font-size: 18px;
    opacity: 0.5;
    max-width: 500px;
    line-height: 1.6;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.meta-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

/* Hub Grid */
.services-grid-section {
    padding: 12vh var(--inner-px);
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-grid-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Hub Card Base */
.services-grid-section .service-card {
    height: 480px;
    background: var(--card-light);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    padding: 0; 
}

.services-grid-section .service-card.large {
    grid-column: span 2;
}

/* Pattern Styles for Hub Cards */
.services-grid-section .card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    transition: 0.6s;
}

.services-grid-section .style-lime { background: var(--accent); color: #000; border: none; }
.services-grid-section .style-lime .card-bg {
    background-image: linear-gradient(rgba(0,0,0,0.08) 1.5px, transparent 1.5px),
                      linear-gradient(90deg, rgba(0,0,0,0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 1;
}

.services-grid-section .style-black { background: #080808; color: #fff; }
.services-grid-section .style-black .card-bg { background-image: radial-gradient(rgba(195, 229, 111, 0.15) 1px, transparent 1px); background-size: 15px 15px; opacity: 1; }

.services-grid-section .style-white { background: #fff; color: #000; border: 1px solid rgba(0,0,0,0.1); }
.services-grid-section .style-white .card-bg {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.015), rgba(0,0,0,0.015) 1px, transparent 1px, transparent 12px);
    opacity: 1;
}

.services-grid-section .style-grey { background: #f0f0f0; color: #000; }
.services-grid-section .style-grey .card-bg { 
    background: repeating-linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px); 
    opacity: 1; 
}

.services-grid-section .style-dark-grey { background: #1a1a1a; color: #fff; }
.services-grid-section .style-dark-grey .card-bg {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%), 
                      linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%);
    background-size: 10px 10px;
    opacity: 1;
}

/* Hub Card Content */
.services-grid-section .card-inner {
    position: relative;
    z-index: 2;
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-grid-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.services-grid-section .card-num {
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 2px;
}

.services-grid-section .card-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.services-grid-section .card-body {
    flex: 1;
}

.services-grid-section .card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
}

.services-grid-section .card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.7;
}

.services-grid-section .card-tags {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.services-grid-section .card-tags span {
    font-size: 9px;
    font-weight: 950;
    background: rgba(0,0,0,0.1);
    padding: 6px 15px;
    border-radius: 5px;
    letter-spacing: 1px;
    border: 1px solid rgba(0,0,0,0.1);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.services-grid-section .btn-clinical-sm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 950;
    text-decoration: none;
    letter-spacing: 2px;
    margin-top: auto;
    transition: 0.3s;
    color: inherit;
}

/* Interaction for Hub Cards */
.services-grid-section .service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.services-grid-section .style-black:hover {
    box-shadow: 0 40px 80px rgba(195, 229, 111, 0.15);
    border-color: var(--accent);
}

.services-grid-section .style-lime:hover {
    background: #000;
    color: #fff;
}

/* CTA Section */
.cta-clinical-box {
    background: var(--card-dark);
    color: var(--text-light);
    padding: 80px 100px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.btn-clinical-lg {
    background: var(--accent);
    color: #000;
    padding: 25px 60px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 2px;
    transition: 0.4s;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .services-header { padding: 0 20px; }
    .services-scroll-container { padding: 0 20px; gap: 20px; }
    .service-item-wrapper { flex: 0 0 320px; }
    .service-card { height: 400px; padding: 30px; }
    .service-name { font-size: 28px; }
    
    .services-main-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-clinical-box { flex-direction: column; align-items: flex-start; gap: 40px; padding: 60px 40px; }
}

@media (max-width: 768px) {
    .services-title { font-size: 2.5rem; }
    .services-main-grid { grid-template-columns: 1fr; }
    .monumental-title { font-size: 4rem; }
    .cta-title { font-size: 32px; }
}
