/* =============================================================
   GPRESS SITEWIDE — Topbar & Footer styles
   Loaded on every page EXCEPT the front page
   (front page gets the full homepage.css instead)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --gp-primary: #6C63FF;
    --gp-primary-dark: #4f46e5;
    --gp-accent: #00D4AA;
    --gp-dark: #0d0f1a;
    --gp-dark-2: #141628;
    --gp-dark-3: #1e2138;
    --gp-light: #f8f9ff;
    --gp-text: #1a1d33;
    --gp-muted: #6b7280;
    --gp-border: rgba(108, 99, 255, .15);
    --gp-white: #ffffff;
    --gp-radius: 14px;
    --gp-shadow: 0 4px 24px rgba(108, 99, 255, .12);
    --gp-transition: .3s cubic-bezier(.4, 0, .2, 1);
    --gp-font-body: 'Inter', sans-serif;
    --gp-font-head: 'Plus Jakarta Sans', sans-serif;
    --gp-container: 1220px;
}

/* ── Shared container ─────────────────────────────────────── */
.gp-container {
    width: 100%;
    max-width: var(--gp-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── Shared button base (used in footer) ─────────────────── */
.gp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--gp-font-head);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--gp-transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.gp-btn--primary {
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-dark) 100%);
    color: var(--gp-white);
    box-shadow: 0 4px 18px rgba(108, 99, 255, .35);
}

.gp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 99, 255, .5);
    color: var(--gp-white);
}

/* =============================================================
   TOP BAR
   ============================================================= */
.gp-topbar {
    background: var(--gp-dark);
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    line-height: 1;
    z-index: 200;
    position: relative;
}

.gp-topbar__inner {
    max-width: var(--gp-container);
    margin-inline: auto;
    padding: .55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gp-topbar__links,
.gp-topbar__contact {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.gp-topbar a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color var(--gp-transition);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.gp-topbar a:hover {
    color: var(--gp-accent);
}

.gp-topbar svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.gp-topbar__cta-btn {
    background: var(--gp-primary) !important;
    color: var(--gp-white) !important;
    padding: .3rem .9rem;
    border-radius: 50px;
    font-weight: 600;
}

.gp-topbar__cta-btn:hover {
    background: var(--gp-primary-dark) !important;
    color: var(--gp-white) !important;
}

/* =============================================================
   FOOTER
   ============================================================= */
.gp-footer {
    background: var(--gp-dark);
    color: rgba(255, 255, 255, .75);
    font-family: var(--gp-font-body);
}

/* Footer – top grid area */
.gp-footer__top {
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.gp-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

/* Brand column */
.gp-footer__logo {
    display: inline-block;
    font-family: var(--gp-font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gp-white);
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: -.03em;
}

.gp-footer__tagline {
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1.5rem;
}

.gp-footer__socials {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.gp-footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: var(--gp-transition);
}

.gp-footer__social-link:hover {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: var(--gp-white);
    transform: translateY(-2px);
}

.gp-footer__social-link svg {
    width: 16px;
    height: 16px;
}

/* Footer columns */
.gp-footer__heading {
    font-family: var(--gp-font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 1.25rem;
}

.gp-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.gp-footer__links li {
    margin: 0;
    padding: 0;
}

.gp-footer__links a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .92rem;
    transition: color var(--gp-transition), padding-left var(--gp-transition);
    display: inline-block;
}

.gp-footer__links a:hover {
    color: var(--gp-accent);
    padding-left: 4px;
}

/* Contact list column */
.gp-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.gp-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255, 255, 255, .65);
    font-size: .92rem;
    margin: 0;
    padding: 0;
}

.gp-footer__contact-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gp-accent);
    margin-top: 2px;
}

.gp-footer__contact-list a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color var(--gp-transition);
}

.gp-footer__contact-list a:hover {
    color: var(--gp-accent);
}

.gp-footer__contact-list address {
    font-style: normal;
    line-height: 1.5;
}

/* Bottom bar */
.gp-footer__bottom {
    padding: 1.25rem 0;
}

.gp-footer__bottom .gp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gp-footer__bottom p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .35);
    margin: 0;
}

.gp-footer__bottom p a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
}

.gp-footer__bottom p a:hover {
    color: var(--gp-accent);
}

.gp-footer__bottom nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gp-footer__bottom nav a {
    font-size: .82rem;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: color var(--gp-transition);
}

.gp-footer__bottom nav a:hover {
    color: var(--gp-accent);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .gp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .gp-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .gp-topbar__links {
        display: none;
    }

    /* hide nav links on mobile topbar */
    .gp-topbar__inner {
        justify-content: flex-end;
    }

    .gp-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gp-footer__bottom .gp-container {
        flex-direction: column;
        text-align: center;
    }

    .gp-footer__bottom nav {
        justify-content: center;
    }
}

