/* Shared commercial layer: project CTA in headers, home first-screen routes,
   cases hub, implementation agents block. Loaded after site.css and, on
   service pages, after service-detail.css. Keeps the dark/green identity. */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header project CTA on service pages */
.service-cta {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--service-acid, #47ff68);
  color: #080a09 !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease;
}
.service-cta:hover { background: #7dff91; }
.service-menu-panel .service-menu-cta { color: var(--service-acid, #47ff68); }
.service-footer-links { flex-wrap: wrap; gap: 12px 22px; }

/* Green action buttons: .service-page a { color: inherit } outranks .primary-action,
   so the dark label and arrow are restated here. */
.service-page .primary-action,
.service-page .primary-action span,
.service-page .primary-action svg { color: #080a09; }
.service-page .primary-action:hover { color: #080a09; }

/* Header fit on phones: brand + menu + language + project CTA inside the shell */
.service-actions { min-width: 0; }

@media (max-width: 760px) {
  .service-head-inner { gap: 12px; }
  .service-brand { font-size: 14px; }
  .service-actions { gap: 6px; }
  .service-actions .service-socials { display: none; }
  .service-menu-toggle { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .service-page .lang-btn { min-width: 26px; height: 38px; }
  .service-cta { min-height: 38px; padding: 0 10px; font-size: 11px; }
}

@media (max-width: 400px) {
  .service-head .service-head-inner { width: calc(100% - 28px); }
  .service-head-inner { gap: 8px; }
  .service-brand { font-size: 13px; }
  .service-cta { padding: 0 9px; letter-spacing: -.01em; }
}

@media (max-width: 340px) {
  .service-actions .service-cta { display: none; }
}

/* Home: first-screen routes and contact */
.hero-copy-inner { pointer-events: auto; }
.hero-copy h1.hero-title { font-size: clamp(40px, 5vw, 84px); }
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.hero-actions .button { min-height: 50px; }
.hero-actions .hero-mail { color: rgba(244, 246, 241, .72); font-size: 13px; font-weight: 700; border-bottom: 1px solid rgba(244, 246, 241, .3); padding-bottom: 2px; }
.hero-actions .hero-mail:hover { color: var(--on-dark); border-color: var(--acid); }
.hero-routes {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}
.hero-routes a {
  min-height: 74px;
  height: 100%;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(244, 246, 241, .18);
  border-radius: 12px;
  background: rgba(8, 10, 9, .46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, background .2s ease;
}
.hero-routes a:hover { border-color: var(--acid); background: rgba(8, 10, 9, .72); }
.hero-routes a:focus-visible,
.hero-actions a:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.hero-routes strong { font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--on-dark); }
.hero-routes span { font-size: 12px; line-height: 1.35; color: rgba(244, 246, 241, .62); }

@media (max-height: 820px) and (min-width: 801px) {
  .hero-scroll-cue { display: none; }
  .hero-copy h1.hero-title { font-size: clamp(40px, 4.6vw, 72px); }
  .hero-lead { margin-top: 20px; }
  .hero-routes { margin-top: 20px; }
  .hero-actions { margin-top: 20px; }
}

@media (max-width: 800px) {
  .hero-copy { padding-bottom: max(76px, env(safe-area-inset-bottom)); }
  .hero-copy h1.hero-title { font-size: clamp(32px, 8.6vw, 46px); }
  .hero-routes { margin-top: 18px; grid-template-columns: 1fr; gap: 6px; }
  .hero-routes a { min-height: 0; padding: 10px 14px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .hero-routes strong { font-size: 13px; }
  .hero-routes span { font-size: 11px; text-align: right; }
  .hero-actions { margin-top: 16px; gap: 10px 18px; }
  .hero-actions .button { min-height: 46px; width: auto; }
  .hero-scroll-cue { display: none; }
}

@media (max-width: 420px) {
  .hero-copy h1.hero-title { font-size: 32px; }
  .hero-routes span { display: none; }
}

/* Home: service card meta line and grouped cases */
.service-copy .service-meta { margin: 14px 0 0; color: var(--acid); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.case-group-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.case-group-note { margin: 0 0 28px; max-width: 70ch; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.case-group + .case-group { margin-top: clamp(56px, 6vw, 88px); }
.case-copy .case-owner {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cases-more { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.contact .contact-note { margin: 18px 0 0; color: rgba(244, 246, 241, .55); font-size: 14px; }
footer nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
@media (max-width: 800px) { footer nav { justify-content: flex-start; } }

/* Cases hub */
.hub-hero { padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--service-line, rgba(243,246,241,.13)); }
.hub-hero h1 {
  max-width: 20ch;
  margin: 22px 0 0;
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hub-hero p { max-width: 62ch; margin: 24px 0 0; color: rgba(243, 246, 241, .7); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; }
.hub-filters { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-filters[hidden] { display: none; }
.hub-filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(243, 246, 241, .2);
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 246, 241, .78);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.hub-filter:hover { border-color: rgba(243, 246, 241, .5); color: #f3f6f1; }
.hub-filter[aria-pressed="true"] { border-color: #47ff68; background: #47ff68; color: #080a09; }
.hub-filter:focus-visible { outline: 2px solid #47ff68; outline-offset: 3px; }

.hub-group { padding: clamp(56px, 7vw, 104px) 0 0; }
.hub-group:last-of-type { padding-bottom: clamp(64px, 8vw, 112px); }
.hub-group-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 34px; }
.hub-group-head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.hub-group-head p { margin: 0; max-width: 62ch; color: var(--service-muted, #99a099); font-size: 16px; line-height: 1.65; }
.hub-group[hidden] { display: none; }

.hub-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-card[hidden] { display: none; }
.hub-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 22px;
  border-radius: 22px;
  background: #101410;
  border: 1px solid rgba(243, 246, 241, .08);
  transition: border-color .25s ease, background .25s ease;
}
.hub-card:hover { border-color: rgba(71, 255, 104, .32); background: #131813; }
.hub-card-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: #060806; }
.hub-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.86); }
.hub-card-body { padding: 20px 14px 0; display: flex; flex: 1; flex-direction: column; gap: 10px; }
.hub-card-owner { color: #47ff68; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hub-card h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hub-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.hub-card h3 a:focus-visible { outline: none; }
.hub-card h3 a:focus-visible::after { outline: 2px solid #47ff68; outline-offset: 3px; }
.hub-card p { margin: 0; color: var(--service-muted, #99a099); font-size: 14px; line-height: 1.55; }
.hub-card-service { position: relative; z-index: 1; margin-top: auto; padding-top: 8px; align-self: flex-start; color: rgba(243, 246, 241, .78); font-size: 12px; font-weight: 700; border-bottom: 1px solid rgba(71, 255, 104, .6); }
.hub-card-service:hover { color: #47ff68; }

.hub-services { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--service-line, rgba(243,246,241,.13)); background: #0c0f0d; }
.hub-services-grid { margin: 30px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-services-grid a { height: 100%; padding: 24px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(243, 246, 241, .14); border-radius: 18px; transition: border-color .2s ease; }
.hub-services-grid a:hover { border-color: #47ff68; }
.hub-services-grid strong { font-size: 20px; line-height: 1.2; }
.hub-services-grid span { color: var(--service-muted, #99a099); font-size: 14px; line-height: 1.55; }

@media (max-width: 1080px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-group-head { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hub-grid,
  .hub-services-grid { grid-template-columns: 1fr; }
  .hub-card h3 { font-size: 20px; }
}

/* Implementation: agents and examples */
.agent-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agent-card { padding: 26px 26px 28px; border: 1px solid var(--service-line, rgba(243,246,241,.13)); border-radius: 18px; background: var(--service-surface, #101410); }
.agent-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.agent-card p { margin: 0; color: var(--service-muted, #99a099); font-size: 15px; line-height: 1.65; }
.agent-card .agent-example { margin-top: 14px; color: rgba(243, 246, 241, .82); font-size: 14px; }
.agent-card .agent-example a { border-bottom: 1px solid var(--service-acid, #47ff68); }
.agent-card .agent-example a:hover { color: var(--service-acid, #47ff68); }
.owner-tag { display: inline-block; margin-bottom: 10px; color: var(--service-acid, #47ff68); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.work-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-split > div { padding: 26px; border-radius: 18px; border: 1px solid var(--service-line, rgba(243,246,241,.13)); }
.work-split h3 { margin: 0 0 14px; font-size: 20px; font-weight: 650; }
.work-split ul { margin: 0; padding-left: 18px; color: rgba(243, 246, 241, .8); font-size: 15px; line-height: 1.7; }
.work-split .work-split-ours { border-color: rgba(71, 255, 104, .35); background: rgba(71, 255, 104, .04); }

.first-call { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; margin-top: 8px; }
.first-call ol { margin: 0; padding-left: 20px; color: rgba(243, 246, 241, .82); font-size: 16px; line-height: 1.75; }
.first-call p { margin: 0; color: var(--service-muted, #99a099); font-size: 15px; line-height: 1.7; }

@media (min-width: 1081px) {
  .case-secondary-list.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

.final-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.final-actions .primary-action { margin-top: 0; }

@media (max-width: 760px) {
  .agent-grid,
  .work-split,
  .first-call { grid-template-columns: 1fr; }
}
