/* =========================================================
   STUDIO WILLA — tyylit
   Värit ja fontit vaihdettavissa :root-muuttujista.
   ========================================================= */

@font-face { font-family: "Anton"; src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Pohja */
  --paper: #FBF7F4;
  --bone:  #F6F0EB;
  --sand:  #EDE2DA;
  --blush: #E9D3CB;
  --rose:  #C9A398;   /* sama sävy kuin logon "STUDIO" */
  /* Teksti & korostus */
  --mocha: #6E5148;
  --ink:   #34181E;   /* sama sävy kuin logon "Willa" */
  --wine:  #6B2236;
  --wine-deep: #4E1726;
  --line:  rgba(52, 24, 30, .14);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 1200px;
  --radius-arch: 999px 999px 18px 18px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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-color: var(--bone);
  /* Lempeä liukuväri, joka jatkuu läpi koko sivun: roosat ja viininpunaiset hehkut vuorottelevat reunoilla */
  background-image:
    radial-gradient(65vw 50vw at 88% 3%, rgb(233 211 203 / .85), transparent 70%),
    radial-gradient(55vw 55vw at -5% 16%, rgb(201 163 152 / .30), transparent 70%),
    radial-gradient(70vw 55vw at 105% 34%, rgb(233 211 203 / .70), transparent 70%),
    radial-gradient(60vw 55vw at 0% 52%, rgb(107 34 54 / .07), transparent 70%),
    radial-gradient(70vw 55vw at 100% 70%, rgb(201 163 152 / .26), transparent 70%),
    radial-gradient(65vw 50vw at 5% 88%, rgb(233 211 203 / .75), transparent 70%),
    linear-gradient(180deg, #F8F2EE 0%, #F4E9E3 28%, #F7F0EB 50%, #F2E6E0 74%, #F6EEE9 100%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- Typografia ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mocha);
}
.h2 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.02; letter-spacing: -.01em;
  position: relative;
}
.h2 em { font-style: italic; color: var(--wine); }
.h2--light, .h2--light em { color: var(--paper); }
.h2--light em { color: var(--blush); }
.small { font-size: .9rem; color: var(--mocha); }
.tiny { font-size: .78rem; color: var(--mocha); }
.center { text-align: center; }

/* Logon kaiku: iso Anton-sana otsikon takana */
.title-stack {
  font-family: var(--f-display); line-height: .8; color: var(--blush);
  font-size: clamp(4.6rem, 24vw, 10rem); letter-spacing: .01em;
  margin-bottom: -.42em; text-align: center; user-select: none;
  position: relative; z-index: 0;
}
.title-stack + .h2 { z-index: 1; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.6rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .72rem; }
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--wine); }
.btn--light:hover { background: var(--blush); }
.btn--outline-light { border-color: rgba(251,247,244,.55); color: var(--paper); }
.btn--outline-light:hover { background: rgba(251,247,244,.12); border-color: var(--paper); }

