/* =====================================================================
   Floréa Atelier · style.css
   Brändivärit & fontit :root-muuttujissa. Vaihda vain nämä, kun
   sovellat runkoa toiseen toimialaan.
   ===================================================================== */

:root {
  /* Brändivärit (kovat arvot) */
  --almond-cream:  #F0EAD8;
  --mosswood:      #4B4B30;
  --cedar-bark:    #6F4128;
  --golden-fennel: #AFA857;
  --glacier-mist:  #AEC7E0;

  /* Johdetut sävyt */
  --cream-soft:    #F6F2E6;
  --ink:           #3A3A26;
  --line:          rgba(75, 75, 48, 0.14);
  --shadow:        0 24px 60px rgba(75, 75, 48, 0.16);

  /* Fontit */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;

  --max: 1180px;
}

/* ===== Perus ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--almond-cream);
  color: var(--mosswood);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

/* ===== Tyypografia ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
em { color: var(--cedar-bark); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cedar-bark);
}
.lede { font-size: 1.15rem; max-width: 52ch; }
.muted { color: rgba(75, 75, 48, 0.72); }
.center { text-align: center; }

/* ===== Napit ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.82em 1.7em; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--mosswood); color: var(--almond-cream); }
.btn--primary:hover { background: #3a3a26; }
.btn--ghost { background: transparent; color: var(--mosswood); border-color: var(--mosswood); }
.btn--ghost:hover { background: var(--mosswood); color: var(--almond-cream); }
.btn--cream { background: var(--almond-cream); color: var(--mosswood); }
.btn--small { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ===== Demobanneri ===== */
.demo-banner { background: var(--mosswood); color: var(--almond-cream); text-align: center; font-size: 0.8rem; padding: 9px 16px; line-height: 1.4; }
.demo-banner strong { letter-spacing: 0.12em; font-weight: 600; }

/* ===== Navigaatio ===== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 234, 216, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; }
.nav-brand { display: flex; align-items: center; text-decoration: none; color: var(--mosswood); margin-right: 28px; flex-shrink: 0; }
.nav-brand img { width: auto; }
.nav-brand .brand-full { height: 34px; display: block; }
.nav-brand .brand-mark { height: 42px; display: none; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.92rem; padding: 4px 0; position: relative; }
.nav-links a:not(.btn):hover { color: var(--cedar-bark); }
.nav-links a.active:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--cedar-bark);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { background: none; border: none; cursor: pointer; position: relative; color: var(--mosswood); display: flex; align-items: center; }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--cedar-bark); color: var(--almond-cream);
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; min-width: 18px; height: 18px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--mosswood); }
.nav-close { display: none; position: absolute; top: 22px; right: 24px; background: none; border: none;
  cursor: pointer; color: var(--mosswood); font-size: 1.6rem; line-height: 1; padding: 4px; }
.nav-overlay { position: fixed; inset: 0; background: rgba(75,75,48,0.4); opacity: 0; pointer-events: none;
  transition: opacity .3s ease; z-index: 99; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }
@media (max-width: 1024px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--almond-cream);
    flex-direction: column; align-items: flex-start; gap: 18px; padding: 90px 32px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: var(--shadow); z-index: 101; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a.active:not(.btn)::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-close { display: block; }
}
@media (max-width: 540px) {
  .nav-brand .brand-full { display: none; }
  .nav-brand .brand-mark { display: block; }
  .site-nav .wrap { padding: 12px 18px; }
  .nav-actions { gap: 10px; }
}

/* ===== Botaaninen jakaja ===== */
.divider { display: flex; justify-content: center; padding: 48px 0; color: var(--cedar-bark); }

