/* ============================================================
   Kirppis Nasta Mesta – tyylit
   Selkeä ja suora: oikeat kuvat, logon keltainen, metsänvihreä teksti.
   Ainoa koriste on logon nasta pääkuvan yläreunassa.
   ============================================================ */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Värit – vaihda tästä */
  --paper: #F0E3C8;        /* lämmin luonnonvalkoinen pohja */
  --paper-deep: #E4D3B0;   /* toinen pinta */
  --mustard-soft: #F2CF6E; /* Instagram-osion tausta */
  --card: #FFFBF3;         /* lomakekentät */
  --forest: #1F3B2D;       /* teksti ja painikkeet */
  --forest-deep: #15291F;  /* footer */
  --forest-soft: #44604F;  /* toissijainen teksti */
  --mustard: #F9BA05;      /* logon keltainen */
  --mustard-deep: #DDA200;
  --terra: #B5532E;        /* virheilmoitukset, pienet korostukset */
  --line: rgba(31, 59, 45, 0.18);

  --font-display: "Young Serif", "Georgia", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 1160px;
  --header-h: 72px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  text-wrap: balance;
}

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 650 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--forest); color: var(--paper); }
.btn--primary:hover { background: var(--forest-deep); }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
.btn--mustard { background: var(--mustard); color: var(--forest-deep); }
.btn--mustard:hover { background: var(--mustard-deep); }
.btn--light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn--light:hover { background: var(--paper); color: var(--forest); }
.btn--call {
  min-height: 44px;
  padding: .5rem 1rem;
  background: var(--mustard);
  color: var(--forest-deep);
}
.btn--call:hover { background: var(--mustard-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand { margin-right: auto; display: block; }
.brand img { width: 120px; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .4rem .8rem;
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  background: transparent;
  color: var(--forest);
  font: 600 .9375rem/1 var(--font-body);
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; }

@media (max-width: 899.98px) {
  .nav__list {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% - 4px);
    padding: .4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px -20px rgba(21, 41, 31, .5);
  }
  .js .nav__list:not(.is-open) { display: none; }
  .nav__list a {
    display: block;
    padding: .85rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .nav__list a:hover { background: var(--paper-deep); }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__list { position: static; display: flex; flex-wrap: wrap; border: 0; box-shadow: none; background: none; padding: 0; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand img { width: 150px; }
  .nav__toggle { display: none; }
  .nav__list { display: flex; gap: .25rem; margin-right: .5rem; }
  .nav__list a {
    display: inline-block;
    padding: .6rem .8rem;
    font-weight: 600;
    font-size: .975rem;
    text-decoration: none;
  }
  .nav__list a:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 6px; }
}

/* Mobiili: valikko ja soitto pieninä kuvakepainikkeina, logo pääosassa */
@media (max-width: 899.98px) {
  .brand img { width: 140px; }
  .nav__toggle,
  .btn--call {
    width: 40px;
    min-height: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .nav__toggle { border-width: 1.5px; }
  .nav__toggle-label,
  .btn--call .btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .btn--call .icon { width: 18px; height: 18px; }
}
@media (max-width: 359.98px) {
  .brand img { width: 124px; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.hero__text { display: grid; justify-items: center; }
.hero__text > * { max-width: 100%; }

.hero__title {
  margin: 0;
  display: grid;
  justify-items: inherit;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}
.hero__big {
  font-size: clamp(4.6rem, 25vw, 8.4rem);
  letter-spacing: -.025em;
  line-height: .9;
}
.hero__place {
  margin-top: .55rem;
  font-size: clamp(1.45rem, 5.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--forest-soft);
}

.hero__lead {
  max-width: 30ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.125rem, .6vw + 1rem, 1.3rem);
}

/* Reaaliaikainen tila: "Nyt auki" */
.open-now {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 600;
}
.open-now__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
.open-now.is-open .open-now__dot { background: #7BD88F; box-shadow: 0 0 0 3px rgba(123, 216, 143, .25); }

/* Aukioloajat hintalappuina */
.hero__tags {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1rem;
}
.tag {
  position: relative;
  padding: .55rem 1rem .55rem 1.7rem;
  background: var(--mustard);
  color: var(--forest-deep);
  font-size: 1.0625rem;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  border-radius: 3px;
  transform: rotate(-3deg);
}
.tag:nth-child(2) { transform: rotate(2.5deg); background: #F7C93A; }
.tag::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--paper);
}
.tag strong { font-weight: 800; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero__address {
  margin: 1.1rem 0 0;
  font-size: .975rem;
  color: var(--forest-soft);
}

.hero__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  margin: 0;
}
.slides {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-deep);
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transition: opacity .6s ease;
}
.slides img.is-active { opacity: 1; }

.slides__toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .4rem .8rem;
  border: 0;
  border-radius: var(--radius);
  background: rgba(21, 41, 31, .82);
  color: var(--paper);
  font: 600 .875rem/1 var(--font-body);
  cursor: pointer;
}
.slides__toggle:hover { background: var(--forest-deep); }
.slides__toggle:focus-visible { outline-color: var(--mustard); }
.slides__icon { position: relative; width: 10px; height: 12px; }
.slides__icon::before, .slides__icon::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px;
}
.slides__icon::before { left: 0; }
.slides__icon::after { right: 0; }
.slides__toggle.is-paused .slides__icon::before {
  left: 1px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.slides__toggle.is-paused .slides__icon::after { display: none; }

/* Logon keltainen nasta kiinnittää kuvan */
.pin {
  position: absolute;
  top: -13px; left: 50%;
  width: 28px; height: 28px;
  margin-left: -14px;
  z-index: 1;
  border-radius: 50%;
  background: var(--mustard);
  border: 3px solid var(--paper);
  box-shadow: 0 3px 5px -2px rgba(21, 41, 31, .5);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    text-align: left;
  }
  .hero__text { justify-items: start; }
  .hero__tags, .hero__actions { justify-content: flex-start; }
  .hero__big { font-size: clamp(5.5rem, 9vw, 8.4rem); }
  .hero__photo { justify-self: end; }
}

/* ---------- Esittely ---------- */
.intro {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.intro__text {
  margin: 1.1rem auto 0;
  max-width: 44ch;
  font-size: clamp(1.1rem, .7vw + 1rem, 1.35rem);
  line-height: 1.6;
}

/* ---------- Arvostelut: muistilaput nastoilla ---------- */
.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.reviews__notes {
  list-style: none;
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}
.reviews__notes li { width: 100%; max-width: 21rem; display: flex; }
@media (min-width: 860px) {
  .reviews__notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: stretch; }
  .reviews__notes li { max-width: none; }
}
.note {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 2.1rem 1.5rem 1.4rem;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .75rem;
  background: #FCE7A2;
  color: var(--forest);
  border-radius: 2px 2px 3px 14px / 2px 2px 3px 6px;
  box-shadow: 0 1px 1px rgba(21, 41, 31, .08), 0 14px 22px -16px rgba(21, 41, 31, .55);
  transform: rotate(-1.6deg);
}
.reviews__notes li:nth-child(2) .note { transform: rotate(1.2deg); background: #FBE09A; }
.reviews__notes li:nth-child(3) .note { transform: rotate(-.6deg); }
.note__pin {
  position: absolute;
  top: -9px; left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 3px 4px -1px rgba(21, 41, 31, .45), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.note__stars { margin: 0; color: var(--forest); letter-spacing: .15em; font-size: 1rem; }
.note blockquote { margin: 0; }
.note blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
}
.note figcaption { font-size: .875rem; color: var(--forest-soft); }

/* ---------- Instagram ---------- */
.feed {
  background: var(--mustard-soft);
  padding: clamp(3.5rem, 8vw, 5rem) var(--gutter);
}
.feed__inner { max-width: var(--max); margin: 0 auto; }
.feed__head {
  display: grid;
  justify-items: center;
  gap: .4rem;
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.feed__handle {
  font-weight: 600;
  color: var(--forest-soft);
  text-underline-offset: 4px;
}
.feed__handle:hover { color: var(--forest); }

.feed__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, .875rem);
  max-width: 62rem;
  margin: 0 auto;
}

.feed__link { display: block; overflow: hidden; border-radius: 3px; }
.feed__link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity .2s ease;
}
.feed__link:hover img { opacity: .88; }

