*,
*::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 auto;
  font-family: var(--h3-font-family);
  font-size: clamp(14px, 2.5vw, 22px);
  background-color: var(--softlight);
  color: var(--black);
}

.hero,
.navbar,
.main,
.footer {
  width: 100%;
  max-width: none;
}

/* =========================
   Loading screen
========================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--softlight);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.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;
  }
}

/* =========================
   Navbar (sticky)
========================= */
.navbar {
  justify-self: center;
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  min-height: 64px;
  padding: 10px 20px;

  background-color: var(--green);  
  
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo {
  font-family: "Margin";
  font-size: clamp(22px, 10vw, 102px);
  font-weight: var(--h1-font-weight);
  color: var(--softlight);
  margin: 0;
  line-height: 1;
}

.hamburger {
  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: fixed;
  inset: 0;

  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: clamp(22px, 6vw, 32px);
  text-decoration: none;
  font-family: "Caveat";
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;

  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: 30px;

  padding: 100px 30px;

  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);
}

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

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

  position: relative;
  overflow: hidden;
}

/* =========================
  Main
========================= */
.main::before {
  content: "";
  position: absolute;
  inset: 0;

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

  opacity: 0.1;
}

.main {
  width: 100%;
  padding: 20px 30px;

  background-color: var(--paws);

  margin-top: -10px;

  position: relative;
  z-index: 2;
  
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);

  font-family: Helvetica, sans-serif;
  font-size: clamp(18px, 20px, 22px);
}

.main-container {
  max-width: 1800px;
  margin: 10px auto; 
  padding: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;

  background-color: var(--softlight);
  position: relative;
  z-index: 1;
}


.faq-page {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-page h2 {
  margin-bottom: 16px;
  text-align: center;
}

.faq-kategori {
  font-family: "Caveat", sans-serif;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 400;
  margin: 24px 0 8px;
  padding-left: 4px;
  color: var(--black);
}

.faq-page ul {
  padding-left: 20px;
  margin: 8px 0;
  line-height: 1.8;
}

/* =========================
   FAQ / Accordion
========================= */
.accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--paws);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 18px 24px;

  font-family: Helvetica, sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--black);
  text-align: left;
}

.accordion-btn:hover {
  opacity: 0.8;
}

.accordion-icon {
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--black);
  border-bottom: 2.5px solid var(--black);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  margin-bottom: 4px;
}

.accordion-item.open .accordion-icon {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
}

.accordion-content ul {
  padding: 0 24px 20px 44px;
  margin: 0;
  line-height: 1.8;
}

/* =========================
   Footer
========================= */
.footer {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

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

.footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 140px);
  width: 100%;

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

.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);
}

.footer-attribution {
  align-self: center;
  display: block;
  margin-top: 40px;
  text-align: center;
  opacity: 0.6;

  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.footer-attribution:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 900px) {

  .side-menu {
    gap: 3px;
  }

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

  .main-container {
    margin: 10px auto; 
    padding: 20px;
    gap: 60px;
  }

  .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;
  }
}


@media (max-width: 600px) {

  .side-menu {
    gap: 3px;
  }

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