/* Services Page Styles */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px; /* Add bottom padding */
    overflow-x: hidden; /* Prevent horizontal scroll */
    min-height: 0; /* Prevent unnecessary height calculations */
    box-sizing: border-box;
}

/* Hero Section */
.services-hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #333;
    font-family: inherit;
}

.services-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid - Now 3 columns instead of 4 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 80px; /* Reduced from 100px */
    align-items: start; /* Changed from stretch to start */
    width: 100%;
    max-width: 100%;
    contain: layout; /* Optimize rendering performance */
}

/* Hide mobile quote button on desktop and tablet */
.mobile-quote-cta {
    display: none;
}

/* Responsive grid for services */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem; /* Increased back for better spacing */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 320px; /* Increased for better content spacing */
    height: auto; /* Allow natural height */
    position: relative; /* Add relative positioning for quote section */
    cursor: pointer; /* Add cursor pointer for hover/click interaction */
    transition: transform 0.3s ease, box-shadow 0.3s ease, min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, min-height; /* Optimize for animations */
}

/* Hover state - minimal expand and show quote */
.service-card:hover {
    min-height: 360px; /* Minimal expand - only 40px more */
    transform: translateY(-2px); /* Minimal movement */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Active state - expand card height only */
.service-card.active {
    min-height: 360px; /* Same as hover for consistency */
}

/* Active card hover - prevent movement but keep height */
.service-card.active:hover {
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Service Icon */
.service-icon {
    margin-bottom: 1.5rem; /* More space between icon and title */
    color: #333333;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0; /* Don't shrink the icon */
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #000000;
}

/* Service Title - Same as step content h3 */
.service-title {
    font-size: 1.25rem; /* Same as step content h3 - site's h4 size */
    font-weight: 500; /* Same as step content h3 - site's h4 weight */
    margin: 0 0 1.5rem 0; /* More space between title and content */
    color: #333; /* Site's heading color */
    line-height: 1.2; /* Site's heading line-height */
    font-family: 'Jost', sans-serif; /* Site's heading font */
    flex-shrink: 0; /* Don't shrink the title */
}

/* Service Content */
.service-content {
    flex-grow: 1; /* Take up remaining space */
    display: flex;
    align-items: flex-start; /* Align to top instead of center */
    justify-content: center; /* Center content horizontally */
    width: 100%; /* Full width */
}

/* Service description using site's paragraph styles */
.service-content p {
    font-size: 1rem; /* Standard paragraph size */
    color: #333; /* Site's body color */
    line-height: 1.6; /* Site's body line-height */
    margin: 0; /* Remove margin */
    font-family: 'Jost', sans-serif;
    text-align: center;
    max-width: 100%; /* Ensure text doesn't overflow */
    white-space: pre-line; /* Preserve line breaks and wrap text */
}

/* CTA Section - Using site's typography */
.services-cta {
    text-align: center;
    padding: 30px 0; /* Even more reduced */
    margin: 30px 0 15px 0; /* Even smaller margins */
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Use site's H2 typography */
.cta-title {
    font-size: 2rem; /* Site's h2 size */
    font-weight: 400; /* Site's h2 weight */
    letter-spacing: -0.01em; /* Site's h2 letter-spacing */
    margin-bottom: 20px;
    color: #333; /* Site's heading color */
    font-family: 'Jost', sans-serif; /* Site's heading font */
    line-height: 1.2; /* Site's heading line-height */
}

.cta-description {
    font-size: 1rem; /* Standard paragraph size */
    color: #333; /* Site's body color */
    line-height: 1.6; /* Site's body line-height */
    margin-bottom: 40px;
    font-family: 'Jost', sans-serif;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #333;
    font-family: 'Jost', sans-serif;
}

.primary-cta-button:hover {
    background: transparent;
    color: #333;
}

/* Process Section - Updated to match project.php styling and site typography */
.services-process {
    margin-bottom: 60px;
    padding-top: 60px;
}

/* Use site's H2 typography for process title */
.process-title {
    text-align: left; /* Changed from center to left like project.php */
    font-size: 2rem; /* Site's h2 size */
    font-weight: 400; /* Site's h2 weight */
    letter-spacing: -0.01em; /* Site's h2 letter-spacing */
    margin-bottom: 30px; /* Same as project.php */
    color: #333; /* Site's heading color */
    font-family: 'Jost', sans-serif; /* Site's heading font */
    line-height: 1.2; /* Site's heading line-height */
    position: relative;
    padding-bottom: 10px;
}

.process-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #000;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Single row on desktop/tablet */
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 20px 15px;
}

.step-number {
    font-size: 3rem; /* Increased back from 2.5rem */
    font-weight: 100;
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1;
    font-family: 'Jost', sans-serif;
}

/* Use site's H4 typography for step titles */
.step-content h3 {
    font-size: 1.25rem; /* Site's h4 size */
    font-weight: 500; /* Site's h4 weight */
    margin-bottom: 10px;
    color: #333; /* Site's heading color */
    font-family: 'Jost', sans-serif; /* Site's heading font */
    line-height: 1.2; /* Site's heading line-height */
}

.step-content p {
    font-size: 1rem; /* Standard paragraph size */
    color: #333; /* Site's body color */
    line-height: 1.6; /* Site's body line-height */
    font-family: 'Jost', sans-serif;
}

/* Tablet Styles */
@media (max-width: 992px) {
    .services-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .services-hero {
        margin-bottom: 60px;
        padding: 40px 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-cta {
        margin: 50px 0 40px 0; /* Further reduced for tablet */
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 1.75rem; /* Site's responsive h2 */
    }
    
    /* Keep process steps in single row on tablet */
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .process-step {
        padding: 15px 10px;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .step-content h3 {
        font-size: 1.125rem; /* Site's h5 size for tablet */
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .process-title {
        font-size: 1.75rem; /* Site's responsive h2 */
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .services-container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .services-hero {
        margin-bottom: 40px;
        padding: 30px 0;
    }
    
    .services-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 60px;
        width: 100%;
    }
    
    .service-card {
        padding: 1.5rem; /* Normal padding for mobile */
        width: 100%;
        max-width: 100%;
        min-height: 280px; /* Reduced height since no button inside */
        cursor: default; /* Remove pointer cursor on mobile */
    }
    
    /* Mobile: Hide individual quote sections */
    .service-quote-section {
        display: none; /* Hide all quote sections on mobile */
    }
    
    /* Mobile: Prevent card expansion - keep fixed size */
    .service-card:hover,
    .service-card.active {
        min-height: 280px !important; /* Keep original mobile size */
        transform: none !important; /* No movement on mobile */
    }
    
    .service-quote-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* Mobile: General Get Quote Button after all cards */
    .mobile-quote-cta {
        display: block;
        text-align: center;
        margin: 30px 0 20px 0;
    }
    
    .mobile-quote-button {
        display: inline-block;
        padding: 15px 40px;
        background: #333;
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: 2px solid #333;
        font-family: 'Jost', sans-serif;
        border-radius: 4px; /* Dikdörtgen */
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .mobile-quote-button:hover {
        background: transparent;
        color: #333;
    }
    
    .service-icon {
        margin-bottom: 1rem; /* Less space on mobile */
    }
    
    .service-title {
        font-size: 1.125rem; /* Site's h5 size for mobile */
        margin: 0 0 1rem 0; /* Less margin on mobile */
    }
    
    .services-cta {
        margin: 40px 0 20px 0; /* Further reduced for mobile */
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 1.75rem; /* Site's responsive h2 mobile */
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .process-title {
        font-size: 1.75rem; /* Site's responsive h2 mobile */
    }
    
    /* Mobile: 2x2 grid for process steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .step-content h3 {
        font-size: 1.125rem; /* Site's h5 size for mobile */
    }

    .step-content p {
        font-size: 0.95rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
}

/* Additional responsive adjustments */
@media (max-width: 400px) {
    .services-title {
        font-size: 1.6rem;
    }
    
    .service-title {
        font-size: 1.125rem; /* Site's h5 size for very small screens */
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .process-steps {
        gap: 15px;
    }
    
    .step-number {
        font-size: 1.8rem;
    }
    
    .process-title {
        font-size: 1.5rem;
    }
}

/* Service Quote Section - Hidden by default on tablet/desktop */
.service-quote-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    margin-top: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 8px 8px;
}

/* Show quote section on hover and active state */
.service-card:hover .service-quote-section,
.service-card.active .service-quote-section {
    opacity: 1;
    max-height: 60px; /* Reduced from 80px */
    padding: 10px 20px; /* Reduced padding */
    margin-top: auto;
}

/* Quote Button Styles */
.service-quote-btn {
    display: block;
    width: 100%;
    padding: 8px 16px; /* Reduced padding */
    background: #333;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem; /* Slightly smaller */
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #333;
    font-family: 'Jost', sans-serif;
    border-radius: 4px;
}

.service-quote-btn:hover {
    background: transparent;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quote-text {
    display: block;
    transition: transform 0.2s ease;
}

.service-quote-btn:hover .quote-text {
    transform: translateY(-1px);
} 