:root {
  --black: #000000;
  --white: #ffffff;
  --cream: #e5e3df;
  --accent: #eb0e0e;
  --gray: #6b6b6b;
  --border: #dcd8d0;
  --radius: 6.4px;
  --max-width: 1220px;
  --narrow: 780px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  font-weight: 300;
  line-height: 1.7;
}

h1, h2 {
  font-weight: 500;
  margin: 0 0 .5em;
  letter-spacing: 0.15em;
}
h3, h4 {
  font-weight: 500;
  margin: 0 0 .4em;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: var(--narrow);
  margin: 0 auto;
}
.narrow.center { text-align: center; }

img { max-width: 100%; display: block; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--black); color: var(--white); }

.btn-light { background: var(--white); color: var(--black); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* HEADER */
/* No backdrop-filter here: it creates a new containing block for any
   position:fixed descendant (the mobile nav overlay lives inside this
   header), which broke the full-screen menu on every non-hero page and
   on index.html as soon as .scrolled was added. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  color: var(--black);
  transition: background .25s ease, color .25s ease;
}
.site-header.on-hero { position: fixed; top: 0; left: 0; width: 100%; background: transparent; color: var(--white); }
.site-header.on-hero.scrolled { background: #ffffff; color: var(--black); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  color: inherit;
}

.logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.main-nav .mobile-boka { display: none; }
.main-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 34px;
}
.main-nav a {
  font-size: .89rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--black);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--black); }

.header-actions { display: flex; align-items: center; }
.header-actions .btn-primary {
  padding: 12px 28px;
  font-size: .85rem;
}
/* Over the transparent hero the button flips to white/black, matching the live site */
.site-header.on-hero:not(.scrolled) .header-actions .btn-primary {
  background: var(--white);
  color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 16px;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  display: block;
}

/* HERO (video background) */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(165deg, #1c1a17 0%, #3a332c 40%, #5c5044 75%, #7a6a58 100%);
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,.15));
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 500;
  max-width: 18ch;
  margin: 0 auto .5em;
}
.hero .promo {
  color: var(--accent);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .3px;
  margin-bottom: 2em;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* WAVE DIVIDER — overlaps the bottom of the previous section so whatever
   is actually behind it (video, photo, color) shows through the gaps,
   instead of painting a flat rectangle first. */
.wave {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 70px;
  margin-top: -68px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.wave svg { display: block; width: 100%; height: 100%; }

/* PAGE HEADER (subpages) */
.page-head {
  padding: 40px 0 16px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: .2em;
}
.page-head .promo {
  color: var(--accent);
  font-weight: 500;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.page-head .sub { color: var(--gray); font-size: .95rem; margin-top: .6em; }

/* SIMPLE CONTENT SECTIONS (villkor, hur funkar det, sopranoice) */
.simple-content { padding: 20px 0 96px; }
.simple-content .narrow { text-align: left; }
.simple-content .narrow.center { text-align: center; }
.simple-block { margin-bottom: 34px; }
.simple-block h3 { font-size: 1.02rem; font-weight: 600; }
.simple-block p { color: #2a2a2a; font-size: .95rem; }

/* PROCESS TIMELINE (hur-funkar-det.html) */
.process-section { padding: 12px 0 100px; }
.process-intro { color: var(--gray); font-size: 1.05rem; text-align: center; margin: 0 0 56px; }
.process-timeline { list-style: none; margin: 0; padding: 0; }
.process-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 44px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.process-step.in-view { opacity: 1; transform: translateY(0); }
.process-step:last-child { padding-bottom: 0; }
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px; top: 52px; bottom: 0;
  width: 1.5px;
  background: var(--border);
}
.process-num {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.process-body { padding-top: 9px; }
.process-body h3 { font-size: 1.15rem; margin-bottom: .4em; }
.process-body p { color: #2a2a2a; font-size: .95rem; margin: 0; }

/* ACCORDION (sopranoice.html "Varför är Soprano..." rows) */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 20px 2px;
  margin: 0;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}
.accordion-trigger:hover { background: var(--cream); }
.accordion-icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  transition: transform .2s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-panel p { color: #2a2a2a; font-size: .95rem; margin: 0 2px 22px; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: var(--narrow);
  margin: 0 auto 32px;
  aspect-ratio: 16/9;
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* WELCOME (cream section) */
.welcome {
  background: var(--cream);
  text-align: center;
  padding: 90px 24px 150px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--white); margin: 0; }

/* SOPRANO TEASER */
.soprano-teaser { padding: 12px 0 16px; }
.soprano-teaser .grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.soprano-teaser img { border-radius: 2px; width: 100%; }
.soprano-teaser p { font-size: 1.05rem; margin: 0 0 24px; }
.soprano-teaser strong { font-weight: 600; }

/* PRISER */
.price-block { padding: 8px 0 120px; }
.price-block h2 { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: .3em 0 2em; }
.price-hint { text-align: center; color: var(--gray); font-size: .92rem; margin: 0 0 14px; }

.gender-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--cream);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 28px;
}
.gender-btn {
  border: none;
  background: transparent;
  padding: 10px 34px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray);
}
.gender-btn.active { background: var(--black); color: var(--white); }

.price-gender[hidden] { display: none; }

.price-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.price-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 1em;
}
.price-paket h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 1em; }
.price-paket .price-list { columns: 2; column-gap: 40px; }
.price-paket .price-list li { break-inside: avoid; }

