/* Clas på Hörnet — rebuild of the live Wix site (measured at 1024 px wide).
   Colours: green #3C5343 · dark green #1D2927 · cream #E1DCC8 · ink #000
   Fonts: Forum (headings, menu) · DM Sans (text) — same files as the Wix site, OFL (fonts/). */

@font-face { font-family: "Forum"; font-display: swap;
  src: url("../fonts/forum-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "Forum"; font-display: swap;
  src: url("../fonts/forum-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2"), url("../fonts/dm-sans.woff") format("woff"); }

:root {
  --green: #3c5343;
  --green-d: #1d2927;
  --cream: #e1dcc8;
  --ink: #000;
  --head: "Forum", Georgia, serif;
  --sans: "DM Sans", Arial, Helvetica, sans-serif;
  --head-h: 107px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/28px var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--head); font-weight: 400; color: var(--green); text-transform: uppercase; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ---------- Header (sticky, like live) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: var(--green); transition: transform .2s ease-in; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; max-width: none; padding: 0 22px; }
.brand { flex: none; display: block; width: 100px; }
.brand img { width: 100px; height: 96px; object-fit: contain; }
.nav { flex: 1; display: flex; justify-content: center; gap: 30px; }
.nav a { font: 16px var(--head); color: var(--cream); text-transform: uppercase; white-space: nowrap; transition: opacity .4s; }
.nav a:hover { opacity: .7; }
.nav a.active { opacity: .6; }
.lang { flex: none; display: flex; gap: 10px; font: 14px var(--head); }
.lang a { color: var(--cream); opacity: .6; transition: opacity .4s; }
.lang a.active, .lang a:hover { opacity: 1; }
.nav-toggle { display: none; width: 30px; height: 22px; position: relative; border: 0; background: none; cursor: pointer; margin-left: auto; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--cream); }
.nav-toggle span:nth-child(1) { top: 0; } .nav-toggle span:nth-child(2) { top: 10px; } .nav-toggle span:nth-child(3) { bottom: 0; }

/* ---------- Buttons (live: 248x46, 16 px DM Sans, 1.6 px spacing) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 248px; height: 46px; padding: 0 20px;
  font: 16px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer;
  background: var(--green); color: var(--cream); border: 2px solid var(--green);
  transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); }
.btn--line { background: transparent; color: var(--green); }
.btn--line:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.btn--sm { min-width: 144px; height: 40px; font-size: 12px; letter-spacing: 1.2px; }

/* ---------- Common blocks ---------- */
.sec { padding: 90px 0; }
.label { font-size: 20px; line-height: 28px; text-align: center; margin-bottom: 10px; }
.h2 { font-size: 54px; line-height: 67.5px; text-align: center; max-width: 800px; margin: 0 auto; }
.lead { max-width: 380px; margin: 30px auto 0; text-align: center; }
.btn-row { margin-top: 36px; text-align: center; }
.hero { position: relative; height: 738px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero--rooms { height: 638px; }
.hero__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 80px/108px var(--head); color: #fff; text-transform: uppercase; padding: 0 20px; }
.hero--inset { height: auto; max-width: 980px; margin: 20px auto 0; }
.hero--inset img { height: 475px; }

/* home */
.home-h1 { font-size: 40px; line-height: 50px; text-align: center; max-width: 980px; margin: 0 auto; }
.feat { padding: 0 0 165px; }
.feat__media { position: relative; max-width: 900px; margin: 0 auto; }
.feat__media img { width: 100%; height: 598px; object-fit: cover; }
.feat__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  font: 80px/108px var(--head); color: #fff; text-transform: uppercase; }
.feat .lead { max-width: 380px; margin-top: 40px; }

/* photo sliders (same engine as Guldgränd 5) */
.gal { position: relative; overflow: hidden; touch-action: pan-y; }
.gal__track { display: flex; will-change: transform; }
.gal__track img { flex: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gal__nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; padding: 0; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.gal__nav svg { width: 34px; height: 34px; filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); }
.gal__nav--next { right: 10px; }
.gal__nav--prev { left: 10px; }
.gal__nav--prev svg { transform: scaleX(-1); }
.gal--strip .gal__track { column-gap: 10px; }
.gal--home .gal__track img { width: 307px; height: 410px; }
.gal--story .gal__track img { width: 481px; height: 350px; }
.gal--room .gal__track { column-gap: 8px; }
.gal--room .gal__track img { width: 383px; height: 330px; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(2, 440px); gap: 43px 80px; justify-content: start; margin-top: 34px; }
.room { display: flex; flex-direction: column; }
.room .btn { align-self: flex-start; margin-top: auto; }
.room__name { font: 18px var(--sans); letter-spacing: 3.6px; color: var(--ink); margin: 26px 0 6px; }
.room__meta { font-size: 14px; letter-spacing: 1.4px; }
.room ul { margin: 13px 0 25px; padding-left: 29px; }
.room li { line-height: 28.8px; }

.room-note { margin: -8px 0 26px; font-size: 14px; line-height: 24px; }

/* story */
.cols2 { display: grid; grid-template-columns: repeat(2, 430px); gap: 60px; justify-content: center; margin-top: 40px; }
.cols2 p + p { margin-top: 28px; }
.cols2 a, .text a { text-decoration: underline; text-underline-offset: 3px; }
.cols2 a:hover, .text a:hover { color: var(--green); }

/* neighbourhood */
.split { display: grid; grid-template-columns: 466px 455px; gap: 59px; justify-content: center; align-items: start; margin-top: 79px; }
.split .text p + p { margin-top: 28px; }
.split img { width: 455px; height: 461px; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, 362px); gap: 13px 20px; justify-content: center; margin-top: 34px; }
.card img { width: 362px; height: 196px; object-fit: cover; }
.card h5 { font-size: 32px; line-height: 40px; text-transform: none; margin: 14px 20px 27px; }
.card p { margin: 0 20px 59px; }
.card a { transition: opacity .3s; }
.card a:hover { opacity: .7; }

