/* ============================================================
   CYBER GUARD — pages.css
   Components for inner pages (sub-hero, prose, services detail,
   blog, careers, contact). Extends styles.css tokens.
   ============================================================ */

/* ---- Brand art + photo slots ---- */
.brand-art { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.why-feature .brand-art { max-width: 200px; margin: 0 0 6px; }
.hero-art { display: block; position: absolute; top: 4%; right: -4%; width: 540px; max-width: 46vw; opacity: 0.5; pointer-events: none; filter: saturate(1.05); z-index: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hero-art img { width: 100%; height: auto; }
[data-tilt] { transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; }
@media (max-width: 1000px) { .hero-art { display: none; } }
.photo-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: var(--surface); position: relative; }
.photo-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-size: 12.5px; color: var(--text-soft); font-family: var(--font-mono); background: linear-gradient(to top, rgba(6,9,16,0.85), transparent); }
.media-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.media-grid-single { grid-template-columns: minmax(0, 760px); }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- FAQ ---- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--border-2); color: var(--accent); transition: transform .25s ease, background .2s; }
.faq-item summary .q-mark svg { width: 15px; height: 15px; }
.faq-item[open] summary .q-mark { transform: rotate(45deg); background: var(--accent-soft); }
.faq-item .faq-a { padding: 0 26px 24px; }
.faq-item .faq-a p { color: var(--text-soft); font-size: 15.5px; line-height: 1.66; max-width: 64ch; }
.faq-item .faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sub-page hero ---- */
.subhero { padding: 150px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.subhero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.subhero-inner { position: relative; z-index: 2; max-width: 760px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: .5; }
.subhero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; margin-bottom: 20px; }
.subhero .lead { font-size: clamp(17px, 1.6vw, 21px); }
.subhero .eyebrow { margin-bottom: 18px; }

/* ---- Generic content section ---- */
.page-sec { padding: 80px 0; }
.page-sec.tight { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.grid-2.rev { grid-template-columns: 0.9fr 1.1fr; }

/* ---- Prose ---- */
.prose { max-width: 70ch; }
.prose p { color: var(--text-soft); font-size: 17px; line-height: 1.72; margin-bottom: 20px; }
.prose h2 { font-size: 30px; margin: 44px 0 18px; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose ul { list-style: none; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; color: var(--text-soft); font-size: 16.5px; line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 5px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.prose ul li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 3px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- Check-list cards ---- */
.feature-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.feature-cell .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature-cell .ico svg { width: 21px; height: 21px; }
.feature-cell h3 { font-size: 18px; margin-bottom: 8px; }
.feature-cell h4 { font-size: 16px; margin-bottom: 7px; }
.feature-cell p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ---- Sidebar panel (sticky) ---- */
.side-panel { background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 30px 28px; position: sticky; top: 100px; }
.side-panel h3 { font-size: 19px; margin-bottom: 8px; }
.side-panel p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.side-panel .btn { width: 100%; }
.side-panel .meta-line { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); padding: 11px 0; border-top: 1px solid var(--border); }
.side-panel .meta-line svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

/* ---- Step / process list ---- */
.proc-list { display: flex; flex-direction: column; gap: 2px; counter-reset: pstep; }
.proc-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); align-items: start; }
.proc-item:last-child { border-bottom: 1px solid var(--border); }
.proc-item .pn { counter-increment: pstep; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--accent); }
.proc-item .pn::before { content: "0" counter(pstep); }
.proc-item h4 { font-size: 18px; margin-bottom: 6px; }
.proc-item p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ---- Services hub grid ---- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
a.svc-link { text-decoration: none; color: inherit; display: block; }
.svc-link .svc-card { height: 100%; }
.svc-card .arrow { position: absolute; bottom: 24px; right: 24px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.svc-card .arrow svg { width: 20px; height: 20px; }
.svc-link:hover .svc-card .arrow { opacity: 1; transform: translateX(0); }
.svc-card.has-arrow { padding-bottom: 56px; }
.tag-hot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 9px; border-radius: 999px; position: absolute; top: 22px; right: 22px; }

