@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");
@import url("https://fonts.cdnfonts.com/css/acumin-pro");

:root {
  --bg: hsl(36 33% 95%);
  --fg: hsl(348 30% 20%);
  --card: hsl(36 30% 92%);
  --primary: hsl(348 40% 28%);
  --primary-fg: hsl(36 33% 95%);
  --muted-fg: hsl(348 15% 45%);
  --border: hsl(36 20% 85%);
  --font-heading: "Palatino Linotype", "Palatino", "Book Antiqua", "Palladio", serif;
  --font-body: "DM Sans", sans-serif;
  --font-slogan: "Acumin Pro", sans-serif;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-elevated: 0 12px 40px -12px hsl(348 40% 28% / .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: 72rem; margin: 0 auto; }
.label {
  font-size: .875rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted-fg); margin-bottom: 1rem; text-align: center;
}
.section-heading {
  font-family: var(--font-heading); font-size: 2.25rem; line-height: 2.5rem;
  font-weight: 700; text-align: center;
}
.muted { color: var(--muted-fg); }

/* Painikkeet */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .875rem 2rem; border-radius: .375rem;
  font-size: .875rem; font-weight: 500; transition: opacity .2s, background-color .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: .9; }
.btn-outline { border: 1px solid hsl(348 30% 20% / .2); }
.btn-outline:hover { background: hsl(348 30% 20% / .05); }

