/* Vormsi Suvila – vormsisuvila.ee
   Bränd: Vormsi identiteedijuhis 1.2. Rootsi punane + lubivalge + rästik, lambavill vahepinnaks.
   Paigutus: sügisene hele leht (--taust), üks punane hooajariba, hinnad lambavillal, punane jalus. */
/* IBM Plex Serif oma serverist (enne Google Fonts) – kiirem ja ilma Google'i päringuta */
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --lubivalge: #F5F5F5;
  --taust: #EAE1D3; /* sügisene soe lehe toon */
  --vahepind: #DDD2C0; /* hinnad, pildikastid, kaart */
  --sinine: #006AA7; /* Rootsi lipu sinine: numbririba ja mugavused */
  --kollane: #FECC01; /* Rootsi lipu kollane */
  --valge: #FFFFFF;
  --lambavill: #E5DFD6;
  --punane: #7C272A;
  --punane-deep: #6D282B;
  --rastik: #333333;
  --rastik-muted: #5E5E5E;
  --joon: #CDC1AE;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--taust); color: var(--rastik); font: 400 17px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--punane); text-underline-offset: 3px; }
a:hover { color: var(--punane-deep); }
:focus-visible { outline: 3px solid var(--punane); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--punane); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--punane); color: var(--valge); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 15px; letter-spacing: .04em; color: var(--rastik-muted); }

/* päis */
.site-header { background: var(--taust); border-bottom: 1px solid var(--joon); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--rastik); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--punane); }
.langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.langs a { display: inline-block; padding: 6px 7px; color: var(--rastik-muted); text-decoration: none; letter-spacing: .04em; }
.langs a[aria-current="page"] { color: var(--punane); font-weight: 700; border-bottom: 2px solid var(--punane); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 2px; font: 700 17px/1.2 var(--serif); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--punane); color: var(--lubivalge); }
.btn-primary:hover { background: var(--punane-deep); color: var(--lubivalge); }
.btn-ghost { border-color: var(--rastik); color: var(--rastik); }
.btn-ghost:hover { background: var(--rastik); color: var(--lubivalge); }
.btn-light { background: var(--lubivalge); color: var(--punane); }
.btn-light:hover { background: var(--valge); color: var(--punane-deep); }
.nav { gap: 14px; }
.menu { position: relative; }
.menu-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--punane); border-radius: 2px; background: var(--punane); color: var(--lubivalge); font: 700 16px var(--serif); }
.menu-btn::before { content: ""; width: 16px; height: 10px; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--punane-deep); border-color: var(--punane-deep); color: var(--lubivalge); }
.menu .panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--taust); border: 1px solid var(--joon); padding: 12px 22px; min-width: 230px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(51, 51, 51, .12); }
.menu .panel[hidden] { display: none; }
.nav .menu .panel a { padding: 10px 0; color: var(--rastik); text-decoration: none; font-size: 17px; }
.nav .menu .panel a:hover { color: var(--punane); }
.panel-langs { display: none; }
@media (max-width: 600px) {
  .nav > .langs { display: none; }
  .nav .menu .panel .panel-langs { display: flex; flex-direction: row; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--joon); }
  .nav .menu .panel .panel-langs a { padding: 8px 10px; font-size: 15px; color: var(--rastik-muted); }
  .nav .menu .panel .panel-langs a[aria-current="page"] { color: var(--punane); }
}
@media (max-width: 520px) { .logo img { height: 58px; } }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); color: var(--punane); letter-spacing: -.01em; }
.hero .lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; font-weight: 700; max-width: 30ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-photo img { width: 100%; aspect-ratio: 1800 / 1271; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 16px 20px; margin-top: 8px; background: var(--sinine); }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: 30px; line-height: 1.1; color: var(--kollane); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--lubivalge); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { order: -1; margin-inline: calc(var(--gutter) * -1); } }

/* hooajariba */
.season { background: var(--punane); color: var(--lubivalge); }
.season .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(32px, 4vw, 48px); }
.season .eyebrow { color: var(--lubivalge); opacity: .85; }
.season h2 { color: var(--lubivalge); font-size: clamp(30px, 4vw, 46px); margin-top: 6px; }
.season p { max-width: 52ch; margin-top: 10px; }
.season .text { flex: 1 1 420px; min-width: 0; }

/* sektsioonid */
section.block { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 62ch; }
.section-head p { color: var(--rastik-muted); }
.house .cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); }
.house .prose { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--joon); }
.amen li { padding: 11px 0; border-bottom: 1px solid var(--joon); display: flex; gap: 12px; align-items: baseline; }
.amen li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--punane); transform: rotate(45deg) translateY(-2px); }
.amen-h { font-size: 20px; color: var(--rastik); margin-bottom: 12px; }
.amen-box { background: var(--sinine); color: var(--lubivalge); padding: clamp(20px, 3vw, 32px); align-self: start; }
.amen-box .amen-h { color: var(--lubivalge); }
.amen-box .amen { border-top-color: rgba(245, 245, 245, .3); }
.amen-box .amen li { border-bottom-color: rgba(245, 245, 245, .3); }
.amen-box .amen li:last-child { border-bottom: 0; }
.amen-box .amen li::before { background: var(--kollane); }
section.block.house { padding-bottom: 0; }
section.block#pildid { padding-top: clamp(32px, 4vw, 48px); }
@media (max-width: 820px) { .house .cols { grid-template-columns: 1fr; } }