/* ---- CTA band (reusable) ---- */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px 56px; }
.cta-band::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 100% at 88% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 88% 50%, #000, transparent 70%); }
.cta-band-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 16px; max-width: 48ch; }
.cta-band .btn-primary { background: var(--accent); color: var(--accent-ink); }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-grid.feature-first .blog-card:first-child { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
a.blog-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
a.blog-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-3), var(--navy-deep)); position: relative; overflow: hidden; display: grid; place-items: center; }
.blog-grid.feature-first .blog-card:first-child .blog-thumb { aspect-ratio: auto; }
.blog-thumb::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 30px 30px; opacity: .6; }
.blog-thumb svg { width: 56px; height: 56px; color: var(--accent); position: relative; z-index: 1; opacity: .85; }
.blog-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.blog-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: .03em; }
.blog-meta .cat { color: var(--accent); }
.blog-card h3 { font-size: 20px; line-height: 1.2; }
.blog-grid.feature-first .blog-card:first-child h3 { font-size: 28px; }
.blog-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin-top: auto; }
.blog-card .read { font-family: var(--font-mono); font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; }
.blog-card .read svg { width: 15px; height: 15px; }

/* ---- Article ---- */
.article-hero { padding: 140px 0 40px; position: relative; overflow: hidden; }
.article-hero .binary-rain {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .34;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 8%, #000 0%, rgba(0,0,0,.45) 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 8%, #000 0%, rgba(0,0,0,.45) 40%, transparent 72%);
}
.article-hero .wrap { position: relative; z-index: 1; }
.article-head { max-width: 760px; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; margin: 18px 0 22px; }
.article-head .blog-meta { justify-content: center; }
.article-cover { max-width: 1000px; margin: 36px auto 0; aspect-ratio: 21/9; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: linear-gradient(135deg, var(--surface-3), var(--navy-deep)); display: grid; place-items: center; position: relative; overflow: hidden; }
.article-cover::after { content:""; position:absolute; inset:0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 38px 38px; }
.article-cover svg { width: 80px; height: 80px; color: var(--accent); position: relative; z-index: 1; }
.article-body { max-width: 720px; margin: 0 auto; padding: 50px 0 20px; }
.article-body .lead-para { font-size: 20px; color: var(--text); line-height: 1.6; margin-bottom: 28px; font-weight: 500; }
.callout { background: var(--surface); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 22px 24px; margin: 28px 0; }
.callout p { margin: 0; font-size: 16px; color: var(--text-soft); }
.share-row { max-width: 720px; margin: 30px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }

/* ---- Careers ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-list { display: flex; flex-direction: column; gap: 14px; }
.role-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; transition: border-color .2s, transform .2s; flex-wrap: wrap; }
.role-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.role-card .role-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-top: 8px; flex-wrap: wrap; }
.role-card h3 { font-size: 21px; }
.role-card .role-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.role-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-soft); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 11px; }
.spont { text-align: center; padding: 40px; border: 1px dashed var(--border-2); border-radius: var(--radius-lg); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 24px; display: flex; gap: 16px; align-items: flex-start; }
.info-card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.info-card .ico svg { width: 21px; height: 21px; }
.info-card h4 { font-size: 16px; margin-bottom: 5px; }
.info-card p, .info-card a { font-size: 14.5px; color: var(--text-muted); }
.info-card a:hover { color: var(--accent); }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; border: 1px solid; }
.form-status.ok { color: var(--ok); background: color-mix(in oklch, var(--ok) 10%, transparent); border-color: color-mix(in oklch, var(--ok) 32%, transparent); }
.form-status.err { color: #ff8b7a; background: color-mix(in oklch, #ff6b57 12%, transparent); border-color: color-mix(in oklch, #ff6b57 34%, transparent); }

/* ---- Related links ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
a.related-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color .2s, transform .2s; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
a.related-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
a.related-card span { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
a.related-card svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .grid-2, .grid-2.rev, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hub-grid, .blog-grid, .values-grid, .related-grid, .feature-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid.feature-first .blog-card:first-child { grid-column: span 2; grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .cta-band { padding: 40px 32px; }
}
@media (max-width: 720px) {
  .subhero { padding: 120px 0 48px; }
  .hub-grid, .blog-grid, .values-grid, .related-grid, .feature-cards, .feature-cards.cols-3, .form-row { grid-template-columns: 1fr; }
  .blog-grid.feature-first .blog-card:first-child { grid-column: span 1; }
  .page-sec { padding: 56px 0; }
  .role-card { flex-direction: column; align-items: flex-start; }
}
