/* GhostMode Insights (blog) styles, matched to the main theme design system */

/* ============================================================
   Professional header nav (overrides theme style.css; loads after it)
   The WP menu renders as <ul class="nav-links"><li>, and the CTA class
   lands on the <li>, so we target .nav-links li.nav-cta a for the button.
   ============================================================ */
.nav-links, .nav-links li { list-style: none; }
.nav-links { margin: 0; padding: 0; display: flex; align-items: center; gap: 2.25rem; }
.nav-links li { margin: 0; padding: 0; }
.nav-links li::marker { content: ""; }

/* Links: readable over the hero video, animated underline */
.nav .nav-links a {
    color: #eceaf6;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.nav .nav-links a:hover { color: #ffffff; }
.nav .nav-links li:not(.nav-cta) a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: linear-gradient(90deg, #0ef, #a78bfa);
    border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
}
.nav .nav-links li:not(.nav-cta) a:hover::after { transform: scaleX(1); }

/* Get Started CTA button (class is on the <li>) */
.nav .nav-links li.nav-cta { margin-left: 0.5rem; }
.nav .nav-links li.nav-cta a {
    background: linear-gradient(135deg, #0ef 0%, #a78bfa 100%);
    color: #0a0a0f;
    padding: 0.72rem 1.6rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    text-shadow: none;
    box-shadow: 0 4px 18px rgba(14, 239, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav .nav-links li.nav-cta a::after { display: none; }
.nav .nav-links li.nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 239, 255, 0.5);
    color: #0a0a0f;
}

/* Bar polish + stronger glass when scrolled */
.nav { padding-top: 1.15rem; padding-bottom: 1.15rem; }
.nav.scrolled {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav .logo-text { font-size: 1.4rem; }

/* Mobile: turn the menu into a working glass dropdown (theme JS toggles .active) */
@media (max-width: 968px) {
    .nav .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start;
        gap: 1.35rem;
        padding: 1.5rem 2rem 2rem;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: none;
    }
    .nav .nav-links.active { display: flex; }
    .nav .nav-links a { font-size: 1.1rem; text-shadow: none; }
    .nav .nav-links li.nav-cta { margin-left: 0; }
    .nav .nav-links li.nav-cta a { display: inline-block; }
}

/* Listing */
.insights-main { padding: 140px 3rem 6rem; min-height: 70vh; }
.insights-header { max-width: 1400px; margin: 0 auto 3.5rem; }
.insights-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 1rem 0 0; }
.insights-sub { color: var(--color-text-secondary); font-size: 1.2rem; max-width: 720px; margin-top: 1.25rem; line-height: 1.6; }

.insights-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.insights-card { background: var(--color-bg-secondary); border: 1px solid rgba(14, 239, 255, 0.1); border-radius: 1.25rem; overflow: hidden; transition: all 0.3s ease; }
.insights-card:hover { transform: translateY(-8px); border-color: rgba(14, 239, 255, 0.3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.insights-card .card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.insights-card .thumb { height: 170px; background: linear-gradient(135deg, #0ef 0%, #a78bfa 100%); position: relative; overflow: hidden; }
.insights-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.insights-card .thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.25), transparent 45%); }
.insights-card .card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.insights-card .cat { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.1em; }
.insights-card h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
.insights-card .excerpt { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.6; flex: 1; }
.insights-card .meta { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.insights-pagination { max-width: 1400px; margin: 3rem auto 0; }
.insights-pagination .page-numbers { color: var(--color-text-secondary); text-decoration: none; padding: 0.5rem 0.9rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; margin: 0 0.25rem; }
.insights-pagination .page-numbers.current { background: linear-gradient(135deg, #0ef, #a78bfa); color: var(--color-bg-dark); border: none; }

/* Single post */
.post-main { padding: 140px 3rem 5rem; }
.post-wrap { max-width: 820px; margin: 0 auto; }
.post-back { display: inline-block; margin-bottom: 2rem; color: var(--color-text-muted); text-decoration: none; font-size: 0.95rem; }
.post-back:hover { color: var(--color-primary); }
.post-hero-cat { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.post-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.post-meta { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.post-content { font-size: 1.15rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.post-content > p:first-of-type { font-size: 1.28rem; line-height: 1.7; color: #fff; }
.post-content h2 { font-size: 1.9rem; font-weight: 800; margin: 2.75rem 0 1rem; letter-spacing: -0.01em; color: #fff; }
.post-content h3 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: #fff; }
.post-content p { margin: 0 0 1.4rem; }
.post-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: 0.8; }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.4rem; }
.post-content li { margin: 0.4rem 0; }
.post-content strong { color: #fff; }
.post-content figure { margin: 2.25rem 0; }
.post-content figure svg, .post-content img { max-width: 100%; height: auto; display: block; border-radius: 1rem; }

/* Pull quote */
.post-content .pullquote, .post-content blockquote {
  margin: 2.25rem 0; padding: 0.5rem 0 0.5rem 1.5rem; font-size: 1.45rem; font-weight: 600; line-height: 1.4; color: #fff;
  border-left: 3px solid transparent; border-image: linear-gradient(180deg, #0ef, #a78bfa) 1;
}

/* Tables */
.post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 1rem; }
.post-content th, .post-content td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.post-content thead th { background: rgba(14, 239, 255, 0.08); color: #fff; font-weight: 700; }

/* Key-fact / callout box (infographic-style) */
.post-content .gm-callout { margin: 2.25rem 0; padding: 1.5rem 1.75rem; border-radius: 1rem; background: linear-gradient(135deg, rgba(14,239,255,0.1), rgba(167,139,250,0.1)); border: 1px solid rgba(14, 239, 255, 0.2); font-size: 1.05rem; }
.post-content .gm-callout strong { color: var(--color-primary); }

/* CTA at end of post */
.post-cta { margin-top: 3.5rem; padding: 2.5rem; border-radius: 1.25rem; background: linear-gradient(135deg, rgba(14,239,255,0.1), rgba(167,139,250,0.1)); border: 1px solid rgba(14, 239, 255, 0.2); text-align: center; }
.post-cta h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; color: #fff; }
.post-cta p { color: var(--color-text-secondary); margin-bottom: 1.5rem; }

@media (max-width: 968px) {
  .insights-main, .post-main { padding: 120px 2rem 4rem; }
}
@media (max-width: 640px) {
  .post-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .post-content { font-size: 1.08rem; }
}

/* ============================================================
   Service pages (page-service.php)
   ============================================================ */
.service-wrap { max-width: 1040px; }
.service-hero { margin: 0 0 2.25rem; }
.service-hero svg { width: 100%; height: auto; display: block; border-radius: 1.25rem; }
.post-content .service-lead { font-size: 1.32rem; line-height: 1.6; color: #fff; margin: 0 0 2rem; }
.post-content ul.service-includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.post-content ul.service-includes li { background: var(--color-bg-secondary); border: 1px solid rgba(14,239,255,0.12); border-radius: 14px; padding: 1.15rem 1.3rem; color: var(--color-text-secondary); margin: 0; font-size: 1.02rem; }
.post-content ul.service-includes li strong { color: #fff; display: block; margin-bottom: 0.25rem; font-size: 1.06rem; }
.post-content ol.service-steps { list-style: none; counter-reset: s; margin: 1.5rem 0 0; padding: 0; }
.post-content ol.service-steps li { counter-increment: s; position: relative; padding: 0.1rem 0 1.4rem 3.4rem; color: var(--color-text-secondary); margin: 0; }
.post-content ol.service-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg,#0ef,#a78bfa); color: #0a0a0f; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.post-content ol.service-steps li strong { color: #fff; }

/* Homepage service cards as links to service pages */
a.service-card { display: block; text-decoration: none; color: inherit; }
a.service-card h3, a.service-card p { color: inherit; }
.service-card .service-more { display: inline-block; margin-top: 1.1rem; font-weight: 700; font-size: 0.95rem; color: var(--color-primary); letter-spacing: 0.01em; transition: transform 0.2s ease; }
a.service-card:hover .service-more { transform: translateX(4px); }

/* ============================================================
   Contact form (page-contact.php)
   ============================================================ */
.contact-wrap { max-width: 680px; }
.contact-intro { color: var(--color-text-secondary); font-size: 1.15rem; line-height: 1.6; margin-bottom: 2.5rem; }
.gm-form { display: flex; flex-direction: column; gap: 1.25rem; }
.gm-form label { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 600; color: #fff; font-size: 0.95rem; }
.gm-form .req { color: var(--color-primary); margin-left: 0.1rem; }
.gm-form label em { color: var(--color-text-muted); font-weight: 400; font-style: normal; }
.gm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .gm-field-row { grid-template-columns: 1fr; } }
.gm-form input, .gm-form textarea { background: var(--color-bg-secondary); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 0.85rem 1rem; color: #fff; font-size: 1rem; font-family: inherit; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.gm-form input:focus, .gm-form textarea:focus { outline: none; border-color: rgba(14,239,255,0.6); box-shadow: 0 0 0 3px rgba(14,239,255,0.15); }
.gm-form textarea { resize: vertical; }
.gm-form .btn-primary { align-self: flex-start; margin-top: 0.5rem; border: none; cursor: pointer; }
.gm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.gm-alert { padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.5; }
.gm-alert.success { background: rgba(52,211,154,0.12); border: 1px solid rgba(52,211,154,0.35); color: #8ff0cf; }
.gm-alert.error { background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.35); color: #fda4af; }
.gm-alert a { color: inherit; }

/* Contact page: compact so the form sits above the fold */
.post-main:has(.contact-wrap) { padding-top: 108px; padding-bottom: 3rem; }
.contact-wrap .post-hero-cat { margin-bottom: 0.6rem; }
.contact-wrap .post-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 0.6rem; }
.contact-intro { font-size: 1rem; margin-bottom: 1.4rem; }
.gm-form { gap: 0.85rem; }
.gm-form label { gap: 0.3rem; font-size: 0.88rem; }
.gm-form input, .gm-form textarea { padding: 0.6rem 0.85rem; border-radius: 10px; }
.gm-form textarea { min-height: 84px; }
.gm-form .btn-primary { margin-top: 0.35rem; padding: 0.85rem 2rem; font-size: 1rem; }

/* Contact intro email link on brand (was defaulting to browser blue) */
.contact-intro a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.contact-intro a:hover { opacity: 0.8; }

/* Category filter bar on /insights and archives */
.insights-filter { max-width: 1400px; margin: 0 auto 2.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.insights-filter .chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 100px; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--color-text-secondary); background: var(--color-bg-secondary); border: 1px solid rgba(255,255,255,0.1); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.insights-filter .chip:hover { color: #fff; border-color: rgba(14,239,255,0.4); }
.insights-filter .chip.active { color: var(--color-bg-dark); background: linear-gradient(135deg, #0ef, #a78bfa); border-color: transparent; }
.insights-filter .chip-n { font-size: 0.72rem; opacity: 0.7; font-weight: 700; }
.insights-filter .chip.active .chip-n { opacity: 0.85; }