/* Interactive price items — tap to add to the running total */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px dashed var(--border);
  padding: 11px 6px;
  margin: 0;
  font-family: inherit;
  font-size: .85rem;
  line-height: 1.4;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}
.price-item:hover { background: var(--cream); }
.price-item.selected { background: var(--cream); }
.price-item .check {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
}
.price-item.selected .check { background: var(--black); border-color: var(--black); }
.price-item.selected .check::after {
  content: "";
  position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-item .item-body { flex: 1; }
.price-item .label { display: block; }
.price-item small { color: var(--gray); display: block; font-size: .82em; margin-top: 1px; }
.price-item .item-price { flex: none; text-align: right; white-space: nowrap; font-weight: 500; }
.price-item .item-price s { color: var(--gray); font-weight: 300; margin-right: 6px; }
.price-item .item-price .now { color: var(--accent); font-weight: 600; }
.price-item .item-price .off { display: block; color: var(--gray); font-size: .78em; margin-top: 1px; }

.price-item--static { cursor: default; opacity: .65; }
.price-item--static:hover { background: none; }
.price-item--static .item-price.muted { color: var(--gray); font-weight: 400; font-size: .82em; }

/* Sticky running-total bar */
.price-summary {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.price-summary.visible { transform: translateY(0); }
.price-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
}
/* Text side can shrink/wrap its numbers; the buttons never do — that's
   what keeps Boka on-screen no matter how much the price info needs. */
.price-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.price-summary-text > span { font-size: .78rem; color: var(--gray); }
.price-summary-numbers { display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 2px; column-gap: 8px; }
.price-summary-numbers s { font-size: .9rem; color: var(--gray); font-weight: 300; white-space: nowrap; }
.price-summary-text strong { font-size: 1.15rem; color: var(--accent); white-space: nowrap; }
.price-summary-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.btn-clear { background: none; border: none; font-size: .8rem; color: var(--gray); text-decoration: underline; cursor: pointer; padding: 8px 0; font-family: inherit; white-space: nowrap; }
.price-summary .btn-primary { padding: 10px 18px; font-size: .82rem; white-space: nowrap; }
/* The floating "Boka nu" pill duplicates the summary bar's own Boka button once it's showing */
body:has(.price-summary.visible) .floating-book { display: none; }

/* Package upsell tip — appears above the summary bar when a selection matches a package */
.package-tip {
  position: fixed;
  left: 0; right: 0;
  bottom: 74px;
  z-index: 89;
  background: #fff6e9;
  border-top: 1px solid #f0dcb8;
}
.package-tip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 24px;
}
.package-tip p { margin: 0; font-size: .85rem; }
.package-tip .btn-outline { padding: 8px 20px; font-size: .82rem; flex: none; }
.package-tip strong { color: var(--black); }