.link-arrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--rose); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--wine); border-color: var(--wine); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 240, 235, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner {
  height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header__logo img { height: 44px; width: auto; }
.nav { display: none; }
.header__cta { display: none; }
.menu-btn {
  width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 7px; margin-right: -10px;
}
.menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:last-child { width: 18px; justify-self: end; }

/* Mobiilivalikko */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--wine); color: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__inner {
  min-height: 100svh; padding: 1.5rem var(--gutter) 2.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.menu__logo { width: 140px; height: auto; margin: 3.4rem auto 2rem; }
.menu__list { display: grid; gap: .3rem; margin-bottom: auto; }
.menu__list a {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.25;
  text-decoration: none; display: inline-block; padding: .1rem .5rem;
}
.menu__list a span { font-size: .5em; font-style: normal; font-family: var(--f-body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.menu__foot { margin-top: 2.5rem; display: grid; gap: 1.1rem; justify-items: center; }
.menu__foot p { font-size: .9rem; opacity: .85; }
.menu__foot p a { text-underline-offset: 4px; }
.menu__close {
  position: absolute; top: 12px; right: 12px; min-height: 48px; padding: 0 1rem;
  background: transparent; border: 1px solid rgba(251,247,244,.4); border-radius: 999px; color: var(--paper);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.menu.is-open .menu__list li { animation: rise .6s var(--ease) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (mobiili: keskitetty) ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 1.8rem var(--gutter) 2.5rem;
  display: grid; gap: 2.4rem; text-align: center;
}
.hero__title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(3rem, 14vw, 5.6rem); line-height: .95; letter-spacing: -.02em;
  margin: .8rem 0 1.1rem;
}
.hero__title em { display: block; font-style: italic; color: var(--wine); }
.hero__lead { max-width: 30rem; margin: 0 auto; color: var(--mocha); font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.7rem; }

.hero__media { position: relative; width: min(100%, 420px); margin: 0 auto; padding-top: 1rem; }
.hero__word {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  font-family: var(--f-display); font-size: clamp(5.5rem, 30vw, 11rem); line-height: .8; color: var(--blush);
  z-index: 0; white-space: nowrap; pointer-events: none;
}
.arch { overflow: hidden; border-radius: var(--radius-arch); background: var(--sand); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { aspect-ratio: 4 / 5; width: 82%; margin: 2.6rem auto 0; z-index: 1; }
.arch picture { display: contents; }
.arch--hero img { object-position: center 55%; }
.hero__pip {
  position: absolute; z-index: 2; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  right: 0; bottom: 14%; border: 6px solid var(--paper); background: var(--sand);
}
.hero__pip img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; z-index: 2; left: 0; bottom: 5%;
  background: var(--paper); border-radius: 14px; padding: .65rem .9rem; text-align: left;
  font-size: .72rem; line-height: 1.35; color: var(--mocha); max-width: 46%;
  box-shadow: 0 10px 30px -14px rgba(52,24,30,.35);
}
.hero__badge span { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--wine); }

/* Liukuva palvelunauha */
.ribbon {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ribbon__track { display: flex; width: max-content; animation: ribbon 55s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon ul { display: flex; flex-shrink: 0; }
.ribbon li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.35rem, 4.2vw, 2.1rem); line-height: 1.2; color: var(--ink);
}
.ribbon li::after {
  content: ""; width: 7px; height: 7px; margin-inline: clamp(1.2rem, 4vw, 2.4rem);
  background: var(--rose); transform: rotate(45deg); flex-shrink: 0;
}
.ribbon li:nth-child(even) { color: var(--wine); }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
}

/* ---------- Osiot ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 12vw, 8rem) var(--gutter); }

/* Intro */
.intro { text-align: center; }
.intro__lead {
  font-family: var(--f-serif); font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.35;
  max-width: 36rem; margin: 1.6rem auto 0; color: var(--ink);
}
.services { margin: 3rem auto 0; max-width: 46rem; border-top: 1px solid var(--line); }
.services a {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem;
  padding: 1.3rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; text-align: left;
  transition: padding-left .35s var(--ease), color .25s;
}
.services__n { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--rose); }
.services__name { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.05; }
.services__meta { grid-column: 2; font-size: .82rem; color: var(--mocha); margin-top: .2rem; }
.services a:hover { color: var(--wine); padding-left: .8rem; }

.notes { display: grid; gap: 1rem; max-width: 46rem; margin: 2.4rem auto 0; font-size: .9rem; color: var(--mocha); }
.notes strong { color: var(--ink); }
.notes a { color: var(--wine); text-underline-offset: 3px; }

/* ---------- Hinnasto ---------- */
.prices { padding-top: 0; }
.prices__head { text-align: center; max-width: 36rem; margin: 0 auto; }
.prices__head .h2 { margin: .5rem 0 1rem; }
.tabs {
  display: flex; gap: .4rem; justify-content: center; margin: 2.4rem auto 0;
  background: var(--sand); padding: .35rem; border-radius: 999px; width: max-content; max-width: 100%;
}
.tabs button {
  min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; color: var(--mocha);
  transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--wine); box-shadow: 0 4px 14px -8px rgba(52,24,30,.4); }
