/* =====================================================
   Nordweb.fi – Complete Styles
   Extracted from original design + multi-page additions
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:      #3B6CF4;
  --blue-dark: #2B4FBF;
  --navy:      #0B1D35;
  --navy-mid:  #142D4F;
  --green:     #10B981;
  --bg-light:  #EBF0FA;
  --bg-page:   #F4F6FB;
  --text:      #1a2a3a;
  --muted:     #4B6A82;
  --white:     #ffffff;
  --border:    #D0D9E8;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(11,29,53,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVIGATION ────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.nav-solid {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(11,29,53,.25);
}

.site-nav.nav-scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(11,29,53,.25);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.nav-brand:hover { text-decoration: none; color: #fff; }

.brand-nord { font-weight: 500; }
.brand-web { font-weight: 300; }

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-logo .brand-nord { color: #fff; font-weight: 500; }
.footer-logo .brand-web { color: #fff; font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.35rem;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, transform 0.35s, opacity 0.35s;
  transform: translateY(15px);
  opacity: 0;
}

.nav-mobile.open a {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile.open a:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile.open a:nth-child(2) { transition-delay: 0.1s; }
.nav-mobile.open a:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile.open a:nth-child(4) { transition-delay: 0.2s; }
.nav-mobile.open a:nth-child(5) { transition-delay: 0.25s; }

.nav-mobile a:hover,
.nav-mobile a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

.nav-mobile .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-mobile .nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ── HERO ─────────────────────────────────────────── */

.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4a6e 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(59,108,244,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(59,108,244,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,29,53,0.6) 0%, transparent 20%, transparent 80%, rgba(11,29,53,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  animation: shapeEnter 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) both;
}

.hero-shape-pill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(to right, rgba(59,108,244,0.12), transparent);
  backdrop-filter: blur(2px);
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(255,255,255,0.05);
  animation: shapeFloat 12s ease-in-out infinite;
  position: relative;
}

.hero-shape-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
}

.hero-shape--1 { width: 600px; height: 140px; left: -10%; top: 15%; transform: rotate(12deg); animation-delay: 0.3s; }
.hero-shape--1 .hero-shape-pill { background: linear-gradient(to right, rgba(59,108,244,0.15), transparent); }
.hero-shape--2 { width: 500px; height: 120px; right: -5%; top: 70%; transform: rotate(-15deg); animation-delay: 0.5s; }
.hero-shape--2 .hero-shape-pill { background: linear-gradient(to right, rgba(99,138,255,0.12), transparent); animation-delay: 2s; }
.hero-shape--3 { width: 300px; height: 80px; left: 5%; bottom: 5%; transform: rotate(-8deg); animation-delay: 0.4s; }
.hero-shape--3 .hero-shape-pill { background: linear-gradient(to right, rgba(79,118,244,0.12), transparent); animation-delay: 4s; }
.hero-shape--4 { width: 200px; height: 60px; right: 15%; top: 10%; transform: rotate(20deg); animation-delay: 0.6s; }
.hero-shape--4 .hero-shape-pill { background: linear-gradient(to right, rgba(147,180,244,0.1), transparent); animation-delay: 1s; }
.hero-shape--5 { width: 150px; height: 40px; left: 20%; top: 5%; transform: rotate(-25deg); animation-delay: 0.7s; }
.hero-shape--5 .hero-shape-pill { background: linear-gradient(to right, rgba(59,108,244,0.1), transparent); animation-delay: 3s; }

@keyframes shapeEnter {
  0%   { opacity: 0; translate: 0 -150px; }
  100% { opacity: 1; translate: 0 0; }
}

