/* Koordio Oy — yhteinen tyylitiedosto (monisivuinen sivusto) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0E1117; --card: #1A1F2E; --card-border: #232a3a;
  --accent: #E8D5A3; --hl: #4A90A4; --text: #C8C8C8;
  --dim: #949aa8; --white: #fff; --red: #AA3020; --green: #3a9e6e;
}
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
a { color: inherit; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,17,23,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2430;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 40px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 800; color: var(--white);
  text-decoration: none; letter-spacing: .02em; }
.nav-logo svg { flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link { color: var(--text); font-size: 15px; padding: 10px 16px;
  background: none; border: none; cursor: pointer; letter-spacing: .02em;
  text-decoration: none; display: inline-block; }
.nav-link:hover { color: var(--white); }
.nav-link[aria-current="page"] { color: var(--white); background: var(--card);
  border-bottom: 2px solid var(--hl); }
.nav-dd-wrap { position: relative; display: inline-block; }
.nav-dd { display: none; position: absolute; top: 100%; left: 0; background: var(--card);
  border: 1px solid #1f2430; min-width: 290px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.nav-dd-wrap:hover .nav-dd, .nav-dd-wrap:focus-within .nav-dd { display: block; }
.nav-dd a { display: block; width: 100%; text-align: left; padding: 13px 16px;
  border-bottom: 1px solid #151a26; color: var(--text);
  font-size: 15px; text-decoration: none; }
.nav-dd a:hover { background: #111620; color: var(--hl); }
.nav-cta { margin-left: 10px; background: var(--hl); color: var(--white) !important;
  padding: 11px 20px; font-size: 15px; font-weight: 600; border: none; }
.nav-cta:hover { background: #5aa2b6; }

/* Mobiilivalikko */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; color: var(--white);
  font-size: 15px; padding: 10px 14px; border: 1px solid #2a3142; user-select: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--card); }
.mnav-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card);
  border: 1px solid #1f2430; min-width: 260px; box-shadow: 0 10px 28px rgba(0,0,0,.5); z-index: 90; }
.mnav-list a { display: block; padding: 14px 18px; font-size: 16px; color: var(--text);
  text-decoration: none; border-bottom: 1px solid #151a26; }
.mnav-list a:hover { background: #111620; color: var(--white); }
.mnav-list a.sub { padding-left: 32px; font-size: 15px; color: var(--dim); }
@media (max-width: 900px) {
  .nav { padding: 12px 20px; }
  .nav-right { display: none; }
  .mnav { display: block; }
}

/* HERO */
.hero { max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 56px; padding: 64px 40px 52px; }
.hero-left { flex: 1; min-width: 280px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--hl);
  text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.hero-name { font-size: clamp(34px,5.5vw,58px); font-weight: 800; color: var(--white);
  line-height: 1.06; letter-spacing: -.02em; margin-bottom: 12px; }
.hero-title { font-size: clamp(16px,2vw,20px); color: var(--accent);
  font-weight: 400; margin-bottom: 22px; }
.hero-lead { font-size: 16px; line-height: 1.8; color: var(--text);
  max-width: 580px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { padding: 14px 28px; background: var(--hl); color: var(--white);
  border: none; font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: .03em;
  text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #5aa2b6; }
.btn-outline { padding: 13px 27px; background: transparent; color: var(--accent);
  border: 1px solid var(--accent); font-size: 15px; cursor: pointer;
  text-decoration: none; display: inline-block; letter-spacing: .03em; }
.btn-outline:hover { background: rgba(232,213,163,.08); }
.hero-right { flex: 0 0 290px; display: flex; flex-direction: column; gap: 14px; }
.stat { background: var(--card); padding: 20px 24px; border-left: 3px solid var(--hl); }
.stat-num { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1.15; }
.stat-label { font-size: 13.5px; color: var(--text); margin-top: 6px; line-height: 1.5; }
@media (max-width: 820px) { .hero { flex-direction: column; gap: 32px; padding: 48px 20px 40px; }
  .hero-right { flex: none; width: 100%; } }

/* DIVIDER + SECTIONS */
.divider { border: none; border-top: 1px solid #1f2430; max-width: 1100px; margin: 0 auto; }
.section { max-width: 1100px; margin: 0 auto; padding: 52px 40px; }
@media (max-width: 820px) { .section { padding: 40px 20px; } }
.section-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--hl); margin: 0 0 16px 0; font-weight: 700; }

/* PROBLEM BOX */
.problem-box { background: var(--card); border-left: 4px solid var(--accent); padding: 28px 32px; }
@media (max-width: 600px) { .problem-box { padding: 22px 18px; } }
.problem-box p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 10px; }
.problem-box p:last-child { margin-bottom: 0; }
.problem-box strong { color: var(--white); }
.check-list { font-size: 15px; color: var(--text); line-height: 2.05; margin-top: 12px; }
.badge { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hl); margin-bottom: 6px; }
.service-h { font-size: 20px; color: var(--white); font-weight: 800; margin-bottom: 10px; }

/* GRID CARDS */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.card { background: var(--card); padding: 24px; border-top: 2px solid var(--hl); }
.card a { text-decoration: none; }
.card-name { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card-desc { font-size: 15px; line-height: 1.65; color: var(--text); }
.card-link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--hl);
  text-decoration: none; border-bottom: 1px dotted var(--hl); }
