/* Estä sivuttaisscroll (overflow-x) koko sivulta */
html,
body {
  width: 100%;  
  max-width: 100%;
  overflow-x: hidden;
}

/* MIKSI VALITA MINUT */

.why-choose {
  background: #f6efe4;
  padding: 72px 24px 180px; /* enemmän tilaa ylös ja alas */
}

.why-choose-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.why-choose-title {
  font-size: 3.2rem; /* isompi otsikko */
  line-height: 1.05;
  margin: 0 0 22px;
  color: #0c2318;
  letter-spacing: -0.6px;
}

.why-choose-lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #233025;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .why-choose {
    padding: 120px 20px 56px;
  }

  .why-choose-title {
    font-size: 2.3rem;
  }

  .why-choose-lead {
    font-size: 1.05rem;
  }
}
/* YLEINEN CTA SIVUJEN LOPPUUN */

.page-cta {
  padding: 0 24px 140px;
  background: #f6efe4;
}

.page-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 22px;
  background: #0f291c;
  color: #f6efe4;
  padding: 28px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-cta-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 460px;
}

@media (max-width: 900px) {
  .page-cta {
    padding: 0 20px 96px;
  }

  .page-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
  .contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #0c2318;
  }

  .contact-info-item a {
    color: #0c2318;
    text-decoration: none;
  }

  .contact-info-item a:hover {
    text-decoration: underline;
  }

  .contact-info-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-info-icon svg {
    width: 100%;
    height: 100%;
    fill: #0c2318;
  }
/* Perustausta koko sivulle */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6efe4; /* pehmeä beige */
  color: #132018;
}

/* Yleinen scroll-fade + slide -animaatio osioille */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger-efekti korteille (palvelut + hinnasto + prosessi) */
/* Nollataan mahdollinen viive alkutilassa */
.services-grid .service-card.reveal-init,
.process-steps .process-step.reveal-init,
.pricing-grid .pricing-card.reveal-init {
  transition-delay: 0s;
}

/* Palvelut – palvelukortit */
.services-grid .service-card.reveal-visible:nth-child(1) {
  transition-delay: 0s;
}
.services-grid .service-card.reveal-visible:nth-child(2) {
  transition-delay: 0.06s;
}
.services-grid .service-card.reveal-visible:nth-child(3) {
  transition-delay: 0.12s;
}
.services-grid .service-card.reveal-visible:nth-child(4) {
  transition-delay: 0.18s;
}

/* Prosessi-vaiheet */
.process-steps .process-step.reveal-visible:nth-child(1) {
  transition-delay: 0s;
}
.process-steps .process-step.reveal-visible:nth-child(2) {
  transition-delay: 0.06s;
}
.process-steps .process-step.reveal-visible:nth-child(3) {
  transition-delay: 0.12s;
}
.process-steps .process-step.reveal-visible:nth-child(4) {
  transition-delay: 0.18s;
}

/* Hinnasto – hinnastokortit */
.pricing-grid .pricing-card.reveal-visible:nth-child(1) {
  transition-delay: 0s;
}
.pricing-grid .pricing-card.reveal-visible:nth-child(2) {
  transition-delay: 0.06s;
}
.pricing-grid .pricing-card.reveal-visible:nth-child(3) {
  transition-delay: 0.12s;
}
.pricing-grid .pricing-card.reveal-visible:nth-child(4) {
  transition-delay: 0.18s;
}

/* YLÄPALKki */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(246, 239, 228, 0);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 999;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0c2318;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #0c2318;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Hover-alleviivaus naville */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #0c2318;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ===== MOBILE NAV (burger + drawer) ===== */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent; /* remove pill background */
  border: none;            /* remove border */
  cursor: pointer;
  align-items: center;
  justify-content: center;
}


/* Drawer overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 998;
}

/* Drawer panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: #f6efe4;
  border-left: 1px solid rgba(0,0,0,0.08);
  transform: translateX(102%);
  transition: transform 260ms ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-nav-title {
  font-weight: 700;
  color: #0c2318;
  letter-spacing: -0.2px;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(240,231,216,0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #0c2318;
  font-weight: 600;
  background: rgba(240,231,216,0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav-links a:active {
  transform: translateY(1px);
}

/* Open state controlled by JS on <body> */
body.nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .mobile-nav {
  transform: translateX(0);
}

/* Prevent background scroll when drawer is open */
body.nav-open {
  overflow: hidden;
}

