/* Anja Rajala — still-water theme
   Tokens: sage #9BAF9B · warm stone #EFEDE8 · mist #DCE3E0 · deep moss #33403A
   AA-safe text variants: --moss (10.85:1 on white / 9.27:1 on stone),
   --moss-soft #4B5A52 (6.22:1 on stone, 5.59:1 on mist) for secondary text.
   Moss-on-sage is 4.65:1 — passes AA for normal text, used sparingly. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --sage: #9BAF9B;
  --stone: #EFEDE8;
  --mist: #DCE3E0;
  --moss: #33403A;
  --moss-soft: #4B5A52;
  --paper: #F7F5F1;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--moss);
  background: var(--stone);
}

a { color: inherit; }
a:focus-visible,
.quiet-cta:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

/* ---- draft banner ---- */
.draft-banner {
  display: block;
  background: var(--moss);
  color: var(--stone);
  text-align: center;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
}
.draft-banner:hover { background: #2A352F; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--stone) 0%, var(--paper) 100%);
  padding: 4rem 1.5rem;
}
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(85vw, 44rem);
  height: min(85vw, 44rem);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: 100%; }
.blob-shape {
  animation: float 22s ease-in-out infinite;
  transform-origin: center;
}
.blob-shape--soft { animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(1.2%, -1.6%) scale(1.02); }
  66%  { transform: translate(-1.4%, 1.1%) scale(0.99); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss-soft);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.55;
  color: var(--moss-soft);
  margin-bottom: 2.75rem;
}

/* ---- quiet cta: never a loud button ---- */
.quiet-cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--moss);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--moss);
}
.quiet-cta:hover { color: var(--moss-soft); border-bottom-color: var(--moss-soft); }
.quiet-cta-arrow { display: inline-block; transition: transform 0.3s ease; }
.quiet-cta:hover .quiet-cta-arrow { transform: translateX(3px); }

/* ---- shared section shell: breathing room is the design ---- */
main section {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(6rem, 20vh, 9rem) 1.5rem;
  text-align: center;
}
.palvelut, .galleria { max-width: 64rem; }
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss-soft);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.875rem);
  line-height: 1.2;
  margin-bottom: 2.25rem;
}

/* ---- tarina ---- */
.tarina-body p { color: var(--moss-soft); max-width: 38rem; margin: 0 auto; }
.tarina-body p + p { margin-top: 1.25rem; }

/* ---- palvelut: three airy columns ---- */
.section-intro {
  max-width: 34rem;
  margin: 0 auto 3.5rem;
  color: var(--moss-soft);
  font-size: 0.9375rem;
}
.palvelut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}
.palvelu { display: flex; flex-direction: column; align-items: center; }
.palvelu-icon {
  width: 44px;
  height: 44px;
  color: var(--moss);
  margin-bottom: 1.5rem;
}
.palvelu h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}
.palvelu p { color: var(--moss-soft); font-size: 0.9375rem; max-width: 18rem; }

/* ---- galleria ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.gallery-grid figure { margin: 0; }
.ph {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.ph svg { width: 100%; height: 100%; display: block; }
.gallery-grid figcaption {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--moss-soft);
}
.photo-note {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--moss-soft);
  background: var(--paper);
  border-left: 2px solid var(--sage);
  padding: 1.1rem 1.5rem;
  text-align: left;
}

/* ---- yhteystiedot ---- */
.yhteys-lede { color: var(--moss-soft); max-width: 34rem; margin: 0 auto 3rem; }
.yhteys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
  text-align: left;
}
.yhteys-block h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--moss-soft);
}
.text-link {
  color: var(--moss);
  font-weight: 500;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: var(--moss); }
.small { font-size: 0.9375rem; color: var(--moss-soft); }

/* ---- footer ---- */
.footer {
  background: var(--mist);
  color: var(--moss-soft);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.9375rem;
}
.footer a { color: var(--moss); text-underline-offset: 3px; }
.footer p + p { margin-top: 0.35rem; }

/* ---- hero entrance: quiet one-time rise on load, no scroll-linked
   animation (a CSS `animation-timeline: view()` version was tried and
   dropped — it left below-the-fold sections reading as faded/low-contrast
   in tools that capture the page without a real scroll, e.g. full-page
   screenshot tools and Lighthouse's a11y snapshot; content must be at full
   opacity by default). ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: rise 1.1s ease-out both; }
  .hero-blob { animation: fade-in 1.4s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ---- reduced motion: kill everything ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .palvelut-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .yhteys-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
}
@media (max-width: 560px) {
  .hero { min-height: 92vh; }
  main section { padding: 4.5rem 1.25rem; }
}
