/* ============================================================
   Q2tec — Design System foundation
   Tokens, type and shared components for the corporate site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  /* Brand colours */
  --q2-teal:        #149aa1;
  --q2-teal-600:    #11868c;
  --q2-teal-700:    #0d6f74;
  --q2-teal-tint:   #e6f4f5;
  --q2-navy:        #0c1a3c;
  --q2-navy-700:    #11254e;
  --q2-ink:         #1b2330;   /* dark headings / "tec" */
  --q2-slate:       #5e6b7d;   /* body copy */
  --q2-slate-light: #8a95a4;
  --q2-line:        #e3e8ef;
  --q2-surface:     #ffffff;
  --q2-mist:        #f3f5fc;   /* light section bg */
  --q2-mist-2:      #eef1fb;

  /* Hero gradient */
  --q2-hero: linear-gradient(160deg, #eef1fb 0%, #f4f1f9 38%, #ffffff 100%); /* @kind color */

  /* Type */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Mulish', system-ui, sans-serif;

  /* Radius & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(18, 32, 64, .06);
  --shadow-md: 0 14px 40px rgba(18, 32, 64, .09);
  --shadow-lg: 0 30px 70px rgba(18, 32, 64, .14);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px); /* @kind spacing */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  color: var(--q2-slate);
  background: var(--q2-surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--q2-ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--q2-teal);
  margin: 0 0 18px;
}
.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--q2-slate); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .q { color: var(--q2-teal); }
.wordmark .q sup { font-size: .55em; top: -.05em; }
.wordmark .t { color: var(--q2-ink); }
.wordmark--light .t { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--q2-teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 154, 161, .28);
}
.btn-primary:hover { background: var(--q2-teal-600); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,154,161,.34); }
.btn-ghost {
  background: transparent;
  color: var(--q2-ink);
  border-color: var(--q2-line);
}
.btn-ghost:hover { border-color: var(--q2-teal); color: var(--q2-teal); transform: translateY(-2px); }
.btn-light { background:#fff; color: var(--q2-teal-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(227,232,239,.7);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.nav__logo img { height: 38px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.nav__menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: var(--q2-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-block: 6px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--q2-teal);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav__menu a:hover { color: var(--q2-teal); }
.nav__menu a:hover::after { width: 100%; }
.nav__menu a.is-active { color: var(--q2-teal); }
.nav__cta { flex-shrink: 0; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--q2-ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(20,154,161,.14), transparent 60%),
    var(--q2-navy);
  color: rgba(255,255,255,.72);
  padding-block: 64px 0;
}
.footer__certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__cert {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .22s ease, box-shadow .25s ease;
}
.footer__cert:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.26); }
.footer__cert img { height: 100%; width: auto; display: block; object-fit: contain; }
.footer__cert--tall img { height: 108px; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 48px;
}
.footer__item { display: flex; gap: 18px; align-items: flex-start; }
.footer__ico {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: var(--q2-teal);
}
.footer__ico svg { width: 22px; height: 22px; }
.footer__item h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; font-weight: 600; }
.footer__item p { margin: 0; font-size: .95rem; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding-block: 22px;
  font-size: .86rem;
  color: rgba(255,255,255,.6);
}
.footer__bar a:hover { color: #fff; }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Decorative waves (shared) ---------- */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; pointer-events: none; z-index: 1; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--q2-hero);
  text-align: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(80px, 11vw, 130px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero p { max-width: 60ch; margin-inline: auto; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--q2-slate); }
.breadcrumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--q2-teal);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--q2-teal-700); }
.breadcrumb span { color: var(--q2-slate-light); }

