/* Unscoped component styles for CMS (PHP-rendered) content slots.
 * These mirror the Astro component <style> blocks that are normally scoped with data-astro-cid-*
 * attributes. PHP-rendered markup has no such attributes, so it needs the same rules as plain,
 * global selectors. global.css (container/section/grid/card/btn/prose/eyebrow) is already loaded by
 * the shell's bundled stylesheet; this file only adds the component pieces the slot content uses.
 * Loaded only on PHP-rendered pages (injected by ShellRenderer), never by the static Astro pages. */

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 75% at 100% 0%, rgba(41, 182, 232, 0.14), transparent 60%); }
.hero__inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero--lg .hero__inner { padding-top: 72px; padding-bottom: 80px; }
@media (min-width: 960px) {
  .hero--lg .hero__inner { padding-top: 112px; padding-bottom: 120px; }
  .hero--md .hero__inner { padding-top: 72px; padding-bottom: 72px; }
}
.hero__eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-300); margin-bottom: 16px; }
.hero__title { max-width: 820px; color: #fff; }
.hero--md .hero__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.hero__lead { max-width: 640px; font-size: 1.125rem; color: var(--on-dark-muted); margin-bottom: 28px; }
.hero .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Breadcrumb */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 12px 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; color: #A3AEC6; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Case card */
.case-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: border-color 0.2s; }
.case-card:hover { border-color: #B9C8EC; }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 16px; }
.case-card__top img { height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.case-card__client { font-weight: 700; color: var(--ink); }
.case-card__tag { font-size: 0.75rem; font-weight: 600; color: var(--blue); background: #E8EEFF; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.case-card__title { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; }
.case-card__title a { color: var(--ink); text-decoration: none; }
.case-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.case-card__excerpt { color: var(--muted); font-size: 0.95rem; flex: 1; }
.case-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }

/* Case detail layout + facts aside */
.case-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .case-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .case-facts { position: sticky; top: calc(var(--header-h) + 24px); } }
.case-facts__logo { min-height: 48px; display: flex; align-items: center; margin-bottom: 16px; }
.case-facts__logo img { height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.case-facts dl { margin: 0 0 20px; }
.case-facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.case-facts dd { margin: 2px 0 0; font-weight: 600; }
.case-facts__cta { width: 100%; }

/* Solution cards + detail layout */
.solution-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: border-color 0.2s; }
.solution-card:hover { border-color: #B9C8EC; }
.solution-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: #E8EEFF; color: var(--blue); margin-bottom: 18px; }
.solution-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.solution-card__title a { color: var(--ink); text-decoration: none; }
.solution-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.solution-card__summary { color: var(--muted); flex: 1; margin-bottom: 16px; }
.solution-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.solution-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .solution-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }

/* Case index filter chips */
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #7A86A0; background: #fff; color: var(--ink); font: 600 0.9rem/1 var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
