/* ==========================================================================
   Landing page layout
   ========================================================================== */

/* Hero */
.mglp-hero {
    background: #f8fafc;
    padding: 2.5em 1.5em 3em;
}

.mglp-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    align-items: start;
}

/* Without min-width:0, grid items default to min-width:auto and refuse to
   shrink below their content's min-content size. The form contains a
   Turnstile widget (~300px min) which would otherwise push the column
   wider than a phone viewport, clipping the H1 in the other column. */
.mglp-hero-content,
.mglp-hero-form {
    min-width: 0;
}

.mglp-hero-headline {
    font-size: 2em;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.4em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mglp-hero-sub {
    font-size: 1.15em;
    color: #475569;
    margin: 0 0 1.2em;
}

.mglp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.mglp-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.8em;
    font-weight: 600;
    padding: 0.35em 0.7em;
    border-radius: 4px;
}

.mglp-hero-phone {
    text-align: center;
    font-size: 1.05em;
    color: #334155;
    margin-top: 0.8em;
}

.mglp-hero-phone a {
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
}

/* Sections */
.mglp-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5em 1.5em;
}

.mglp-section-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 1.2em;
}

/* Social proof */
.mglp-social-proof {
    background: #fff;
}

/* How it works */
.mglp-how-it-works {
    background: #f1f5f9;
}

.mglp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    text-align: center;
}

.mglp-step-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 auto 0.6em;
}

.mglp-step-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.3em;
}

.mglp-step-desc {
    font-size: 0.9em;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Projects section */
.mglp-projects-section {
    background: #fff;
}

.mglp-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.mglp-project-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mglp-project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.mglp-project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.mglp-project-title {
    padding: 0.8em 1em;
    font-size: 0.95em;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* FAQ */
.mglp-faq {
    background: #f8fafc;
}

.mglp-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.mglp-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.75em;
    background: #fff;
    overflow: hidden;
}

.mglp-faq-question {
    padding: 1em 1.2em;
    font-weight: 600;
    font-size: 1em;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mglp-faq-question::after {
    content: '+';
    font-size: 1.3em;
    font-weight: 400;
    color: #94a3b8;
    flex-shrink: 0;
    margin-left: 1em;
}

.mglp-faq-item[open] .mglp-faq-question::after {
    content: '\2212';
}

.mglp-faq-question::-webkit-details-marker {
    display: none;
}

.mglp-faq-answer {
    padding: 0 1.2em 1em;
    color: #475569;
    line-height: 1.6;
}

.mglp-faq-answer p {
    margin: 0;
}

/* Final CTA */
.mglp-final-cta {
    background: #1e293b;
    color: #fff;
    text-align: center;
    padding: 3em 1.5em;
    max-width: none;
}

.mglp-final-cta .mglp-section-title {
    color: #fff;
}

.mglp-final-cta-sub {
    font-size: 1.1em;
    color: #cbd5e1;
    margin: 0 0 1.5em;
}

.mglp-final-cta-form {
    max-width: 640px;
    margin: 0 auto;
}

.mglp-final-cta-phone {
    font-size: 1.05em;
    color: #cbd5e1;
    margin-top: 1.2em;
}

.mglp-final-cta-phone a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mglp-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .mglp-hero-headline {
        font-size: 1.4em;
    }

    .mglp-steps {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    .mglp-section-title {
        font-size: 1.3em;
    }

    .mglp-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mglp-hero {
        padding: 1.5em 0.75em 2em;
    }

    .mglp-hero-headline {
        font-size: 1.2em;
    }

    .mglp-hero-sub {
        font-size: 1em;
    }

    .mglp-section {
        padding: 2em 0.75em;
    }
}
