/* =====================================================
   HOME PAGE – PREMIUM AGENCY DESIGN (DEVMIXA FINAL)
===================================================== */

/* ---------------- ROOT SYSTEM ---------------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;

    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border: #e5e7eb;
}

/* =====================================================
   GLOBAL STRUCTURE
===================================================== */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 36px;
}

.hero-image img {
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.hero .btn-primary {
    background: #ffffff;
    color: var(--primary-dark);
    padding: 16px 38px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
}

/* =====================================================
   SERVICES
===================================================== */
.services {
    background: var(--bg-light);
}

.services-top-image {
    text-align: center;
    margin-bottom: 50px;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
    font-size: 16px;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card img {
    margin-bottom: 18px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37,99,235,0.15);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

/* =====================================================
   PROCESS
===================================================== */
.process h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.process-image {
    text-align: center;
    margin-bottom: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 26px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.step:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.step h4 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 14.5px;
    color: var(--text-body);
}

/* =====================================================
   WHY US
===================================================== */
.why-us {
    background: var(--bg-light);
}

.why-image {
    text-align: center;
    margin-bottom: 50px;
}

.why-us h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.why-list {
    max-width: 820px;
    margin: 0 auto;
}

.why-list li {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text-body);
    transition: 0.3s;
}

.why-list li:hover {
    transform: translateX(6px);
}

/* =====================================================
   FAQ
===================================================== */
.faq {
    position: relative;
}

.faq-background {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    z-index: 0;
}

.faq-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq .container {
    position: relative;
    z-index: 2;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.faq-item {
    max-width: 900px;
    margin: 0 auto 16px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 20px 24px;
    transition: 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.faq-item h4 {
    font-size: 16px;
    color: var(--text-dark);
}

.faq-item p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: 8px;
}

/* =====================================================
   CTA
===================================================== */
.cta {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.cta-content h2 {
    font-size: 40px;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 17px;
    margin-bottom: 30px;
    color: #e0e7ff;
}

.cta .btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    transition: 0.3s;
}

.cta .btn-secondary:hover {
    transform: translateY(-3px);
}

.cta-image img {
    box-shadow: 0 25px 55px rgba(0,0,0,0.3);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .hero-wrapper,
    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 20px;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}





/* ==============================
   WHY IMAGE FIX (DESKTOP CLEAN)
================================ */
.why-image {
    text-align: center;
    margin-bottom: 50px;
}

.why-image img {
    max-width: 700px;   /* control width */
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}





/* ==============================
   FAQ BACKGROUND SAFE FIX
================================ */
.faq {
    position: relative;
    overflow: hidden;
}

.faq-background {
    position: absolute;
    inset: 0;
    opacity: 0.04;   /* lighter */
    pointer-events: none;
    z-index: 0;
}

.faq-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq .container {
    position: relative;
    z-index: 2;
}







/* =================================
   PROCESS IMAGE FIX – PREMIUM
================================= */
.process-image {
    text-align: center;
    margin-bottom: 70px;
}

.process-image img {
    max-width: 750px;      /* control desktop width */
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 25px 55px rgba(0,0,0,0.08);
}





.process h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}