/* =========================================================
   Pikkuäidit – Design System
   ========================================================= */
:root {
  --background: hsl(36 38% 96%);
  --foreground: hsl(20 25% 18%);
  --card: #ffffff;

  --primary: hsl(14 72% 68%);
  --primary-foreground: hsl(30 40% 98%);
  --primary-soft: hsl(18 85% 88%);

  --secondary: hsl(30 45% 92%);
  --muted: hsl(34 25% 90%);
  --muted-foreground: hsl(25 15% 40%);

  --rose: hsl(350 70% 75%);
  --rose-soft: hsl(350 80% 93%);
  --blush: hsl(20 80% 90%);

  --border: hsl(30 25% 85%);
  --radius: 1.25rem;

  --shadow-soft: 0 20px 50px -20px hsl(14 60% 50% / 0.18);
  --shadow-card: 0 10px 30px -12px hsl(20 40% 30% / 0.12);
  --gradient-warm: linear-gradient(135deg, var(--blush) 0%, var(--rose-soft) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(36 38% 96%) 0%, hsl(20 70% 94%) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--foreground);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--primary); font-weight: 500; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 1.75rem); }

.muted { color: var(--muted-foreground); }
.tiny { font-size: 0.75rem; }
.lead { font-size: 1.125rem; color: var(--muted-foreground); max-width: 38rem; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.75rem; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
.btn--primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--dark { background: var(--foreground); color: var(--background); }
.btn--dark:hover { background: var(--primary); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.1); }
.btn--ghost:hover { background: #fff; }
.btn--block { width: 100%; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: hsl(36 38% 96% / 0.8);
  border-bottom: 1px solid hsl(30 25% 85% / 0.6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 8.5rem; gap: 1.5rem; }
.logo { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.logo__mark {
  display: inline-flex; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  align-items: center; justify-content: center; font-size: 0.9rem;
}
.logo__img { height: 8.5rem; width: auto; display: block; }
.logo__text {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

@media (max-width: 480px) {
  .logo__img { height: 4.75rem; }
  .logo__text { font-size: 1.25rem; }
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.9rem; font-weight: 500; color: hsl(20 25% 18% / 0.8); transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__burger { display: none; flex-direction: column; gap: 4px; padding: 0.5rem; }
.nav__burger span { width: 22px; height: 2px; background: var(--foreground); border-radius: 2px; transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); }
.hero__blob { position: absolute; border-radius: 999px; filter: blur(80px); opacity: 0.55; pointer-events: none; }
.hero__blob--1 { top: -100px; left: -100px; width: 400px; height: 400px; background: var(--primary-soft); }
.hero__blob--2 { top: 160px; right: -150px; width: 460px; height: 460px; background: var(--rose-soft); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; padding: clamp(4.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 1.75rem) clamp(5rem, 7vw, 6rem); }
.hero__text > * + * { margin-top: 1.5rem; }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--secondary); padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__image { border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.badge-pill {
  position: absolute; top: -1rem; right: -0.5rem;
  background: var(--rose); color: var(--foreground);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-card);
}

/* Sections */
.section { padding: 6rem 0; }
.section--alt { background: hsl(30 45% 92% / 0.6); }
.section__head { max-width: 40rem; margin-bottom: 3.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__head > * + * { margin-top: 0.75rem; }

.grid { display: grid; gap: clamp(1.25rem, 2vw, 1.5rem); }
.cards { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); padding: clamp(1.75rem, 4vw, 2.25rem); border-radius: 1.5rem;
  box-shadow: var(--shadow-card); border: 1px solid hsl(30 25% 85% / 0.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem; transition: transform .3s;
  background: var(--primary-soft);
}
.card__icon i {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.card:hover .card__icon { transform: scale(1.1); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted-foreground); }
.card__link { display: inline-block; margin-top: 1.25rem; color: var(--primary); font-weight: 500; font-size: 0.9rem; }
.card--warm { background: var(--gradient-warm); display: flex; flex-direction: column; justify-content: space-between; }
.card--warm .btn { align-self: flex-start; margin-top: 1.5rem; }

/* ==========================================================
   ABOUT — Meistä (uudistettu)
   ========================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}
.about-intro--solo {
  display: block;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.about-intro--solo .lead { margin-left: auto; margin-right: auto; }
.about-intro--solo .about-intro__quote { text-align: left; }
.about-intro__text > * + * { margin-top: 1.25rem; }
.about-intro__quote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: 0 1rem 1rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--foreground);
  box-shadow: var(--shadow-card);
}
.about-intro__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-intro__media .frame {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  background: var(--muted);
}
.about-intro__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-intro__media .frame--a { transform: translateY(-1.5rem); }
.about-intro__media .frame--b { transform: translateY(1.5rem); }

/* Founder cards */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(4rem, 7vw, 6rem);
}
.founder {
  background: var(--card);
  border: 1px solid hsl(30 25% 85% / 0.5);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.founder:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.founder__photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--muted);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.founder:hover .founder__photo img { transform: scale(1.04); }
.founder__body { padding: 1.75rem clamp(1.5rem, 3vw, 2rem) 2rem; }
.founder__name {
  font-family: 'Fraunces', serif;
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}
.founder__role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.founder__text { color: var(--muted-foreground); font-size: 1rem; line-height: 1.65; }
.founder__text + .founder__text { margin-top: 0.85rem; }

/* Values */
.values {
  background: var(--card);
  border: 1px solid hsl(30 25% 85% / 0.5);
  border-radius: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.values__head { max-width: 38rem; margin: 0 auto clamp(2rem, 4vw, 2.5rem); text-align: center; }
.values__head > * + * { margin-top: 0.75rem; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.value {
  text-align: left;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: hsl(36 38% 96% / 0.7);
  border: 1px solid hsl(30 25% 85% / 0.4);
}
.value__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: 1.15rem; margin-bottom: 0.85rem;
}
.value h4 { font-family: 'Fraunces', serif; font-size: 1.1rem; margin-bottom: 0.4rem; }
.value p { color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.55; }

/* Stats kept for reuse but smaller, optional */

/* Contact */
.contact {
  background: var(--gradient-warm); padding: clamp(2.25rem, 5vw, 3.5rem); border-radius: 2.5rem;
  box-shadow: var(--shadow-soft); text-align: center; max-width: 800px; margin: 0 auto;
}
.contact .lead { margin-left: auto; margin-right: auto; text-align: center; }
.contact__info > * + * { margin-top: 1rem; }
.contact__list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact__list li {
  display: block;
}
.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  min-height: 100%;
  background: hsl(0 0% 100% / 0.72);
  border: 1px solid hsl(30 25% 85% / 0.9);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact__link > div { min-width: 0; }
.contact__list strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact__icon {
  width: 3rem; height: 3rem; border-radius: 999px; background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; box-shadow: var(--shadow-card);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.contact__link:hover {
  transform: translateY(-2px);
  border-color: hsl(14 72% 68% / 0.35);
  background: hsl(0 0% 100% / 0.92);
}
.contact__link:hover .contact__icon { background: var(--primary); transform: scale(1.05); }

/* Footer */
.footer { border-top: 1px solid hsl(30 25% 85% / 0.6); margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 5vw, 3rem); padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 1.75rem); }
.footer__brand-col { display: flex; align-items: center; }
.footer__brand { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.footer__logo { height: 4.5rem; width: auto; display: block; }
.footer__brand-text { font-size: 1rem; line-height: 1.5; color: var(--muted-foreground); }
.footer h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 0.75rem; }
.footer__list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.footer__list a:hover { color: var(--primary); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.5rem; border-top: 1px solid hsl(30 25% 85% / 0.6);
  font-size: 0.8rem; color: var(--muted-foreground);
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: translateY(0); }
.float { animation: float 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1000px) and (min-width: 961px) {
  #palvelut.section.container,
  #meista.section.container { padding-left: 1.9rem; padding-right: 1.9rem; }
  #palvelut .section__head { margin-bottom: 3.1rem; }
  #palvelut .cards { gap: 1.35rem; }
  #palvelut .card { padding: 1.85rem; }
}

@media (max-width: 960px) {
  .nav { position: relative; top: auto; backdrop-filter: none; }
  .hero__inner { grid-template-columns: 1fr; padding: 3.25rem 1.5rem 4.25rem; }
  .hero__media { order: -1; max-width: 28rem; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro__media .frame--a { transform: none; }
  .about-intro__media .frame--b { transform: none; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  #palvelut.section.container,
  #meista.section.container { padding-left: 1.7rem; padding-right: 1.7rem; }
  #palvelut .section__head { margin-bottom: 3rem; }
  #palvelut .cards { gap: 1.3rem; }
  #palvelut .card { padding: 1.75rem; }
  .contact { padding: 2.25rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.75rem 1.5rem; }
}

@media (max-width: 820px) and (min-width: 681px) {
  #palvelut.section.container,
  #meista.section.container { padding-left: 1.55rem; padding-right: 1.55rem; }
  #palvelut .cards { gap: 1.2rem; }
  #palvelut .card { padding: 1.65rem; }
}

@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { position: relative; }
  .nav__links.open {
    display: flex; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--background);
    padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border);
  }
  .cards { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  #palvelut.section.container,
  #meista.section.container { padding-left: 1.4rem; padding-right: 1.4rem; }
  #palvelut .section__head { margin-bottom: 2.75rem; padding-inline: 0.15rem; }
  #palvelut .cards { gap: 1.1rem; }
  #palvelut .card { padding: 1.6rem; }
  .hero__inner { padding: 3.25rem 1.25rem 4rem; gap: 2rem; }
  .hero__cta { gap: 0.75rem; }
  .hero__image { aspect-ratio: 16 / 20; }
  .contact__list { grid-template-columns: 1fr; gap: 0.9rem; }
  .footer__grid { padding: 2.75rem 1.25rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 4rem 0; }
  #palvelut.section.container,
  #meista.section.container { padding-left: 1.25rem; padding-right: 1.25rem; }
  #palvelut .section__head { padding-inline: 0.25rem; }
  #palvelut .cards { gap: 1rem; }
  #palvelut .card { padding: 1.5rem; }
  .hero__inner { padding: 2.75rem 1rem 3.5rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .card, .contact { padding: 1.4rem; }
  .values { padding: 1.5rem; }
  .values__grid { grid-template-columns: 1fr; }
  .footer__logo { height: 3.5rem; }
  .footer__grid { padding: 2.25rem 1.15rem; }
}
