/* =========================================================================
   FIDENSA — brändiyliajot (Tili- ja lakipalvelut Fidensa Oy, Virrat)
   Pohja: seonjantti-site/style.css · Aksentti: oranssi → Fidensa-sininen
   Ladataan style.css:n JÄLKEEN.
   ========================================================================= */

:root {
  /* Brand-aksentti — Fidensa-sininen (logon mukaan) */
  --c-accent:       #1877c0;
  --c-accent-2:     #3a96da;
  --c-accent-deep:  #115e96;
  --c-accent-glow:  rgba(24,119,192,0.24);

  /* Navy / tummat pinnat */
  --c-navy:         #0f2740;
  --c-navy-deep:    #0a1c2e;

  /* Vaaleat pohjat — vieno sininen sävy */
  --c-bg-cream:     #f4f8fc;
  --c-surface-2:    #f4f8fc;
}

::selection { background: var(--c-accent); color: #fff; }

/* -------- NAV — vaalea (oikea logo valkoisella pohjallaan) -------------- */
.nav, .nav.scrolled { background: #ffffff; border-bottom: 1px solid var(--c-line); }
.nav.scrolled { box-shadow: 0 8px 28px -14px rgba(15,39,64,0.18); border-bottom-color: var(--c-line); }
@media (max-width: 1180px) {
  .nav-menu { background: #ffffff; border-bottom: 1px solid var(--c-line); }
}
.nav-menu a { color: #33414f; }
.nav-menu a:hover, .nav-menu a.active { color: var(--c-accent-deep); }
.nav-menu a.btn-primary, .nav-menu a.nav-cta { color: #fff; }
.nav-toggle span { background: var(--c-navy); }

/* Logo — oikea Fidensa-logo (kuva) */
.fidensa-logo {
  height: 46px;
  width: auto;
  display: block;
  transition: height var(--t-fast);
}
.nav-logo:hover .fidensa-logo { opacity: 0.9; }
.nav.scrolled .fidensa-logo { height: 40px; }

/* -------- HERO — toimistovalokuva + tumma overlay ---------------------- */
.hero { background: #0a131f; min-height: 80vh; }
.hero::before {
  background:
    linear-gradient(90deg, rgba(8,16,26,0.90) 0%, rgba(8,16,26,0.72) 40%, rgba(8,16,26,0.42) 68%, rgba(8,16,26,0.22) 100%),
    url('../images/hero-banner.jpg') center center / cover no-repeat;
}
.hero h1 { text-transform: none; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.hero .eyebrow { color: #cfdae6; }
.hero .accent { color: #6cb6e6; }            /* hillitty logon sininen */
.hero .lead { color: rgba(255,255,255,0.90); }
.hero .stat-num { color: #ffffff; }          /* numerot valkoisina, ei sinisiä */

/* Hero — yksinkertainen "kyltti" linkkien tilalle */
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero-badge svg { width: 17px; height: 17px; stroke: var(--c-accent-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* -------- SERVICE-KORTIT ilman linkkiä (info-kortit) -------------------- */
.service-card.is-static { cursor: default; }
.service-card.is-static:hover { transform: translateY(-4px); }

/* -------- CTA-banneri — syvä navy (hillitty) ---------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #0c2236 0%, #14385a 100%);
  box-shadow: 0 24px 50px -22px rgba(12,34,54,0.45);
}
.cta-banner .eyebrow { color: #9fd0f2 !important; }
.cta-banner .btn-primary { background: var(--c-accent); color: #fff; }
.cta-banner .btn-primary:hover { background: #fff; color: var(--c-navy); }

/* -------- HILLITTY SININEN — isot numerot navyksi ----------------------- */
.fact-num { color: var(--c-navy); }
.usp-card__num { color: var(--c-navy); }
.reviews-head__score, .price-mini__row strong { color: var(--c-navy); }
/* Vaaleat pohjat hieman neutraalimmiksi (vähemmän sinistä sävyä) */
:root { --c-bg-cream: #f6f7f9; --c-surface-2: #f6f7f9; }

/* -------- ARVOLUPAUS-NAUHA — pehmeä sininen abstrakti taustakuva -------- */
.value-banner {
  background:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
    url('../images/bg-soft.jpg') center center / cover no-repeat;
  color: var(--c-text-dark);
  border-top: 1px solid var(--c-line-light);
  border-bottom: 1px solid var(--c-line-light);
}
.value-banner .container { text-align: center; }
.value-banner .eyebrow { color: var(--c-accent-deep); }
.value-banner h2 { color: var(--c-navy); max-width: 760px; margin: 10px auto 14px; }
.value-banner p { color: var(--c-text-dark-soft); max-width: 620px; margin: 0 auto 28px; }
.value-banner__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px; max-width: 760px; margin: 0 auto;
}
.value-banner__item { display: flex; flex-direction: column; gap: 4px; }
.value-banner__item .display-num { font-size: 2.6rem; color: var(--c-navy); line-height: 1; }
.value-banner__item span:last-child { font-size: 13px; color: var(--c-text-dark-soft); }

/* -------- FOOTER — logo ------------------------------------------------- */
.footer { background: #ffffff; }
.footer .fidensa-logo { height: 56px; }

/* -------- INFO-RIVI yhteystiedoissa (aukioloajat) ---------------------- */
.hours-note { font-size: 13px; color: var(--c-text-dark-soft); }
.hours-note strong { color: var(--c-text-dark); }

/* -------- PALVELUSIVUJEN HERO — valokuva + tumma overlay ---------------- */
.svc-hero { background: #0a131f; }
.svc-hero::before {
  background:
    linear-gradient(90deg, rgba(8,16,26,0.90) 0%, rgba(8,16,26,0.62) 55%, rgba(8,16,26,0.30) 100%),
    url('../images/work-desk.jpg') center center / cover no-repeat;
}
.svc-hero--work::before {
  background:
    linear-gradient(90deg, rgba(8,16,26,0.90) 0%, rgba(8,16,26,0.62) 55%, rgba(8,16,26,0.30) 100%),
    url('../images/work-desk.jpg') center center / cover no-repeat;
}
.svc-hero--flatlay::before {
  background:
    linear-gradient(90deg, rgba(8,16,26,0.90) 0%, rgba(8,16,26,0.62) 55%, rgba(8,16,26,0.30) 100%),
    url('../images/desk-flatlay.jpg') center 30% / cover no-repeat;
}
.svc-hero--office::before {
  background:
    linear-gradient(90deg, rgba(8,16,26,0.90) 0%, rgba(8,16,26,0.62) 55%, rgba(8,16,26,0.30) 100%),
    url('../images/hero-office.jpg') center center / cover no-repeat;
}
.svc-hero .eyebrow, .svc-hero__eyebrow { color: #cfdae6; }
.svc-hero h1 .accent { color: #6cb6e6; }

/* -------- FEATURE-OSIO — kuva + teksti (etusivu) ----------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--rev .feature__media { order: 2; }
}
.feature__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(15,39,64,0.40);
  aspect-ratio: 3/2;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__text .eyebrow { display: block; margin-bottom: 12px; }
.feature__text h2 { margin-bottom: 16px; }
.feature__text p { margin-bottom: 14px; line-height: 1.75; }
.feature__list { margin: 18px 0 24px; display: grid; gap: 10px; }
.feature__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--c-text-dark-soft); }
.feature__list svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--c-accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* -------- PALVELUVERKKO — 3 saraketta isoilla näytöillä ---------------- */
@media (min-width: 1100px) {
  .service-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* -------- SWOOSH — logon viiva, piirtyy scrollatessa ------------------- */
.swoosh-band { padding: 10px 0; position: relative; line-height: 0; overflow: hidden; }
.swoosh-band--cream { background: var(--c-bg-cream); }
.swoosh-band--light { background: #ffffff; }
.swoosh-wrap { max-width: var(--container); margin: 0 auto; padding: 14px 24px; }
.swoosh { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.swoosh__path {
  fill: none;
  stroke: #1488cc;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.swoosh__dot {
  fill: #2b9be0;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(20,132,204,0.55));
}
@media (prefers-reduced-motion: reduce) {
  .swoosh__path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .swoosh__dot { display: none; }
}