.feed__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* ---------- Myyntipöydät ---------- */
.tables {
  padding: clamp(3.5rem, 8vw, 5.5rem) max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--paper-deep);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.tables__intro { text-align: center; max-width: 34rem; margin: 0 auto; }
.tables__intro p { margin: 1rem 0 0; }
.tables__intro a { font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

.form {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 1rem; }
.field__opt { font-weight: 400; color: var(--forest-soft); }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1.5px solid rgba(31, 59, 45, .45);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--forest);
  font: inherit;
  font-size: 1rem; /* estää iOS:n zoomauksen */
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #5E7567; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 0; border-color: var(--forest); }
.field input[aria-invalid="true"] { border-color: var(--terra); }
.field__error { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--terra); }

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

.form__note { margin: .25rem 0 0; font-size: .9375rem; color: var(--forest-soft); text-align: center; }
.form__submit { justify-self: center; min-width: 14rem; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { margin: 0; text-align: center; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--terra); }
.form__privacy { margin: 0; font-size: .875rem; color: var(--forest-soft); text-align: center; }

/* ---------- Löydä perille ---------- */
.visit {
  background: var(--forest);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter);
}
.visit__inner { max-width: var(--max); margin: 0 auto; }
.visit .section-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.visit a { color: inherit; }
.visit :focus-visible { outline-color: var(--mustard); }

