/* ==========================================================================
   DOPPARI - GLOBAL STYLES
   Design suunta A (Teollinen ja terävä) - ks. design-choices.md
   Fontit: Oswald (heading/CTA, 700, uppercase) + Source Sans Pro (body)
   Värit: musta #000/#0d0d0d, valkoinen #FFFFFF (tähdet: #E2231A)
   Radius: 0px kaikkialla
   ========================================================================== */

:root {
  --color-black: #000000;
  --color-black-soft: #0d0d0d;
  --color-white: #ffffff;
  --color-gray: #f5f5f5;
  --color-border: #e5e5e5;
  --color-accent: #0d0d0d;
  --color-accent-dark: #333333;
  --color-stars: #e2231a;
  --color-whatsapp: #25d366;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;

  --radius: 0px;

  --section-padding-y: 96px;
  --section-padding-y-mobile: 56px;
}

/* --------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

p {
  max-width: 65ch;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.reveal-line {
  display: block;
  width: 64px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------
   Layout / section rhythm
   -------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section-padding-y-mobile);
  padding-bottom: var(--section-padding-y-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
  }
}

.section-white {
  background-color: var(--color-white);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 28px,
    rgba(0, 0, 0, 0.022) 28px,
    rgba(0, 0, 0, 0.022) 29px
  );
}

.section-gray {
  background-color: var(--color-gray);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.043) 0px,
    rgba(0, 0, 0, 0.043) 4px,
    transparent 4px,
    transparent 20px
  );
}

.section-gray--feature {
  background-image:
    linear-gradient(rgba(245, 245, 245, 0.88), rgba(245, 245, 245, 0.88)),
    url('https://pub-c9e8cba5479f4b5a99abe0debda9673a.r2.dev/renkaita.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-dark {
  background-color: var(--color-black-soft);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-white);
}

/* --------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-black);
  border-bottom: 1px solid #222;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  color: var(--color-white);
  text-decoration: none;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  flex-shrink: 0;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
}

.nav-toggle__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--color-black);
  border-top: 1px solid #222;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--color-white);
  text-decoration: none;
  padding: 14px 24px;
  border-bottom: 1px solid #1f1f1f;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--color-white);
}

.mobile-nav .btn {
  margin: 16px 24px 20px;
}

/* Palauta nappien värit – .mobile-nav a { color: white } ylikirjoittaa muuten */
.mobile-nav a.btn {
  color: var(--color-black);
  border-bottom: none;
  padding: 14px 28px;
}

.mobile-nav a.btn:hover {
  color: var(--color-white);
}

@media (max-width: 1023px) {
  .header-actions .btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------
   Buttons / CTAs
   -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline-dark:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-dark:hover {
  background-color: var(--color-black-soft);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1.5px solid currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */

.hero {
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  display: flex;
  align-items: center;
  min-height: 60vh;
  position: relative;
  border-left: 4px solid var(--color-accent);
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    border-left: none;
  }
}

.hero--full {
  min-height: 100svh;
  min-height: 100vh;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(108deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 52%, rgba(0, 0, 0, 0.18) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-top: 2px solid rgba(226, 35, 26, 0.55);
  border-right: 2px solid rgba(226, 35, 26, 0.55);
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero p {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  max-width: 56ch;
}

.hero .cta-group {
  margin-top: 2rem;
}

/* Compact page-intro hero (alasivut) */
.page-intro {
  background-color: var(--color-black-soft);
  background-image:
    linear-gradient(rgba(13, 13, 13, 0.78), rgba(13, 13, 13, 0.88)),
    url('https://pub-c9e8cba5479f4b5a99abe0debda9673a.r2.dev/renkaita.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .page-intro {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

.page-intro p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------- */

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background-color: var(--color-white);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card svg {
  margin-bottom: 1rem;
}

.card--featured {
  border: 1px solid var(--color-accent);
  border-left-width: 6px;
  background-color: var(--color-white);
}

.section-dark .card,
.section-dark .card--featured {
  background-color: var(--color-black-soft);
  border-color: #2a2a2a;
}

.section-dark .card--featured {
  border-color: var(--color-accent);
  border-left-width: 6px;
}

/* Proof badges */
.proof-badge {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.proof-badge strong {
  color: var(--color-accent);
}

.section-dark .proof-badge {
  border-color: #2a2a2a;
}

.section-dark .proof-badge strong {
  color: var(--color-white);
}

.section-dark .text-accent {
  color: var(--color-white);
}

/* Placeholder images */
.img-placeholder {
  background-color: var(--color-gray);
  border: 1px dashed #c9c9c9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #777;
  padding: 1rem;
  width: 100%;
}

.img-placeholder--16-9 {
  aspect-ratio: 16 / 9;
}

.img-placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------- */

.rating-figure {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
}

.stars {
  color: var(--color-stars);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background-color: var(--color-white);
  height: 100%;
}

.review-card p {
  font-style: italic;
}

.review-card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------- */

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 8px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-black);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-question__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-1px);
}

.faq-question__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-1px);
}

.faq-item.is-open .faq-question__icon::after {
  transform: translateX(-1px) scaleY(0);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* --------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------- */

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

.form-field label {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.form-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-white);
  color: var(--color-black);
}

.section-dark .form-field input {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: #2a2a2a;
}

.form-field input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-black-soft);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.04) 6px,
      rgba(255, 255, 255, 0.04) 7px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.04) 6px,
      rgba(255, 255, 255, 0.04) 7px
    );
  color: var(--color-white);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-callback {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 3rem;
}