/* ---------- Form controls (shared) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--q2-ink);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--q2-ink);
  background: #fff;
  border: 1.5px solid var(--q2-line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--q2-slate-light); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--q2-teal);
  box-shadow: 0 0 0 4px rgba(20,154,161,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--q2-slate); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--q2-teal); flex-shrink: 0; }
.consent a { color: var(--q2-teal); text-decoration: underline; }

/* ---------- Shared layout utilities ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--narrow-media { grid-template-columns: 1.05fr .95fr; }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .tag {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(12,26,60,.78); backdrop-filter: blur(6px); color: #fff;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
}
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--q2-ink); }

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  text-align: center; padding: 34px 26px;
  background: #fff; border: 1px solid var(--q2-line); border-radius: var(--r-lg);
  transition: transform .22s ease, box-shadow .25s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(20,154,161,.35); }
.feature__ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; background: var(--q2-teal-tint); color: var(--q2-teal-700); display: grid; place-items: center; }
.feature__ico svg { width: 34px; height: 34px; }
.feature h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.feature p { margin: 0; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--q2-slate); }
.checks li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--q2-teal); margin-top: 2px; }
.checks li b { color: var(--q2-ink); font-weight: 600; }

@media (max-width: 860px) {
  .split, .split--narrow-media { grid-template-columns: 1fr; }
  .triad { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

/* ---------- Logo marquee (animated, shared) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  width: max-content;
  padding-block: 6px;
  animation: q2-marquee var(--marquee-speed, 38s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes q2-marquee { to { transform: translateX(-50%); } }

.logo-mark {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -.01em;
  line-height: 1;
  color: #9aa3b2;
  filter: grayscale(1);
  opacity: .72;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s ease, opacity .25s ease, filter .25s ease, transform .25s ease;
  user-select: none;
}
.logo-mark:hover { color: var(--q2-teal); opacity: 1; filter: none; transform: translateY(-2px); }
.logo-mark small {
  font-weight: 600;
  font-size: .42em;
  letter-spacing: .22em;
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: .25em;
}
.logo-mark sub {
  font-weight: 600;
  font-size: .42em;
  letter-spacing: .04em;
  text-transform: none;
  align-self: flex-end;
  margin-bottom: .3em;
  bottom: 0;
}
.logo-mark i { font-style: normal; color: inherit; }
.logo-mark .dot { color: var(--q2-teal); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Certification band (shared) ---------- */
.cert__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.cert__badge {
  position: relative;
  display: grid; place-items: center;
  padding: clamp(20px, 3vw, 36px);
}
.cert__badge img {
  width: min(300px, 70%);
  filter: drop-shadow(0 22px 40px rgba(12,26,60,.18));
  border-radius: 6px;
  animation: cert-float 6s ease-in-out infinite;
}
@keyframes cert-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .cert__badge img { animation: none; } }
.cert__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cert__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  color: var(--q2-teal-700); background: var(--q2-teal-tint);
  border: 1px solid rgba(20,154,161,.25);
  padding: 9px 16px; border-radius: var(--r-pill);
}
.cert__chip svg { width: 16px; height: 16px; color: var(--q2-teal); }

/* ---------- News cards (shared) ---------- */
.news__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: stretch; }
.news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--q2-line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .22s ease, box-shadow .25s ease, border-color .22s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(20,154,161,.35); }
.news-card__media { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--q2-mist); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card--feature { grid-row: span 2; }
.news-card--feature .news-card__media { aspect-ratio: 16/10; }
.news-card__body { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--q2-slate-light); font-family: var(--font-head); font-weight: 600; }
.news-card__meta .tag-cat { color: var(--q2-teal); }
.news-card h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.news-card--feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.news-card p { margin: 0; font-size: .96rem; flex: 1; }
.news-card__link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--q2-teal); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.news-card__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.news-card:hover .news-card__link svg { transform: translateX(3px); }
.news-side { display: grid; grid-template-rows: 1fr 1fr; gap: 26px; }
.news-side .news-card { flex-direction: row; }
.news-side .news-card__media { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
.news-side .news-card__body { padding: 20px 22px; }
.news-side .news-card h3 { font-size: 1.08rem; }
.news-side .news-card p { display: none; }

@media (max-width: 860px) {
  .cert__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .news-side { grid-template-rows: none; }
}
@media (max-width: 560px) {
  .news-side .news-card { flex-direction: column; }
  .news-side .news-card__media { width: 100%; aspect-ratio: 16/9; }
}

/* ---------- News feature (single, shared) ---------- */
.news-feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--q2-line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .22s ease;
}
.news-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-feature__media { position: relative; overflow: hidden; min-height: 280px; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-feature:hover .news-feature__media img { transform: scale(1.04); }
.news-feature__badge {
  position: absolute; top: 18px; left: 18px;
  background: #fff; border-radius: var(--r-sm); padding: 6px;
  box-shadow: var(--shadow-md); width: 92px;
}
.news-feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.news-feature__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.news-feature__body p { margin: 0; }
@media (max-width: 860px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature__media { min-height: 220px; }
}

/* ---------- Responsive: header ---------- */
@media (max-width: 920px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav.open + .nav__drawer { display: block; }
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
}