/* contact */
.sec--contact { padding-top: 118px; overflow: hidden; }
.contact { display: grid; grid-template-columns: 540px 1fr; gap: 39px; align-items: start; margin-top: 97px; }
.contact__media { position: relative; min-height: 520px; }
.contact__media img { position: absolute; left: 136px; top: -49px; width: 532px; height: 520px; object-fit: cover; }
.contact__card { position: relative; width: 480px; background: #fff; padding: 36px 46px 36px; }
.contact__text p { max-width: 500px; }
.contact__text p + p { margin-top: 28px; }
.contact__line--addr { margin-top: 38px; }
.contact__lines { margin-top: 86px; display: grid; gap: 34px; }
.contact__line { display: flex; align-items: center; gap: 15px; }
.contact__line .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; }
.contact__line .ic svg { width: 18px; height: 18px; }
.contact__line a:hover { text-decoration: underline; }
.form label { display: block; font-size: 14px; margin-bottom: 18px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 8px; height: 36px; border: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 6px 8px; font: 16px var(--sans); color: var(--ink); }
.form textarea { height: 74px; resize: vertical; }
.form .btn { width: 100%; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14px; line-height: 22px; }
.form-status.err { color: #8b1a1a; }

/* FAQ */
.faq { max-width: 916px; margin: 24px auto 0; }
.faq details { border-bottom: 1px solid var(--ink); overflow: hidden; }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 20px/28px var(--sans); color: var(--ink); text-transform: none; }
.faq summary svg { flex: none; width: 24px; height: 24px; transition: transform .3s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .faq__body { padding: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--cream); font: 16px/22px var(--head); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; min-height: 203px; padding: 30px 39px; max-width: none; }
.site-footer a { transition: opacity .3s; }
.site-footer a:hover { opacity: .7; }
.f-hotel p:first-child { margin-bottom: 4px; }
.f-contact { text-align: center; }
.f-contact .f-h { font-size: 15px; margin-bottom: 8px; }
.f-stay { text-align: center; }
.f-stay button { font: 16px var(--head); letter-spacing: 1px; color: var(--cream); background: transparent; border: 1px solid var(--cream); min-width: 177px; height: 36px; cursor: pointer; transition: background-color .2s, color .2s; }
.f-stay button:hover { background: var(--cream); color: var(--green); }
.f-follow { text-align: center; min-width: 110px; }
.f-follow .f-h { font-size: 15px; margin-bottom: 8px; }
.f-follow svg { width: 24px; height: 24px; display: inline-block; }

