


.services-hero {
    background: linear-gradient(135deg, #2c1810 0%, #3e2723 30%, #5d4037 70%, #8d6e63 100%);
    color: #f5f5dc;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(245,245,220,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.services-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(210, 105, 30, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}


.animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animated:nth-child(1) { animation-delay: 0.2s; }
.animated:nth-child(2) { animation-delay: 0.4s; }
.animated:nth-child(3) { animation-delay: 0.6s; }
.animated:nth-child(4) { animation-delay: 0.8s; }
.animated:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #faf9f7 0%, #f8f6f3 100%);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.primary-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(139, 69, 19, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    transition: left 0.4s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 1.2rem;
}

.service-card p {
    color: #5d4e37;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.service-btn {
    background: transparent;
    color: #8b4513;
    border: 2px solid #8b4513;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.service-btn:hover {
    background: #8b4513;
    color: white;
    transform: translateY(-2px);
}


.featured-service-section {
    background: white;
    border-radius: 25px;
    padding: 4rem 3rem;
    margin: 4rem 0;
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
}

.featured-service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
}

.featured-service-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.featured-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.featured-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3e2723;
    margin-bottom: 0.5rem;
}

.featured-text p {
    color: #5d4e37;
    font-size: 1.1rem;
    opacity: 0.8;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.legal-service-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f8f6f3;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.legal-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.1);
}

.legal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.legal-service-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 0.8rem;
}

.legal-service-item p {
    color: #5d4e37;
    font-size: 0.9rem;
    line-height: 1.6;
}

.featured-service-cta {
    text-align: center;
}

.featured-btn {
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}


.secondary-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card.secondary {
    background: #f8f6f3;
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.service-icon.secondary {
    background: linear-gradient(135deg, #d2691e 0%, #ff8c00 100%);
}

.service-btn.secondary {
    border-color: #d2691e;
    color: #d2691e;
}

.service-btn.secondary:hover {
    background: #d2691e;
    color: white;
}


.services .cta-section {
    text-align: center;
    background: linear-gradient(135deg, #2c1810 0%, #3e2723 100%);
    padding: 4rem 3rem;
    border-radius: 30px;
    color: #f5f5dc;
    position: relative;
    overflow: hidden;
}

.services .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(210, 105, 30, 0.1) 0%, transparent 50%);
}

.services .cta-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.services .cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.services .cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-modal.show {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-modal.show .service-modal-content {
    transform: scale(1);
}

.service-modal h3 {
    color: #3e2723;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-modal p {
    color: #5d4e37;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5d4e37;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-modal .modal-close:hover {
    color: #8b4513;
}


.service-features {
    background: #f8f6f3;
    padding: 3rem 0;
    margin: 3rem 0;
}

.service-features h4 {
    text-align: center;
    color: #3e2723;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: #3e2723;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #5d4e37;
    font-size: 0.9rem;
    line-height: 1.6;
}


.service-process {
    background: white;
    padding: 3rem 0;
    margin: 3rem 0;
}

.service-process h4 {
    text-align: center;
    color: #3e2723;
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: #8b4513;
    transform: translateY(-50%);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-title {
    color: #3e2723;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-description {
    color: #5d4e37;
    font-size: 0.85rem;
    line-height: 1.5;
}


@media (max-width: 1024px) {
    .services-hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .primary-services {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 0 4rem;
        min-height: 70vh;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .services-container {
        padding: 0 1rem;
    }
    
    .primary-services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .featured-service-section {
        padding: 2.5rem 2rem;
        margin: 3rem 0;
    }
    
    .featured-service-header {
        gap: 1rem;
    }
    
    .featured-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .featured-text h2 {
        font-size: 2rem;
    }
    
    .legal-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .legal-service-item {
        padding: 1.5rem 1rem;
    }
    
    .secondary-services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services .cta-section {
        padding: 3rem 2rem;
    }
    
    .services .cta-section h3 {
        font-size: 1.8rem;
    }
    
    .services .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .service-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .featured-service-section {
        padding: 2rem 1rem;
    }
    
    .featured-text h2 {
        font-size: 1.8rem;
    }
    
    .legal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .services .cta-section {
        padding: 2rem 1rem;
    }
    
    .services .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .service-features {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .service-process {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1rem;
    }
}


html {
    scroll-behavior: smooth;
}