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

:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d5a40;
  --green-light: #4a8c60;
  --green-pale: #e8f4ed;
  --gold: #b8913a;
  --gold-light: #d4aa55;
  --white: #ffffff;
  --off-white: #f7f9f7;
  --text-dark: #1a2620;
  --text-mid: #3d5247;
  --text-light: #6b8578;
  --border: #d4e4da;
  --shadow: 0 4px 24px rgba(26, 58, 42, 0.1);
  --shadow-lg: 0 12px 48px rgba(26, 58, 42, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── DEMO BANNER ── */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(189, 108, 36, 0.144);
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.demo-banner span {
  opacity: 0.8;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 58, 42, 0.1);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}
.nav-logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}
.nav-logo-text span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-mid);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.nav-links a:hover {
  color: var(--green-mid);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--green-mid);
}
.nav-cta {
  background: var(--green-mid) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open {
  display: flex;
  background-color: rgba(255, 255, 255, 0.27);
  height: auto;
  flex-direction: column;
}

.nav-drawer a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-drawer a:last-child {
  border-bottom: none;
  color: white;
  background: var(--green-mid);
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
}
.nav-drawer a:hover {
  color: var(--green-mid);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      165deg,
      rgba(26, 58, 42, 0.8) 0%,
      rgba(45, 90, 64, 0.6) 50%,
      rgba(74, 140, 96, 0.4) 100%
    ),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?w=1800&q=80")
      center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s 0.1s forwards;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  max-width: 680px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s 0.25s forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s 0.4s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s 0.55s forwards;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s 0.7s forwards;
}
.hero-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.hero-stat-num span {
  color: var(--gold-light);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--green-dark);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-light);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
section {
  padding: 96px 48px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 560px;
}
.section-title em {
  font-style: normal;
  color: var(--green-light);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}
.section-header {
  margin-bottom: 56px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SERVICES ── */
#palvelut {
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-light);
}
.service-card-accent.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--green-mid);
}
.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.service-card ul {
  list-style: none;
  margin-top: 16px;
}
.service-card ul li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card ul li::before {
  content: "✓";
  color: var(--green-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step {
  text-align: center;
  padding: 0 16px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-light);
  color: var(--green-mid);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition:
    background 0.2s,
    color 0.2s;
}
.step:hover .step-num {
  background: var(--green-mid);
  color: white;
}
.step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}



/* ── ABOUT ── */
#tietoa {
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--green-dark);
  color: white;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.about-image-badge-num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.about-image-badge-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--green-mid);
}
.about-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.about-feature p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: white;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-mid);
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--green-dark) 0%,
    var(--green-mid) 100%
  );
  padding: 80px 48px;
  text-align: center;
}
.cta-banner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
#yhteystiedot {
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--green-mid);
}
.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 0.95rem;
  color: var(--green-dark);
  font-weight: 500;
}
.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: white;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  width: 100%;
  background: var(--green-mid);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  padding: 13px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.form-submit:hover {
  background: var(--green-dark);
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--green-mid);
}
.form-success h4 {
  font-family: "Playfair Display", serif;
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  padding: 64px 48px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  section {
    padding: 72px 24px;
  }
  .hero {
    padding: 100px 24px 72px;
  }
  .hero-stats {
    gap: 28px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-bar {
    padding: 20px 24px;
    gap: 24px;
  }
  .cta-banner {
    padding: 64px 24px;
  }
  .about-image-badge {
    display: none;
  }
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}
