/* ==========================================================================
   pages.css - shared styles for InvoVibe Tech interior pages
   (service pages, services hub). Reuses the design tokens declared in
   styles.css :root so interior pages stay visually identical to home.
   ========================================================================== */

/* ---------- Base ---------- */
.page-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.page-body .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-narrow {
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--cyan);
    color: #04121c;
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: calc(var(--nav-height) + 32px) 0 0;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--cyan-dim); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--cyan-bright); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative;
    padding: 48px 0 72px;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.13), transparent 65%);
    pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

.page-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--cyan);
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 7px 16px;
    margin-bottom: 24px;
}

.page-title {
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 22px;
    max-width: 20ch;
}
.page-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-lead {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 62ch;
    margin: 0 0 34px;
}

.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.page-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-facts li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    border-radius: 100px;
    padding: 8px 16px;
}
.page-facts li strong { color: var(--cyan); font-weight: 600; }

/* ---------- Generic content block ---------- */
.page-section { padding: 64px 0; }
.page-section--tight { padding: 44px 0; }
.page-section--alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.block-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan-dim);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.block-title {
    font-size: clamp(1.55rem, 3.4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 18px;
}
.block-sub {
    color: var(--text-secondary);
    max-width: 66ch;
    margin: 0 0 36px;
}

.prose p { color: var(--text-secondary); margin: 0 0 18px; }
.prose h3 {
    font-size: 1.22rem;
    font-weight: 650;
    color: var(--text-primary);
    margin: 34px 0 12px;
}
.prose ul { color: var(--text-secondary); padding-left: 0; list-style: none; margin: 0 0 22px; }
.prose ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 11px;
}
.prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--gradient-primary);
}
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--cyan-bright); text-decoration: none; border-bottom: 1px solid var(--border-subtle); }
.prose a:hover { border-bottom-color: var(--cyan-bright); }

/* ---------- Card grid ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 20px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-subtle);
    background: var(--bg-card-hover);
}
.info-card h3 {
    font-size: 1.08rem;
    font-weight: 650;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.info-card p { color: var(--text-secondary); font-size: 0.94rem; margin: 0; }

.info-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    color: var(--cyan-bright);
    margin-bottom: 18px;
}
.info-card-icon svg { width: 22px; height: 22px; }

/* ---------- Numbered process ---------- */
.process-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.process-list li {
    counter-increment: step;
    position: relative;
    padding: 22px 24px 22px 74px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
}
.process-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 22px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cyan);
}
.process-list h3 { font-size: 1.03rem; margin: 0 0 6px; font-weight: 650; }
.process-list p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; }

/* ---------- Tech pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-row li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 8px 15px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    background: var(--cyan-subtle);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 4px 24px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 34px 20px 0;
    font-weight: 600;
    font-size: 1.01rem;
    position: relative;
    color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.45rem;
    font-weight: 300;
    color: var(--cyan);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 0 20px; color: var(--text-secondary); }
.faq-item .faq-answer p { margin: 0 0 12px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Proof / results strip ---------- */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    text-align: center;
}
.proof-item {
    padding: 26px 18px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
.proof-item .proof-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.proof-item .proof-label { font-size: 0.86rem; color: var(--text-secondary); }

/* ---------- Related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.related-card {
    display: block;
    text-decoration: none;
    padding: 24px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.related-card h3 { font-size: 1rem; color: var(--text-primary); margin: 0 0 8px; font-weight: 650; }
.related-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.related-card .related-go { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }

/* ---------- CTA band ---------- */
.cta-band {
    margin: 0 auto;
    padding: 56px 40px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
    text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 700; margin: 0 0 14px; }
.cta-band p { color: var(--text-secondary); max-width: 54ch; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Areas served ---------- */
.area-list {
    display: flex; flex-wrap: wrap; gap: 10px;
    list-style: none; padding: 0; margin: 0;
}
.area-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 7px 14px;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* ---------- Interior nav overrides ----------
   Interior pages carry eight nav links (home, hub, five services, projects)
   so every service page is reachable sitewide — good for crawl depth and
   internal link equity. That does not fit at the homepage's link padding,
   so tighten spacing here and let it wrap rather than overflow. */
.page-body .navbar {
    background: rgba(5, 8, 22, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-card);
}
@media (min-width: 769px) {
    .page-body .nav-menu { gap: 2px; }
    .page-body .nav-link { padding: 8px 10px; font-size: 13px; }
    .page-body .nav-cta { padding: 9px 18px; font-size: 13px; }
}
@media (min-width: 769px) and (max-width: 1150px) {
    .page-body .nav-link { padding: 8px 7px; font-size: 12.5px; }
    .page-body .nav-cta { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-hero { padding: 32px 0 52px; }
    .page-section { padding: 48px 0; }
    .cta-band { padding: 40px 22px; }
    .page-title { max-width: none; }
    .process-list li { padding: 20px 20px 20px 64px; }
    .process-list li::before { left: 20px; top: 20px; }
}