@keyframes shapeFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shape { animation: none; opacity: 0.6; }
  .hero-shape-pill { animation: none; }
  .hero-inner > * { animation: none; opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.hero-inner > * {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.7s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.9s; }
.hero-inner > *:nth-child(4) { animation-delay: 1.1s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  max-width: 600px;
}

.hero h1 em {
  font-style: normal;
  color: #93B4F4;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Hero Primary Button */
.hero .btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #3B6CF4 0%, #2B5AE0 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 4px 12px rgba(59,108,244,.25), inset 0 1px 0 rgba(255,255,255,.12);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}

.hero .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #4478FF 0%, #3264F0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 8px 24px rgba(59,108,244,.35), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero .btn-primary:hover::before { left: 100%; }

.hero .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 2px 8px rgba(59,108,244,.2), inset 0 1px 3px rgba(0,0,0,.1);
}

/* Hero Outline Button */
.hero .btn-outline {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero .btn-outline:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero .btn-outline:hover::before { opacity: 1; }

.hero .btn-outline:active {
  transform: translateY(0);
  background: rgba(255,255,255,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* General buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.85rem;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  padding: 0.8rem 1.85rem;
  border: 2px solid rgba(255,255,255,.3);
  color: var(--white);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  text-decoration: none;
  color: var(--white);
}

/* ── PAGE HERO (for inner pages) ───────────────────── */

.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4a6e 100%);
  color: var(--white);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-glow,
.page-hero .hero-shapes,
.page-hero .hero-fade { /* reuse hero visuals */ }

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero h1 em {
  font-style: normal;
  color: #93B4F4;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SECTION COMMONS ─────────────────────────────── */

section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-dark);
  background: var(--bg-light);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── WHY US ──────────────────────────────────────── */

.why-section { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.why-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── INFRA / HOW IT WORKS ───────────────────────── */

.infra-section { background: var(--navy); color: var(--white); }

.infra-section .section-heading { color: var(--white); }
.infra-section .section-sub { color: rgba(255,255,255,.70); }
.infra-section .section-label { background: rgba(59,108,244,.22); color: #93B4F4; }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.infra-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}

.infra-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.infra-card p {
  color: rgba(255,255,255,.70);
  font-size: 0.9rem;
  line-height: 1.6;
}

.infra-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #93B4F4;
  background: rgba(59,108,244,.18);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.75rem;
}

/* ── SERVICES / WHAT YOU GET ────────────────────── */

.services-section { background: var(--bg-page); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ── KOTIMAINEN / GUARANTEE ─────────────────────── */

.kotimainen-section {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4a6e 100%);
  padding: 5rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.kotimainen-section .section-label {
  background: rgba(59,108,244,.22);
  color: #93B4F4;
}

.kotimainen-section .section-heading { color: #fff; }

.kotimainen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kotimainen-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
}

.kotimainen-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kotimainen-svg-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kotimainen-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kotimainen-draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.kotimainen-draw.animate {
  animation: kotimainenDraw 2.5s cubic-bezier(0.43, 0.13, 0.23, 0.96) forwards;
}

@keyframes kotimainenDraw {
  to { stroke-dashoffset: 0; }
}

.kotimainen-label {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.kotimainen-label.animate {
  opacity: 1;
  transform: translateY(0);
}

.kotimainen-pct {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kotimainen-word {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #93B4F4;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ── TESTIMONIALS ────────────────────────────────── */

.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-page);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  border-left: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: -0.25rem;
  user-select: none;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-author strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── FAQ ─────────────────────────────────────────── */

.faq-section { background: var(--bg-page); }
.faq-header { text-align: center; }

.faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ── CONTACT ─────────────────────────────────────── */

.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  background: var(--bg-page);
  color: var(--text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--blue); background: var(--white); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a7a96' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.85rem;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  align-self: flex-start;
}

.btn-submit:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── CALCULATOR ──────────────────────────────────── */

.calc-section { background: var(--white); }

.calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.calc-group {
  margin-bottom: 2.5rem;
}

.calc-group h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.calc-options {
  display: grid;
  gap: 0.6rem;
}

.calc-options.two-col {
  grid-template-columns: 1fr 1fr;
}

.calc-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: var(--bg-page);
}

.calc-option:hover {
  border-color: var(--blue);
}

.calc-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--bg-light);
  box-shadow: 0 0 0 3px rgba(59,108,244,0.08);
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.calc-option-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

.calc-option-price {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.calc-result {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: sticky;
  top: 90px;
  transition: transform 0.2s ease;
}

.calc-result.updating {
  transform: scale(0.98);
}

.calc-result h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.calc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.calc-price-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.calc-price-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.calc-price-value.monthly {
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.calc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.calc-includes {
  margin: 1.5rem 0;
}

.calc-includes h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.calc-includes li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.calc-includes svg { flex-shrink: 0; }

.calc-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.calc-result .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
}

/* ── REFERENCES ──────────────────────────────────── */

.ref-section { background: var(--bg-page); }

.ref-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s;
}

.ref-showcase--reverse .ref-showcase-img {
  order: 2;
}
.ref-showcase--reverse .ref-showcase-body {
  order: 1;
}

.ref-showcase-img {
  border-radius: 10px;
  overflow-y: scroll;
  overflow-x: hidden;
  border: 1px solid var(--border);
  height: 300px;
}

.ref-showcase-img::-webkit-scrollbar {
  width: 6px;
}

.ref-showcase-img::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}

.ref-showcase-img::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

.ref-showcase-img::-webkit-scrollbar-thumb:hover {
  background: var(--navy-mid);
}

.ref-showcase-img img {
  display: block;
  width: 100%;
  height: auto;
}

.ref-showcase-body h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.ref-card-type {
  font-size: 0.8rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ref-showcase-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.ref-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--bg-light);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s;
}

.ref-link:hover {
  gap: 0.6rem;
}

/* ── SERVICES DETAIL PAGE ─────────────────────────── */

.detail-section { background: var(--white); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  min-width: 0;
}

.detail-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.detail-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.detail-list svg { flex-shrink: 0; }

/* ── CTA BANNER ──────────────────────────────────── */

.cta-section {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4a6e 100%);
  padding: 5rem 0;
  color: #fff;
  text-align: center;
}