.footer-callback h3 {
  margin-bottom: 0.5rem;
}

.footer-callback p {
  color: #d9d9d9;
}

.callback-form .field-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .footer-callback {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }

  .callback-form {
    flex: 1;
    max-width: 460px;
  }

  .callback-form .field-row {
    flex-direction: row;
    gap: 1rem;
  }

  .callback-form .field-row .form-field {
    flex: 1;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  color: var(--color-white);
  text-decoration: none;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #b3b3b3;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #b3b3b3;
}

.footer-credit a {
  color: #b3b3b3;
  text-decoration: underline;
}

.footer-credit a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------
   Floating contact widgets
   -------------------------------------------------------------------- */

.floating-widgets {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fw-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.fw-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}

.fw-chat {
  background-color: var(--color-black);
  color: var(--color-white);
}

.fw-chat:hover,
.fw-whatsapp:hover {
  filter: brightness(0.92);
}

.chat-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
  width: 240px;
  margin-bottom: 8px;
}

.chat-panel.is-open {
  display: flex;
}

.chat-panel h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.chat-panel a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.chat-panel a:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

/* --------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------- */

.text-accent {
  color: var(--color-accent);
}

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

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex-center {
  display: flex;
  align-items: center;
}

.mt-section-sm {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------
   Video row (3 up side-by-side)
   -------------------------------------------------------------------- */

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
}

.video-item {
  flex: 1 1 260px;
  max-width: 320px;
  height: 500px;
  overflow: hidden;
}

.video-item iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}

/* --------------------------------------------------------------------
   Split section (text + image two-column)
   -------------------------------------------------------------------- */

.split-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.split-layout__text {
  flex: 1;
}

.split-layout__img {
  flex: 1;
  width: 100%;
}

.split-layout__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.img-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
  }

  .split-layout--reverse {
    flex-direction: row-reverse;
  }

  .split-layout__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .split-layout__img {
    max-height: 520px;
  }
}

/* --------------------------------------------------------------------
   Photo gallery grid
   -------------------------------------------------------------------- */

.photo-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ====================================================================
   PREMIUM POLISH
   1  Brändinvärinen scrollbar
   2  Lukuedistymispalkki
   4  h2 vasen aksenttiviiva
   5  Grain-tekstuuri tummille osioille
   9  Nappi hover lift + glow
   10 Kuva hover zoom
   11 Header blur scrollatessa
   12 Aktiivinen nav-indikaattori
   13 Sivun fade-in latautuessa
   14 Lazy-load blur-up
   16 Footer ring-kuvio
   17 Linkkien siirtymät
   19 Section-label reunaviivat
   ==================================================================== */

/* 1. Brändinvärinen scrollbar -------------------------------------- */
html {
  scrollbar-color: #888 #1a1a1a;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #888;
}
::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* 2. Lukuedistymispalkki ------------------------------------------- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-white);
  z-index: 9999;
  pointer-events: none;
}

/* 4. h2 vasen aksenttiviiva ---------------------------------------- */
.section-white .container > h2,
.section-gray .container > h2 {
  border-left: 3px solid var(--color-accent);
  padding-left: 0.9rem;
}

