/* ============================================
   Din Vårdcentral Ditt Hjärta — Statisk CSS
   Konverterad från React + Tailwind
   ============================================ */

/* --- CSS-variabler --- */
:root {
  --heart-red: #E22D2D;
  --pulse-dark: #0A0A0A;
  --light-white: #F5F5F5;
  --warm-white: #FAFAF5;
  --text-dark: #1A1A1A;
  --text-muted: #6B6B6B;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --overlay-red: rgba(226, 45, 45, 0.12);
  --radius: 0.625rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Utility-klasser --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

.bg-pulse-dark { background-color: var(--pulse-dark); }
.bg-warm-white { background-color: var(--warm-white); }

/* --- Typsnitt --- */
.font-display {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* --- Komponent-klasser --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.label-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-white);
  transition: color 0.3s ease;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--heart-red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--heart-red);
}

.quote-block {
  padding: 24px 0 24px 32px;
  border-left: 3px solid var(--heart-red);
}

.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.event-card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.07);
}

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--heart-red);
  transition: width 0.25s ease-out;
}

.link-underline:hover::after {
  width: 100%;
}

.link-underline:hover {
  color: #FF4D4D;
}

/* --- Animationer --- */
@keyframes heartbeat {
  0%   { transform: scale(1.0); filter: drop-shadow(0 0 10px rgba(226,45,45,0.15)); }
  15%  { transform: scale(1.15); filter: drop-shadow(0 0 40px rgba(226,45,45,0.45)); }
  30%  { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(226,45,45,0.25)); }
  45%  { transform: scale(1.12); filter: drop-shadow(0 0 35px rgba(226,45,45,0.4)); }
  60%  { transform: scale(1.0); filter: drop-shadow(0 0 10px rgba(226,45,45,0.15)); }
  100% { transform: scale(1.0); filter: drop-shadow(0 0 10px rgba(226,45,45,0.15)); }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

@keyframes heartWave {
  0%, 100% { transform: scale(1.0); }
  50%      { transform: scale(1.2); }
}

.animate-heartbeat {
  animation: heartbeat 1.2s ease-in-out infinite;
}

.animate-fadeInUp {
  animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite 2s;
}

.animate-heartWave {
  animation: heartWave 0.9s ease-in-out infinite;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: 70px;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav--scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .nav__inner {
    padding: 0 5vw;
  }
}

.nav__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav__logo:hover {
  color: var(--heart-red);
}

.nav__desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav__desktop {
    display: flex;
  }
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--light-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav__mobile {
  display: none;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 20px;
}

.nav__mobile.is-open {
  display: block;
}

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

.nav__mobile .nav-link {
  font-size: 16px;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher a,
.lang-switcher span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-switcher span {
  color: var(--heart-red);
}

.lang-switcher a {
  color: rgba(245, 245, 245, 0.5);
  transition: color 0.3s ease;
}

.lang-switcher a:hover {
  color: var(--light-white);
}

.lang-switcher .divider {
  color: rgba(245, 245, 245, 0.3);
  user-select: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background-color: var(--pulse-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__heart-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__heart-container canvas {
  display: block;
}

.hero__glass {
  position: absolute;
  bottom: 10vh;
  left: 5vw;
  max-width: 520px;
  width: 90vw;
  z-index: 10;
  animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@media (min-width: 768px) {
  .hero__glass {
    width: auto;
  }
}

.hero__glass-inner {
  padding: 24px;
}

@media (min-width: 768px) {
  .hero__glass-inner {
    padding: 40px;
  }
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--light-white);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(245, 245, 245, 0.8);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 480px;
}

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

.hero__cta {
  margin-top: 24px;
  background-color: var(--heart-red);
  color: var(--light-white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 32px;
  border-radius: 8px;
  transition: background-color 0.25s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out;
  border: none;
  cursor: pointer;
}

.hero__cta:hover {
  background-color: #C42424;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(226, 45, 45, 0.3);
}

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

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: bounce 2s ease-in-out infinite 2s;
}

.hero__scroll span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 245, 0.5);
}

.hero__scroll svg {
  stroke: rgba(245, 245, 245, 0.5);
}

/* --- Heart Pulse Divider --- */
.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.heart-divider svg {
  fill: var(--heart-red);
}

/* --- About Section --- */
.about {
  background-color: var(--warm-white);
  padding: 60px 0;
}

@media (min-width: 768px) {
  .about {
    padding: 100px 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 60px;
  }
}

.section-header__label {
  display: block;
  margin-bottom: 16px;
  color: var(--heart-red);
}

.section-header__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--text-dark);
  line-height: 1.1;
}

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