.cta-section .section-heading { color: #fff; }

.cta-section .section-sub {
  color: rgba(255,255,255,.70);
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, #3B6CF4 0%, #2B5AE0 100%);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(59,108,244,.25);
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, #4478FF 0%, #3264F0 100%);
  box-shadow: 0 8px 24px rgba(59,108,244,.35);
}

/* ── FOOTER ──────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #8bafc8;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  font-size: 0.88rem;
  color: #8bafc8;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a { color: #8bafc8; font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── SCROLL REVEAL ───────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LEGAL PAGES ─────────────────────────────────── */

.legal-doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 3rem 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-header-info {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-print {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.legal-print:hover {
  background: #dce4f5;
  border-color: var(--blue-dark);
}

.legal-doc h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-doc p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-doc strong {
  color: var(--navy);
}

.legal-doc ul {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
}

.legal-doc ul li {
  margin-bottom: 0.3rem;
}

@media (max-width: 640px) {
  .legal-doc { padding: 1.5rem 1.25rem 2rem; margin: -1rem 0.75rem 0; }
}

@media print {
  .site-nav, .site-footer, .page-hero, .legal-print { display: none !important; }
  .legal-doc { padding: 0; box-shadow: none; border: none; }
  .legal-doc h2 { break-after: avoid; }
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 900px) {
  .why-grid,
  .services-grid,
  .testimonials-grid,
  .infra-grid, .infra-grid[style] { grid-template-columns: 1fr 1fr !important; }
  .ref-showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .ref-showcase--reverse .ref-showcase-img,
  .ref-showcase--reverse .ref-showcase-body { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .detail-grid,
  .detail-grid.reverse { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
}

@media (max-width: 768px) {
  .kotimainen-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .kotimainen-svg-wrap { width: 260px; height: 260px; }
  .kotimainen-pct { font-size: 2.8rem; }
  .kotimainen-word { font-size: 1.15rem; }
  .kotimainen-visual { order: -1; }
}

@media (max-width: 640px) {
  .why-grid,
  .services-grid,
  .testimonials-grid,
  .infra-grid,
  .infra-grid[style],
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .calc-options.two-col { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 7rem; }
  .page-hero { padding-top: 7rem; }
}