.panel { max-width: 46rem; margin: 2rem auto 0; }
.panel:not([hidden]) { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plist li {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.2rem; align-items: start;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.plist h3 { font-family: var(--f-serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; }
.plist p { font-size: .85rem; color: var(--mocha); margin-top: .25rem; max-width: 34rem; }
.price { font-weight: 700; font-size: .95rem; white-space: nowrap; padding-top: .25rem; }
.plist__feature { background: var(--blush); border-radius: 16px; padding: 1.2rem 1.1rem !important; border: 0 !important; margin-top: 1rem; }
.plist__feature h3 { color: var(--wine); font-style: italic; }
.prices__cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Tiimi ---------- */
.team { text-align: center; }
.team__intro { margin-top: .8rem; }
.team__grid { display: grid; gap: 4rem; margin-top: 3.2rem; }
.member { max-width: 380px; margin: 0 auto; }
.arch--member { aspect-ratio: 3 / 4; width: 78%; margin: 0 auto 1.4rem; }
.arch--member img { object-position: center 25%; }
.member__role { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.member__name { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 3rem; line-height: 1; margin: .2rem 0 .7rem; color: var(--ink); }
.member__lead { color: var(--mocha); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 1.1rem 0 1rem; }
.chips li { font-size: .74rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chips .chips__accent { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.member__more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine);
}
.member__more summary::-webkit-details-marker { display: none; }
.member__more summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform .3s var(--ease); }
.member__more[open] summary::after { transform: rotate(45deg); }
.member__more[open] summary { color: var(--mocha); }
.member__body { text-align: left; display: grid; gap: .8rem; font-size: .92rem; padding: 1.2rem; background: var(--paper); border-radius: 16px; margin-top: .4rem; }
.contact-list { display: grid; gap: .35rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.contact-list a { color: var(--wine); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.contact-list span { font-size: .78rem; color: var(--mocha); }

/* ---------- Galleria ---------- */
.gallery { max-width: var(--max); }
.gallery__head { text-align: center; display: grid; justify-items: center; gap: 1.2rem; margin-bottom: 2.6rem; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.35rem, 1.2vw, .9rem); }
.mosaic li { aspect-ratio: 1; }
.mosaic li:nth-child(n+9) { display: none; }   /* mobiili: 2 × 4 */
@media (min-width: 640px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }   /* 3 × 3 */
  .mosaic li:nth-child(n+9) { display: block; }
}
.mosaic li { overflow: hidden; border-radius: clamp(8px, 1.4vw, 16px); background: var(--sand); }
.mosaic button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mosaic button:focus-visible { outline: 2px solid var(--wine); outline-offset: -4px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic button:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(30, 12, 17, .94);
  display: grid; grid-template-columns: 1fr; place-items: center; padding: 4rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { max-width: min(92vw, 900px); }
.lightbox__fig img { max-height: 76svh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; }
.lightbox__fig figcaption { text-align: center; color: var(--blush); font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; margin-top: .8rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(251,247,244,.35);
  background: rgba(251,247,244,.06); color: var(--paper); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; bottom: 18px; }
.lightbox__next { right: 14px; bottom: 18px; }

/* ---------- Ajanvaraus ---------- */
.booking { background: var(--wine); color: var(--paper); position: relative; overflow: hidden; }
.booking::before {
  content: "VARAA"; position: absolute; right: -.08em; bottom: -.18em; font-family: var(--f-display);
  font-size: clamp(9rem, 42vw, 22rem); line-height: .8; color: rgba(251,247,244,.05); pointer-events: none;
}
.booking__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 7.5rem) var(--gutter); display: grid; gap: 3rem;
}
.booking__main { text-align: center; }
.booking__logo { width: 120px; height: auto; margin: 0 auto 1.6rem; }
.booking__main p { max-width: 28rem; margin: 1.2rem auto 0; opacity: .85; }
.booking__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.booking__info { border-top: 1px solid rgba(251,247,244,.2); }
.acc { border-bottom: 1px solid rgba(251,247,244,.2); }
.acc summary {
  list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-serif); font-size: 1.5rem; font-style: italic;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-body); font-style: normal; font-size: 1.4rem; transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 1.4rem; font-size: .92rem; opacity: .9; display: grid; gap: .8rem; }