/* Bigger icons (requested) */
.burger {
  width: 90px;
  height: 90px;
}

.burger svg {
  width: 62px;
  height: 62px;
}

.mobile-nav-close {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.mobile-nav-close svg {
  width: 28px;
  height: 28px;
}

/* Burger SVG styles */
.burger svg {
  width: 48px;
  height:48px;
  display: block;
}

.burger line {
  stroke: #0c2318;
  stroke-width: 2.6;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease;
}

/* Animate to X when open */
body.nav-open .burger .b1 {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .burger .b2 {
  opacity: 0;
}

body.nav-open .burger .b3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Show burger / hide desktop nav on mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: inline-flex;
    padding: 10px; /* better touch target */
  }
}

@media (max-width: 480px) {
  .mobile-nav-title { display: none; } /* hide “MENU” label on very small screens */
}

@media (max-width: 900px) {
  .hero-card {
    justify-content: flex-start;
  }

  .hero-text {
    padding: 24px 20px 24px 16px; /* enemmän vasemmalle */
    align-items: flex-start;      /* kaikki vasempaan reunaan */
    text-align: left;
    transform: translateY(-18px); /* hieman ylemmäs */
  }

  .hero h1 {
    text-align: left;
  }

  .hero-lead {
    text-align: left;
    margin-bottom: 28px;
  }

  .hero-buttons {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero-card {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0; /* POISTAA keskittävän korttipaddingin */
  }

  .hero-text {
    padding: 16px;
    margin-left: 0;
    max-width: 520px;
    align-items: flex-start;
    text-align: left;

    /* TÄMÄ on se mikä oikeasti siirtää vasemmalle */
    transform: translateX(-48px) translateY(-18px);
  }

  .hero-buttons {
    justify-content: flex-start;
  }
}

/* Jotta hero ei jää palkin alle */
.hero {
  height: 100vh;        
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
/* Hero background image element (fast LCP) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0; /* image at the very back */
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(246, 239, 228, 0.95) 0%,   /* ihan vasen, tekstin tausta */
    rgba(246, 239, 228, 0.8) 28%,
    rgba(246, 239, 228, 0.4) 50%,
    rgba(246, 239, 228, 0.15) 65%,
    transparent 80%                 /* tästä eteenpäin ei enää filtteriä */
  );
  z-index: 1; /* beige fade overlay above the image */
}

/* Uniform beige overlay over hero image (improves text contrast) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 239, 228, 0.4); /* beige kalvo */
  pointer-events: none;
  z-index: 1; /* same layer as gradient, below text */
}

/* Scroll‑based darkening overlay */
.hero-darken {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  z-index: 2; /* scroll darken overlay above the beige fade */
  transition: background 0.15s linear;
}

.hero {
  --hero-darken: 0;
}
.hero-darken {
  background: rgba(0,0,0,var(--hero-darken));
}

/* HERO-KOKONAISUUS */
/* (Removed old .hero rule and replaced with above) */

/* Kortti, jossa teksti + kuva */
.hero-card {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding: 40px;
  background: rgba(0, 0, 0, 0);
  z-index: 3; /* text/buttons always above overlays */
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

/* Tekstipuoli */
.hero-text {
  padding: 80px 80px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.08;
  margin: 0 0 24px;
  font-weight: 700;
  color: #0c2318;
  letter-spacing: -0.5px;
}

/* Premium letter‑spacing intro animation */
.hero-title {
  display: inline-block;
  animation: heroLetterOpen 0.9s ease-out forwards;
  opacity: 0;
}

@keyframes heroLetterOpen {
  0% {
    opacity: 0;
    letter-spacing: -4px;
    transform: translateY(6px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    letter-spacing: -0.5px; /* matches your current heading style */
    transform: translateY(0);
  }
}

/* Fade-up animation for hero lead text */
.hero-lead {
  font-size: 1.03rem;
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 420px;
  color: #2d362f;
  opacity: 0;
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: 0.25s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons fade and pop */
.hero-buttons .btn {
  opacity: 0;
  transform: translateY(12px);
  animation: heroBtnIn 0.75s ease-out forwards;
}

.hero-buttons .btn:nth-child(1) {
  animation-delay: 0.45s;
}

.hero-buttons .btn:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes heroBtnIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Napit */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #0f291c;
  color: #fdf7ee;
  box-shadow: 0 6px 14px rgba(15, 41, 28, 0.45);
  border: 2px solid #0c2318;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 57, 35, 0.5);
}

.btn-secondary {
  background: #f0e7d8;
  color: #111b14;
  border: 2px solid #e0d4c2;
}

.btn-secondary:hover {
  background: #ebe0cf;
}

/* Kuvapuoli */
/* Removed .hero-image and .hero-image::before rules */

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-text {
    padding: 40px 24px 32px;
  }

  .hero-image {
    height: 260px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 24px 12px;
  }

  .hero-text {
    padding: 32px 20px 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    height: 220px;
  }
}


/* Nämä osiot saavat scroll-reveal -efektin JS:n kautta:
   .about-inner, .service-detail-inner, .big-six-box,
   .why-item, .service-card, .pricing-card, .project-card 
*/



/* =========================
   SERVICE INTRO (etusivu)
   ========================= */

.service-intro {
  padding: 170px 24px 84px; /* desktop: reilusti tilaa topbarin alle */
  background: #f6efe4;
}

.service-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.service-intro-heading {
  font-size: 3rem;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #0c2318;
  letter-spacing: -0.5px;
}

.service-intro-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #233025;
  max-width: 660px;
  margin: 0 auto 44px;
}

