/* css/services.css */

/* Hero Section */
.services-hero {
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    text-align: center;
}

.hero-subtitle {
    color: var(--primary);
    background: rgba(217, 4, 41, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.hero-content h1 span { color: var(--primary); }

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-sec);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.btn-primary-hero {
    background: var(--primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid var(--primary);
}

.btn-primary-hero:hover {
    background: transparent;
    color: var(--primary);
}

/* SEO / Intro Section */
.seo-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.seo-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.seo-box h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.seo-box p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-sec);
}

.seo-box strong { color: var(--primary); }

/* Services Grid */
.services-list { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 { font-size: 2.8rem; margin-bottom: 10px; }
.section-header span { color: var(--primary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(217, 4, 41, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-box:hover .icon-wrapper {
    background: var(--primary);
    color: #fff;
}

.service-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-box p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tap-hint {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
    display: block;
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.service-box:hover .tap-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto; 
    padding: 40px; 
    border-radius: 15px;
    width: 90%; 
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header { margin-bottom: 30px; text-align: center; }
.modal-header h3 { font-size: 1.8rem; margin-bottom: 5px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--text-main); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: 5px; background: var(--bg-body); color: var(--text-main);
    font-family: 'Tajawal'; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }

.modal-submit {
    width: 100%; padding: 15px; background: var(--primary);
    color: #fff; border: none; border-radius: 5px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.modal-submit:hover { background: var(--primary-dark); }

/* CTA */
.cta-section {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.btn-white {
    background: #fff;
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.btn-white:hover { background: var(--primary); color: #fff; }

/* Mobile */
@media (max-width: 768px) {
    .services-hero { padding: 80px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .service-box { text-align: center; }
    .icon-wrapper { margin: 0 auto 20px; }
}