/* giftedgroup.fi (1.10.2026). Värit logosta: sininen #00A8D0, oranssi #F87800. Fontit omalta palvelimelta (OFL): Bricolage Grotesque otsikot, Source Sans 3 teksti. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #00A8D0;
  --blue-dark: #00708C;
  --orange: #F87800;
  --ink: #1D2327;
  --muted: #5B6770;
  --bg: #FFFFFF;
  --bg-alt: #F3F6F8;
  --dark: #14191C;
  --line: #DDE3E7;
  --radius: 12px;
  --gutter: 24px;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover, a:focus { color: var(--dark); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Yläpalkki */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px var(--gutter);
  background: var(--dark);
}
.brand img { display: block; height: 44px; width: auto; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover, .menu a:focus { color: var(--blue); }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 16px; overflow: hidden; font-size: 13px; }
.lang a, .lang span { padding: 5px 10px; color: #fff; text-decoration: none; }
.lang span { background: var(--blue); font-weight: 700; }
.lang a:hover, .lang a:focus { background: rgba(0, 168, 208, 0.35); color: #fff; }

/* Osiot */
main section { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
section.alt { max-width: none; background: var(--bg-alt); }
section.alt > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
h1, h2, h3, .hero-mark, .stat-num, .card-name, .eyebrow, .menu a {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.015em; }
h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--orange); border-radius: 2px; }
h3 { font-size: 22px; margin-top: 40px; }
p { max-width: 70ch; }
/* Yläosa vuoden 2017 sivun mukaan: tumma palsta, pystyteksti, oranssi laatikko kuvan päällä */
main section.hero { position: relative; display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 70%);
  max-width: none; min-height: 560px; padding: 0; background: linear-gradient(180deg, #0B0D0E, #2A2E31); }
.hero-side { position: relative; z-index: 2; }
.hero-mark { position: absolute; left: 26px; bottom: 11%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 46px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: #fff; }
.hero-img { grid-column: 2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 0; }
.hero-box { position: absolute; left: 96px; bottom: 11%; width: min(600px, 42%); padding: 40px 48px 44px; z-index: 1;
  color: #fff; background: #E06A00; }
.hero-box h1::before { content: ""; display: block; width: 64px; height: 3px; margin-bottom: 20px; background: currentColor; }
.eyebrow { display: none; }
.hero-box h1 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 20px; }
.hero-box p { max-width: none; margin: 0 0 14px; }
.hero-box .lead { font-size: 20px; line-height: 1.5; margin: 0; }
.intro p { font-size: 19px; max-width: 62ch; margin: 0; }
main section.intro { padding-bottom: 0; }

/* Tunnusluvut */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
  padding: 40px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--dark); color: #fff; text-align: center; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: clamp(26px, 2.6vw, 36px); white-space: nowrap; font-weight: 800; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-label { font-size: 16px; color: #C9D2D8; }

/* Kauppakortit */
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; margin-top: 32px; }
.family-wide { grid-column: 1 / -1; }
.family h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.chips a:hover, .chips a:focus { border-color: var(--orange); color: var(--ink); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  min-height: 150px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover, .card:focus { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 25, 28, 0.08); color: var(--ink); }
.card:hover .card-logo, .card:focus .card-logo { box-shadow: inset 0 -3px 0 var(--orange); }
.card-logo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 96px; margin: -20px -20px 8px; padding: 18px 24px;
  background: var(--dark);
}
.card-logo img { max-width: 85%; height: auto; }
.pro-tag { position: absolute; top: 8px; right: 10px; padding: 1px 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: var(--orange); border-radius: 10px; }
.card-name { font-weight: 700; font-size: 18px; }
.card-desc { color: var(--muted); font-size: 15px; flex: 1; }
.card-go { color: var(--blue-dark); font-weight: 600; font-size: 14px; }
.card-pro { border-top-color: var(--orange); min-height: 0; }
.more { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Yhteystiedot */
.cs { max-width: 70ch; padding: 16px 20px; background: #fff; border-left: 4px solid var(--orange); border-radius: 4px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 28px 0 0; }
.contact dl { margin: 0; }
.contact dt { font-weight: 700; margin-top: 14px; }
.contact dt { margin-top: 0; }
.contact .note { font-weight: 400; color: var(--muted); font-size: 14px; }
.contact dd { margin: 2px 0 0; color: var(--muted); }

footer { background: var(--dark); color: #C9D2D8; padding: 28px var(--gutter); text-align: center; font-size: 14px; }
footer p { margin: 0 auto; }
footer a { color: #fff; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top { flex-wrap: wrap; gap: 10px 16px; }
  .brand img { height: 36px; }
  .lang { margin-left: auto; }
  .menu { order: 3; width: 100%; margin-left: 0; gap: 16px; overflow-x: auto; font-size: 14px; }
  main section { padding-top: 44px; padding-bottom: 44px; }
  main section.hero { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .hero-side { display: none; }
  .hero-img { grid-column: 1; height: auto; aspect-ratio: 16 / 9; object-position: 70% 0; }
  .hero-box { position: static; width: auto; padding: 28px var(--gutter) 32px; }
  .eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
  .hero-box h1::before { display: none; }
  .hero-box .lead { font-size: 17px; }
  .intro p { font-size: 17px; }
  .families { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 14px; min-height: 0; }
  .card-logo { height: 76px; margin: -14px -14px 6px; padding: 14px 16px; }
  .card-name { font-size: 16px; }
  .card-desc { font-size: 14px; }
  .stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 20px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .card-logo { height: 64px; }
}
