/* ==========================================================================
   Kukkakauppa Kukkapalvelu (Porvoon Kukkapalvelu Ky) — theme: market-fresh
   SECOND USE of this theme (first: westerlundin-kukka).

   Palette — market-fresh's green + brown base kept, tomato accent replaced by
   a two-tone bloom accent taken from the prospect's own bouquet photography
   (hot-pink peony + yellow craspedia + lavender-blue delphinium on a light
   background), which is their only visible identity:
     --market-green   #2E7D32  leaf/stem green (theme base, kept)
     --crate-brown    #8A5A33  wood/crate brown (theme base, kept)
     --flour-white    #FBF7EC  light photo-background off-white
     --bloom-pink     #E0407A  peony pink (decorative fills, buttons)
     --bloom-pink-text#B32456  AA-safe darker pink for text on light bg
     --bloom-yellow   #E8B830  craspedia yellow (decorative only, fails AA)
     --bloom-yellow-tx#8A6710  AA-safe yellow-brown for text if needed
     --sky-blue       #9BA8D8  delphinium blue (decorative only)
   Type: Bricolage Grotesque (display, variable) / Nunito (body, 400/600/700)
   Skeleton: S2 split panel, alternating sections, organic wavy dividers.
   ========================================================================== */

:root {
  --market-green: #2E7D32;
  --market-green-dark: #1F5C24;
  --crate-brown: #8A5A33;
  --crate-brown-dark: #6C4527;
  --flour-white: #FBF7EC;
  --panel-white: #FFFFFF;

  --bloom-pink: #E0407A;
  --bloom-pink-text: #B32456;   /* AA-safe on flour-white */
  --bloom-yellow: #E8B830;      /* decorative only */
  --bloom-yellow-text: #8A6710; /* AA-safe variant */
  --sky-blue: #9BA8D8;          /* decorative only */

  --ink: #22321E;
  --ink-soft: #4A5944;
  --hairline: #E4DCCB;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1180px;
}

/* ---------------------------------------------------------------------- */
/* Fonts (self-hosted, latin subset, never hotlinked)                      */
/* ---------------------------------------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/nunito-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/nunito-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-700-latin.woff2") format("woff2");
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--flour-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--market-green-dark);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

:focus-visible {
  outline: 3px solid var(--bloom-pink-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------- */
/* Draft banner                                                           */
/* ---------------------------------------------------------------------- */

.draft-banner {
  background: var(--market-green-dark);
  color: #FBF7EC;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}

.draft-banner strong { color: #FFE3EC; }

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--market-green-dark);
  text-decoration: none;
}

.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }

.nav-links {
  display: none;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--market-green-dark); }

