/* =========================================================
   QLIA website styles
   Brand colours are set once below. Change them here only.
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #2e539f;        /* Sapphire, Q-Lana brand blue */
  --blue-dark: #264583;   /* Sapphire-700, hover */
  --navy: #1e3668;        /* Sapphire-800 */
  --rule: #e5e9ed;        /* Neutral-100 */
  --ink: #2c3e50;         /* Slate, body text */
  --muted: #5d6b75;        /* Steel-500 */
  --grey: #f4f6f8;        /* Mist, light section background */
  --white: #ffffff;
  --radius: 6px;
  --shadow: none;          /* brand rule: no drop shadows */
  --max: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); font-size: 15px; line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2.section-title { color: var(--blue); font-size: 28px; font-weight: 600; }
.center { text-align: center; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.bg-grey { background: var(--grey); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); height: var(--header-h); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo img { height: 40px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { display: block; padding: 9px 14px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--blue); border-radius: 2px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--blue); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); padding: 0; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: #0f1d36 url("../img/hero.jpg") center/cover no-repeat; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10, 18, 35, .55); }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: 42px; font-weight: 700; max-width: 520px; }
.hero p { font-size: 18px; margin: 0; max-width: 620px; }
.curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.curve svg { width: 100%; height: 60px; display: block; }
.hero.small { min-height: 280px; }
.hero.small h1 { max-width: none; font-size: 38px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }

/* ---------- Vision / Mission ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--rule); padding: 40px 32px; text-align: center; }
.card h3 { color: var(--blue); font-size: 20px; font-weight: 600; margin-top: 14px; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.icon-circle svg { width: 26px; height: 26px; fill: var(--white); }

/* ---------- Lists with icons ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue); background: radial-gradient(var(--blue) 0 3px, transparent 4px); }
.ticks ul { list-style: disc; margin: 8px 0 0; padding-left: 20px; }
.ticks ul li { padding-left: 0; margin-bottom: 6px; }
.ticks ul li::before { display: none; }

/* ---------- Business areas ---------- */
.band { position: relative; color: var(--white); background: var(--blue) url("../img/section-bg.jpg") center/cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(46, 83, 159, .88); }
.band > .container { position: relative; }
.band .section-title { color: var(--white); }
.band .intro { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px 26px; border-top: 4px solid var(--blue); }
.area .head { text-align: center; }
.area .icon-circle { background: #eef2f9; }
.area .icon-circle svg { fill: var(--blue); }
.area h3 { color: var(--blue); font-size: 20px; margin: 12px 0 8px; }
.area .lead { text-align: center; color: var(--muted); }
.area h4 { color: var(--blue); font-size: 14px; margin: 18px 0 10px; }
.area ul { padding-left: 18px; margin: 0; font-size: 14px; }
.area li { margin-bottom: 8px; }

/* ---------- SME fund diagrams ---------- */
.diagrams { display: grid; gap: 20px; }
.diagrams a { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.split.top { align-items: start; }

/* ---------- Team ---------- */
.tabs { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 24px 0 32px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 22px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.tab strong { display: block; font-size: 15px; }
.tab span { font-size: 12px; color: var(--muted); }
.tab[aria-selected="true"] { background: #eef2f9; border-bottom-color: var(--blue); }
.tab[aria-selected="true"] strong { color: var(--blue); }
.member { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; max-width: 900px; margin: 0 auto; }
.member img { border-radius: var(--radius); }
.member h3 { color: var(--blue); font-size: 20px; margin-bottom: 4px; }
.member .role { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.linkedin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.linkedin svg { width: 18px; height: 18px; fill: currentColor; }
[hidden] { display: none !important; }

/* ---------- Contact ---------- */
.form { max-width: 560px; margin: 28px auto 0; background: #eef2f9; border: 1px solid var(--rule); padding: 24px; border-radius: var(--radius); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: block; font-size: 12px; font-weight: 600; color: var(--blue); margin: 10px 0 4px; }
.form input, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9d3e3; border-radius: 3px; font: inherit; font-size: 14px; background: var(--white); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-block; background: var(--blue); color: var(--white); border: 0; padding: 12px 24px; border-radius: 3px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-dark); }
.form .btn { width: 100%; margin-top: 16px; }
.notice { max-width: 560px; margin: 20px auto 0; padding: 12px 16px; border-radius: 3px; font-size: 14px; }
.notice.ok { background: #e6f4ea; color: #1e5b32; }
.notice.err { background: #fdecea; color: #8a1c13; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #e6ecf7; background: var(--navy) url("../img/section-bg.jpg") center/cover no-repeat; padding: 64px 0 24px; font-size: 14px; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(30, 54, 104, .92); }
.site-footer > .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 13px; letter-spacing: .06em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { color: #e6ecf7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.social { display: inline-flex; margin-top: 14px; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 18px; font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; }
.legal h2 { color: var(--blue); font-size: 26px; text-align: center; margin-bottom: 32px; }
.legal h3 { color: var(--blue); font-size: 17px; margin: 28px 0 8px; }
.legal p { margin: 0 0 14px; }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--navy); color: #e6ecf7; padding: 14px 18px; border-radius: var(--radius); font-size: 13px; display: flex; gap: 14px; align-items: center; z-index: 60; }
.cookie a { color: var(--white); }
.cookie .btn { padding: 8px 18px; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .split, .cards-2, .member { grid-template-columns: 1fr; }
  .member img { max-width: 220px; }
  section { padding: 56px 0; }
  .hero h1 { font-size: 32px; }
  .curve svg { height: 32px; }
}
@media (max-width: 560px) {
  .form .row, .footer-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 12px; }
}