/* Lasikortti */
.glass {
  padding: 2rem; border-radius: .75rem;
  background: hsl(36 30% 92% / .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid hsl(36 20% 85% / .3);
  box-shadow: var(--shadow-lg);
}

/* Navigaatio */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(36 33% 95% / .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(36 20% 85% / .5);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 2rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links > a:not(.btn) {
  font-size: .875rem; letter-spacing: .025em; color: var(--muted-fg); transition: color .2s;
}
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current="page"] { color: var(--fg); }
.nav .btn { padding: .625rem 1.25rem; }
.lang { display: flex; align-items: center; gap: .25rem; font-size: .875rem; }
.lang button { padding: .25rem .5rem; border-radius: .25rem; color: var(--muted-fg); transition: color .2s; }
.lang button:hover, .lang button.active { color: var(--fg); }
.lang button.active { font-weight: 500; }
.lang span { color: var(--border); }
.menu-toggle { display: flex; }
.mobile-menu {
  display: none; background: var(--bg); border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu > * + * { margin-top: 1rem; }
.mobile-menu > a:not(.btn) { display: block; color: var(--muted-fg); }
.mobile-menu .btn { display: flex; padding: .625rem 1.25rem; }
.mobile-menu .lang { gap: .5rem; }
.mobile-menu .lang button { padding: .375rem .75rem; }
.mobile-menu .lang button.active { background: var(--primary); color: var(--primary-fg); font-weight: 400; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero::after { content: ""; position: absolute; inset: 0; background: hsl(36 33% 95% / .6); }
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 5rem 1.5rem 0; max-width: 56rem;
}
.hero .label { margin-bottom: 1.5rem; animation: fade-in .8s ease-out both; }
.hero h1 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 3.75rem; line-height: .9; margin-bottom: 1.5rem;
}
.hero-slogan {
  font-family: var(--font-slogan); font-style: italic;
  font-size: 1.25rem; line-height: 1.75rem; color: var(--muted-fg); margin-bottom: 2.5rem;
}
.fade { transition: opacity .5s, transform .5s; }
.fade.out { opacity: 0; transform: translateY(.75rem); }
.hero-slogan.fade { transition-delay: 75ms; }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.hero-actions .btn-outline.out { opacity: 0; }
.hero-actions .btn-outline { transition: opacity .3s, background-color .3s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Karusellin pisteet */
.dots { display: flex; gap: .5rem; align-items: center; justify-content: center; }
.hero .dots { margin-top: 2.5rem; }
.dot {
  width: .5rem; height: .5rem; border-radius: 9999px;
  background: hsl(348 30% 20% / .2); transition: all .3s;
}
.dot:hover { background: hsl(348 30% 20% / .4); }
.dot.active { background: var(--primary); width: 1.5rem; }
.pause {
  margin-left: .5rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid hsl(348 30% 20% / .2); color: hsl(348 30% 20% / .6); transition: color .2s, border-color .2s;
}
.pause:hover { color: var(--fg); border-color: hsl(348 30% 20% / .4); }

/* Osiot */
.section { padding: 6rem 1.5rem; }

.services-grid { display: grid; gap: 2rem; margin-top: 4rem; }
.service-card { display: block; transition: box-shadow .3s; }
.service-card:hover { box-shadow: var(--shadow-elevated); }
.service-card .icon { width: 2rem; height: 2rem; color: var(--primary); margin-bottom: 1.25rem; stroke-width: 1.5; }
.service-card h3, .card-title {
  font-family: var(--font-heading); font-size: 1.5rem; line-height: 2rem; font-weight: 600; margin-bottom: .75rem;
}
.service-card p { color: var(--muted-fg); line-height: 1.625; margin-bottom: 1rem; }
.service-card .more { font-size: .875rem; font-weight: 500; color: var(--primary); }
.service-card:hover .more { text-decoration: underline; }

.about { max-width: 64rem; margin: 0 auto; }
.about-row { display: flex; flex-direction: column; align-items: center; gap: 3rem; margin-top: 4rem; }
.about-photo {
  width: 18rem; height: 18rem; flex-shrink: 0; overflow: hidden; border-radius: .75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25), 0 0 0 1px rgb(255 255 255 / .1);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-text { text-align: center; }
.about-text p { font-size: 1.125rem; line-height: 1.625; color: var(--muted-fg); }
.about-text p + p { margin-top: 2rem; }

.contact { max-width: 42rem; margin: 0 auto; text-align: center; }
.contact .section-heading { margin-bottom: 1.5rem; }
.contact p.muted { font-size: 1.125rem; margin-bottom: 2.5rem; }
.contact .btn { padding: 1rem 2rem; font-size: 1rem; }

.footer { padding: 2rem 1.5rem; border-top: 1px solid hsl(36 20% 85% / .5); }
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.125rem; letter-spacing: .2em; font-weight: 700; }
.footer p:last-child { font-size: .875rem; color: var(--muted-fg); }

/* Alasivut */
.page { padding: 8rem 1.5rem 4rem; }
.page-inner { max-width: 56rem; margin: 0 auto; }
.page-inner.wide { max-width: 64rem; }
.back {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem;
  font-size: .875rem; color: var(--muted-fg); transition: color .2s;
}
.back:hover { color: var(--fg); }
.page h1 {
  font-family: var(--font-heading); font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: .75rem;
}
.page-slogan { font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; color: var(--muted-fg); margin-bottom: 2.5rem; }
.stack > * + * { margin-top: 2rem; }
.two-col { display: grid; gap: 1.5rem; }
.card-title { margin-bottom: 1rem; }
.card-text { color: var(--muted-fg); line-height: 1.625; margin-bottom: 1rem; }
.card-text p + p { margin-top: .5rem; }
.bullets { color: var(--muted-fg); }
.bullets li + li { margin-top: .5rem; }

.refs-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.refs-heading .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); stroke-width: 1.5; }
.refs-heading h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
.refs-grid { display: grid; gap: 1rem; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: .5rem; overflow: hidden;
  border: 1px solid hsl(36 20% 85% / .3); transition: border-color .2s;
}
.ref:hover .video { border-color: hsl(348 40% 28% / .4); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ref p { font-size: .875rem; color: var(--muted-fg); margin-top: .5rem; transition: color .2s; }
.ref:hover p { color: var(--fg); }

.plain-card { padding: 2rem; border-radius: .75rem; background: var(--card); border: 1px solid hsl(36 20% 85% / .5); }
.packages { margin-top: 4rem; }
.package {
  min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
  background: hsl(36 30% 92% / .5);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  transition: opacity .4s, transform .4s;
}
.package.out { opacity: 0; transform: translateY(.75rem); }
.package .card-title { font-size: 1.5rem; }
.package .bullets { margin-bottom: 1.5rem; }
.package .bullets li + li { margin-top: .375rem; }
.package-foot { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.package-foot .btn { padding: .75rem 1.5rem; }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.arrow {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid hsl(36 20% 85% / .5); color: var(--muted-fg); transition: color .2s, border-color .2s;
}
.arrow:hover { color: var(--fg); border-color: hsl(348 30% 20% / .4); }

.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.notfound h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.notfound a { color: var(--primary); text-decoration: underline; }

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .package-foot { flex-direction: row; align-items: center; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu, .mobile-menu.open { display: none; }
  .hero h1 { font-size: 6rem; }
  .hero-slogan { font-size: 1.5rem; line-height: 2rem; }
  .section { padding: 8rem 1.5rem; }
  .section-heading { font-size: 3rem; line-height: 1; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-row { flex-direction: row; gap: 4rem; }
  .about-photo { width: 20rem; height: 20rem; }
  .about-text { text-align: left; }
  .about-text p { font-size: 1.25rem; line-height: 1.75rem; }
  .footer-inner { flex-direction: row; }
  .page h1 { font-size: 3.75rem; line-height: 1; }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .package { padding: 2.5rem; }
  .package .card-title { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 8rem; }
  .refs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
