/* === SERVICES PAGE === */

/* Main Section */
.srv-hero {
    padding: 7rem 0 5rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

/* Title mimicking the image's "Na co se soustředíme" but curvature */
.srv-title-wrapper {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    display: block;
    text-align: center;
}

.srv-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(4rem, 10vw, 7.5rem);
    color: var(--color-text);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
}

.srv-title-highlight {
    font-weight: 800;
    font-size: 0.8em;
    display: block;
    margin-top: 0.5rem;
    color: #9333ea;
}

/* The Grid */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* Base Card Style matching the cflow cards with a purple tint */
.srv-card {
    background: rgba(250, 248, 246, 0.92);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.15); /* UI UX Pro Max Primary purple tint */
    backdrop-filter: blur(20px);
}

.srv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.srv-card-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.srv-card h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.srv-card p {
    font-family: var(--font-main);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
    margin-bottom: 0;
    font-weight: 400;
}

.srv-btn {
    display: inline-flex;
    width: fit-content;
    align-self: center;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    background-color: var(--color-text);
    border: 1px solid var(--color-text);
    color: var(--color-bg);
    min-height: 60px;
    padding: 0 3rem;
    border-radius: 100px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Scoped fixes for the card buttons specifically */
.srv-card .srv-btn {
    align-self: center; /* User preferred the button centered */
    margin-top: auto;   /* Keep the magic gravity pushing it to the very bottom naturally */
    position: relative;
    top: 1rem;          /* Extra breathing room without breaking flex max boundaries */
}

.srv-btn:hover {
    background-color: #9333ea;
    border-color: #9333ea;
    transform: translateY(-2px);
}

.srv-btn:active {
    transform: translateY(1px);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .srv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .srv-hero { padding: 6rem 0 2rem; min-height: auto; }
    .srv-title-wrapper { margin-top: 2rem; margin-bottom: 3rem; }
    .hero-btn-wrap { margin-top: 1.5rem !important; }
    .srv-btn {
        margin-top: 0;
        min-height: 48px;
        padding: 0 2.2rem;
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        font-weight: 600;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .srv-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .srv-title {
        font-size: 2.5rem;
    }
}


/* ============================================
   COST SECTION — "Cena špatného webu"
   ============================================ */

.cost-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* --- Header Text --- */

.cost-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: 700px;
}

.cost-title {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-text);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cost-subtitle {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-muted);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.cost-subtitle-highlight {
    color: #9333ea;
    font-weight: 700;
}

.cost-desc {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 560px;
}

/* --- Bento Grid --- */

.cost-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
}

/* --- Stat Cards --- */

.cost-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 2.5rem;
    border-radius: 1.5rem;
    background: rgba(147, 51, 234, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(147, 51, 234, 0.12);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow on hover */
.cost-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 0%, rgba(147, 51, 234, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.cost-stat:hover::before {
    opacity: 1;
}

.cost-stat:hover {
    border-color: rgba(147, 51, 234, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.12);
}

.cost-stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #9333ea;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.cost-stat-label {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.4;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .cost-bento {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cost-section {
        padding: 2rem 0;
    }
    .cost-bento {
        grid-template-columns: 1fr;
    }
    .cost-title {
        font-size: 2.2rem;
    }
    .cost-stat {
        padding: 1.5rem 1.8rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.35) !important;
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.08);
}

.testimo-card:hover .testimo-icon {
    transform: scale(1.15) rotate(0deg) !important;
}

.testimo-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .testimo-grid {
        grid-template-columns: 1fr !important;
    }
    .testimo-quote-mark {
        font-size: 5rem !important;
        top: -5px !important;
    }
}

/* ============================================
   SWIPE & SCROLL ANIMATIONS
   ============================================ */
   
.swipe-left { transform: translateX(80px) !important; opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out; }
.swipe-right { transform: translateX(-80px) !important; opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out; }
.swipe-up { transform: translateY(80px) !important; opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out; }

.is-animating.swipe-left, 
.is-animating.swipe-right,
.is-animating.swipe-up {
    transform: translate(0, 0) !important;
    opacity: 1;
}

/* Base spacing overrides for exactly matching rhythms */
.ag-portfolio { padding: 3rem 0 !important; }
.testimonials-section { padding: 3rem 0 !important; }
#biz-comparison { margin: 3rem auto !important; padding: 3rem 20px !important; }

/* In mobile we might want smaller spacing */
@media (max-width: 768px) {
    .ag-portfolio { padding: 2rem 0 !important; }
    .testimonials-section { padding: 2rem 0 !important; }
    #biz-comparison { margin: 2rem auto !important; padding: 2rem 20px !important; }
}
