/* =========================================================
   VerdantCart AI — Shared static pages
   File: assets/css/verdantcart-pages.css
   Scope: About, FAQ, Contact, Privacy, Terms

   All five pages use the .gc-ai-marketing-page wrapper class.
   ========================================================= */

.gc-ai-marketing-page {
    background: #f3f7f5;
    color: #0f172a;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.gc-ai-marketing-page *,
.gc-ai-marketing-page *::before,
.gc-ai-marketing-page *::after {
    box-sizing: border-box;
}

.gc-ai-marketing-page .gc-ai-wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- Page shell ---------- */

.gc-ai-static-page {
    padding: 58px 0 54px;
}

.gc-ai-static-page__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    margin-bottom: 24px;
}

.gc-ai-static-page__title {
    max-width: 980px;
    margin: 0 0 24px;
    color: #0f172a;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.gc-ai-static-page__intro {
    max-width: 920px;
    margin: 0;
    color: #475569;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
}

/* ---------- Buttons ---------- */

.gc-ai-static-page__actions,
.gc-ai-static-page__bottom-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.gc-ai-static-page__actions {
    margin-top: 34px;
}

.gc-ai-static-page__bottom-actions {
    max-width: 900px;
    margin: 44px 0 28px;
    padding-top: 30px;
    border-top: 1px solid #dbe4dd;
}

.gc-ai-btn,
a.gc-ai-btn,
button.gc-ai-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 30px;
    border-radius: 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.gc-ai-btn--primary {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.18);
}

.gc-ai-btn--primary:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(21, 128, 61, 0.22);
}

.gc-ai-btn--secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.gc-ai-btn--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* ---------- FAQ cards ---------- */

.gc-ai-static-page__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin-top: 56px;
}