.acc__body .small { color: var(--blush); }
.terms { display: grid; gap: .5rem; }
.terms li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .55rem .9rem; background: rgba(251,247,244,.07); border-radius: 10px; }
.terms strong { font-weight: 600; }
.terms li { grid-template-columns: 1fr; gap: 0; }
.terms strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blush); }
@media (min-width: 480px) {
  .terms li { grid-template-columns: auto 1fr; gap: 1rem; text-align: right; align-items: baseline; }
  .terms li strong { text-align: left; }
}

/* ---------- Yhteystiedot ---------- */
.contact__lead { max-width: 30rem; margin: 1.2rem auto 0; color: var(--mocha); }
.contact__grid { display: grid; gap: .7rem; margin: 2.6rem auto 0; max-width: 34rem; }
.ccard {
  display: grid; gap: .2rem; padding: 1.3rem 1.4rem; border-radius: 20px; text-decoration: none; text-align: left;
  background: var(--paper); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s;
}
.ccard:hover { transform: translateY(-3px); border-color: var(--rose); }
.ccard__k { font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.ccard__v { font-family: var(--f-serif); font-size: 1.75rem; line-height: 1.15; }
.ccard__v--sm { font-size: 1.3rem; word-break: break-word; }
.ccard__go { font-size: .78rem; font-weight: 600; color: var(--wine); }
.ccard--wa { background: var(--blush); border-color: transparent; }

.visit { display: grid; margin: 4rem auto 0; max-width: 60rem; background: var(--paper); border-radius: 24px; overflow: hidden; }
.visit__map { position: relative; aspect-ratio: 16 / 10; }
.visit__map { background: var(--sand); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.55) sepia(.18) contrast(.95); }
.visit__open {
  position: absolute; right: 12px; bottom: 12px; min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 .9rem; border-radius: 999px; background: var(--paper); color: var(--wine); text-decoration: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; box-shadow: 0 8px 20px -10px rgba(52,24,30,.5);
}
.visit__open:hover { background: var(--wine); color: var(--paper); }
.visit__text { padding: 2rem 1.6rem 2.2rem; text-align: center; display: grid; gap: .9rem; justify-items: center; }
address { font-style: normal; font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.3; }
address strong { font-style: italic; color: var(--wine); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 4rem var(--gutter) 2rem; text-align: center; display: grid; gap: 1.4rem; justify-items: center; }
.footer__logo { width: 180px; height: auto; }
.footer__line { font-size: .85rem; opacity: .8; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(237,226,218,.25); border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 600; }
.social a:hover { background: var(--sand); color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; font-size: .85rem; }
.footer__links a { text-underline-offset: 4px; display: inline-block; padding: .5rem 0; }
.footer__copy { font-size: .75rem; opacity: .55; }