/* =============================================================
   PAGE TEMPLATE — Medium-style single column, no sidebar
   Applied when page.php is used (WordPress body classes:
   .page, .page-id-*, etc.)
   ============================================================= */

/* ── Override GeneratePress layout to full-width, no sidebar ── */
.page .site-content,
.page #content {
    display: block !important;
    /* remove GP's flex/grid sidebar layout */
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide GP sidebar if it still renders */
.page .widget-area,
.page #sidebar,
.page aside.sidebar {
    display: none !important;
}

/* ── Main wrapper ────────────────────────────────────────────── */
.gp-page-main {
    width: 100%;
    background: #fff;
    font-family: var(--gp-font-body);
    color: var(--gp-text);
}

/* ── Page Hero banner ────────────────────────────────────────── */
.gp-page-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(120deg,
            #0d0f1a 0%,
            #1e1060 30%,
            var(--gp-primary) 60%,
            var(--gp-accent) 100%);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.gp-page-hero__inner {
    max-width: 780px;
    margin-inline: auto;
}

/* Breadcrumb inside hero */
.gp-page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gp-page-breadcrumb a {
    color: var(--gp-accent);
    text-decoration: none;
    transition: opacity var(--gp-transition);
}

.gp-page-breadcrumb a:hover {
    opacity: .8;
}

.gp-page-hero__title {
    font-family: var(--gp-font-head);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin: 0 0 .5rem;
}

.gp-page-hero__excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
    margin: 0;
    max-width: 640px;
    margin-inline: auto;
}

/* ── Featured image ──────────────────────────────────────────── */
.gp-page-featured-img {
    width: 100%;
    background: var(--gp-dark-2);
}

.gp-page-featured-img__inner {
    max-width: 900px;
    margin-inline: auto;
    padding: 0 1.5rem;
    transform: translateY(-2.5rem);
    /* overlap hero slightly */
}

.gp-page-featured-img__img {
    width: 100%;
    height: auto;
    border-radius: var(--gp-radius);
    display: block;
    box-shadow: 0 16px 56px rgba(0, 0, 0, .25);
}

/* ── Content column — Medium-style ───────────────────────────── */
.gp-page-content {
    max-width: 920px;
    /* sweet-spot for comfortable reading */
    margin-inline: auto;
    padding: 3.5rem 1.5rem 5rem;
}

/* Typography inside the content column */
.gp-page-content h1,
.gp-page-content h2,
.gp-page-content h3,
.gp-page-content h4,
.gp-page-content h5,
.gp-page-content h6 {
    font-family: var(--gp-font-head);
    color: var(--gp-text);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
}

.gp-page-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.gp-page-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.gp-page-content h4 {
    font-size: 1.2rem;
}

.gp-page-content p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
}

.gp-page-content a {
color: #ff813f;
    text-underline-offset: 3px;
    transition: color var(--gp-transition);
}

.gp-page-content a:hover {
    color: #00d4aa;
}

.gp-page-content ul,
.gp-page-content ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.gp-page-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: .5rem;
    color: #2d2d2d;
}

.gp-page-content blockquote {
    border-left: 4px solid var(--gp-primary);
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background: rgba(108, 99, 255, .05);
    border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    line-height: 1.75;
}

.gp-page-content blockquote cite {
    display: block;
    margin-top: .75rem;
    font-size: .9rem;
    font-style: normal;
    color: var(--gp-muted);
}

.gp-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 2rem auto;
}

.gp-page-content figure {
    margin: 2rem 0;
}

.gp-page-content figcaption {
    text-align: center;
    font-size: .85rem;
    color: var(--gp-muted);
    margin-top: .5rem;
}

.gp-page-content pre,
.gp-page-content code {
    font-family: 'Courier New', Courier, monospace;
    background: #f4f4f8;
    border-radius: 6px;
}

.gp-page-content pre {
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.gp-page-content code {
    padding: .15em .45em;
    font-size: .88em;
}

.gp-page-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 3rem 0;
}

.gp-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

.gp-page-content th,
.gp-page-content td {
    text-align: left;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.gp-page-content th {
    font-family: var(--gp-font-head);
    font-weight: 700;
    color: var(--gp-text);
    background: rgba(108, 99, 255, .05);
}

/* ── Paginated content links ─────────────────────────────────── */
.gp-page-pagination {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: .9rem;
}

.gp-page-pagination__label {
    font-weight: 600;
    color: var(--gp-muted);
    margin-right: .25rem;
}

.gp-page-pagination a,
.gp-page-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0 .75rem;
    background: var(--gp-light);
    color: var(--gp-text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--gp-transition);
}

.gp-page-pagination a:hover {
    background: var(--gp-primary);
    color: #222;
}