/* 3 luottamuskohtaa – "kortit" */
.service-trust-inline {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-trust-inline .trust-badge {
  border-left: none;
  padding: 18px;
  border-radius: 18px;
  background: rgba(240, 231, 216, 0.75);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 14px 34px rgba(0,0,0,0.05);
  text-align: left;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.service-trust-inline .trust-badge::before {
  content: "✓";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #0c2318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0c2318;
  margin-bottom: 6px;
}

.service-trust-inline .trust-badge-title {
  font-size: 1.02rem;
  letter-spacing: -0.2px;
}

.service-trust-inline .trust-badge-sub {
  max-width: none;
  line-height: 1.7;
}

/* "Valmiita laitureita" -otsikkoalue (käytössä service-images-swap -osiossa) */
.service-images-header {
  margin-bottom: 56px;
}

.service-images-title {
  font-size: 2.8rem;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.5px;
}

.service-images-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #233025;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA-nappi (Katso lisää kuvia) */
.service-intro-cta {
  margin-top: 120px;
  display: flex;
  justify-content: center;
}

.service-intro-cta .btn {
  font-size: 1.05rem;
  padding: 15px 34px;
}

.service-intro-cta .btn:hover {
  transform: translateY(-2px);
}

/* 3 kuvan "pino" */
.service-intro-images {
  margin-top: 48px;
  position: relative;
  height: 340px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1200px;
}

.service-intro-images img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  height: 350px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  transition:
    transform 700ms ease,
    opacity 700ms ease,
    filter 700ms ease,
    box-shadow 700ms ease;
  will-change: transform, opacity, filter;
  opacity: 0;
  filter: saturate(0.95) contrast(0.98);
}

.service-intro-images img.is-front {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.06);
  filter: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.service-intro-images img.is-left {
  opacity: 0.72;
  z-index: 1;
  transform: translate(calc(-50% - 300px), calc(-50% + 26px)) scale(0.88);
  filter: brightness(0.76) saturate(0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.service-intro-images img.is-right {
  opacity: 0.72;
  z-index: 1;
  transform: translate(calc(-50% + 300px), calc(-50% + 26px)) scale(0.88);
  filter: brightness(0.76) saturate(0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.service-intro-images:hover img.is-front {
  transform: translate(-50%, -50%) scale(1.075);
}

/* =========================
   MOBILE: tee tästä luettava
   ========================= */

@media (max-width: 900px) {
  .service-intro {
    /* topbar on iso -> jätetään tilaa, mutta ei 170px */
    padding: 118px 16px 44px;
  }

  .service-intro-inner {
    text-align: left; /* helpompi lukea mobiilissa */
  }

  .service-intro-heading {
    font-size: 2.15rem;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .service-intro-lead {
    font-size: 1.02rem;
    max-width: 100%;
    margin: 0 0 22px;
  }

  .service-trust-inline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-trust-inline .trust-badge {
    padding: 16px;
  }

  .service-images-title {
    font-size: 2.1rem;
  }

  .service-images-lead {
    font-size: 1.02rem;
    max-width: 100%;
    margin: 0;
  }

  .service-intro-cta {
    margin-top: 56px; /* ei 120px mobiilissa */
    justify-content: flex-start;
  }

  /* kuvapino: pienempi ja vähemmän sivuttaissiirtoa */
  .service-intro-images {
    height: 300px;
    margin-top: 28px;
    max-width: 560px;
  }

  .service-intro-images img {
    width: 92%;
    height: 300px;
  }

  .service-intro-images img.is-left {
    transform: translate(calc(-50% - 160px), calc(-50% + 14px)) scale(0.9);
  }

  .service-intro-images img.is-right {
    transform: translate(calc(-50% + 160px), calc(-50% + 14px)) scale(0.9);
  }
}

@media (max-width: 520px) {
  .service-intro {
    padding: 110px 14px 40px;
  }

  .service-intro-heading {
    font-size: 1.95rem;
  }

  .service-intro-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .service-intro-images {
    height: 260px;
    max-width: 420px;
  }

  .service-intro-images img {
    height: 260px;
  }

  /* erittäin pienissä näytöissä pidetään "taustakuvat" lähempänä */
  .service-intro-images img.is-left {
    transform: translate(calc(-50% - 44px), calc(-50% + 10px)) scale(0.92);
  }

  .service-intro-images img.is-right {
    transform: translate(calc(-50% + 44px), calc(-50% + 10px)) scale(0.92);
  }
}

/* ERILLINEN KUVASWAP-OSIO */

.service-images-swap {
  padding: 80px 24px 120px;
  background: #f6efe4;
}

.service-images-swap-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* LUOTTAMUS-RIVI (heti heron alle) */

.trust-row {
  background: #f6efe4; /* sama beige kuin muu sivu */
  padding: 48px 24px 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-row-inner {
  max-width: 1000px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}

/* Yksittäinen badge */
.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  padding-top: 6px;
  padding-bottom: 6px;
  border-left: 2px solid #0c2318; /* hillitty mutta napakka */
}

/* Yläteksti */
.trust-badge-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c2318;
  line-height: 1.3;
}

/* Alateksti */
.trust-badge-sub {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #233025;
  max-width: 300px;
}

/* Inline buttons (not full width) */
.btn-inline {
  width: auto;
  align-self: flex-start;
  padding: 12px 22px;
}

@media (max-width: 900px) {
  .trust-row-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .trust-badge {
    padding-left: 18px;
  }
}


/* 6-BOX SECTION */

.big-six {
  height: 210vh;
  background: #f6efe4;
  padding: 0;
  margin: 0;
}

.big-six-inner {
  display: grid;
  grid-template-columns: 50vw 50vw;
  grid-template-rows: repeat(3, 70vh);
  width: 100vw;
  height: 210vh;
}

.big-six-box {
  width: 50vw;
  height: 70vh;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.six-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* Move inside its own frame (scale avoids edges showing) */
  transform: translate3d(0, var(--six-parallax-y, 0px), 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

/* Parallax off on smaller screens for snappier mobile */
@media (max-width: 900px) {
  .six-img {
    transform: none;
    will-change: auto;
  }
}

/* MOBILE: stack as text -> image -> text -> image ... */
@media (max-width: 900px) {
  .big-six {
    height: auto;
    padding: 24px 0 12px;
  }

  .big-six-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .big-six-box {
    width: 100%;
    height: auto;
    min-height: 0;
    border-left: 0;
    border-right: 0;
  }

  /* Make image boxes a nice fixed ratio */
  .big-six-box .six-img {
    width: 100%;
    height: 46vh;
    min-height: 260px;
    max-height: 520px;
    object-fit: cover;
    display: block;
  }

  /* Text spacing for mobile */
  .six-text {
    padding: 26px 18px;
  }

  .six-text h3 {
    font-size: 1.65rem;
  }

  .six-text p,
  .six-text blockquote {
    font-size: 1rem;
  }

  /* Re-order boxes to: text, image, text, image, text, image */
  .big-six-box:nth-child(1) { order: 2; } /* image 1 */
  .big-six-box:nth-child(2) { order: 1; } /* text 1 */

  .big-six-box:nth-child(3) { order: 3; } /* text 2 */
  .big-six-box:nth-child(4) { order: 4; } /* image 2 */

  .big-six-box:nth-child(5) { order: 6; } /* image 3 */
  .big-six-box:nth-child(6) { order: 5; } /* text 3 */
}

@media (max-width: 520px) {
  .big-six {
    padding-top: 18px;
  }

  .big-six-box .six-img {
    height: 40vh;
    min-height: 230px;
  }

  .six-text {
    padding: 22px 16px;
  }
}

.six-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #0c2318;
}

.six-text h3 {
  font-size: 2rem;
  margin: 0;
}

.six-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.six-text blockquote {
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
}

.six-img-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #233025;
  opacity: 0.8;
  text-align: center;
}





/* PALVELUT-SIVU */

.services-hero {
  padding: 120px 24px 40px;
  background: #f6efe4;
}

.services-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.services-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.services-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

/* pääpalvelut-gridi */

.services-main {
  padding: 8px 24px 140px;
  background: #f6efe4;
}

.services-main-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.services-section-title {
  font-size: 2.2rem;
  margin: 0 0 24px;
  color: #0c2318;
}

.services-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  margin: 0 0 32px;
  max-width: 520px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 72px;
}

.service-card {
  background: #f0e7d8;
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card-wide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #233025;
}

.service-delivery-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.service-delivery-item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.taller-image img {
  height: 420px;        /* paljon korkeampi */
  object-fit: cover;    /* tekee kuvasta kapeamman ja tiiviimmän */
  object-position: center;
}

.service-delivery-item figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3a463b;
}

.services-note {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

@media (max-width: 900px) {
  .service-delivery-images {
    grid-template-columns: 1fr;
  }
}

.service-card-icon {
  font-size: 1.6rem;
}

.service-card-title {
  font-size: 1.25rem;
  margin: 0;
  color: #0c2318;
}

.service-card-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #233025;
}

/* prosessi */

.process-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  background: #f6efe4;
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.process-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #0c2318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.process-step-title {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: #0c2318;
}

.process-step-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #233025;
}

/* FAQ */

.faq-section {
  margin-bottom: 72px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #f6efe4;
  border-radius: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-question {
  font-weight: 600;
  margin: 0 0 4px;
  color: #0c2318;
}

.faq-answer {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #233025;
}

.faq-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.faq-placeholder .faq-line {
  height: 14px;
  width: 100%;
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

.faq-placeholder .faq-line.short {
  width: 60%;
}

/* CTA */

/* Uusi CTA-nappi: kontrastia, kokoa, huomioefekti */
/* Hillitympi CTA-nappi */
.page-cta .btn-primary {
  background: #f6efe4;
  color: #0f291c;
  border: 2px solid #e6dcc9;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 26px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* CTA-nappi: premium nuoliefekti */
.services-cta {
  margin-top: 48px;
  padding: 32px 28px 32px;
  border-radius: 22px;
  background: #0f291c;
  color: #f6efe4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.services-cta-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
}

.services-cta .btn-primary {
  background: #f6efe4;
  color: #0f291c;
  border-color: #f6efe4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.services-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

/* responsiivisuus palvelut-sivulle */

@media (max-width: 900px) {
  .services-hero {
    padding: 120px 20px 56px;
  }

  .services-hero-title {
    font-size: 2.4rem;
  }

  .services-main {
    padding: 0 20px 96px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* HINNAT-SIVU – HINNASTO */

.pricing-hero {
  padding: 140px 24px 80px;
  background: #f6efe4;
}

.pricing-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.pricing-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

/* Hinnasto-runko */

.pricing-main {
  padding: 40px 24px 140px;
  background: #f6efe4;
}

.pricing-main-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-section-title {
  font-size: 2.1rem;
  margin: 0 0 20px;
  color: #0c2318;
}

.pricing-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  margin: 0 0 28px;
  max-width: 540px;
}

/* Yksinkertainen hinnasto-osa */

.pricing-simple {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hintaesimerkki-boksi */

.pricing-example {
  background: #f0e7d8;
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.pricing-example-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #0c2318;
}

.pricing-example-price {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0c2318;
}

.pricing-example-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #233025;
}

/* Päätyosa + käyntisilta -kolumnit */

.pricing-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-column-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c2318;
}

.pricing-column ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

/* Putkiponttoonit */

.pricing-pontoon {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

.pricing-pontoon ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Yleinen lisäinfo */

.pricing-info {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

/* Responsiivisuus hinnat-sivulle */

@media (max-width: 900px) {
  .pricing-hero {
    padding: 120px 20px 56px;
  }

  .pricing-hero-title {
    font-size: 2.4rem;
  }

  .pricing-main {
    padding: 24px 20px 96px;
  }

  .pricing-columns {
    grid-template-columns: 1fr;
  }
}

/* PORTFOLIO-SIVU – VALMIIT PROJEKTIT */

.portfolio-hero {
  padding: 140px 24px 80px;
  background: #f6efe4;
}

.portfolio-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.portfolio-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.portfolio-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

/* projektikortit */

.portfolio-list {
  padding: 40px 24px 120px;
  background: #f6efe4;
}

.portfolio-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr);
  gap: 32px;
  background: #f0e7d8;
  border-radius: 20px;
  padding: 24px 24px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 1.5rem;
  margin: 0;
  color: #0c2318;
}

.project-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #3a463b;
  font-style: italic;
}

.project-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #233025;
}

.project-quote {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #233025;
  font-style: italic;
}

/* ENNEN / JÄLKEEN -OSIO */

.before-after {
  padding: 0 24px 120px;
  background: #f6efe4;
}

.before-after-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.before-after-title {
  font-size: 2.2rem;
  margin: 0 0 20px;
  color: #0c2318;
}

.before-after-lead {
  margin: 0 0 28px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ba-case {
  background: #f0e7d8;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.ba-case-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #0c2318;
}

.ba-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ba-image-placeholder {
  border-radius: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  padding: 24px 10px;
  font-size: 0.88rem;
  text-align: center;
  color: #3a463b;
  background: rgba(246, 239, 228, 0.8);
}

.ba-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

/* portfolio CTA */

.portfolio-cta {
  padding: 0 24px 140px;
  background: #f6efe4;
}

.portfolio-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 22px;
  background: #0f291c;
  color: #f6efe4;
  padding: 28px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-cta-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 460px;
}

.portfolio-cta .btn-primary {
  background: #f6efe4;
  color: #0f291c;
  border-color: #f6efe4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

/* responsiivisuus portfolio-sivulle */

@media (max-width: 900px) {
  .portfolio-hero {
    padding: 120px 20px 56px;
  }

  .portfolio-hero-title {
    font-size: 2.4rem;
  }

  .portfolio-list {
    padding: 32px 20px 100px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .before-after {
    padding: 0 20px 96px;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-cta {
    padding: 0 20px 96px;
  }

  .portfolio-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* GALLERIA-SIVU */

.gallery-hero {
  padding: 140px 24px 40px;
  background: #f6efe4;
}

.gallery-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.gallery-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.gallery-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

.gallery {
  padding: 24px 24px 140px;
  background: #f6efe4;
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  /* Reserve space to prevent CLS while images load */
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
}

.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
}

/* Hover zoom only on devices that actually hover (avoids odd mobile/Lighthouse behavior) */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 900px) {
  .gallery-hero {
    padding: 120px 20px 32px;
  }

  .gallery-hero-title {
    font-size: 2.4rem;
  }

  .gallery {
    padding: 16px 20px 96px;
  }

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

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* TIETOA-SIVU (MARKUS-ESITTELY SIVU) */

.about-hero {
  padding: 140px 24px 80px;
  background: #f6efe4;
}

.about-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.about-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.about-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

/* Arvot / tapa toimia -osio */

.values {
  padding: 40px 24px 80px;
  background: #f6efe4;
}

.values-inner {
  max-width: 900px;
  margin: 0 auto;
}

.values-title {
  font-size: 2.2rem;
  margin: 0 0 24px;
  color: #0c2318;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 40px;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.value-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0c2318;
}

.value-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #0c2318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.value-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #233025;
}

/* henkilökohtainen kohta */

.about-personal {
  padding: 0 24px 56px;
  background: #f6efe4;
}

.about-personal-inner {
  max-width: 780px;
  margin: 0 auto;
}

.about-personal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #233025;
  margin: 0;
  font-style: italic;
}

/* CTA */

.about-cta {
  padding: 0 24px 140px;
  background: #f6efe4;
}

.about-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 28px;
  border-radius: 22px;
  background: #0f291c;
  color: #f6efe4;
}

.about-cta-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 480px;
}

.about-cta .btn-primary {
  background: #f6efe4;
  color: #0f291c;
  border-color: #f6efe4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.about-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

/* responsiivisuus tietoa-sivulle */

@media (max-width: 900px) {
  .about-hero {
    padding: 120px 20px 56px;
  }

  .about-hero-title {
    font-size: 2.4rem;
  }

  .values {
    padding: 32px 20px 64px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-personal {
    padding: 0 20px 48px;
  }

  .about-cta {
    padding: 0 20px 96px;
  }

  .about-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* YHTEYS-SIVUN HERO-OSIO */

.contact-hero {
  padding: 140px 24px 80px;
  background: #f6efe4;
}

.contact-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.contact-hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
}

@media (max-width: 900px) {
  .contact-hero {
    padding: 120px 20px 64px;
  }

  .contact-hero-title {
    font-size: 2.4rem;
  }
}


/* Yhteys-sivu: Markus-info ennen lomaketta */

.contact-markus-info {
  max-width: 900px;
  margin: 0 auto 80px;
  background: #f0e7d8;
  border-radius: 22px;
  padding: 24px 24px 26px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.contact-markus-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #0c2318;
  letter-spacing: -0.3px;
}

.contact-markus-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #233025;
}

/* mobiilissa vähän tiiviimpi padding */

@media (max-width: 900px) {
  .contact-markus-info {
    margin: 0 0 32px;
    border-radius: 18px;
    padding: 20px 18px 22px;
  }

  .contact-markus-title {
    font-size: 1.4rem;
  }
}

/* OTA YHTEYTTÄ -OSIO */

.contact {
  padding: 120px 24px 140px;
  background: #f6efe4;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #0c2318;
  letter-spacing: -0.4px;
}

.contact-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #233025;
  max-width: 520px;
  margin: 0 0 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Honeypot-kenttä (piilotetaan käyttäjiltä, botit usein täyttää) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #233025;
}

.contact-label {
  font-weight: 500;
}

.contact-field input,
.contact-field textarea {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e0d4c2;
  background: #f6efe4;
  font: inherit;
  color: #233025;
  outline: none;
  transition:
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #0f291c;
  background-color: #fbf6ec;
  box-shadow:
    0 0 0 1px rgba(15, 41, 28, 0.35),
    0 0 0 4px rgba(15, 41, 28, 0.18);
}

.contact-submit {
  margin-top: 12px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: #0f291c;
  color: #fdf7ee;
  box-shadow: 0 8px 20px rgba(15, 41, 28, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 41, 28, 0.5);
}

/* oikea kortti */

.contact-card {
  background: #f0e7d8;
  border-radius: 24px;
  padding: 32px 32px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-title {
  font-size: 1.6rem;
  margin: 0 0 4px;
  color: #0c2318;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #233025;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.contact-map {
  margin: 12px 0 8px;
  display: flex;
  justify-content: center;
}

.contact-map img {
  max-width: 180px;
  height: auto;
  display: block;
}

.contact-photo {
  margin: 8px 0 12px;
  display: flex;
  justify-content: center;
}

.contact-photo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 14px;
}

.contact-area {
  margin-top: auto;
}

.contact-area-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0c2318;
  margin-bottom: 4px;
}

.contact-area-text {
  font-size: 1rem;
  color: #233025;
}

.contact-person {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
  margin-top: 8px;
}

.contact-person-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c2318;
}