.visit__grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}
.visit__block { display: grid; justify-items: center; align-content: start; gap: .75rem; }

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: 1.15fr 1fr 1fr; text-align: left; gap: 3rem; }
  .visit__block { justify-items: start; }
}

.visit__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mustard);
}
.visit__address {
  margin: 0;
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.3;
}
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .5rem;
}
@media (min-width: 900px) { .visit__actions { justify-content: flex-start; } }

.hours {
  width: 100%;
  max-width: 19rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours th, .hours td {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(247, 240, 226, .16);
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; font-weight: 600; }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--mustard); font-weight: 700; }
.hours .today-label { font-size: .875rem; font-weight: 600; }

.visit__contact { margin: 0; font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem); font-weight: 600; overflow-wrap: anywhere; }
.visit__contact a,
.visit__small a { text-decoration-color: var(--mustard); text-underline-offset: 4px; }
.visit__small { margin: 0; font-size: .9375rem; color: rgba(247, 240, 226, .85); max-width: 30ch; }

/* Kartta */
.map {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  height: clamp(300px, 42vw, 420px);
  border-radius: 6px;
  overflow: hidden;
  background: var(--forest-deep);
  border: 1px solid rgba(247, 240, 226, .18);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .9rem;
  padding: 1.5rem;
  text-align: center;
  background-image:
    linear-gradient(rgba(247, 240, 226, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 240, 226, .06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map__pin { width: 36px; height: 36px; fill: var(--mustard); stroke: var(--forest-deep); stroke-width: 1.2; }
.map__pin circle { fill: var(--forest-deep); stroke: none; }
.map__address { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); }
.map__note { margin: 0; font-size: .875rem; color: rgba(247, 240, 226, .75); max-width: 32ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(247, 240, 226, .85);
  padding: 2.75rem var(--gutter) 2.25rem;
  font-size: .95rem;
  text-align: center;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: .9rem;
}
.site-footer p { margin: 0; }
.site-footer__logo { width: 180px; }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: .25rem 1.5rem;
}
.site-footer__links a {
  display: inline-block;
  padding: .5rem 0;
  color: var(--paper);
  font-weight: 600;
  text-decoration-color: var(--mustard);
  text-underline-offset: 4px;
}
.site-footer__copy { font-size: .875rem; color: rgba(247, 240, 226, .6); }
.site-footer :focus-visible { outline-color: var(--mustard); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
