@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&family=Cormorant+Garamond:wght@400;600;700&family=Manrope:wght@300;500;600&display=swap');

:root {
  --cream: #f3ede7;
  --stone: #cbb9aa;
  --umber: #6c5749;
  --coffee: #3c2f27;
  --sand: #e7d6c8;
  --accent: #b08972;
  --shadow: rgba(29, 22, 17, 0.35);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html {
  scroll-behavior: smooth;
  background: #f3ede7;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  color: var(--coffee);
  background: var(--cream);
  min-height: 100vh;
}

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

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

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 88px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  letter-spacing: 0.35rem;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--coffee);
  margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav a {
  position: relative;
  padding-bottom: 6px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--coffee);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

nav a.active::after {
  width: 100%;
}

main {
  padding-top: 0;
}

.hero,
.split-section {
  scroll-margin-top: 96px;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 140px 8vw 80px;
  color: #f7efe9;
  background: linear-gradient(120deg, rgba(25, 18, 12, 0.55), rgba(25, 18, 12, 0.1)),
    url('../images/massage-1.png') center/cover no-repeat fixed;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" 1, "clig" 1, "dlig" 1, "ss01" 1;
}

.hero p {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 40px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 26px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cta .arrow {
  font-size: 1.1em;
}

.cta .icon {
  width: 22px;
  height: 22px;
}

.cta-secondary {
  margin-top: 24px;
}

.hero .cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.split-section .cta {
  margin-top: 24px;
  border-color: rgba(60, 47, 39, 0.35);
  color: var(--coffee);
  background: rgba(60, 47, 39, 0.06);
}

.split-section .cta:hover {
  transform: translateY(-2px);
  background: rgba(60, 47, 39, 0.12);
}

.split-section {
  min-height: 70vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--cream);
  overflow: hidden;
  column-gap: clamp(24px, 5vw, 64px);
  position: relative;
  --panel-offset: -6%;
  --panel-offset-kontakt: 6%;
  margin-block: 16px;
}

.split-section .split-image {
  background: center/cover no-repeat;
  min-height: 320px;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.split-section .split-panel {
  width: 100%;
  z-index: 1;
  transform: translateX(calc(var(--panel-shift, 0%) + var(--panel-offset, 0%)));
  display: grid;
  place-items: center;
  padding-inline: clamp(24px, 4vw, 56px);
  position: relative;
}

.split-section .content {
  padding: 120px 0;
  color: var(--coffee);
  text-align: left;
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
}

.split-section .split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  z-index: 0;
}

.split-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" 1, "clig" 1, "dlig" 1, "ss01" 1;
}

.split-section p {
  line-height: 1.7;
  margin: 0 0 20px;
}

.split-section p.tight {
  margin-bottom: 10px;
}

.split-section .list {
  margin-top: 12px;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.split-section .list li {
  line-height: 1.6;
}

.list-indent {
  margin-top: 0;
  margin-bottom: 12px;
  padding-left: 32px;
}

.split-section.behandlingar .split-image {
  background-image: url('../images/massage-2.png');
}

.split-section.behandlingar .split-panel {
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.split-section.kontakt .split-image {
  background-image: url('../images/massage-3.png');
}

.split-section.kontakt .split-panel {
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.split-section.behandlingar .split-panel {
  grid-column: 2;
}

.split-section.kontakt .split-panel {
  grid-column: 1;
  transform: translateX(calc(var(--panel-shift, 0%) + var(--panel-offset-kontakt, 0%)));
}


.footer {
  padding: 40px 8vw 60px;
  background: var(--cream);
  font-size: 0.9rem;
  text-align: center;
  display: grid;
  gap: 6px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  header {
    height: 76px;
    padding: 0 28px;
  }

  nav {
    gap: 16px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 120px 8vw 60px;
    background-attachment: scroll;
  }
}

@media (max-width: 1100px) {
  .split-section h2 {
    letter-spacing: 0.18rem;
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    padding: 16px 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
    gap: 12px;
    width: 100%;
    padding-top: 8px;
  }

  nav.is-open {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    letter-spacing: 0.08rem;
  }

  .split-section h2 {
    letter-spacing: 0.15rem;
  }

  .hero {
    padding: 110px 6vw 70px;
  }

  .split-section {
    grid-template-columns: 1fr;
    margin-block: 10px;
  }

  .split-section .split-panel {
    transform: none;
    clip-path: none;
    padding-inline: 16px;
  }

  .split-section .content {
    padding: 90px 0 70px;
    width: min(90vw, 520px);
  }
}