/* ── Comments wrapper ────────────────────────────────────────── */
.gp-page-comments {
    max-width: 720px;
    margin-inline: auto;
    padding: 0 1.5rem 5rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gp-page-hero {
        padding: 1.75rem 1rem 1.5rem;
    }

    .gp-page-featured-img__inner {
        padding: 0 1rem;
        transform: translateY(-1.5rem);
    }

    .gp-page-content {
        padding: 2rem 1rem 3.5rem;
    }

    .gp-page-content p,
    .gp-page-content li {
        font-size: 1rem;
    }

    .gp-page-comments {
        padding: 0 1rem 3.5rem;
    }
}

@media (max-width: 480px) {
    .gp-page-hero__title {
        font-size: 1.25rem;
    }

    .gp-page-content blockquote {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* =============================================================
   CPT ARCHIVE — Pinterest-style 4-column grid
   Used by archive-{cpt}.php via the shared archive-cpt.php
   ============================================================= */

/* ── Full-width layout override (same as page.php) ────────── */
.post-type-archive .site-content,
.post-type-archive #content {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.post-type-archive .widget-area,
.post-type-archive #sidebar,
.post-type-archive aside.sidebar {
    display: none !important;
}

/* ── Archive main wrapper ─────────────────────────────────── */
.gp-archive-main {
    width: 100%;
    background: #f8f9ff;
    font-family: var(--gp-font-body);
    color: var(--gp-text);
    min-height: 60vh;
}


/* ── Section wrapper ─────────────────────────────────────── */
.gp-archive-section {
    padding: 3rem 0 5rem;
}

.gp-archive-container {
    width: 100%;
    max-width: 1260px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ══ Pinterest-style card grid ═══════════════════════════════ */
.gp-cpt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
    /* cards sit at different heights — pin effect */
}

/* ── Single card ─────────────────────────────────────────── */
.gp-cpt-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    transition: transform var(--gp-transition), box-shadow var(--gp-transition);
    position: relative;
}

.gp-cpt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(108, 99, 255, .18);
}

.gp-cpt-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Thumbnail area ──────────────────────────────────────── */
.gp-cpt-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gp-dark-2);
}

.gp-cpt-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.gp-cpt-card:hover .gp-cpt-card__img {
    transform: scale(1.06);
}

/* Gradient fallback tile */
.gp-cpt-card__gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-cpt-card__gradient-letter {
    font-family: var(--gp-font-head);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .85);
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

/* Hover overlay arrow */
.gp-cpt-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(108, 99, 255, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity var(--gp-transition);
}

.gp-cpt-card:hover .gp-cpt-card__overlay {
    opacity: 1;
}

/* ── Card body ───────────────────────────────────────────── */
.gp-cpt-card__body {
    padding: 1rem 1.1rem 1.25rem;
}

.gp-cpt-card__title {
    font-family: var(--gp-font-head);
    font-size: .95rem;
    font-weight: 700;
    color: var(--gp-text);
    line-height: 1.35;
    margin: 0 0 .4rem;
    letter-spacing: -.01em;

    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-cpt-card__excerpt {
    font-size: .82rem;
    color: var(--gp-muted);
    line-height: 1.55;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pagination ──────────────────────────────────────────── */
.gp-archive-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.gp-archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: center;
}

.gp-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    border-radius: 10px;
    background: #fff;
    color: var(--gp-text);
    font-family: var(--gp-font-head);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    border: 1px solid rgba(108, 99, 255, .15);
    transition: var(--gp-transition);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.gp-archive-pagination .page-numbers:hover,
.gp-archive-pagination .page-numbers.current {
    background: var(--gp-primary);
    color: #fff;
    border-color: var(--gp-primary);
    box-shadow: 0 4px 14px rgba(108, 99, 255, .35);
}

/* ── Empty state ─────────────────────────────────────────── */
.gp-archive-empty {
    text-align: center;
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 480px;
    margin-inline: auto;
}

.gp-archive-empty svg {
    width: 64px;
    height: 64px;
    color: var(--gp-primary);
    opacity: .6;
}

.gp-archive-empty h2 {
    font-family: var(--gp-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0;
}

.gp-archive-empty p {
    font-size: 1rem;
    color: var(--gp-muted);
    margin: 0;
    line-height: 1.65;
}

/* ══ CPT Archive Responsive ══════════════════════════════════ */

/* 3 columns — tablet landscape */
@media (max-width: 1100px) {
    .gp-cpt-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* 2 columns — tablet portrait */
@media (max-width: 768px) {
    .gp-cpt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gp-archive-section {
        padding: 2rem 0 3.5rem;
    }

    .gp-cpt-card__title {
        font-size: .9rem;
    }
}

/* 2 columns — large phone (keep 2-col for readability) */
@media (max-width: 480px) {
    .gp-cpt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    .gp-archive-container {
        padding-inline: 1rem;
    }

    .gp-cpt-card__gradient-letter {
        font-size: 2.5rem;
    }

    .gp-cpt-card__body {
        padding: .75rem .85rem 1rem;
    }
}