/* ===== Osiot ===== */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero h1 { margin-top: 16px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-figure { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); position: relative; background: var(--glacier-mist); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .tag {
  position: absolute; bottom: 16px; left: 16px; background: var(--almond-cream); color: var(--mosswood);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; z-index: 2;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* ===== Page header (alasivut) ===== */
.page-header { padding: 64px 0 36px; }
.page-header .eyebrow { margin-bottom: 14px; }
.page-header p { margin-top: 16px; }
.page-header.center .wrap { text-align: center; }
.page-header.center .lede { margin-left: auto; margin-right: auto; }

/* ===== Kortit (geneerinen ruudukko) ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.info-card { background: #fff; border-radius: var(--radius-card); padding: 30px 28px 34px; border: 1px solid var(--line); }
.info-card .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--cedar-bark); }
.info-card--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
/* Palvelugrafiikat tekstin värisiksi (Mosswood) */
.svc-icon { height: 76px; width: auto; margin-bottom: 14px;
  filter: brightness(0) saturate(100%) invert(24%) sepia(16%) saturate(700%) hue-rotate(33deg) brightness(94%) contrast(88%); }
.info-card h3 { margin: 8px 0 10px; }
.info-card p { font-size: 0.97rem; color: rgba(75,75,48,0.85); }

/* ===== Tuotekortti ===== */
.product-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .media { aspect-ratio: 4/5; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .pc-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.product-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--cream-soft); color: var(--cedar-bark); border: 1px solid var(--line); }
.product-card .pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.price { font-family: var(--font-display); font-size: 1.5rem; }

/* ===== Suodatin-layout ===== */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.filter-toggle { display: none; }
@media (max-width: 820px) {
  .filter-toggle { display: inline-flex; margin-bottom: 8px; }
  .filters { display: none; }
  .filters.open { display: block; }
}
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 600; margin-bottom: 10px; color: var(--cedar-bark); }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 6px; cursor: pointer; }
.filter-option input { accent-color: var(--cedar-bark); cursor: pointer; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px; flex: 1; min-width: 200px; }
.search-box input { border: none; background: none; outline: none; font-family: var(--font-body); font-size: 0.92rem; width: 100%; color: var(--mosswood); }
.result-count { font-size: 0.88rem; }
.empty-state { padding: 60px 20px; text-align: center; }

/* ===== Tumma osio ===== */
.dark-band { background: var(--mosswood); color: var(--almond-cream); border-radius: 28px; }
.dark-band .eyebrow { color: var(--glacier-mist); }
.dark-band em { color: inherit; }
.dark-inner { padding: 68px 0; }
.quote { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.25; max-width: 22ch; }
.quote-meta { margin-top: 26px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.76rem; color: var(--glacier-mist); }

/* Workshop-teaser (reunasta reunaan -kuva) */
.workshop-teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; }
.workshop-teaser .wt-text { padding: clamp(40px, 5vw, 64px); align-self: start; }
.workshop-teaser .wt-text h2 { color: var(--almond-cream); }
/* kuva absoluuttisesti → ei veny luonnolliseen korkeuteensa, vaan täyttää sarakkeen */
.workshop-teaser .wt-media { position: relative; min-height: 100%; }
.workshop-teaser .wt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .workshop-teaser { grid-template-columns: 1fr; }
  .workshop-teaser .wt-media { min-height: 280px; order: -1; }
}