.gc-ai-faq-item {
    background: #ffffff;
    border: 1px solid #dbe4dd;
    border-radius: 30px;
    padding: 36px 38px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.gc-ai-faq-item h2 {
    margin: 0 0 18px;
    padding: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gc-ai-faq-item p {
    margin: 0;
    padding: 0;
    color: #334155;
    font-size: 19px;
    line-height: 1.75;
}

.gc-ai-faq-item p a {
    color: #15803d;
    font-weight: 700;
    text-decoration: underline;
}

.gc-ai-faq-item p a:hover {
    color: #166534;
}

/* =========================================================
   Footer — 4-column Brand / Product / Company / Legal
   Matches the structure in front-page.php and page-pricing.php.
   ========================================================= */

.gc-ai-marketing-page .gc-ai-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    padding: 48px 0 28px;
    background: #ffffff;
    border-top: 1px solid #dbe4dd;
    overflow-x: hidden;
}

.gc-ai-marketing-page .gc-ai-footer .gc-ai-wrap,
.gc-ai-footer-inner,
.gc-ai-footer-bottom {
    width: min(1200px, calc(100% - 64px));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.gc-ai-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.gc-ai-footer-brand {
    max-width: 430px;
}

.gc-ai-footer-logo {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.gc-ai-footer-text {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.gc-ai-footer-nav-group h4 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Override the OLD inline-flex nav style — these navs now live
   inside nav-groups and need to flow as vertical link columns. */
.gc-ai-footer-nav-group .gc-ai-footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding-top: 0;
}

.gc-ai-footer-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.gc-ai-footer-nav a:hover {
    color: #16a34a;
}

.gc-ai-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* ---------- Remove theme spacing around custom page/footer ---------- */

body .gc-ai-marketing-page {
    margin-bottom: 0;
    padding-bottom: 0;
}

body .gc-ai-marketing-page+footer,
body .gc-ai-marketing-page+.site-footer {
    margin-top: 0;
    padding-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .gc-ai-footer-inner {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .gc-ai-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        margin-bottom: 8px;
    }
}

@media (max-width: 800px) {
    .gc-ai-marketing-page .gc-ai-wrap {
        width: min(100%, calc(100% - 32px));
    }

    .gc-ai-static-page {
        padding: 34px 0 24px;
    }

    .gc-ai-static-page__title {
        font-size: clamp(38px, 11vw, 56px);
    }

    .gc-ai-static-page__intro {
        font-size: 17px;
    }

    .gc-ai-static-page__actions,
    .gc-ai-static-page__bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gc-ai-btn,
    a.gc-ai-btn,
    button.gc-ai-btn {
        width: 100%;
        min-height: 54px;
    }

    .gc-ai-static-page__body {
        gap: 20px;
        margin-top: 42px;
    }

    .gc-ai-faq-item {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .gc-ai-faq-item h2 {
        font-size: 28px;
    }

    .gc-ai-faq-item p {
        font-size: 17px;
        line-height: 1.68;
    }

    .gc-ai-static-page__bottom-actions {
        margin: 38px 0 24px;
    }

    .gc-ai-marketing-page .gc-ai-footer {
        padding: 34px 0 26px;
    }

    .gc-ai-marketing-page .gc-ai-footer .gc-ai-wrap,
    .gc-ai-footer-inner,
    .gc-ai-footer-bottom {
        width: min(100%, calc(100% - 32px));
    }

    .gc-ai-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .gc-ai-footer-brand {
        grid-column: 1 / -1;
    }

    .gc-ai-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 430px) {

    .gc-ai-marketing-page .gc-ai-wrap,
    .gc-ai-marketing-page .gc-ai-footer .gc-ai-wrap,
    .gc-ai-footer-inner,
    .gc-ai-footer-bottom {
        width: min(100%, calc(100% - 28px));
    }

    .gc-ai-static-page__title {
        font-size: 38px;
    }

    .gc-ai-faq-item h2 {
        font-size: 25px;
    }

    .gc-ai-faq-item p {
        font-size: 16px;
    }

    .gc-ai-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .gc-ai-footer-brand {
        grid-column: 1 / -1;
    }

    .gc-ai-footer-nav a {
        white-space: normal;
    }
}

/* =========================================================
   VerdantCart AI — Blog post (single.php)
   Targets: .gc-ai-blog-article and children
   Scope: Single blog post layout, typography, and CTA footer
   ========================================================= */

.gc-ai-blog-article {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 56px;
    margin: 40px auto;
    max-width: 760px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* ---------- Header ---------- */

.gc-ai-blog-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.gc-ai-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gc-ai-blog-category {
    display: inline-block;
    background: #ecfdf5;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s;
}

.gc-ai-blog-category:hover {
    background: #d1fae5;
    color: #166534;
}

.gc-ai-blog-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.gc-ai-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.gc-ai-blog-meta strong {
    color: #0f172a;
    font-weight: 600;
}

.gc-ai-blog-dot {
    color: #cbd5e1;
}

.gc-ai-blog-featured-image {
    margin-top: 32px;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.gc-ai-blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Content typography ---------- */

.gc-ai-blog-content {
    font-size: 18px;
    line-height: 1.75;
    color: #1e293b;
}

.gc-ai-blog-content > * {
    margin-top: 0;
}

.gc-ai-blog-content p {
    margin: 0 0 24px;
}

.gc-ai-blog-content h2 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin: 56px 0 20px;
    letter-spacing: -0.01em;
}

.gc-ai-blog-content h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 16px;
}

.gc-ai-blog-content h4 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 12px;
}

.gc-ai-blog-content strong {
    font-weight: 700;
    color: #0f172a;
}

.gc-ai-blog-content em {
    color: #1e293b;
}

.gc-ai-blog-content a {
    color: #15803d;
    text-decoration: underline;
    text-decoration-color: #86efac;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.gc-ai-blog-content a:hover {
    color: #166534;
    text-decoration-color: #15803d;
}

.gc-ai-blog-content ul,
.gc-ai-blog-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.gc-ai-blog-content li {
    margin-bottom: 8px;
}

.gc-ai-blog-content blockquote {
    border-left: 4px solid #15803d;
    background: #f0fdf4;
    margin: 32px 0;
    padding: 20px 28px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #15803d;
}

.gc-ai-blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.gc-ai-blog-content hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 48px 0;
}

.gc-ai-blog-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #0f172a;
}

.gc-ai-blog-content pre {
    background: #0f172a;
    color: #f1f5f9;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.gc-ai-blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.gc-ai-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

/* ---------- CTA Footer ---------- */

.gc-ai-blog-footer {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.gc-ai-blog-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
}

.gc-ai-blog-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 12px;
}

.gc-ai-blog-cta p {
    font-size: 16px;
    line-height: 1.6;
    color: #166534;
    margin: 0 0 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.gc-ai-blog-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gc-ai-blog-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.gc-ai-blog-btn-primary {
    background: #15803d;
    color: #ffffff;
}

.gc-ai-blog-btn-primary:hover {
    background: #166534;
    color: #ffffff;
    transform: translateY(-1px);
}

.gc-ai-blog-btn-secondary {
    background: #ffffff;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.gc-ai-blog-btn-secondary:hover {
    background: #ecfdf5;
    color: #166534;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .gc-ai-blog-article {
        padding: 32px 24px;
        margin: 24px 16px;
        border-radius: 12px;
    }

    .gc-ai-blog-title {
        font-size: 30px;
    }

    .gc-ai-blog-content {
        font-size: 16px;
    }

    .gc-ai-blog-content h2 {
        font-size: 24px;
        margin: 40px 0 16px;
    }

    .gc-ai-blog-content h3 {
        font-size: 20px;
        margin: 32px 0 14px;
    }

    .gc-ai-blog-cta {
        padding: 24px 20px;
    }

    .gc-ai-blog-cta-buttons {
        flex-direction: column;
    }

    .gc-ai-blog-btn {
        width: 100%;
    }
}