@media (min-width: 800px) { .nav-links { display: flex; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bloom-pink-text);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.nav-cta:hover { background: #8E1B43; }

/* ---------------------------------------------------------------------- */
/* Wavy dividers (signature move)                                         */
/* ---------------------------------------------------------------------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(32px, 6vw, 70px);
  line-height: 0;
}

.wave--to-white path { fill: var(--flour-white); }
.wave--to-green path { fill: var(--market-green); }
.wave--to-brown path { fill: var(--crate-brown); }

/* ---------------------------------------------------------------------- */
/* Hero — S2 split panel                                                  */
/* ---------------------------------------------------------------------- */

.hero { background: var(--flour-white); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }

.hero .container {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--bloom-pink-text);
  background: #FBE1EA;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

.hero p.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--crate-brown-dark);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary { background: var(--market-green); color: #fff; }
.btn-primary:hover { background: var(--market-green-dark); }
.btn-secondary { background: transparent; border-color: var(--market-green); color: var(--market-green-dark); }
.btn-secondary:hover { background: var(--market-green); color: #fff; }

.hero-art { position: relative; }

/* ---------------------------------------------------------------------- */
/* Palvelut — hand-painted sign tags on the green band                    */
/* ---------------------------------------------------------------------- */

.fresh-stock {
  background: var(--market-green);
  color: var(--flour-white);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.fresh-stock h2 { color: #fff; }
.fresh-stock .section-lede { color: #F4FBF3; max-width: 56ch; }

.stock-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}

.price-tag { width: 100%; height: auto; }

.stock-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #F1F9EF;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.2rem;
  max-width: 62ch;
}

/* ---------------------------------------------------------------------- */
/* Alternating split sections                                             */
/* ---------------------------------------------------------------------- */

.split-section { background: var(--panel-white); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.split-section.alt { background: var(--flour-white); }

.split-section .container {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split-section .container { grid-template-columns: 1fr 1fr; }
}

.section-kicker {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--crate-brown-dark);
  margin-bottom: 0.6rem;
  display: block;
}

.section-kicker.on-green { color: #FFEFF4; }
.section-kicker.on-brown { color: #FBF1E3; }

.section-lede { color: var(--ink-soft); max-width: 54ch; }

.origin-notes {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.origin-notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.origin-notes svg { flex-shrink: 0; margin-top: 0.15rem; }

.illustrative-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--bloom-pink);
  padding-left: 0.8rem;
  margin-top: 1.4rem;
  max-width: 60ch;
}

/* ---------------------------------------------------------------------- */
/* Heritage / Interflora band                                             */
/* ---------------------------------------------------------------------- */

.heritage {
  background: var(--crate-brown);
  color: var(--flour-white);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.heritage h2 { color: #fff; }
.heritage .section-lede { color: #FBF1E3; }

.heritage-figure {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: #FFE3EC;
  margin-top: 0.8rem;
}

.heritage-figure span.unit {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #FBF1E3;
}

.heritage-caveat { margin-top: 0.8rem; font-size: 0.82rem; color: #FBF1E3; max-width: 58ch; }

/* ---------------------------------------------------------------------- */
/* Myymälät                                                               */
/* ---------------------------------------------------------------------- */

.shops { background: var(--panel-white); padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.shop-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.4rem;
}

.shop-card {
  background: var(--flour-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.shop-card svg { width: 48px; height: 48px; margin-bottom: 0.8rem; }
.shop-card h3 { font-size: 1.15rem; margin: 0 0 0.15rem; }
.shop-card .shop-city { font-weight: 600; color: var(--ink); margin: 0 0 0.6rem; }
.shop-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Photo note                                                             */
/* ---------------------------------------------------------------------- */

.photo-note {
  background: var(--flour-white);
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  padding-block: 1.6rem;
}

.photo-note .container {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 780px;
}

.photo-note svg { flex-shrink: 0; margin-top: 0.2rem; }
.photo-note p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.photo-note strong { color: var(--bloom-pink-text); }

/* ---------------------------------------------------------------------- */
/* Contact                                                                */
/* ---------------------------------------------------------------------- */

.contact {
  background: var(--market-green-dark);
  color: var(--flour-white);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.contact h2 { color: #fff; }
.contact .section-lede { color: #DCEDD9; }

.contact-card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 780px) {
  .contact-card { grid-template-columns: 1fr 1fr; }
  .contact-note { grid-column: 1 / -1; }
}

.contact-item { display: flex; align-items: center; gap: 0.9rem; }

.contact-item .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--bloom-pink-text);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #CDE2CA;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.contact-item .number {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item .number.email { font-size: clamp(1rem, 2.4vw, 1.25rem); }

.contact-note { font-size: 0.88rem; color: #CDE2CA; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #D6DDD2;
  padding-block: 2rem;
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a { color: #E2F1DF; }

/* ---------------------------------------------------------------------- */
/* Motion                                                                 */
/* ---------------------------------------------------------------------- */

.bob { animation: bob 5.5s ease-in-out infinite; transform-origin: center bottom; }
.bob-delay { animation-delay: 1.4s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob, .bob-delay, * {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Tekoälyilmoitus (EU AI Act 50 art.) — webpages/kit/ai-disclosure/ --- */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}

.ai-note strong {
  font-weight: 600;
}