/* 5. Hiilikuitu-ruutu tummille osioille ---------------------------- */
.section-dark {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.04) 6px,
      rgba(255, 255, 255, 0.04) 7px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 6px,
      rgba(255, 255, 255, 0.04) 6px,
      rgba(255, 255, 255, 0.04) 7px
    );
}

/* 9. Nappi hover lift + shadow ------------------------------------- */
.btn {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-dark:hover,
.btn-outline-dark:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* 10. Kuva hover zoom ---------------------------------------------- */
.img-zoom-wrapper {
  overflow: hidden;
  display: block;
  line-height: 0;
}
.img-zoom-wrapper img {
  transition: transform 0.45s ease;
}
.img-zoom-wrapper img:hover {
  transform: scale(1.05);
}
.split-layout__img {
  overflow: hidden;
}
.split-layout__img img {
  transition: transform 0.45s ease;
}
.split-layout__img:hover img {
  transform: scale(1.05);
}

/* 11. Header blur scrollatessa ------------------------------------- */
.site-header {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* 12. Aktiivinen nav-indikaattori ---------------------------------- */
.site-nav a {
  position: relative;
}
.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

/* 13. Sivun sisällön fade-in latautuessa --------------------------- */
@keyframes page-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: page-fadein 0.45s ease both;
}

/* 14. Lazy-load blur-up -------------------------------------------- */
img.lazy-blur {
  filter: blur(12px) saturate(0.8);
  transform: scale(1.02);
  transition: filter 0.5s ease, transform 0.5s ease;
}

/* 16. Footer ring-kuvio (rengasaihe) ------------------------------- */
.site-footer {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='28' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.035'/%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
}

/* 17. Linkkien ja elementtien siirtymät (täydennys) ---------------- */
.footer-col a {
  transition: color 0.2s ease;
}
.footer-social a {
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-panel a {
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mobile-nav a {
  transition: color 0.2s ease;
}
.card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

/* Hero trust-elementit -------------------------------------------- */
.hero-trust-pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.hero-trust-pillars li::before {
  content: '✓ ';
  color: var(--color-white);
  font-weight: 700;
}
.hero-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}
.hero-google-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-stars {
  color: #FFD700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.hero-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.hero-phone:hover {
  color: var(--color-white);
}
.hero-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-heading);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero-sep {
  margin: 0 0.45rem;
  color: var(--color-white);
  opacity: 0.6;
}

/* Hero scroll-nuoli ------------------------------------------------ */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
  animation: hero-scroll-bounce 2.8s ease-in-out infinite;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.5s ease, color 0.2s ease;
}
.hero-scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.9);
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* Hero stagger-reveal --------------------------------------------- */
.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hero-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* Logo-kuva headerissa ja footerissa ------------------------------ */
.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* 19. Section-label reunaviivat ------------------------------------ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 0 0 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ============================================================
   LISÄYKSET: build-ui.md korjaukset
   ============================================================ */

/* Hero scroll "Alas" -teksti */
.hero-scroll__label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* Mobiilivalikon alaosa */
.mobile-nav__footer {
  padding: 1rem 24px 1.5rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.mobile-nav__footer .btn {
  margin: 0;
}

.mobile-nav__contact {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav__contact:hover {
  color: var(--color-white);
}

.mobile-nav__close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease;
}

.mobile-nav__close:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Chat-kupla */
.fw-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-bubble {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 12px 12px 0 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.chat-bubble p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.chat-bubble__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
}

.chat-bubble__close:hover {
  color: var(--color-black);
}

.chat-bubble.is-hidden {
  display: none;
}

/* Chat-paneelin intro-teksti */
.chat-panel__intro {
  font-size: 0.82rem;
  color: #555;
  max-width: none;
  margin: -0.25rem 0 0.5rem;
  line-height: 1.4;
}

/* Lomakkeen kiitosviesti */
.form-status {
  font-size: 1rem;
  font-weight: 600;
  color: #1a7c3e;
  padding: 1rem 0;
}

.form-status--error {
  color: var(--color-stars);
}

/* Footer tietosuoja-linkki */
.footer-privacy {
  color: #b3b3b3;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-privacy:hover {
  color: var(--color-white);
}
