@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Poppins:wght@700&display=swap');

/* ========================================
   BEM CSS STRUCTURE
   Block__Element--Modifier
   ======================================== */

:root {
  --bg: #FFF6E2;
  --header-footer: #FFDEA9;
  --sidebar: #F7CE8C;
  --yellow: #F8B729;
  --purple: #660C8F;
  --dark: #1B1B1B;
  --line: #2F2F2F;
  --blue: #6FA8DC;
  --card-blue: #48B8C9;
  --card-green: #ABCB5D;
  --card-yellow: #F8B729;
  --card-pink: #FF67A2;
  --card-red: #E03029;
  --card-purple: #660C8F;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--bg);
  color: #000;
}

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

/* ===========================================
   BLOCK: header
   =========================================== */

.header {
  position: sticky;
  top: 0;
  background: var(--header-footer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1200;
  position: relative;
}

.header__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__heading {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

.header__logo {
  /* Container for logo */
}

.header__logo-img {
  height: 60px;
  width: auto;
}

/* ===========================================
   BLOCK: burger
   =========================================== */

.burger {
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.burger__line {
  display: block;
  height: 4px;
  background: purple;
  margin: 5px 0;
  transition: 0.4s;
}

/* Modifier: burger--active */
.burger--active .burger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================================
   BLOCK: sidebar
   =========================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: var(--sidebar);
  padding-top: 80px;
  transition: 0.4s;
  z-index: 1000;
}

/* Modifier: sidebar--active */
.sidebar--active {
  left: 0;
}

.sidebar__link {
  display: block;
  padding: 15px 30px;
  font-size: 22px;
  color: black;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar__link:hover {
  background: var(--yellow);
}

/* ===========================================
   BLOCK: overlay
   =========================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 800;
  pointer-events: none;
}

/* Modifier: overlay--active */
.overlay--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===========================================
   BLOCK: page-shell
   =========================================== */

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  left: -22px;
  top: 210px;
  background-image: url("lgbtbilleder/slynger_venstre.png");
}

.page-shell::after {
  right: -22px;
  top: 120px;
  background-image: url("lgbtbilleder/slynger_hoejre.png");
}

/* ===========================================
   BLOCK: main
   =========================================== */

main {
  position: relative;
  z-index: 1;
}

/* ===========================================
   BLOCK: section-divider
   =========================================== */

.section-divider {
  height: 2px;
  background: rgba(0, 0, 0, 0.75);
  margin: 0;
}

/* ===========================================
   BLOCK: hero
   =========================================== */

.hero {
  text-align: center;
  padding: 22px 20px 28px;
}

.hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.hero__description {
  max-width: 300px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.3;
}

.hero__line {
  width: min(100%, 255px);
  height: 3px;
  margin: 14px auto 26px;
  background: #6FA8DC;
}

/* ===========================================
   BLOCK: vaermed-content
   =========================================== */

.vaermed-content {
  padding: 18px 20px 28px;
}

/* ===========================================
   BLOCK: vaermed-grid
   =========================================== */

.vaermed-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===========================================
   BLOCK: vaermed-card
   =========================================== */

.vaermed-card {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 14px;
  align-items: start;
}

/* Modifier: vaermed-card--reverse */
.vaermed-card--reverse {
  grid-template-columns: 128px 1fr;
}

.vaermed-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vaermed-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.vaermed-card__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.vaermed-card__image-link {
  position: relative;
  display: block;
  width: 128px;
  min-width: 128px;
  border-radius: 10px;
  text-decoration: none;
}

.vaermed-card__image-shadow {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  border-radius: 10px;
  z-index: 0;
}

.vaermed-card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid #2B193D;
  border-radius: 10px;
}

/* ===========================================
   BLOCK: button
   =========================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 16px;
  background: #49B8D3;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 4px 0 #2A93B7;
}

.button:hover {
  background: #3ca9c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2A93B7;
}

.button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #2A93B7;
}

/* Modifier: button--green */
.button--green {
  background: #A6CE63;
  color: #111;
  box-shadow: none;
}

.button--green:hover {
  opacity: 0.94;
  transform: none;
  box-shadow: none;
}

/* Modifier: button--purple */
.button--purple {
  background: var(--purple);
  box-shadow: none;
}

.button--purple:hover {
  opacity: 0.92;
  transform: none;
  box-shadow: none;
}

/* ===========================================
   BLOCK: donation-content
   =========================================== */

.donation-content {
  padding: 20px 20px 36px;
}

/* ===========================================
   BLOCK: donation-list
   =========================================== */

.donation-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ===========================================
   BLOCK: donation-card
   =========================================== */

.donation-card {
  position: relative;
  width: 94%;
  max-width: 240px;
}

.donation-card__shadow {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 100%;
  height: 100%;
  background: rgba(229, 197, 126, 0.8);
  border-radius: 16px;
  z-index: 0;
}

.donation-card__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.18);
}