/* Discount % next to the total — a plain pill when every item shares one rate */
.discount-pill {
  border: none;
  background: #fbeceb;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: default;
  font-family: inherit;
  white-space: nowrap;
}
/* Mixed rates: no pill shape — the breakdown already opens on its own, so this is just a label */
.discount-pill.mixed {
  background: none;
  color: var(--gray);
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Same cream tone as the footer — the popover isn't a separate dark theme */
.discount-popover {
  position: fixed;
  z-index: 95;
  bottom: 96px;
  right: 16px;
  width: 250px;
  background: var(--cream);
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.discount-popover h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 26px 10px 0; color: rgba(17,17,17,.55); }
.discount-popover ul { list-style: none; margin: 0; padding: 0; }
.discount-popover li { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; padding: 5px 0; color: var(--black); }
.discount-popover li strong { color: var(--accent); font-weight: 600; }
.popover-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(17,17,17,.1);
  color: var(--black);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.popover-close:hover { background: rgba(17,17,17,.18); }
.discount-reopen {
  border: none;
  background: none;
  color: var(--gray);
  font-size: .74rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* REVIEWS */
.reviews { padding: 88px 0 90px; }
.reviews h2 { text-align: center; font-size: clamp(1.4rem, 2.8vw, 1.8rem); letter-spacing: normal; margin-bottom: 40px; }
.review-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.review-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 24px 12px;
}
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  max-width: 100%;
  margin: 0;
  text-align: left;
  background: #f0efed;
  border-radius: 10px;
  padding: 28px;
  box-sizing: border-box;
}
.review-card p { font-size: .87rem; color: #1a1a1a; overflow-wrap: break-word; }
.review-card cite {
  font-style: normal;
  font-weight: 400;
  font-size: .8rem;
  color: var(--gray);
}
.review-arrow {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: .9rem;
}
.review-arrow:hover { background: var(--black); color: var(--white); }

/* CONTACT / FOOTER (cream section, continuous) */
.site-footer { background: var(--cream); }
.contact-footer { background: var(--cream); padding: 24px 0 0; }
.contact-footer .contact-inner { text-align: center; padding-bottom: 40px; }
.contact-footer h2 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2em;
}
.map-frame {
  width: 100%;
  max-width: 560px;
  height: 260px;
  margin: 0 auto 14px;
  border: 0;
  filter: grayscale(15%);
}
.contact-footer .addr { color: #333; font-size: .85rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0 40px;
  text-align: center;
}
.footer-grid h4 {
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: .8em;
}
.footer-grid p, .footer-grid a { font-size: .85rem; color: rgba(17,17,17,.75); }
.footer-social { display: flex; gap: 14px; justify-content: center; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,.35);
  display: flex; align-items: center; justify-content: center;
}

/* FLOATING BOOK BUTTON */
.floating-book {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--black);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 90;
  display: none;
}
.floating-book.visible { display: block; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .price-columns { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .soprano-teaser .grid { grid-template-columns: 1fr; text-align: center; }
  .soprano-teaser img { width: 220px; margin: 0 auto 24px; }
}

@media (max-width: 700px) {
  .header-inner { height: 72px; }
  .discount-popover { right: 16px; left: 16px; width: auto; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    color: var(--black);
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 100vh; overflow-y: auto; }
  .main-nav a { padding: 16px 24px; color: var(--black); }
  .main-nav .mobile-boka {
    display: block;
    margin: 12px 24px 24px;
    text-align: center;
    background: var(--black);
    color: var(--white);
  }
  .nav-toggle { display: flex; }
  /* The floating "Boka nu" button already covers this on small screens, matching the live site */
  .header-actions { display: none; }
  .price-columns { grid-template-columns: 1fr; }
  .price-paket .price-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-card { flex-basis: 84vw; padding: 24px; }
  /* Symmetric padding so the heading sits at the true visual center —
     the wave dividers above and below eat 70px each, unevenly weighted
     padding made the text look crowded against the bottom wave. */
  .welcome { padding: 4px 24px 96px; min-height: 0; }
}