/* ---------- Overlays: offer (right-aligned modal) + newsletter panel ---------- */
.offer, .newsletter { position: fixed; inset: 0; z-index: 100; }
.offer[hidden], .newsletter[hidden] { display: none; }
.offer { background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: flex-end; }
.offer__box { position: relative; width: 473px; max-width: 100%; min-height: 304px; background: var(--cream); padding: 36px 30px 30px; text-align: center; }
.offer__box h2 { font-size: 29px; line-height: 36px; margin-bottom: 20px; }
.offer__fine { font-size: 10px; line-height: 16px; margin-top: 14px; }
.offer__box .btn { margin-top: 26px; }
.x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; padding: 6px; color: inherit; }
.x svg { width: 20px; height: 20px; }
.newsletter { background: rgba(0,0,0,.35); }
.newsletter__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100%; background: var(--green); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 60px 60px; animation: nl-in .45s cubic-bezier(.22,1,.36,1); }
@keyframes nl-in { from { transform: translateX(100%); } }
.newsletter__panel h2 { color: var(--cream); font-size: 56px; line-height: 64px; text-align: center; margin-bottom: 40px; }
.newsletter label { font-size: 12px; }
.newsletter input[type=email] { display: block; width: 100%; height: 40px; margin-top: 6px; border: 1px solid var(--cream); background: transparent; color: var(--cream); padding: 6px 10px; font: 16px var(--sans); }
.newsletter button[type=submit] { width: 100%; height: 40px; margin-top: 16px; border: 0; background: var(--cream); color: var(--green); font: 14px var(--sans); cursor: pointer; transition: opacity .2s; }
.newsletter button[type=submit]:hover { opacity: .85; }
.newsletter .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 11px; line-height: 16px; }
.newsletter .consent input { margin: 0; accent-color: var(--cream); }
.newsletter .x { color: var(--cream); top: 20px; right: 20px; }
.newsletter .form-status { color: var(--cream); }

/* Page change: fade out, then in (Wix uses the same View Transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 280ms cubic-bezier(.37,0,.63,1) both cl-fade-out; }
::view-transition-new(root) { animation: 320ms cubic-bezier(.37,0,.63,1) 200ms both cl-fade-in; }
@keyframes cl-fade-out { to { opacity: 0; } }
@keyframes cl-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .newsletter__panel { animation: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 440px)); gap: 60px 40px; }
  .gal--room .gal__track img { width: calc((min(100vw, 1024px) - 84px) / 2 * .9); }
  .cards { grid-template-columns: repeat(3, minmax(0, 362px)); }
  .card img { width: 100%; }
  .cols2 { grid-template-columns: repeat(2, minmax(0, 430px)); gap: 40px; }
  .split { grid-template-columns: minmax(0, 466px) minmax(0, 455px); gap: 40px; }
  .split img { width: 100%; }
}
@media (max-width: 900px) {
  :root { --head-h: 72px; }
  .brand { width: 70px; margin-left: 0; } .brand img { width: 70px; height: 67px; }
  /* the closed menu waits off-screen to the right; clip it so phones can't scroll sideways */
  .site-header { overflow-x: clip; }
  .nav { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; background: var(--green); flex-direction: column;
    justify-content: flex-start; padding: 30px; gap: 22px; transform: translateX(100%);
    visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s; }
  .nav-toggle { display: block; }
  .hero { height: 70vw; } .hero--rooms { height: 62vw; } .hero--inset img { height: 48vw; }
  .hero__title, .feat__title { font-size: 44px; line-height: 56px; }
  .h2 { font-size: 34px; line-height: 44px; }
  .feat__media img { height: 66vw; }
  /* minmax(0, …): a slider track is as wide as all its photos; plain 1fr would grow to fit it */
  .rooms, .cols2, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__media { min-height: 0; } .contact__media img { display: none; } .contact__card { width: 100%; }
  .gal--room .gal__track img { width: 86vw; height: 64vw; }
  .gal--home .gal__track img { width: 62vw; height: 82vw; }
  .gal--story .gal__track img { width: 80vw; height: 58vw; }
  .cards { grid-template-columns: 1fr; }
  .card img { height: 52vw; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 40px 22px; }
  .newsletter__panel { padding: 60px 26px; } .newsletter__panel h2 { font-size: 40px; line-height: 48px; }
}
