/* Hub page (home.HubPage), e.g. "AI at Strikersoft".
   Ported from the approved prototype; everything is scoped to .hub so the rest of the site is untouched.
   Fonts: the Lato faces already loaded by latofonts.css (LatoWeb / LatoWebBold / LatoWebBlack). */

.hub {
    --surface: #F7F2EC;
    --surface-raised: #FFFFFF;
    --surface-tint: #F1E6F3;
    --heading: #4A2475;
    --ink: #2A2A2A;
    --ink-muted: #6E6474;
    --accent: #E8427D;
    --accent-text: #D42063;
    --accent-dark: #EF4C83;
    --accent-text-dark: #F18FB3;
    --night: #3B0855;
    --r-sm: 6px;
    --r-md: 16px;
    --s-xs: 8px;
    --s-sm: 16px;
    --s-md: 24px;
    --s-base: 32px;
    --s-lg: 48px;
    --s-xl: 64px;

    background: var(--surface);
    color: var(--ink);
    font-family: "LatoWeb", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}
.hub *, .hub *::before, .hub *::after { box-sizing: border-box; }
.hub img { max-width: 100%; }
.hub p { margin: 0; }
.hub h1, .hub h2, .hub h3 { font-family: "LatoWebBlack", Helvetica, Arial, sans-serif; font-weight: normal; }
.hub a { color: var(--ink); text-underline-offset: 3px; }
.hub a:hover, .hub a:focus { color: var(--accent-text); }
.hub :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hub-wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--s-base); }

