@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=optional');

:root {
  --ink: #292929;
  --muted: #4A4A4A;
  --deep: #307088;
  --blue: #169ACA;
  --sky: #66CAEE;
  --pale: #A3DFF5;
  --gold: #F6AE37;
  --paper: #FAF9F6;
  --header-height: 5.25rem;
  --section-space: clamp(4.25rem, 9vw, 8rem);
  --content-space: clamp(1.75rem, 4vw, 3.5rem);
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 'Roboto', sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--deep); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 4px; }
.top :focus-visible, .hero :focus-visible, footer :focus-visible {
  outline-color: var(--gold);
}
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.5vw, 6.25rem); letter-spacing: -.04em; font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 3.2rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.section, .band { padding-block: var(--section-space); }
.skip {
  position: fixed;
  z-index: 4;
  top: .6rem;
  left: .6rem;
  background: var(--paper);
  padding: .65rem 1rem;
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.top { position: sticky; top: 0; z-index: 3; background: var(--ink); color: var(--paper); }
.bar { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 10rem; height: 4.2rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(.65rem, 1.4vw, 1.2rem); }
nav a { color: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; padding-block: .5rem; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--sky); }
.menu-toggle {
  display: none;
  font: inherit;
  font-weight: 700;
  padding: .45rem .9rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--sky);
  border-radius: .5rem;
  cursor: pointer;
}
[hidden] { display: none !important; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(28rem, 46vw, 44rem);
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.hero-background, .hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-background { z-index: -2; object-fit: cover; object-position: left bottom; }
.hero::before { content: ''; z-index: -1; background: rgb(18 24 28 / 58%); }
.eyebrow { color: var(--deep); font-size: .79rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.intro { max-width: 65ch; margin-inline: auto; font-size: clamp(1rem, 2vw, 1.2rem); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: .5rem; font-weight: 700; text-decoration: none; }
.primary { background: var(--gold); color: var(--ink); }
.phone { background: var(--sky); color: var(--ink); }

.band { background: var(--pale); }
.band a { color: var(--ink); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: var(--content-space); }
.cards article { padding: clamp(1.2rem, 3vw, 2rem); border-radius: .7rem; background: white; border-top: .25rem solid var(--blue); }
.cards p { color: var(--muted); }
.gallery-section { background: var(--pale); }
.gallery { display: grid; gap: var(--content-space); margin-top: var(--content-space); }
.gallery-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.gallery-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f3f3; border-radius: .5rem; }
figure { margin: 0; }
.water-view { width: min(100%, 42rem); margin-inline: auto; }
.water-view img { border-radius: .5rem; }
.area-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: .35rem clamp(.8rem, 2.4vw, 2rem);
  padding: .9rem clamp(.9rem, 2.5vw, 1.4rem);
  border-radius: 1rem;
  background: #dbf2fb;
  box-shadow: 0 .25rem .75rem rgb(48 112 136 / 12%);
  font-size: .9rem;
}
.area-contact p { margin: 0; padding-inline-start: clamp(.65rem, 2vw, 1.5rem); border-inline-start: 1px solid var(--deep); }
.area-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  border-radius: 50%;
  background: var(--pale);
  color: var(--deep);
}
@media (max-width: 40rem) {
  .area-contact { grid-template-columns: auto minmax(0, 1fr); }
  .area-contact a { grid-column: 2; justify-self: start; }
}
.area-contact a { white-space: nowrap; text-decoration: underline; font-size: 1.24rem; }
@media (min-width: 40.01rem) {
  .area-contact a { margin-inline-end: clamp(.5rem, 2vw, 1.5rem); }
}
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .55rem 1rem;
  list-style: none;
  padding: 0;
  margin: var(--content-space) 0 1.75rem;
}
.area-list li { display: flex; align-items: center; gap: .55rem; }
.area-list li::before {
  content: '';
  flex-shrink: 0;
  width: .3rem;
  height: .55rem;
  border: solid var(--deep);
  border-width: 0 .1rem .1rem 0;
  transform: rotate(45deg);
}