/* ===== Asiakaspalautteet (karuselli) ===== */
.tm-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; border: 1px solid var(--line); background: var(--cream-soft); padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; min-height: 290px; }
@media (max-width: 900px) { .tm-card { flex-basis: calc(50% - 12px); } }
@media (max-width: 600px) { .tm-card { flex-basis: 88%; } }
.tm-stars { color: var(--cedar-bark); letter-spacing: 4px; font-size: 0.9rem; }
.tm-quote { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.4rem; line-height: 1.3; color: var(--mosswood); }
.tm-who { margin-top: auto; color: rgba(75,75,48,0.7); font-size: 0.95rem; }
.tm-nav { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.tm-arrow { width: 54px; height: 54px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--mosswood); display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.tm-arrow:hover { background: var(--mosswood); color: var(--almond-cream); }

/* ===== Galleria ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 3/4; position: relative; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; bottom: 12px; left: 12px; background: var(--almond-cream); color: var(--mosswood); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }

/* ===== Workshop / kurssikortti ===== */
.workshop-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 26px; }
.workshop-date { text-align: center; background: var(--cream-soft); border-radius: 14px; padding: 14px 8px; }
.workshop-date .day { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.workshop-date .mon { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; }
.workshop-info h3 { margin-bottom: 4px; }
.workshop-meta { font-size: 0.85rem; color: rgba(75,75,48,0.7); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 640px) { .workshop-card { grid-template-columns: 1fr; text-align: center; } .workshop-date { width: 120px; margin: 0 auto; } }

/* ===== Lomakkeet ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--mosswood); outline: none; transition: border .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cedar-bark); }
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: rgba(75,75,48,0.6); margin-top: 4px; }
.form-success { background: var(--glacier-mist); color: var(--mosswood); border-radius: 14px; padding: 18px 20px; margin-top: 18px; display: none; }
.form-success.show { display: block; }

/* ===== Tilaa: valinta valmis vs oma ===== */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-btn { text-align: left; cursor: pointer; background: #fff; border: 1.5px solid var(--line); padding: 34px 32px; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-body); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.choice-btn:hover { transform: translateY(-3px); }
.choice-btn.active { border-color: var(--mosswood); background: var(--cream-soft); }
.choice-title { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--mosswood); line-height: 1; }
.choice-sub { color: rgba(75,75,48,0.72); font-size: 0.98rem; }

/* ===== Tuotesivu (tuote.html) ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } }
.pd-media { overflow: hidden; aspect-ratio: 4/5; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { margin-bottom: 8px; }
.pd-price { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--cedar-bark); margin: 6px 0 18px; }
.pd-meta { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.pd-meta li { display: flex; gap: 10px; font-size: 0.96rem; }
.pd-meta .lbl { color: rgba(75,75,48,0.6); min-width: 116px; }
.pd-size { margin: 20px 0; }
.pd-size h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 600; color: var(--cedar-bark); margin-bottom: 10px; }

/* ===== Kimpun rakentaja ===== */
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 880px) { .builder { grid-template-columns: 1fr; } }
.flower-option { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; cursor: pointer; background: #fff; transition: border .2s ease, transform .2s ease; position: relative; }
.flower-option:hover { transform: translateY(-3px); }
.flower-option.selected { border-color: var(--cedar-bark); box-shadow: 0 0 0 2px var(--cedar-bark); }
.flower-option .media { aspect-ratio: 1/1; overflow: hidden; }
.flower-option .media img { width: 100%; height: 100%; object-fit: cover; }
.flower-option .fo-body { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flower-option .fo-name { font-size: 0.9rem; font-weight: 500; }
.flower-option .check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 999px; background: var(--cedar-bark); color: var(--almond-cream); display: none; align-items: center; justify-content: center; font-size: 0.85rem; }
.flower-option.selected .check { display: flex; }
.builder-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 8px; }

/* ===== Hintalaskuri ===== */
.calc-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
@media (max-width: 880px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; position: sticky; top: 90px; text-align: center; }
.calc-price { font-family: var(--font-display); font-size: 3.4rem; color: var(--cedar-bark); margin: 10px 0; }
.option-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.option-pill { padding: 9px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; color: var(--mosswood); transition: all .2s ease; }
.option-pill.active { background: var(--mosswood); color: var(--almond-cream); border-color: var(--mosswood); }

