/* ==========================================================================
   Westerlundin Kukka Ky — theme: market-fresh (retail-leisure group)
   FIRST USE of this theme in the library.

   Palette (adapted from market-fresh's produce hexes toward a floral shop):
     --market-green   #2E7D32  produce/leaf green (kept as-is)
     --crate-brown    #8A5A33  crate/wood brown (kept as-is)
     --flour-white    #FAF8F2  base background (kept as-is)
     --floral-accent  #D6446B  "tomato" accent nudged toward a warm floral
                                pink-red (roses/peonies), same saturated,
                                appetite-adjacent energy as the original hex
   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: #FAF8F2;
  --panel-white: #FFFFFF;
  --floral-accent: #D6446B;
  --floral-accent-text: #A32F4F; /* AA-safe darker variant for accent-on-white text */
  --ink: #23331F;               /* near-black warm green-black, body text */
  --ink-soft: #4B5A44;          /* secondary text, still AA on flour-white */
  --hairline: #E1DACB;

  --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;
  --shadow-soft: 0 18px 40px -24px rgba(35, 51, 31, 0.35);

  --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.1;
  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(--floral-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

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

/* ---------------------------------------------------------------------- */
/* Nav / header                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 242, 0.94);
  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: 780px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--floral-accent);
  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: var(--floral-accent-text);
}

/* ---------------------------------------------------------------------- */
/* Wavy dividers                                                          */
/* ---------------------------------------------------------------------- */

.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);
}

.wave--to-panel path {
  fill: var(--panel-white);
}

/* ---------------------------------------------------------------------- */
/* 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: 860px) {
  .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(--floral-accent-text);
  background: #FBE6EC;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--market-green-dark);
}

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

.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;
}

/* ---------------------------------------------------------------------- */
/* Tänään myymälässä (fresh stock block)                                  */
/* ---------------------------------------------------------------------- */

.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: #E4F2E1;
  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;
}

.price-tag-caption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #E4F2E1;
  text-align: center;
}

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

/* ---------------------------------------------------------------------- */
/* 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: 860px) {
  .split-section .container {
    grid-template-columns: 1fr 1fr;
  }
  .split-section.reverse .container {
    direction: rtl;
  }
  .split-section.reverse .container > * {
    direction: ltr;
  }
}

.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-lede {
  color: var(--ink-soft);
  max-width: 52ch;
}

.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(--floral-accent);
  padding-left: 0.8rem;
  margin-top: 1.4rem;
}

/* ---------------------------------------------------------------------- */
/* Category cards                                                         */
/* ---------------------------------------------------------------------- */

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

.category-card {
  background: var(--flour-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.category-card svg {
  width: 44px;
  height: 44px;
}

.category-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--market-green-dark);
}

.category-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Heritage / about 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: #F1E6D9;
}

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

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

.heritage-caveat {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #E9DCC9;
}

/* ---------------------------------------------------------------------- */
/* 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: 760px;
}

.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(--floral-accent-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: #DDEEDA;
}

.contact-card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.contact-phone .number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.contact-note {
  font-size: 0.88rem;
  color: #CFE4CC;
  max-width: 40ch;
  margin: 0;
}

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

.site-footer {
  background: var(--ink);
  color: #D8DED4;
  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: #E4F2E1;
}

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

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

.bob-delay {
  animation-delay: 1.2s;
}

@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;
  }
}