.card-link:hover { color: var(--white); }

/* WHEN TO CALL */
.when-list { display: flex; flex-direction: column; gap: 12px; }
.when-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); padding: 18px 20px; }
.when-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.when-text { font-size: 15px; line-height: 1.65; color: var(--text); }
.when-text strong { color: var(--white); display: block; margin-bottom: 3px; font-size: 16px; }

/* REFS */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.ref { background: var(--card); padding: 20px 22px; border-left: 2px solid #2c3346; }
.ref-name { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.ref-role { font-size: 13.5px; color: var(--hl); }
.ref-sum { font-size: 13.5px; color: var(--dim); margin-top: 4px; }
.ref-note { font-size: 13.5px; color: var(--dim); margin-top: 16px; line-height: 1.65; }

/* QUOTE */
.quote-box { border-left: 3px solid var(--accent); padding: 20px 24px; background: var(--card); }
.quote-text { font-size: 17px; line-height: 1.75; color: var(--white); font-style: italic; margin-bottom: 10px; }
.quote-attr { font-size: 14px; color: var(--dim); }

/* CONTACT BAR + FOOTER */
.contact-bar { background: var(--card); max-width: 1100px; margin: 0 auto;
  padding: 40px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px; }
@media (max-width: 820px) { .contact-bar { padding: 32px 20px; } }
.contact-tagline { font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.4; }
.contact-sub { font-size: 14px; color: var(--text); margin-top: 6px; }
.contact-info { text-align: right; }
.foot { max-width: 1100px; margin: 0 auto; padding: 22px 40px 40px;
  font-size: 13px; color: #6b7180; }
@media (max-width: 820px) { .foot { padding: 20px 20px 36px; } }
.foot a { color: #8a90a0; }
.foot-nav { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-nav a { text-decoration: none; border-bottom: 1px dotted #3a4152; }
.foot-nav a:hover { color: var(--white); }

/* LOGO STRIP / TOOL CHIPS */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px 0; }
.tool-chip { font-size: 13.5px; padding: 6px 12px; border: 1px solid #2a3448;
  color: var(--text); background: rgba(74,144,164,.06); white-space: nowrap; }
.logo-strip span { font-size: 14px; color: var(--dim); padding: 6px 16px 6px 0;
  margin-right: 16px; border-right: 1px solid #2a3142; }
.logo-strip span:last-child { border-right: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; }
.chip-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); width: 118px; padding-top: 6px; }

/* FORMS */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--card); padding: 30px;
  border-top: 2px solid var(--hl); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) { .form-card { padding: 22px 16px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.form-card input, .form-card select, .form-card textarea,
.inline-form input, .inline-form select, .inline-form textarea {
  background: #10141d; border: 1px solid #2a3142; color: var(--white);
  padding: 12px 14px; font-size: 16px; width: 100%; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.inline-form input:focus, .inline-form textarea:focus {
  outline: 2px solid var(--hl); outline-offset: 0; border-color: var(--hl); }
.form-note { font-size: 13.5px; color: var(--dim); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input[type=checkbox] { width: auto; margin-top: 4px; }
.consent label { font-size: 13.5px; text-transform: none; letter-spacing: 0;
  color: var(--dim); font-weight: 400; line-height: 1.6; }
.consent a { color: var(--hl); }
.success-box { background: var(--card); border-top: 3px solid var(--green);
  padding: 44px 36px; text-align: center; }
.info-card { background: var(--card); padding: 26px; border-top: 2px solid var(--accent); }
.info-item { border-top: 1px solid #1f2430; padding: 14px 0; }
.info-item:first-child { border-top: none; padding-top: 0; }
.info-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.info-value { font-size: 15.5px; color: var(--white); }
.info-value.hl { color: var(--hl); text-decoration: none; }
.info-value.ac { color: var(--accent); text-decoration: none; }
.link-btn { background: none; border: none; color: var(--dim); font-size: 13px;
  cursor: pointer; padding: 0; letter-spacing: .04em; }

/* HERO — hillitty tekstilinkki napin rinnalla */
.link-quiet { align-self: center; color: var(--dim); font-size: 15px;
  text-decoration: none; letter-spacing: .02em; }
.link-quiet:hover { color: var(--white); }

/* LEAD — poistumisaikomus-modaali (työpöytä) */
.lead-overlay { position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; padding-bottom: 10vh; }
.lead-card { position: relative; width: 420px; max-width: 90vw;
  background: var(--card); border-top: 2px solid var(--hl);
  padding: 28px; box-shadow: 0 16px 48px rgba(0,0,0,.55); }
.lead-card h2 { font-size: 18px; font-weight: 700; color: var(--white);
  margin: 0 0 8px; padding-right: 28px; }
.lead-card .lead-text { font-size: 14px; color: var(--text);
  line-height: 1.6; margin-bottom: 14px; }
.lead-card input[type=email] { background: #10141d; border: 1px solid #2a3142;
  color: var(--white); padding: 12px 14px; font-size: 16px; width: 100%; }
.lead-card input[type=email]:focus { outline: 2px solid var(--hl);
  outline-offset: 0; border-color: var(--hl); }
.lead-card .consent { margin: 12px 0 14px; }
.lead-card .consent label { font-size: 12.5px; }
.lead-card .btn-primary { width: 100%; text-align: center; }
.lead-close { position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--dim); font-size: 22px;
  line-height: 1; cursor: pointer; padding: 6px; }
.lead-close:hover { color: var(--white); }
.lead-note { font-size: 13px; color: var(--dim); margin-top: 10px; }

/* LEAD — mobiilin alapalkki */
.lead-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  min-height: 64px; background: var(--card); border-top: 2px solid var(--hl);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -8px 24px rgba(0,0,0,.4); }
.lead-bar.lead-bar-show { transform: translateY(0); }
.lead-bar-text { flex: 1; min-width: 0; line-height: 1.35; }
.lead-bar-title { font-size: 13px; font-weight: 700; color: var(--white); }
.lead-bar-sub { font-size: 11.5px; color: var(--dim); }
.lead-bar .btn-primary { padding: 10px 18px; font-size: 14px; flex-shrink: 0; }
.lead-bar .lead-close { position: static; flex-shrink: 0; }

/* Sisältötekstit */
.prose h2 { font-size: 22px; color: var(--white); margin: 28px 0 10px; }
.prose p { margin-bottom: 12px; font-size: 16px; line-height: 1.8; }

@media (min-width: 1600px) {
  .hero, .section, .contact-bar, .foot, .nav, .divider { max-width: 1320px; }
  .hero-name { font-size: clamp(46px, 4vw, 72px); }
}