.contact-person-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #233025;
}

@media (max-width: 900px) {
  .contact {
    padding: 80px 20px 96px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-title {
    font-size: 2.4rem;
  }

  .contact-card {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* FOOTER / ALAPALKKI */
.footer {
  background: #0f291c;
  color: #f6efe4;
  padding: 40px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-col {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-text {
  margin: 0;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: #f6efe4;
}

.footer a {
  color: #f6efe4;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: none;
}

/* Footer link hover animation: text slides right, arrow grows in from left */
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.30s ease-out;
}

.footer-links a::before {
  content: "\2192"; /* → nuoli oikealle */
  opacity: 0;
  transform: translateX(-6px) scale(0.4);
  transform-origin: center left;
  transition: opacity 0.30s ease-out, transform 0.30s ease-out;
  font-size: 0.75em;
}

.footer-links a:hover {
  transform: translateX(6px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.85;
  gap: 12px;
}

.footer-credit {
  font-style: italic;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 32px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Smooth color transition if JS updates the variable */
:root {
  --hero-darken: 0;
}
.hero-darken {
  background: rgba(0,0,0,var(--hero-darken));
}
/* Navigation left alignment fix */
.nav-inner {
  justify-content: flex-start !important;
  gap: 24px;
}

/* Privacy note for contact forms */
.privacy-note {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3a463b;
  opacity: 0.85;
}