/* ============ Profezzo — inner pages (extends profezzo-home.css) ============ */

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero.alt { background: var(--bg2); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 22px; max-width: 16ch; }
.page-hero .lead-sub { font-size: 19px; color: var(--muted); max-width: 640px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead-sub { margin-left: auto; margin-right: auto; }

/* Prose / rich text */
.prose { max-width: 760px; color: var(--text); }
.prose.wide { max-width: 900px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 40px 0 16px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; line-height: 1.7; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; line-height: 1.6; }
.prose a { color: var(--accent); text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 24px 0;
  font-size: 19px; color: var(--text); font-style: italic;
}
.prose strong { color: var(--text); }

/* Split rows (text + side) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.narrow-left { grid-template-columns: 0.9fr 1.1fr; }
.split-num {
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* Generic card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--shadow); border-color: var(--line-strong); }
.info-card .ic {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); border: 1px solid var(--line);
  --icon-stroke: var(--accent); margin-bottom: 18px;
}
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 19px; margin-bottom: 9px; }
.info-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.info-card .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* Bullet check list */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); line-height: 1.55; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}
.cross-list li::before { content: "✕"; color: var(--faint); }

/* Contact / lead form */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 36px 34px; box-shadow: 0 18px 50px var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-control, textarea.form-control, select.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; font-family: var(--font-body); font-size: 15px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea.form-control { min-height: 130px; resize: vertical; }

/* Blog / insights list */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s; text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--shadow); border-color: var(--line-strong); }
.blog-card .thumb { aspect-ratio: 16/9; background: var(--bg2); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card .meta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.blog-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.blog-card .read { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-band .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 3.4vw, 46px); color: var(--accent); }
.stat-band .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* CTA band */
.cta-band {
  background: var(--text); color: var(--bg); border-radius: 28px;
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--bg); font-size: clamp(28px, 3vw, 42px); margin-bottom: 14px; }
.cta-band p { color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: 18px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-accent { background: var(--accent); color: #fff; }
.cta-band .btn-light { background: var(--bg); color: var(--text); }

/* Pills row */
.pillrow { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text);
}

/* Responsive */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 620px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
}

/* Case-study metrics (values can be short phrases, not just numbers) */
.cs-stats { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 18px 0 6px; }
.cs-stats > div { min-width: 84px; max-width: 200px; }
.cs-stats .num { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--accent); }
.cs-stats .lbl { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.3; }
.info-card h3 a { color: var(--text); }
.info-card h3 a:hover { color: var(--accent); }

/* Product screenshot frame */
.dash-shot { max-width: 1040px; margin: 8px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px var(--shadow); background: var(--card); }
.dash-shot img { display: block; width: 100%; height: auto; }

/* Dashboard inside a hero */
.page-hero.hero-shot { padding-bottom: 72px; }
.page-hero.hero-shot .dash-shot { margin-top: 48px; }

/* Side-by-side hero (text + screenshot) */
.page-hero.hero-split { padding: 72px 0 64px; }
.hero-split-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-split .hero-copy h1 { max-width: none; }
.hero-split .dash-shot { margin: 0; max-width: none; }
@media (max-width: 900px) { .hero-split-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Hero picture (transparent graphic in a split hero) */
.hero-pic img { display: block; width: 100%; height: auto; }
.hero-split .hero-pic { margin: 0; }

/* Cyclic transformation animation — Context → Consult → Control */
.cycle { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
.cycle-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.cycle-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cycle-track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.cycle-sweep { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 95 433; transform-origin: 100px 100px; animation: cyc-spin 5.5s linear infinite; }
@keyframes cyc-spin { to { transform: rotate(360deg); } }
.cycle-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 52%; }
.cycle-core-k { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); }
.cycle-core-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.cyc-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cyc-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 21px; color: #fff; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 8px 24px var(--shadow); animation: cyc-pulse 3s ease-in-out infinite; }
.cyc-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 13px; white-space: nowrap; }
.cyc-node.n1 { left: 50%; top: 6%; }
.cyc-node.n2 { left: 88%; top: 71%; }
.cyc-node.n3 { left: 12%; top: 71%; }
.cyc-node.n2 .cyc-num { animation-delay: 1.1s; }
.cyc-node.n3 .cyc-num { animation-delay: 2.2s; }
@keyframes cyc-pulse { 0%,100% { transform: translateY(0); box-shadow: 0 8px 24px var(--shadow); } 50% { transform: translateY(-4px); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent), 0 8px 24px var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .cycle-sweep, .cyc-num { animation: none !important; } }

/* Numbered node for the approach orbit (reuses homepage .orbit engine) */
.node-num { display: grid; place-items: center; padding: 0; color: #fff; border-color: var(--accent);
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  font-family: var(--font-head); font-weight: 700; font-size: 20px; }