.about img { width: 100%; max-width: 25rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 32%; border-radius: 1rem; }
footer { background: var(--ink); color: var(--paper); }
footer a { color: var(--pale); }
address { display: grid; justify-items: start; gap: .25rem; font-style: normal; }
.copyright { border-top: 1px solid #777; padding-top: 1.2rem; margin-top: 2.25rem; font-size: .85rem; }

@media (max-width: 58rem) {
  :root { --header-height: 4.25rem; }
  .bar { flex-wrap: wrap; gap: 0; }
  .logo img { width: 8.65rem; height: 3.75rem; }
  nav { width: 100%; padding: .25rem 0 .75rem; }
  .js .menu-toggle { display: block; }
  .js .menu-toggle[aria-expanded="false"] + nav { display: none; }
  nav.enhanced { display: grid; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  nav.enhanced a { min-height: 2.75rem; }
}
@media (max-width: 40rem) {
  .split, .cards { grid-template-columns: 1fr; }
  .about img { max-width: 18rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.actions .button { position: relative; overflow: hidden; gap: .65rem; }
.button-arrow { position: absolute; right: .9rem; opacity: 0; transform: translateX(2.5rem); }
.button:is(:hover, :focus-visible) .button-start { transform: translateX(-3rem); opacity: 0; }
.button:is(:hover, :focus-visible) span { transform: translateX(-1.35rem); }
.button:is(:hover, :focus-visible) .button-arrow { transform: translateX(0); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .actions .button { transition: background-color .24s ease, color .24s ease; }
  .actions .icon, .actions span { transition: transform .24s ease, opacity .24s ease; }
}

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 2.75rem); margin-top: var(--content-space); }
.service-grid article { padding: clamp(.85rem, 2.5vw, 1.5rem); border-radius: .85rem; background: white; }
.service-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; margin-bottom: 1.5rem; }
.service-grid img[alt="Vinduespudsning med teleskopstang"] { object-position: center 42%; }
.benefits .icon { width: 1.8rem; height: 1.8rem; color: var(--deep); margin-bottom: .65rem; }
.water-view img { width: 100%; }
@media (max-width: 40rem) {
  .service-grid { grid-template-columns: 1fr; }
}


.about-section { background: white; }
.about-section .about { margin-top: var(--content-space); }

.gallery-group, .water-view {
  padding: clamp(.5rem, 1.25vw, .85rem);
  border-radius: .75rem;
  background: #f3f3f3;
}
.gallery-group { width: min(100%, 32rem); margin-inline: auto; }
.gallery-group:has(.comparison-indoor) { width: min(100%, 42rem); }

@media (min-width: 48.01rem) {
  .gallery {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.5vw, 2rem);
  }
  .gallery .gallery-group, .gallery .water-view { width: 100%; }
  .gallery-group:has(.comparison:not(.comparison-indoor)) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .gallery .water-view { grid-column: 1; }
}


.hero::before {
  background: linear-gradient(90deg, rgb(18 24 28 / 12%), rgb(18 24 28 / 91%) 64%);
}
.hero-content { position: relative; z-index: 0; display: grid; justify-items: center; container-type: inline-size; width: min(56%, 74rem); margin-left: 35%; margin-right: auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 6.6cqw, 5.25rem); font-weight: 900; line-height: 1; }
.hero .intro { margin-inline: 0; text-align: left; font-size: clamp(1rem, 1.25vw, 1.25rem); }
.hero .actions { justify-content: center; margin-top: 1.15rem; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--sky);
}
.hero-eyebrow::before { content: ''; width: 1.5rem; height: 2px; background: currentColor; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem clamp(.75rem, 2vw, 1.35rem);
  width: 100%;
  margin: 1.35rem 0 0;
  padding: .9rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 28%);
  list-style: none;
  font-size: .85rem;
}
.hero-trust li { display: flex; align-items: center; gap: .35rem; }
.hero-trust li::before {
  content: '';
  width: .3rem;
  height: .55rem;
  border: solid var(--sky);
  border-width: 0 .1rem .1rem 0;
  transform: rotate(45deg) translateY(-.06rem);
}
.hero .button { padding: .8rem 1.25rem; min-height: 3.25rem; box-shadow: 0 .3rem .65rem rgb(0 0 0 / 45%), inset 0 1px rgb(255 255 255 / 38%); }
.hero .button:is(:hover, :focus-visible) { box-shadow: 0 .45rem 1rem rgb(0 0 0 / 55%), inset 0 1px rgb(255 255 255 / 50%); }