.donation-card__top {
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-card__bottom {
  padding: 14px 10px;
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Color modifiers */
.donation-card--blue .donation-card__top { border-top: 8px solid #2A93B7; }
.donation-card--blue .donation-card__bottom { background: var(--card-blue); }

.donation-card--green .donation-card__top { border-top: 8px solid #7AA43A; }
.donation-card--green .donation-card__bottom { background: var(--card-green); }

.donation-card--yellow .donation-card__top { border-top: 8px solid #D69400; }
.donation-card--yellow .donation-card__bottom { background: var(--card-yellow); }

.donation-card--pink .donation-card__top { border-top: 8px solid #D74482; }
.donation-card--pink .donation-card__bottom { background: var(--card-pink); }

.donation-card--red .donation-card__top { border-top: 8px solid #BA221C; }
.donation-card--red .donation-card__bottom { background: var(--card-red); }

.donation-card--purple .donation-card__top { border-top: 8px solid #481076; }
.donation-card--purple .donation-card__bottom { background: var(--card-purple); }

/* ===========================================
   BLOCK: signup-form
   =========================================== */

.signup-content {
  padding: 20px 16px 34px;
}

.signup-form-wrap {
  background: #F7D89B;
  border: 2px solid var(--blue);
  border-radius: 4px;
  padding: 16px 16px 24px;
  max-width: 310px;
  margin: 0 auto;
  position: relative;
}

.signup-form-wrap__back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  color: #000;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form__label {
  font-size: 14px;
  margin-bottom: -8px;
}

.signup-form__input {
  width: 100%;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #666;
  background: #E9E9E9;
  padding: 4px 10px;
  font-size: 14px;
}

.signup-form__checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  font-size: 14px;
}

.signup-form__submit {
  align-self: center;
  margin-top: 6px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.signup-form__submit:hover {
  opacity: 0.92;
}

.signup-form__message {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #660C8F;
}

/* ===========================================
   BLOCK: volunteer (frivillig)
   =========================================== */

.volunteer-hero {
  padding-bottom: 10px;
}

.volunteer-hero__title {
  font-size: 30px;
  line-height: 1.15;
}

.volunteer-hero__line {
  margin-top: 10px;
  margin-bottom: 12px;
}

.volunteer-hero__description {
  margin-top: 0;
  max-width: 290px;
}

.volunteer-content {
  max-width: 340px;
  margin: 0 auto;
  padding: 16px 22px 30px;
  position: relative;
}

.volunteer-content__image-wrap {
  position: relative;
  width: 220px;
  margin: 0 auto 18px;
}

.volunteer-content__image-shadow {
  position: absolute;
  top: 8px;
  left: -4px;
  width: 100%;
  height: 100%;
  background: #49B8D3;
  border-radius: 14px;
  z-index: 0;
}

.volunteer-content__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid #2B193D;
  border-radius: 14px;
}

.volunteer-content__intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.35;
}

.volunteer-content__heading {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}

.volunteer-content__text {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.volunteer-content__link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #49B8D3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.volunteer-content__link:hover {
  background-color: #2ba7c6;
}

/* ===========================================
   BLOCK: footer
   =========================================== */

.footer {
  background: var(--header-footer);
  padding: 18px 18px 28px;
  border-top: 2px solid rgba(0, 0, 0, 0.75);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 18px;
  align-items: start;
}

.footer__text p {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.2;
}

.footer__contact {
  margin-top: 14px;
}

.footer__contact p {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.2;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer__social-link {
  display: block;
}

.footer__social-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ===========================================
   RESPONSIVE: Mobile
   =========================================== */

@media (max-width: 360px) {
  .vaermed-card {
    grid-template-columns: 1fr 112px;
  }

  .vaermed-card--reverse {
    grid-template-columns: 112px 1fr;
  }

  .vaermed-card__image-link {
    width: 112px;
    min-width: 112px;
  }

  .hero__title {
    font-size: 28px;
  }
}

/* ===========================================
   RESPONSIVE: Tablet
   =========================================== */

@media (min-width: 768px) {
  .hero__title {
    font-size: 48px;
  }

  .hero__description {
    max-width: 600px;
    font-size: 20px;
  }

  .vaermed-content,
  .donation-content,
  .signup-content {
    max-width: 900px;
    margin: 0 auto;
  }

  .vaermed-grid {
    gap: 28px;
  }

  .vaermed-card {
    grid-template-columns: 1fr 220px;
    gap: 24px;
  }

  .vaermed-card--reverse {
    grid-template-columns: 220px 1fr;
  }

  .vaermed-card__image-link {
    width: 220px;
    min-width: 220px;
  }

  .vaermed-card__title {
    font-size: 26px;
  }

  .vaermed-card__description {
    font-size: 18px;
  }

  .donation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    justify-items: center;
  }

  .signup-form-wrap {
    max-width: 520px;
    padding: 22px 24px 28px;
  }

  .signup-form__input {
    height: 42px;
    font-size: 16px;
  }

  .signup-form__label,
  .signup-form__checkbox-wrap {
    font-size: 16px;
  }

  .signup-form__submit {
    font-size: 16px;
    padding: 12px 28px;
  }

  .footer__inner {
    grid-template-columns: 1fr 100px;
  }

  .footer__text p,
  .footer__contact p {
    font-size: 18px;
  }

  .footer__social-icon {
    width: 58px;
    height: 58px;
  }

  .volunteer-hero__title {
    font-size: 46px;
  }

  .volunteer-hero__description {
    max-width: 620px;
    font-size: 20px;
  }

  .volunteer-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 34px 40px;
  }

  .volunteer-content__image-wrap {
    width: 300px;
    margin-bottom: 24px;
  }

  .volunteer-content__heading {
    font-size: 30px;
  }

  .volunteer-content__link {
    max-width: 360px;
    font-size: 18px;
    padding: 14px 18px;
  }
}

/* ===========================================
   RESPONSIVE: Desktop
   =========================================== */

@media (min-width: 1024px) {
  .header {
    padding: 18px 42px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  }

  .header__heading {
    font-size: 2.2rem;
  }

  .header__logo-img {
    height: 78px;
  }

  .burger {
    display: none;
  }

  .sidebar {
    position: static;
    left: auto;
    width: min(1200px, calc(100% - 80px));
    height: auto;
    margin: 0 auto;
    padding: 12px 16px 18px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .sidebar__link {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
  }

  .overlay {
    display: none !important;
  }

  .page-shell::before,
  .page-shell::after {
    width: 240px;
    height: 240px;
    opacity: 0.9;
  }

  .page-shell::before {
    left: -40px;
    top: 280px;
  }

  .page-shell::after {
    right: -40px;
    top: 180px;
  }

  main {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding-bottom: 80px;
  }

  .hero {
    padding: 34px 0 36px;
  }

  .hero__title {
    font-size: clamp(3.6rem, 5vw, 4.9rem);
  }

  .hero__description {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .hero__line {
    width: 340px;
    margin-bottom: 28px;
  }

  .vaermed-content,
  .donation-content,
  .signup-content,
  .volunteer-content {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .vaermed-grid {
    gap: 30px;
  }

  .vaermed-card,
  .vaermed-card--reverse {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: center;
    background: rgba(255, 255, 255, 0.48);
    border: 2px solid rgba(43, 25, 61, 0.1);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 36px rgba(43, 25, 61, 0.08);
  }

  .vaermed-card--reverse > :first-child {
    order: 2;
  }

  .vaermed-card--reverse > :last-child {
    order: 1;
  }

  .vaermed-card__image-link {
    width: 340px;
    min-width: 340px;
  }

  .vaermed-card__image-shadow {
    top: 14px;
    left: 10px;
  }

  .vaermed-card__image {
    border-radius: 18px;
  }

  .vaermed-card__title {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .vaermed-card__description {
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 46ch;
  }

  .button {
    margin-top: 18px;
    padding: 12px 18px;
    font-size: 1rem;
  }

  .donation-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 26px;
    align-items: stretch;
  }

  .donation-card {
    width: 100%;
    max-width: none;
  }

  .donation-card__top {
    font-size: 1rem;
    min-height: 92px;
  }

  .donation-card__bottom {
    font-size: 1rem;
    min-height: 74px;
  }

  .signup-form-wrap {
    max-width: 760px;
    padding: 28px 30px 34px;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(43, 25, 61, 0.08);
  }

  .signup-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    align-items: end;
  }

  .signup-form__label,
  .signup-form__input,
  .signup-form__checkbox-wrap,
  .signup-form__submit,
  .signup-form__message {
    grid-column: span 1;
  }

  .signup-form__label[for="interesse"],
  .signup-form__input#interesse,
  .signup-form__checkbox-wrap,
  .signup-form__submit,
  .signup-form__message {
    grid-column: 1 / -1;
  }

  .signup-form__input {
    height: 46px;
    padding: 10px 12px;
  }

  .signup-form__submit {
    justify-self: start;
    margin-top: 12px;
  }

  .volunteer-content {
    max-width: 860px;
    padding-top: 28px;
  }

  .volunteer-content__image-wrap {
    width: 360px;
    margin-bottom: 26px;
  }

  .volunteer-content__intro,
  .volunteer-content__text {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .volunteer-content__heading {
    font-size: 2rem;
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .volunteer-content__link {
    max-width: 420px;
    font-size: 1rem;
    padding: 14px 18px;
  }

  .footer {
    padding: 36px 40px 40px;
  }

  .footer__inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
  }

  .footer__text p,
  .footer__contact p {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .footer__socials {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .footer__social-icon {
    width: 52px;
    height: 52px;
  }
}