/* ---------- Mobiilin varauspalkki ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; gap: .5rem; transform: translateY(150%); transition: transform .45s var(--ease);
}
.dock.is-visible { transform: none; }
.dock__book {
  flex: 1; min-height: 54px; display: grid; place-items: center; border-radius: 999px; background: var(--wine); color: var(--paper);
  text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 14px 30px -12px rgba(78,23,38,.6);
}
.dock__wa { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--wine); box-shadow: 0 10px 26px -12px rgba(52,24,30,.5); }

/* ---------- Sisääntulot ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 640px) {
  .contact__grid { grid-template-columns: 1fr 1fr; max-width: 46rem; }
  .ccard--wa { grid-column: span 2; }
  .visit { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .visit__map { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .visit__text { text-align: left; justify-items: start; padding: 2.4rem; }
  .tabs button { padding: .5rem 1.4rem; font-size: .82rem; }
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .header__logo img { height: 52px; }
  .nav { display: block; }
  .nav__list { display: flex; gap: 2rem; }
  .nav__list a { text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .5rem 0; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .dock { display: none; }
  .footer { padding-bottom: 0; }

  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; text-align: left; padding-top: 3rem; padding-bottom: 4.5rem; min-height: calc(100svh - var(--header-h) - 70px); }
  .hero__title { font-size: clamp(4.5rem, 7.4vw, 7.2rem); }
  .hero__lead { margin: 0; font-size: 1.1rem; }
  .hero__actions { justify-content: flex-start; }
  .hero__media { width: 100%; max-width: 500px; justify-self: end; }
  .hero__word { font-size: clamp(9rem, 15vw, 14rem); left: auto; right: -2rem; transform: none; top: -1rem; }
  .arch--hero { width: 80%; margin: 3.5rem 0 0 auto; }
  .hero__pip { left: -4%; right: auto; bottom: 22%; width: 30%; }
  .hero__badge { left: auto; right: -4%; bottom: 6%; max-width: 40%; }

  .intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 5rem; text-align: left; align-items: start; }
  .intro .title-stack { grid-column: 1; text-align: left; font-size: 11rem; }
  .intro .h2 { grid-column: 1; }
  .intro__lead { grid-column: 1; margin: 1.6rem 0 0; }
  .intro .services { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .intro .notes { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; max-width: none; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

  .prices { display: grid; grid-template-columns: .8fr 1.2fr; gap: 0 5rem; align-items: start; }
  .prices__head { text-align: left; margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); grid-row: 1 / span 3; }
  .tabs { margin: 0; justify-self: start; }
  .panel { margin: 1.6rem 0 0; max-width: none; }
  .prices__cta { text-align: left; }

  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; align-items: start; }
  .member:nth-child(2) { margin-top: 5rem; }
  .member:nth-child(3) { margin-top: 2rem; }
  .arch--member { width: 100%; }

  .gallery__head { grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: end; }
  .gallery__head .title-stack { grid-column: 1 / -1; text-align: left; }

  .booking__inner { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .booking__main { text-align: left; }
  .booking__logo { margin-left: 0; }
  .booking__main p { margin-left: 0; }
  .booking__actions { justify-content: flex-start; }

  .lightbox__prev { left: 24px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__next { right: 24px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

@media (min-width: 1600px) {
}


/* Hero: WILLA-sana koko kuva-alueen levyinen, kaari nousee sen alaosan päälle (kuten logossa) */
.hero__media { container-type: inline-size; padding-top: 3cqw; }
.hero__media .hero__word {
  position: relative; display: block; left: auto; right: auto; top: auto; transform: none;
  font-size: 41cqw; line-height: .78; text-align: center; letter-spacing: -.005em; margin: 0;
}
.hero__media .arch--hero { margin: -8cqw auto 0; }


/* WILLA: hento ton-sur-ton-vesileima heron taustalla */
:root { --watermark: color-mix(in srgb, var(--blush) 42%, var(--bone)); }
.hero { overflow-x: clip; position: relative; }
.hero__text, .hero__media { position: relative; z-index: 1; }
.hero__media .hero__word { font-size: min(42vw, 47cqw); color: var(--watermark); }
.hero__bg { display: none; }
@media (min-width: 1024px) {
  .hero__media .hero__word { display: none; }
  .hero__media .arch--hero { margin-top: 0; }
  .hero__bg {
    display: block; position: absolute; z-index: 0; left: 50%; top: 52%; transform: translate(-50%, -50%);
    font-family: var(--f-display); font-size: min(38vw, 44rem); line-height: .8; letter-spacing: .01em;
    color: var(--watermark); white-space: nowrap; pointer-events: none; user-select: none;
  }
}

/* ---------- Vähennetty liike ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