.gallery-pair img[src*='ude fra'] { aspect-ratio: auto; height: auto; }

@media (max-width: 48rem) {
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-list li { padding-inline-start: .2rem; gap: .5rem; font-size: clamp(.78rem, 3.5vw, 1rem); }
}

@media (min-width: 48.01rem) {
  .area-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.page-content, footer { position: relative; z-index: 1; }
.page-content { background: var(--paper); }
.eyebrow { margin-bottom: .8rem; }
.booking { background: var(--paper); text-align: center; }
.booking .actions { margin-top: 1.5rem; }
.booking .button { min-height: 3.25rem; padding-inline: 1.2rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero {
    position: sticky;
    top: min(var(--header-height), calc(100svh - var(--hero-height, 0px)));
  }
  .hero-content > :is(h1, .intro, .actions) {
    animation: hero-enter .55s ease-out backwards;
  }
  .hero-content > .intro { animation-delay: .08s; }
  .hero-content > .actions { animation-delay: .16s; }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 60rem) {
  .hero {
    align-items: end;
    min-height: clamp(32rem, 88svh, 42rem);
    padding: clamp(11rem, 35svh, 18rem) 0 clamp(2rem, 5vw, 3rem);
  }
  .hero-background { object-position: left bottom; }
  .hero::before {
    background: linear-gradient(180deg, rgb(18 24 28 / 9%) 22%, rgb(18 24 28 / 76%) 57%, rgb(18 24 28 / 95%) 100%);
  }
  .hero-content { width: min(36rem, calc(100% - 2.5rem)); margin-inline: auto; }
  .hero h1 { font-size: clamp(2rem, 8cqw, 3.2rem); }
  .hero .intro { text-align: center; }
  .hero .button { padding-inline: .8rem; font-size: .9rem; }
}

@media (max-width: 40rem) {
  .hero-eyebrow { font-size: .72rem; letter-spacing: .05em; }
  .hero-eyebrow::before { width: 1rem; flex-shrink: 0; }
  .hero-trust { font-size: .75rem; column-gap: .6rem; }
  .hero-background {
    --photo-lift: clamp(8.4rem, 39.6vw, 13.2rem);
    top: calc(-1 * var(--photo-lift));
    clip-path: inset(var(--photo-lift) 0 0);
  }
  .hero::before {
    background: linear-gradient(180deg, rgb(18 24 28 / 9%) 29%, rgb(18 24 28 / 78%) 55%, var(--ink) calc(100% - var(--photo-lift, clamp(8.4rem, 39.6vw, 13.2rem))));
  }
}

.comparison.is-interactive {
  --split: 50%;
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border-radius: .5rem;
}
.comparison-indoor.is-interactive { aspect-ratio: 4 / 3; }
.comparison.is-interactive figure { position: absolute; inset: 0; }
.comparison.is-interactive img { height: 100%; object-fit: cover; }
.comparison.is-interactive .comparison-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.comparison.is-interactive .comparison-after {
  clip-path: inset(0 0 0 var(--split));
}
.comparison-label {
  position: absolute;
  z-index: 2;
  top: .75rem;
  padding: .2rem .6rem;
  border-radius: .3rem;
  background: #12181c;
  color: white;
  font-size: .85rem;
  font-weight: 700;
  pointer-events: none;
}
.before-label { left: .75rem; }
.after-label { right: .75rem; }
.comparison-divider {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  background: white;
  transform: translateX(-50%);
  pointer-events: none;
}
.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
}
.comparison-range {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: -1.375rem;
  width: calc(100% + 2.75rem);
  height: 3.25rem;
  margin: 0;
  appearance: none;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  transform: translateY(-50%);
}
.comparison-range::-webkit-slider-thumb { appearance: none; width: 2.75rem; height: 2.75rem; }
.comparison-range::-moz-range-thumb { width: 2.75rem; height: 2.75rem; border: 0; }
.comparison:has(.comparison-range:focus-visible) .comparison-divider span {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

@media (min-width: 40.01rem) and (max-width: 75rem) {
  .hero { overflow: hidden; }
  .hero-background {
    transform: scale(1.12);
    transform-origin: left bottom;
  }
}