/* Vaudit-style dark radar (approach hero) */
.radar { position: relative; aspect-ratio: 1/1; max-width: 480px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #2c1b12, #160d07 72%); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 70px var(--shadow); }
.radar-sweep { position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--accent) 42%, transparent) 38deg, transparent 78deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0 60%, transparent 61%); mask: radial-gradient(circle at 50% 50%, #000 0 60%, transparent 61%);
  transform-origin: 50% 50%; animation: radar-spin 6s linear infinite; }
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-grid circle { fill: none; stroke: rgba(255,240,228,.10); stroke-width: 1; }
.radar-grid line { stroke: rgba(255,240,228,.12); stroke-width: 1; stroke-dasharray: 2 5; }
.radar-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%,-50%);
  background: color-mix(in srgb, var(--accent) 70%, #fff); opacity: .45; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.radar-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 88px; height: 88px; border-radius: 24px;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 48%, #000)); display: grid; place-items: center;
  box-shadow: 0 0 55px color-mix(in srgb, var(--accent) 55%, transparent); }
.radar-core-mark { width: 52%; height: 52%; display: block; }
.radar-node { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.radar-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; background: rgba(255,255,255,.06);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.25)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: radar-pulse 4s ease-in-out infinite; }
.radar-node:nth-child(7) .radar-badge { animation-delay: 1.3s; }
.radar-node:nth-child(8) .radar-badge { animation-delay: 2.6s; }
.radar-label { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: #f3e3d6; }
@keyframes radar-pulse { 0%,100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 20px 2px color-mix(in srgb, var(--accent) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .radar-sweep, .radar-badge { animation: none !important; } }

/* Approach radar — Profezzo logo colours + moving pills (overrides) */
.radar { --logo-red: #ce1016; background: radial-gradient(circle at 50% 44%, #221a18, #120b09 72%); }
.radar-sweep { background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--logo-red) 45%, transparent) 38deg, transparent 78deg); }
.radar-dot { background: color-mix(in srgb, var(--logo-red) 75%, #fff); box-shadow: 0 0 10px color-mix(in srgb, var(--logo-red) 60%, transparent); }
.radar-core { background: #fffdf9; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 0 55px color-mix(in srgb, var(--logo-red) 42%, transparent); }
.radar-rotor { position: absolute; inset: 0; animation: orbit-spin 26s linear infinite; }
.radar-pill { position: absolute; transform: translate(-50%, -50%); }
.radar-pill span { display: inline-block; animation: orbit-counter 26s linear infinite; padding: 9px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.07); border: 1px solid color-mix(in srgb, var(--logo-red) 65%, rgba(255,255,255,.25));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .radar-rotor, .radar-pill span { animation: none !important; } }

/* Approach radar — Profezzo dark background + denser pills (overrides) */
.radar { background: radial-gradient(circle at 50% 44%, #06342f, #001f1f 72%); }
.radar-grid circle { stroke: rgba(180,230,222,.10); }
.radar-pill span { padding: 6px 13px; font-size: 12.5px; font-weight: 600;
  border-color: color-mix(in srgb, var(--logo-red) 60%, rgba(255,255,255,.28)); }

/* ---- Mobile polish for inner pages (animations preserved) ---- */
@media (max-width: 620px) {
  .page-hero { padding: 46px 0 40px; }
  .page-hero h1 { font-size: clamp(30px, 8.4vw, 44px); }
  .page-hero .lead-sub { font-size: 16.5px; }
  .radar { max-width: 340px; }
  .radar-pill span { padding: 4px 9px; font-size: 10.5px; }
  .radar-core { width: 70px; height: 70px; border-radius: 18px; }
  .cta-band h2 { font-size: clamp(24px, 7vw, 34px); }
  .hero-ctas .btn { padding: 13px 22px; font-size: 15px; }
}
@media (max-width: 400px) {
  .radar { max-width: 290px; }
  .radar-pill span { font-size: 9.5px; padding: 3px 8px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* Keep radar pills inside the panel */
.radar-pill span { padding: 6px 12px; font-size: 12px; }
@media (max-width: 620px) { .radar-pill span { padding: 4px 9px; font-size: 10px; } }
@media (max-width: 400px) { .radar-pill span { font-size: 9px; padding: 3px 7px; } }

/* ---- Mobile/tablet fit + perf (animations preserved) ---- */
.hero-pic, .hero-pic img, .dash-shot { max-width: 100%; }
@media (max-width: 620px) {
  .radar { max-width: min(360px, 86vw); }
  .radar-pill span { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.13); }
}
@media (max-width: 400px) { .radar { max-width: min(300px, 84vw); } }
