*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
  font-family: "Margin";
  src: url("../font/margin/Margin\ DEMO.otf");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   Variabler
========================= */
:root {
    --green: #C3C471;
    --softlight: #FFFFBF;
    --paws: #FFF68C;
    --black: #000;
    --pink: #FFBFDB;
    --h1-font-family: "Caveat", Helvetica, sans-serif;
    --h1-font-size: 64px;
    --h1-font-weight: 400;
    --h3-font-family: "Inter-Regular", Helvetica, sans-serif;
    --h3-font-size: 24px;
    --h3-font-weight: 400;
}

html {
  position: relative;
  min-height: 100%;
}

/* =========================
   Body / startsida container
========================= */
body {
    margin: 0;
    font-family: var(--h3-font-family);
    background-color: #FFF68C;
    color: var(--black);
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("../img/paw-print-background-pattern/Paw Print Background Pattern.jpg");
  background-size: 1600px;
  background-repeat: repeat;

  opacity: 0.1;
  z-index: -1;
}

/* =========================
   Loading screen
========================= */

.loader {
  position: fixed;
  inset: 0;
  background: var(--softlight);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader {
  position: fixed;
  inset: 0;
  background: #FFF68C;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 9999;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader img {
  width: 120px;
  animation: bounce 1s infinite ease-in-out;
}

.loader p {
  font-family: "Caveat", sans-serif;
  font-size: 28px;
}

.loading-text {
  font-size: 24px;
  font-family: sans-serif;
}

.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  background: black;
  border-radius: 50%;
  display: block;
  animation: bounce 1s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* =========================
   Header / hero
========================= */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 100px 0;
  margin: 0;
  width: 100%;
  background-color: var(--green);

  position: relative;
  overflow: hidden;
}

.logo {
  font-family: "Margin";
  font-weight: var(--h1-font-weight);
  font-size: var(--h1-font-size);
  color: var(--softlight);
  text-align: center;
  z-index: 1;
}

.hamburger {
  position: absolute;
  top: 20px;
  left: 20px;

  width: 40px;
  height: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: none;
  border: none;
  cursor: pointer;

  z-index: 7;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: var(--softlight);
  border-radius: 3px;
  transition: 0.25s ease;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;

  z-index: 5;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}


.side-menu a {
  color: black;
  font-size: 32px;
  text-decoration: none;
  font-family: "Caveat";
}

.side-menu {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;

  background: var(--softlight);
  backdrop-filter: blur(10px);

  box-shadow: -10px 0 30px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 70px;

  padding: 100px 40px;

  transform: translateX(-100%);
  transition: transform 0.35s ease;

  z-index: 6;
}

.side-menu.active {
  transform: translateX(0);
}

.hamburger.active span {
  background: var(--black);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}


/* =========================
   Main
========================= */


#kickan {
  scroll-margin-top: 100px;
}

#elize {
  scroll-margin-top: 100px;
}

#wasabi {
  scroll-margin-top: 100px;
}

#tingeling {
  scroll-margin-top: 100px;
}

#zuck {
  scroll-margin-top: 100px;
}


.katt-container {
  display: flex;
  flex-direction: column;
  padding: 40px 15px;
  max-width: 800px;
  margin: auto;
  gap: 40px;
}

.katt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 20px;

  text-align: left;
  gap: 40px;

  background-color: var(--softlight);
  box-sizing: border-box;
  padding: 40px;
  border: 2px solid rgba(0,0,0,0.08);
}

.carousel {
  position: relative;
  width: 250px;
  flex: 0 0 auto;
  touch-action: pan-y;
  user-select: none; 
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel img {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  height: 250px;
  object-fit: cover;
  border: 1px solid var(--pink);
  border-radius: 16px;
}

/* klickzoner */
.carousel-click {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.carousel-click.left {
  left: 0;
}

.carousel-click.right {
  right: 0;
}

/* indikatorer */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  display: block;
  cursor: pointer;
}

.carousel-dots .active {
  background: #333;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info p {
  margin: 0;
  font-size: 24px;
  font-family: "Caveat", Helvetica, sans-serif;
}

.info strong {
  font-weight: 600;
  font-size: 18px;
  font-family: Helvetica, sans-serif;
}

.info p:last-child {
  margin-top: 20px;
  font-size: 30px;
}

.kull-btn {
  display: inline-flex;
  width: fit-content;
  align-self: flex-end;
  padding: 10px 18px;
  margin-top: 15px;

  background-color: var(--paws);
  color: var(--black);
  text-decoration: none;

  border-radius: 50px;
  font-family: "Caveat", Helvetica, sans-serif;
  font-size: 22px;

  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kull-btn:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}


/* =========================
   Footer
========================= */
.footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;

    background-color: var(--green);
    padding: 60px 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;

    display: flex;
    justify-content: space-around;
}

.footer-left {
    display: flex;
}

.footer-right {
    display: flex;
    gap: 40px;
}

.footer-sektion {
    display: flex;
    flex-direction:column;
    align-items: flex-start;
    gap: 12px;
    width: auto;
}

.footer-sektion h3 {
    font-family: "Margin";
    font-size: 32px;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
}

.footer-sektion p,
.footer-sektion a {
    font-size: 16px;
    color: var(--black);
    text-decoration: none;
    text-align: left;
}

.footer-sektion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sektion ul li {
  margin-bottom: 8px;
}

.footer-sektion ul li a {
    text-decoration: none;
    color: var(--black);
}


@media (max-width: 800px) {

  .side-menu {
    width: 100%;
    gap: 3px;
  }

  .side-menu a {
    font-size: 18px;
  }

  .katt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    gap: 40px;
    padding: 15px 15px;
  }

  .katt-container {
    margin: 20px;
  }

  .info {
    gap: 2px;
    align-self: flex-start;
  }

  .carousel {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .footer-right {
    flex-direction: column;
    gap: 40px;
  }

  .footer-sektion {
    align-items: center;
    text-align: center;
  }
}