.ingress {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .ingress {
    font-size: 20px;
    margin-bottom: 48px;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 8fr 4fr;
    gap: 48px;
  }
}

.about h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .about h3 {
    font-size: 32px;
  }
}

.about h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .about h4 {
    font-size: 24px;
  }
}

.about p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about p {
    font-size: 18px;
  }
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.floating-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.floating-img-wrap img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .floating-img-wrap {
    display: block;
    gap: 0;
  }

  .floating-img-wrap img.float-right {
    float: right;
    width: 50%;
    margin-left: 24px;
    margin-bottom: 16px;
  }

  .floating-img-wrap img.float-left {
    float: left;
    width: 50%;
    margin-right: 24px;
    margin-bottom: 16px;
  }

  .floating-img-wrap img.w-40 {
    width: 40%;
  }
}

/* Aspect ratios */
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Table */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
}

.table-wrap table {
  min-width: 500px;
}

.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.table-wrap td:first-child {
  padding-left: 0;
  font-weight: 500;
  font-size: 15px;
}

@media (min-width: 768px) {
  .table-wrap td:first-child {
    font-size: 16px;
  }
}

.table-wrap td:nth-child(2) {
  color: var(--text-muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  .table-wrap td:nth-child(2) {
    font-size: 15px;
  }
}

.table-wrap td:last-child {
  padding-right: 0;
  font-size: 14px;
}

@media (min-width: 768px) {
  .table-wrap td:last-child {
    font-size: 15px;
  }
}

/* Quote block sizes */
.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 18px;
}

@media (min-width: 768px) {
  .quote-text {
    font-size: 22px;
  }
}

.quote-text--large {
  font-size: 20px;
}

@media (min-width: 768px) {
  .quote-text--large {
    font-size: 24px;
  }
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--heart-red);
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

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

.quote-source {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Sidebar */
.sidebar-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sidebar-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sidebar-space {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Facts box */
.facts-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.facts-box__title {
  margin-bottom: 20px;
}

.fact-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fact-item:last-child {
  border-bottom: none;
}

.fact-item__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.fact-item__value {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
}

/* YouTube embed */
.youtube-wrap {
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.youtube-wrap .ratio {
  position: relative;
  padding-top: 56.25%;
}

.youtube-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Archive Section --- */
.archive {
  background-color: var(--pulse-dark);
  padding: 60px 0;
}

@media (min-width: 768px) {
  .archive {
    padding: 100px 0;
  }
}

.archive .section-header__title {
  color: var(--light-white);
}

.archive .section-header p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  max-width: 640px;
  margin: 16px auto 0;
}

@media (min-width: 768px) {
  .archive .section-header p {
    font-size: 18px;
  }
}

/* Event cards */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.event-card {
  overflow: hidden;
}

.event-card__img-wrap {
  overflow: hidden;
}

.event-card__img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.event-card:hover .event-card__img-wrap img {
  transform: scale(1.05);
}

.event-card__body {
  padding: 24px;
}

@media (min-width: 768px) {
  .event-card__body {
    padding: 32px;
  }
}

.event-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--heart-red);
}

.event-card__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--light-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .event-card__title {
    font-size: 28px;
  }
}

.event-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-card__meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.event-card__link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--heart-red);
}

.event-card--full {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .event-card--full {
    grid-column: span 2;
  }
}

/* Archive closing */
.archive__closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.archive__closing h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--light-white);
  margin-bottom: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .archive__closing h3 {
    font-size: 32px;
    margin-top: 60px;
  }
}

.archive__closing p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .archive__closing p {
    font-size: 18px;
  }
}

.btn-primary {
  display: inline-block;
  background-color: var(--heart-red);
  color: var(--light-white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 32px;
  border-radius: 8px;
  transition: background-color 0.25s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #C42424;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(226, 45, 45, 0.3);
}

@media (min-width: 768px) {
  .btn-primary {
    font-size: 16px;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--pulse-dark);
  padding: 80px 0 40px;
}

@media (min-width: 768px) {
  .footer {
    padding: 80px 0 40px;
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.footer__col h4 {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.footer__col p,
.footer__col a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--light-white);
  margin-bottom: 12px;
  display: block;
}

.footer__col a {
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: var(--heart-red);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer__bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Clearfix for floated images --- */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}
