/* ==========================================================================
   Realisointikumppani – tyylit
   Värimaailma: Suomen sininen, moderni & raikas
   ========================================================================== */

:root {
  --blue-900: #0b2f66;
  --blue-800: #0b3d91;
  --blue-700: #114ab0;
  --blue-500: #2f6fe0;
  --blue-300: #7fa9f2;
  --blue-100: #cfe1ff;
  --blue-50:  #eaf2ff;
  --ink:      #10203d;
  --ink-soft: #4b5b78;
  --white:    #ffffff;
  --bg:       #f7faff;
  --yellow:   #ffd23f;
  --success:  #1c8a5a;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 61, 145, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 61, 145, 0.16);

  --font-heading: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--blue-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white); }
.btn-secondary {
  background: var(--yellow);
  color: var(--blue-900);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--blue-900); }
.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-100);
}
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(11, 61, 145, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-right: auto;
}
.logo-mark { color: var(--blue-800); display: inline-flex; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
}
.main-nav a { color: var(--ink); white-space: nowrap; }
.main-nav a:hover { color: var(--blue-700); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.lead { font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero-trust {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.hero-trust strong { color: var(--blue-800); font-size: 1.05rem; display: block; }
.hero-illustration { width: 100%; height: auto; }

/* ---------- Channels strip ---------- */
.channels-strip {
  background: var(--blue-900);
  padding: 16px 0;
}
.channels-label {
  color: var(--blue-100);
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-muted { background: linear-gradient(180deg, var(--blue-50), #f7faff); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-lead { font-size: 1.05rem; }

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  gap: 24px;
}
.services-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.examples-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Problem icon chips ---------- */
.icon-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 32px;
}
.icon-chip {
  flex: 1 1 170px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.icon-chip .card-icon { margin: 0 auto 12px; }
.icon-chip h3 { font-size: 0.95rem; margin: 0; }

/* ---------- Statement box ---------- */
.statement-box {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}
.statement-box strong { color: var(--yellow); font-style: normal; }

/* ---------- Check list (kiertotalous) ---------- */
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--blue-800);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.check-list strong { color: var(--blue-900); }
.area-caption { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Pricing fineprint & tagline ---------- */
.price-fineprint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--blue-50);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.price-fineprint strong { color: var(--blue-900); }
.tagline-statement {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin: 40px 0 0;
}

.card, .service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 61, 145, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-800);
  margin-bottom: 16px;
}
.card-highlight {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}
.card-highlight h3 { color: var(--white); }
.card-highlight p { color: var(--blue-100); }
.card-highlight .card-icon { background: rgba(255,255,255,0.12); color: var(--yellow); }

.why-item { text-align: left; padding: 8px 4px; }
.why-icon { font-size: 1.8rem; margin-bottom: 10px; }
.why-item h3 { margin-bottom: 6px; }

.example-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 61, 145, 0.06);
}
.example-icon { color: var(--blue-800); margin-bottom: 12px; }
.example-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}

/* ---------- Process timeline ---------- */
.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-timeline li {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center;
}
.process-timeline h3 { margin-bottom: 4px; font-size: 1.05rem; }
.process-timeline p { margin: 0; font-size: 0.94rem; }

/* ---------- Pricing ---------- */
.price-hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 14px;
}
.price-fixed { font-size: 3rem; color: var(--blue-900); }
.price-plus { font-size: 1.6rem; color: var(--blue-300); }
.price-percent { font-size: 3rem; color: var(--blue-700); }
.price-caption { font-size: 1rem; }
.price-points {
  display: flex;
  gap: 18px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--success);
}
.price-points li::before { content: "✓ "; }

.table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table caption {
  text-align: left;
  font-weight: 700;
  color: var(--blue-900);
  padding: 16px 20px 10px;
  font-size: 1rem;
}
.price-table th, .price-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--blue-50);
  font-size: 0.95rem;
}
.price-table th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.price-table td strong { color: var(--success); }
.table-note { font-size: 0.85rem; margin-top: 14px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-icon {
  flex-shrink: 0;
  color: var(--blue-700);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}
.faq-answer p { margin: 0 0 18px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Area ---------- */
.area-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.area-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.area-cities li {
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.area-illustration { max-width: 320px; margin: 0 auto; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  padding: 60px 0;
}
.cta-banner-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--blue-100); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-800);
  flex-shrink: 0;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--blue-900); }
.form-row input, .form-row textarea {
  border: 1.5px solid #dbe6fb;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdff;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-submit { margin-top: 6px; }
.form-note { font-size: 0.88rem; color: var(--success); min-height: 1.2em; margin: 0; }
.form-note.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: var(--blue-100); padding: 56px 0 0; margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { color: var(--blue-100); font-size: 0.9rem; margin-top: 12px; }
.footer-logo { color: var(--white); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--blue-100); font-weight: 600; }
.footer-nav a:hover { color: var(--white); }
.footer-contact p { margin: 0 0 8px; color: var(--blue-100); }
.footer-contact a { color: var(--white); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; color: var(--blue-300); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding-bottom: 20px;
  }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    order: 4;
    width: 100%;
    background: var(--white);
    padding: 16px 0 4px;
    gap: 16px;
  }
  .site-header.nav-open .nav-cta {
    display: flex;
    justify-content: center;
    order: 5;
    width: 100%;
    margin-top: 6px;
  }

  .hero-inner, .area-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual, .area-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .services-grid, .why-grid, .examples-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .price-hero { padding: 28px; }
  .price-fixed, .price-percent { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .price-points { flex-direction: column; align-items: center; }
}