/* galerii */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; background: var(--vahepind); cursor: zoom-in; display: block; overflow: hidden; }
.gallery button { grid-column: span 4; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery button:nth-child(n) { grid-column: span 1; }
}
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
dialog.lightbox::backdrop { background: rgba(20, 16, 16, .88); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { color: var(--lubivalge); font-size: 15px; text-align: center; }
.lightbox .lb-bar { display: flex; justify-content: space-between; gap: 8px; }
.lightbox .lb-bar button { min-height: 44px; padding: 8px 16px; background: var(--lubivalge); color: var(--rastik); border: 0; border-radius: 2px; font: 400 15px var(--serif); cursor: pointer; }

/* hinnad */
.prices { background: var(--vahepind); }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rastik); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--joon); align-items: baseline; }
.price-list .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-list .what span { color: var(--rastik-muted); font-size: 15px; }
.price-list .amount { font-size: 26px; font-weight: 700; color: var(--punane); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list .amount small { font-size: 15px; font-weight: 400; color: var(--rastik-muted); }
.offer { margin-top: 24px; max-width: 64ch; font-style: italic; }
.good { margin-top: 48px; }
.good dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin: 16px 0 0; }
.good dl div { border-top: 1px solid var(--joon); padding-top: 10px; }
.good dt { font-weight: 700; }
.good dd { margin: 2px 0 0; color: var(--rastik); }

/* asukoht */
.location .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border: 1px solid var(--punane); color: var(--punane); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--vahepind); }
.map-link { display: inline-block; margin-top: 18px; }
@media (max-width: 820px) { .location .cols { grid-template-columns: 1fr; } }

/* kontakt */
.contact { border-top: 1px solid var(--joon); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.contact-grid div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 2px solid var(--rastik); }
.contact-grid span { font-size: 14px; color: var(--rastik-muted); }
.contact-grid a { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }

/* jalus */
.site-footer { background: var(--punane); color: var(--lubivalge); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.site-footer img { height: 72px; width: auto; }
.site-footer p { font-size: 15px; }
.site-footer a { color: var(--lubivalge); }
.site-footer .footer-link { margin-left: auto; font-size: 15px; text-underline-offset: 4px; }

/* praam – sõidab kerimisel plokkide vahelt ja kõrvalt jaluse logoni (assets/praam.js) */
.praam-layer { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.praam-layer[hidden] { display: none; }
.praam-layer { animation: pr-sisse .8s ease both; }
@keyframes pr-sisse { from { opacity: 0; } to { opacity: 1; } }
.pr-route { display: block; }
.pr-dots, .pr-done { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.pr-dots { stroke: var(--joon); }
.pr-done { stroke: var(--punane); }
.pr-ferry { position: absolute; top: 0; left: 0; will-change: transform; filter: drop-shadow(0 1px 1.5px rgba(51, 51, 51, .25)); }
.pr-ferry svg { display: block; overflow: visible; }
.pr-ferry { transform-origin: 50% 90%; } /* liikumine, lainetus ja pööre tulevad ainult praam.js-ist */
.pr-white { fill: var(--valge); stroke: var(--rastik); stroke-width: 1.6; stroke-linejoin: round; }
.pr-red { fill: var(--punane); stroke: var(--rastik); stroke-width: 1.6; stroke-linejoin: round; }
.pr-dark { fill: var(--rastik); }
.pr-blue { fill: var(--sinine); stroke: var(--sinine); }
.pr-blue rect, rect.pr-blue { stroke: none; }
.pr-mast { fill: none; stroke: var(--rastik); stroke-width: 1.8; stroke-linecap: round; }
.pr-ferry { transition: opacity .35s ease; }
.pr-ferry.pr-off { opacity: 0; }
.pr-narrow .pr-dots, .pr-narrow .pr-done { stroke-width: 2.6; }
@media print { .praam-layer { display: none; } }

/* plokid kastidena, et praamil jääks servas kanal */
.season { background: none; }
.season > .wrap { background: var(--punane); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-inline: clamp(24px, 3.4vw, 48px); }
.prices { background: none; }
.prices > .wrap { background: var(--vahepind); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding: clamp(28px, 4vw, 52px) clamp(24px, 3.4vw, 48px); }
/* telefonis rohkem õhku plokkide vahel, et praam mahuks üle sõitma */
@media (max-width: 820px) {
  .hero .wrap { padding-bottom: 64px; }
  section.block#pildid { padding-top: 64px; }
}
/* numbrikast: kolm numbrit jaotatud ühtlaselt üle kogu kasti */
.facts { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 14px; padding: 18px clamp(16px, 2.4vw, 28px); }
.facts div { min-width: 0; }
.facts b { font-size: clamp(22px, 6.2vw, 30px); white-space: nowrap; }
.facts span { font-size: 14px; line-height: 1.3; }
/* soome pealkiri on pikkade sõnadega – veidi väiksem, et ei jookseks hero pildi peale */
html[lang="fi"] .hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.hero h1 { overflow-wrap: break-word; hyphens: manual; }