/* ===== Kori-laatikko (drawer) ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(75,75,48,0.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 200; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(92vw, 400px); background: var(--almond-cream); z-index: 201; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.cart-item img { width: 64px; height: 76px; object-fit: cover; border-radius: 10px; }
.cart-item .ci-name { font-weight: 500; font-size: 0.92rem; }
.cart-item .ci-price { font-size: 0.85rem; color: var(--cedar-bark); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--mosswood); font-size: 1rem; line-height: 1; }
.ci-remove { background: none; border: none; cursor: pointer; color: rgba(75,75,48,0.5); font-size: 0.78rem; text-decoration: underline; }
.cart-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 40px 20px; color: rgba(75,75,48,0.6); }

/* ===== Ponnahdusikkuna (demo-ilmoitukset) ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(75, 75, 48, 0.42);
  display: flex; align-items: center; justify-content: center; padding: 6vw;
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--almond-cream); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  width: 100%; max-width: 360px; padding: 34px 30px 30px; text-align: center;
  transform: translateY(12px) scale(.97); transition: transform .26s ease;
}
.modal-overlay.open .modal-card { transform: none; }
.modal-flower { display: block; width: 44px; height: 44px; margin: 0 auto 16px; color: var(--cedar-bark); }
.modal-flower svg { width: 100%; height: 100%; display: block; }
.modal-card p { font-family: var(--font-body); color: var(--mosswood); font-size: 1rem; line-height: 1.5; margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
  .modal-card { transform: none; }
}

/* ===== Yhteystieto-rivit ===== */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { color: var(--cedar-bark); flex-shrink: 0; margin-top: 2px; }
.map-embed { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--glacier-mist); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--cedar-bark); color: var(--almond-cream); padding: 62px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer img.flogo { height: 110px; width: auto; margin-bottom: 12px;
  filter: brightness(0) invert(94%) sepia(13%) saturate(360%) hue-rotate(3deg) brightness(99%); }
.site-footer a { color: var(--almond-cream); text-decoration: none; opacity: 0.85; display: block; font-size: 0.92rem; margin-top: 8px; }
.site-footer a:hover { opacity: 1; }
.footer-col h4 { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 6px; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(240,234,216,0.25); font-size: 0.8rem; opacity: 0.8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Apuluokat ===== */
.stack-lg > * + * { margin-top: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.rounded-img { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }

/* Kapeat kuvat: rajattu leveys desktopissa, täysleveä mobiilissa (esim. tapahtumat) */
.img-narrow { max-width: 64%; margin-inline: auto; }
@media (max-width: 820px) { .img-narrow { max-width: 100%; } }
.tag-pill { display: inline-block; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cedar-bark); }

/* Media-banneri (esim. myymälä) */
.media-banner { overflow: hidden; }
.media-banner img { width: 100%; height: 100%; object-fit: cover; }

/* Teräväkulmaiset kuvat, kuvat ja kuvakortit ilman pyöristystä */
.hero-figure,
.product-card,
.product-card .media,
.gallery-grid figure,
.rounded-img,
.workshop-teaser,
.map-embed,
.flower-option,
.media-banner,
.cart-item img { border-radius: 0; }

/* Pyörivä logo-sinetti (yhteystiedot) */
.spin-seal { display: flex; justify-content: center; align-items: center; padding: 20px 0 40px; }
.spin-seal img { width: clamp(225px, 33vw, 330px); height: auto; animation: seal-spin 24s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-seal img { animation: none; } }

/* Rullaava brändinauha (marquee) */
.logo-marquee { overflow: hidden; width: 100%; padding: 18px 0; background: var(--cream-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-flex; align-items: center; gap: 64px; white-space: nowrap; animation: marquee 34s linear infinite; will-change: transform; }
.mq-logo { height: 26px; width: auto; display: block; }
.mq-sep { color: var(--cedar-bark); display: inline-flex; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Pieni kukkasymboli (esim. tarinan alla) */
.flower-mark { color: var(--cedar-bark); margin-top: 6px; line-height: 0; }
.flower-mark svg { width: 40px; height: 40px; }
/* Brändikukan koot eri paikoissa */
.info-card .num svg { width: 34px; height: 34px; display: block; }
.mq-sep svg { width: 20px; height: 20px; }

/* Display-fontti boldina kaikkialla */
h1, h2, h3, h4,
.nav-wordmark, .price, .calc-price, .pc-name, .quote,
.workshop-date .day, .info-card .num, .mq-item { font-weight: 700; }