/* Hero: dark, with the background image chosen in "Top of the page" */
.hub-hero {
    padding: 72px 0 64px; color: #fff;
    background-color: var(--night);
    background-size: cover; background-position: center 35%; background-repeat: no-repeat;
}
.hub-eyebrow {
    margin: 0 0 var(--s-sm) !important; font-family: "LatoWebBold", Helvetica, Arial, sans-serif;
    font-size: 14px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text-dark);
}
.hub-hero h1 { margin: 0 0 var(--s-sm); max-width: 860px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.hub-payoff { color: var(--accent-dark); }
.hub-lead { max-width: 720px; font-size: clamp(18px, 1.8vw, 20px); color: rgba(255, 255, 255, .88); }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: var(--s-md) !important; color: rgba(255, 255, 255, .75); font-size: 16px; }
.hub-hero .hub-cta a:not(.hub-btn) { color: #fff; }
.hub-note { margin-top: var(--s-sm) !important; font-size: 15px; color: rgba(255, 255, 255, .75); }
.hub .hub-btn {
    display: inline-block; border-radius: var(--r-sm); padding: 14px 28px; text-decoration: none;
    font-family: "LatoWebBold", Helvetica, Arial, sans-serif; background: var(--accent-text); color: #fff;
}
.hub .hub-btn:hover, .hub .hub-btn:focus { background: #BE1D5E; color: #fff; }

/* Sections: separated by space and by switching cream / white grounds */
.hub-section { padding: 72px 0; background: var(--surface); }
.hub-section--white { background: var(--surface-raised); }
.hub-project-section { padding: 56px 0; scroll-margin-top: 90px; }
.hub-section h2, .hub-contact h2 { margin: 0 0 var(--s-base); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; color: var(--heading); }
.hub-section h3 { color: var(--ink); }
.hub-label { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.hub-status { font-size: 14px; color: var(--ink-muted); }
.hub-caption { font-size: 15px; color: var(--ink-muted); }
.hub-link { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-size: 16px; }
.hub-rich p { margin: 0 0 var(--s-sm); }
.hub-rich p:last-child { margin-bottom: 0; }
.hub-rich ul { margin: 4px 0 0; padding-left: 20px; }
.hub-rich li { margin-bottom: 8px; }
/* Each Lato weight is its own family with only a normal weight, so <strong>
   would get a faint synthetic bold. Switch to the real bold face instead. */
.hub-rich strong, .hub-rich b { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-weight: normal; }
.hub-text { max-width: 760px; }

/* Cards */
.hub-cards { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.hub-card { flex: 1 1 340px; min-width: 0; background: var(--surface-raised); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.hub-section--white .hub-card { background: var(--surface); }
.hub-card-media { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.hub-card-media--logo { display: flex; align-items: center; justify-content: center; }
.hub-card-media--logo img { width: 52%; height: auto; }
.hub-card-body { padding: var(--s-md) 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.hub-card h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.hub-card .hub-link { margin-top: 6px; }

/* Columns */
.hub-columns { display: flex; flex-wrap: wrap; gap: 40px; }
.hub-columns > div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-columns h3 { margin: 0; font-size: 22px; }
.hub-column-img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: var(--r-md); }
.hub-column-img--contain { object-fit: contain; background: #fff; }

/* Project: text left, "At a glance" right; stacks on narrow screens */
.hub-project { display: flex; flex-wrap: wrap; gap: var(--s-lg); }
.hub-project-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-sm); }
.hub-project-main h2 { margin: 0; }
.hub-project-main h3 { margin: var(--s-sm) 0 0; font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-size: 18px; }
.hub-intro { font-size: 19px; }
.hub-body-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.hub-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--night); }
.hub-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.hub-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-when { display: inline-block; min-width: 96px; font-size: 14px; color: var(--ink-muted); }
.hub-project-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hub-side-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.hub-logo-box { display: flex; justify-content: center; padding: var(--s-md) var(--s-base); }
.hub-logo-box img { width: 100%; max-width: 240px; height: auto; }
.hub-glance { background: var(--surface-raised); border-radius: var(--r-md); padding: var(--s-md); display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.hub-section--white .hub-glance { background: var(--surface); }
.hub-glance p span { display: block; color: var(--ink-muted); }

/* Logos and funding */
.hub-logos { list-style: none; margin: 0 0 var(--s-base); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 52px; }
.hub-logos img { display: block; width: auto; max-width: 100%; }
.hub-funding { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) 40px; margin-bottom: var(--s-sm); }
.hub-funding > img { width: auto; }
.hub-eu { display: inline-flex; align-items: center; gap: 12px; font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.25; }
.hub-eu svg { width: 66px; height: 44px; flex: none; }

/* Panels: completed projects, demos, theses */
.hub-panels { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.hub-panel { flex: 1 1 400px; min-width: 0; background: var(--surface-raised); border-radius: var(--r-md); padding: var(--s-base); display: flex; flex-direction: column; gap: 12px; }
.hub-section--white .hub-panel { background: var(--surface); }
.hub-panel-text { display: flex; flex-direction: column; gap: 12px; }
.hub-panel h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.hub-panel-img { display: block; width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.hub-panel-img--logo { max-width: 360px; border-radius: 0; margin-top: 12px; }
.hub-panel--wide { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 40px; }
.hub-panel--wide .hub-panel-text { flex: 999 1 460px; min-width: 0; }
.hub-panel--wide .hub-panel-img { flex: 1 1 280px; min-width: 0; max-width: 420px; align-self: center; margin: 0; }

/* Contact: lavender ground, two-tone heading, form card on the right */
.hub-contact { padding: var(--s-lg) 0; background: var(--surface-tint); }
.hub-contact h2 { margin-bottom: var(--s-sm); }
.hub-contact h2 .hub-payoff { color: var(--accent); }
.hub-contact p { margin-bottom: var(--s-md); max-width: 52ch; }
.hub-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--s-xl); align-items: start; }
.hub-person { display: flex; align-items: center; gap: var(--s-sm); margin: 0 0 var(--s-md); }
.hub-person p { margin: 0; }
.hub-person-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hub-person-name { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; }
.hub-person-role { font-size: 15px; color: var(--ink-muted); }
.hub-contact-alt { font-size: 16px; color: var(--ink-muted); }
.hub-contact-alt a { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; }
.hub-form { background: var(--surface-raised); border-radius: var(--r-md); padding: var(--s-md); }
.hub-form label { font-family: "LatoWebBold", Helvetica, Arial, sans-serif; font-size: 13px; color: var(--ink); }
.hub-form .form-control { border-radius: var(--r-sm); border-color: #D7D7D7; box-shadow: none; font-size: 16px; }
.hub-form .form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(42, 42, 42, .12); }
.hub-form .help-block { margin: 0; }
.hub-form .form-group:last-child { margin-bottom: 0; }
.hub-form .btn { width: 100%; height: auto; line-height: 1.2; border-radius: var(--r-sm); padding: 14px 28px; }

@media (max-width: 900px) {
    .hub-contact-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
}
@media (max-width: 600px) {
    .hub-wrap { padding: 0 var(--s-sm); }
    .hub-hero { padding: 48px 0; }
    .hub-section { padding: 56px 0; }
    .hub-panel { padding: var(--s-md); }
}
