@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* Main Style Manifest */
/* imports are processed in order */

@import 'css/base.css';
@import 'css/layout.css';
@import 'css/sections.css';
@import 'css/services.css';
@import 'css/blog.css';

/* 
   Refactored styles.css
   
   Original code has been split into:
   - css/base.css: Variables, Reset, Typography, Utilities
   - css/layout.css: Header, Navigation, Footer
   - css/sections.css: Hero, About, Contact
   - css/services.css: Services grid and Service Detail pages
*/

/* Sidebar Styles */
.service-sidebar {
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-contact-card {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}

.service-contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-contact-card p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.call-btn {
    background: white;
    color: var(--primary);
}

.call-btn:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1faf53;
    transform: translateY(-2px);
}

.sidebar-info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.sidebar-info-box h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-alt);
    padding-bottom: 0.5rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Mobile Responsive for Service Details */
@media (max-width: 900px) {
    .service-page-layout {
        grid-template-columns: 1fr;
    }

    .detail-header-image {
        height: 250px;
    }

    .detail-article {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .service-sidebar {
        order: 2;
    }
    
    .sticky-wrapper {
        position: static;
    }
}

/* Service Detail Styles */
.service-detail-container {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.detail-image {
    width: 100%;
    height: 400px;
    position: relative;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content {
    padding: 3rem;
}

.detail-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.detail-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.detail-body {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 3rem;
}

.detail-body p {
    margin-bottom: 1rem;
}

.detail-body ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-right: 1rem;
}

.detail-body ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.detail-body ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: bold;
}

.detail-cta {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.detail-cta h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.detail-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .detail-image {
        height: 250px;
    }
    .detail-content {
        padding: 1.5rem;
    }
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-icon-large {
    padding: 2rem 2rem 0 2rem;
    color: var(--accent);
    display: flex;
    justify-content: center;
}

.service-icon-large svg {
    width: 64px;
    height: 64px;
}

.card-content {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About */
.about {
    padding: 6rem 0;
    background: var(--bg);
}

.features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.features li:hover {
    transform: translateX(-5px);
    border-color: var(--accent);
}

.features svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.section-desc h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-desc p {
    color: var(--text-light);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.info-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    margin: 0;
    line-height: 1.4;
}

.icon-box {
    color: var(--accent);
    padding: 12px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.phone-btn {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.phone-btn:hover {
    background: transparent;
    color: var(--primary);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    background: var(--bg-alt);
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.submit-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 0 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.1), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-8px);
    padding-right: 5px;
}

.footer-links a::before {
    content: '←';
    opacity: 0;
    margin-left: 5px;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
    
    /* Hamburger Animation */
    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}