/* /services directory restored from the first archive. Current shared header, footer and SEO remain authoritative. */
body.services-hub-page {
      --bg: #f8fafc;
      --panel: rgba(255,255,255,0.82);
      --panel-solid: #ffffff;
      --text: #0f172a;
      --muted: #475569;
      --line: rgba(15, 23, 42, 0.08);
      --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --radius-md: 14px;
      --blue: #0369a1;
      --blue-dark: #075985;
      --red: #b91c1c;
      --red-dark: #dc2626;
      --max: 1240px;
    }

    body.services-hub-page {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at 0% 20%, rgba(14,165,233,0.08), transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(99,102,241,0.08), transparent 28%),
        var(--bg);
      color: var(--text);
    }
    body.services-hub-page > main .container {
      width: min(var(--max), calc(100% - 32px));
      margin-inline: auto;
    }

    .hub-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
    .hub-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; text-align: center; border-radius: 12px;
      text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
    }
    .hub-btn:hover { transform: translateY(-1px); }
    .hub-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(14,165,233,0.25); }
    .hub-btn--primary:hover { background: var(--blue-dark); }
    .hub-btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,0.75); color: var(--text); }
    .hub-btn--danger { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(239,68,68,0.24); }
    .hub-btn--danger:hover { background: var(--red-dark); }

    .hub-grid { padding: 12px 0 72px; }
    .hub-grid__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
    .hub-grid__head h2 { margin: 0; color: #f8fcff; text-shadow: 0 1px 5px rgba(0,31,62,.5); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
    .hub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    
    .svc-card {
      background: var(--panel);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.75);
      border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 18px;
    }

    .svc-card__header { 
      display: block; 
      text-decoration: none; 
      position: relative; 
      border-radius: calc(var(--radius-xl) - 8px); 
      overflow: hidden; 
    }
    .svc-card__gallery {
      display: grid;
      grid-template-columns: minmax(0, 1.62fr) minmax(118px, .78fr);
      gap: 4px;
      width: 100%;
      height: 292px;
      overflow: hidden;
      background: #0f172a;
    }
    .svc-card__gallery-main, .svc-card__gallery-tile {
      position: relative;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
      background: #0f172a;
    }
    .svc-card__gallery-stack {
      display: grid;
      grid-template-rows: repeat(3, minmax(0, 1fr));
      gap: 4px;
      min-width: 0;
      min-height: 0;
    }
    .svc-card__gallery img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform .38s ease;
    }
    .svc-card__header:hover .svc-card__gallery img { transform: scale(1.035); }
    
    .svc-card__title-wrap {
      position: absolute; 
      inset: auto 0 0 0; 
      background: linear-gradient(to top, rgba(10, 15, 30, 0.96) 0%, rgba(10, 15, 30, 0.82) 55%, rgba(10, 15, 30, 0.22) 100%);
      padding: 60px 24px 24px; 
      display: flex; 
      align-items: flex-end; 
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }
    
    .svc-card__title { 
      margin: 0;
      min-width: 0;
      flex: 1 1 220px;
      font-size: 1.7rem; 
      font-weight: 900; 
      letter-spacing: -0.03em; 
      color: #ffffff; 
      line-height: 1.1;
      text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 8px 16px rgba(0,0,0,0.5); 
    }
    
    .svc-card__kicker {
      display: inline-flex; padding: 6px 10px; border-radius: 8px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(5px);
      color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; max-width: 100%; white-space: normal; border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .svc-card__desc { margin: 0; color: var(--muted); line-height: 1.65; }
    
    .svc-groups { display: flex; flex-direction: column; gap: 14px; }
    .svc-groups--flat { display: block; }
    .svc-flat-list { margin: 0; padding: 16px 18px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); }
    .svc-flat-list li { position: relative; min-width: 0; padding-left: 14px; color: var(--muted); line-height: 1.5; font-size: .94rem; }
    .svc-flat-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-50%); }
    .svc-flat-list a { color: var(--muted); text-decoration: none; font-weight: 650; }
    .svc-flat-list a:hover { color: var(--blue-dark); text-decoration: underline; }
    @media (max-width: 680px) { .svc-flat-list { grid-template-columns: 1fr; } }
    .svc-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

    @media (max-width: 1080px) {
      .hub-cards { grid-template-columns: 1fr; }
    }
    @media (max-width: 760px) {
      
      .svc-card { padding: 22px; border-radius: 22px; }
      
      .svc-card { backdrop-filter: none; background: rgba(255, 255, 255, 0.96); }
      .svc-card__kicker { backdrop-filter: none; background: rgba(0, 0, 0, 0.3); border-color: rgba(255,255,255,0.4); }

      .hub-grid { padding-bottom: 56px; }
      .hub-hero__actions, .svc-card__actions { flex-direction: column; }
      .hub-btn { width: 100%; }
      .svc-card__title-wrap { flex-direction: column; align-items: flex-start; padding: 30px 16px 16px; }
      .svc-card__title { flex: none; }
    }
  
    @media (max-width: 680px) {
      .svc-card__gallery {
        grid-template-columns: minmax(0, 1.48fr) minmax(96px, .72fr);
        height: 250px;
        gap: 3px;
      }
      .svc-card__gallery-stack { gap: 3px; }
      .svc-card__title-wrap { padding: 54px 18px 18px; }
      .svc-card__title { font-size: 1.42rem; flex-basis: auto; }
      .svc-card__kicker { font-size: 10px; }
    }

    .svc-card__header:focus-visible, .svc-flat-list a:focus-visible, .svc-card__actions a:focus-visible { outline: 3px solid #0369a1; outline-offset: 4px; }
    .svc-flat-list a { display: inline-block; padding-block: 4px; }
    @media (prefers-reduced-motion: reduce) { .svc-card__gallery img, .hub-btn { transition: none; } }

/* Content-height directory cards; enhanced row spans keep DOM/focus order. */
.services-hub-page .hub-cards { align-items:start; --svc-masonry-gap:22px; }
.services-hub-page .svc-card { height:auto; min-height:0; align-self:start; }
.services-hub-page .svc-card__actions { margin-top:0; }
@media(min-width:1081px) {
 .services-hub-page .hub-cards[data-dw-masonry="true"] { grid-auto-rows:1px; row-gap:0; grid-auto-flow:row; }
}
