/* ============================================
   services.css – Premium, fully responsive
   Uses global design tokens from main.css
   ============================================ */

/* ----- Hero Section (centered, with particle canvas) ----- */
.service-hero.hero-premium {
    min-height: 70vh;
    padding: calc(8rem + 2.5rem) 0 4rem;
}
.service-hero .service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.service-hero .hero-badges {
    justify-content: center;
    flex-wrap: wrap;
}
.service-hero .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Trust Logos (reused from main) ----- */
.trust-logos {
    padding: 3rem 0;
    background: #f8fafc;
}
.trust-label {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}
.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
}
.logo-item {
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    filter: grayscale(100%);
    text-align: center;
}
.logo-item:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}
.logo-item img {
    max-width: 100%;
    max-height: 4rem;
    object-fit: contain;
}

/* ----- Two‑Column Form Section – Compact & Responsive ----- */
.form-section-compact {
    background: #ffffff;
    padding: 3rem 0;
}
.form-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.form-content-compact {
    padding-right: 1rem;
}
.form-content-compact .section-title {
    font-size: 2rem !important;
}
.form-content-compact .section-subtitle {
    font-size: 1rem !important;
}
.form-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.form-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #1e293b;
}
.form-benefits i {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}
.form-testimonial {
    background: #f1f5f9;
    border-left: 4px solid #6D28FF;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
}
.form-testimonial p {
    font-style: italic;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.testimonial-author {
    font-weight: 600;
    color: #6D28FF;
    font-size: 0.85rem;
}
.form-container-compact {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}
.premium-form-compact {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.premium-form-compact .form-group {
    margin-bottom: 1rem;
    position: relative;
}
.input-icon-group {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    z-index: 2;
}
.premium-form-compact .form-control {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: #1e293b;
}
.premium-form-compact .form-control:focus {
    outline: none;
    border-color: #6D28FF;
    box-shadow: 0 0 0 4px rgba(109,40,255,0.1);
}
.premium-form-compact .form-control:focus + .input-icon {
    color: #6D28FF;
}
.premium-form-compact textarea.form-control {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    resize: vertical;
    min-height: 70px;
}
.premium-form-compact .character-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.3rem;
    font-size: 0.65rem;
    color: #94a3b8;
}
.premium-form-compact .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.premium-form-compact .checkbox-group label {
    font-size: 0.75rem;
    color: #475569;
}
.premium-form-compact .checkbox-group a {
    color: #6D28FF;
    text-decoration: none;
}
.premium-form-compact .checkbox-group a:hover {
    text-decoration: underline;
}
.premium-form-compact .btn-primary {
    background: #6D28FF;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}
.premium-form-compact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(109,40,255,0.5);
}
.premium-form-compact .form-error {
    color: #ef4444;
    font-size: 0.65rem;
    margin-top: 0.2rem;
    padding-left: 2.2rem;
}

/* ----- Services Grid (8 cards) ----- */
.services-grid-section {
    background: #f8fafc;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-5);
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: var(--space-5);
    transition: var(--transition);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(109,40,255,0.15), 0 0 0 2px var(--accent) inset;
}
.service-card .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--accent-soft), var(--white));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: 2rem;
    color: var(--accent);
    box-shadow: 0 8px 16px -6px var(--accent);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    transform: scale(1.05) rotate(2deg);
    background: var(--accent);
    color: white;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    flex-grow: 1;
    line-height: 1.6;
}
.service-card .btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    align-self: flex-start;
}
.service-card .btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.service-card .btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* ----- Delivery Section (3 cards) ----- */
.delivery-section {
    background: var(--white);
}
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-5);
}
.delivery-card {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: var(--space-6);
    text-align: center;
    transition: var(--transition);
}
.delivery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent);
}
.delivery-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition);
}
.delivery-card:hover .delivery-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}
.delivery-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}
.delivery-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ----- FAQ Accordion ----- */
.faq-section {
    background: #f8fafc;
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: var(--space-3);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}
.faq-item:hover {
    box-shadow: 0 8px 20px rgba(109,40,255,0.1);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    background: transparent;
    transition: background 0.3s;
}
.faq-question:hover {
    background: var(--accent-soft);
}
.faq-question h3 {
    font-size: 1.125rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}
.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s;
    color: var(--accent);
}
.faq-question.active i {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--soft-bg);
    padding: 0 var(--space-5);
}
.faq-answer p {
    padding: var(--space-4) 0;
    margin: 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

/* ----- CTA Section – Premium White Gradient, Fully Responsive ----- */
.cta-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f2f5fa 100%);
    color: #1e293b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 20px 40px -15px rgba(0,0,0,0.1);
}
.cta-premium .cta-title {
    color: #0b1437;
}
.cta-premium .cta-description {
    color: #475569;
}
.cta-premium .btn-primary {
    background: #6D28FF;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    box-shadow: 0 15px 25px -8px rgba(109,40,255,0.4);
}
.cta-premium .btn-primary:hover {
    background: #5b21d6;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.cta-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== RESPONSIVE MEDIA QUERIES – Complete Override for All Sections ===== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .delivery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .form-content-compact {
        text-align: center;
        padding-right: 0;
    }
    .form-benefits {
        display: inline-block;
        text-align: left;
    }
    .form-testimonial {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .form-container-compact {
        max-width: 400px;
        margin: 0 auto;
    }
    .cta-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .cta-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .cta-content {
        text-align: center;
    }
    /* Hero spacing adjustment */
    .service-hero.hero-premium {
        padding: calc(7rem + 2.5rem) 0 3rem;
    }
}
@media (max-width: 768px) {
    .service-hero.hero-premium {
        min-height: auto;
        padding: calc(5rem + 2.5rem) 0 2.5rem;
    }
    .service-hero .service-hero-title {
        font-size: 2rem;
    }
    .service-hero .service-hero-subtitle {
        font-size: 1rem;
    }
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-ctas .btn-hero {
        width: 100%;
        max-width: 280px;
    }
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .services-grid,
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-description {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .service-hero.hero-premium {
        padding: calc(4rem + 2.5rem) 0 2rem;
    }
    .service-hero .service-hero-title {
        font-size: 1.8rem;
    }
    .service-hero .service-hero-subtitle {
        font-size: 0.95rem;
    }
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .premium-form-compact {
        padding: 1.2rem;
    }
    .premium-form-compact .form-control {
        font-size: 0.8rem;
    }
    .premium-form-compact .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .cta-content .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}