/*
Theme Name: Pingst Bredäng
Author: Rebecka Zettmarker
Version: Pro 1.0

This is only the base / general stylesheet for the theme
For the other stylesheets, look in the css folder
*/

/* ================================
   FÄRGER & TEMA
================================ */
@charset "utf-8";

:root {
  /* Theme colors */
  /* Brand */
  --color-background: #ffffff;
  --color-primary: #92071a;
  --color-secondary: #d88200;
  --color-accent: #e8f1ff;
  --color-accent-light: #f6f9ff;

  /* Text */
  --color-text: #000;
  --color-text-medium: #333;
  --color-text-light: #555;
  --color-text-lighter: #666;

  /* Hero colors */
  --color-white: #ffffff;
  --color-circle-border: rgba(255, 255, 255, 0.8);
  --color-circle-bg: rgba(255, 255, 255, 0.5);
  --color-circle-bg-strong: rgba(255, 255, 255, 0.85);
  --hero-bg-gradient: linear-gradient(
    to bottom,
    var(--hero-gradient-1) 0%,
    var(--hero-background-mid) 28%,
    var(--hero-background-light) 58%,
    var(--color-white) 100%
  );
  --hero-gradient-1: #d9ecff;
  --hero-gradient-2: #a6d4ff;
  --hero-background-mid: #cfe4fa;
  --hero-background-light: #eaf3fd;
  --hero-circle-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  --hero-circle-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.25);
  --hero-circle-shadow-mobile: 0 3px 8px rgba(0, 0, 0, 0.08);
  --hero-circle-border: 2.5px solid rgba(255, 255, 255, 0.8);
  --hero-shadow-soft: 0 8px 16px rgba(0, 0, 0, 0.08);
  --hero-shadow-building: 0 6px 10px rgba(0, 0, 0, 0.15);

  /* Menu */
  --menu-text-color: #111;
  --menu-close-color: #222;
  --menu-glass-bg: rgba(255, 255, 255, 0.06);
  --menu-glass-bg-open: rgba(255, 255, 255, 0.1);
  --menu-mobile-bg: rgba(255, 255, 255, 0.98);
  --menu-border: rgba(255, 255, 255, 0.1);
  --menu-border-strong: rgba(255, 255, 255, 0.15);
  --shadow-header: 0 4px 14px rgba(0, 0, 0, 0.15);
  --shadow-drawer: -10px 0 30px rgba(0, 0, 0, 0.05);
  --shadow-drawer-hover: -12px 0 40px rgba(0, 0, 0, 0.05);
  --blur-header: blur(8px);
  --blur-drawer: blur(22px);
  --blur-drawer-strong: blur(24px);
  --menu-glass-bg-hover: rgba(255, 255, 255, 0.3);
  --menu-close-bg: rgba(255, 255, 255, 0.25);
  --menu-close-bg-hover: rgba(255, 255, 255, 0.4);
  --blur-menu-button: blur(6px);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* End Theme colors */

  --font-main:
    "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --max-content-width: 1440px;
  --section-padding: clamp(2rem, 5vw, 6rem);

  --side-tab-pad-y: 14px;
  --side-tab-pad-x: 24px;
  --side-tab-font: 0.8rem;
  --side-tab-radius: 10px;
  --side-tab-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  --side-tab-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* ================================
   GLOBAL BAS
================================ */
html {
  scroll-behavior: smooth;
  font-size: 100%;
  min-height: 100%;
  background-color: var(--color-accent);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* ================================
   TYPOGRAFI
================================ */
p,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
}

p {
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

/* ================================
   SEKTIONSRUBRIKER
================================ */
.section-title {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.03em;
  margin: 4rem auto 3rem auto;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 7rem;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 0.8rem auto 0 auto;
  border-radius: 2px;
}

h3 {
  color: var(--color-primary);
  font-size: clamp(1.4rem, 2.2vw, 1.6rem);
  text-align: center;
  margin: 1.2rem 0;
}

/* ================================
   LAYOUT
================================ */
.sitewrapper {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  background-color: var(--color-background);
  overflow-x: hidden;
}

section {
  padding: var(--section-padding) 5vw;
}

/* ================================
   BILDER
================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   LÄNKAR
================================ */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* ================================
   KNAPPAR
================================ */
.btn {
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ================================
   RESPONSIVA JUSTERINGAR
================================ */

/* === MOBIL (stående) === */
@media (max-width: 480px) {
  html {
    font-size: 90%;
  }

  section {
    padding: 3rem 1.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
    text-align: left;
  }
}

/* === MOBIL (liggande) & små tablets === */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 95%;
  }

  section {
    padding: 3.5rem 2rem;
  }

  p {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

/* === TABLET (stående) === */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  html {
    font-size: 100%;
  }

  section {
    padding: 4rem 3rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  p {
    font-size: 1.1rem;
  }
}

/* === TABLET (liggande) === */
@media (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
  html {
    font-size: 100%;
  }

  section {
    padding: 4rem 5vw;
  }

  .section-title {
    font-size: 2.2rem;
  }

  p {
    font-size: 1.1rem;
  }
}

/* === LAPTOP (13–15") === */
@media (min-width: 1181px) and (max-width: 1600px) {
  html {
    font-size: 102%;
  }

  section {
    padding: 5rem 6vw;
  }
}

/* === STORA SKÄRMAR === */
@media (min-width: 1601px) {
  html {
    font-size: 105%;
  }

  section {
    padding: 5rem 8vw;
  }

  .section-title {
    font-size: 2.6rem;
  }
}

/* ================================
   ANIMATIONER
================================ */
@keyframes slideImages {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.section-divider {
  width: min(100%, 2000px);
  height: 3px;
  /* margin: 4rem auto; */
  background: linear-gradient(
    to right,
    #ffd97e00 0%,
    var(--color-secondary) 15%,
    var(--color-primary) 50%,
    var(--color-secondary) 85%,
    #ffd97e00 100%
  );
  /* border-radius: 9px; */
  opacity: 1;
}

.section-divider-footer {
  width: min(100%, 2000px);
  height: 5px;
  /* margin: 4rem auto; */
  background: linear-gradient(
    to right,
    #ffd97e00 0%,
    var(--color-secondary) 15%,
    var(--color-primary) 50%,
    var(--color-secondary) 85%,
    #ffd97e00 100%
  );
  /* border-radius: 9px; */
  opacity: 1;
}

.newsletter-tab,
.donation-tab {
  position: fixed;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: none;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  background-color: var(--color-primary);
  background-clip: padding-box;
  color: #fff;

  padding: var(--side-tab-pad-y) var(--side-tab-pad-x);
  font-size: var(--side-tab-font);
  border-radius: var(--side-tab-radius);

  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 9999;
  isolation: isolate;
  contain: paint;
  transform-style: preserve-3d;
  will-change: transform;

  box-shadow: var(--side-tab-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (max-width: 520px) {
  :root {
    --side-tab-pad-y: 12px;
    --side-tab-pad-x: 18px;
    --side-tab-font: 0.72rem;
    --side-tab-radius: 9px;
  }

  .newsletter-tab {
    top: 62vh;
  }
  .donation-tab {
    top: 70vh;
  }
}
