/* ============================================
   BERGSLAGSGÅRDEN AB — CSS
   Professionell, varm, tillitsfull vårdstil
   ============================================ */

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

:root {
  --col-bg:        #f8f6f2;
  --col-surface:   #ffffff;
  --col-border:    #ddd8ce;
  --col-blue:      #2c4a6e;
  --col-blue-mid:  #3d6090;
  --col-blue-lt:   #edf1f7;
  --col-warm:      #7a5c38;
  --col-text:      #1c1c1a;
  --col-muted:     #5a5750;
  --col-light:     #f0ede8;

  --font-serif:    "Merriweather", Georgia, serif;
  --font-sans:     "Source Sans 3", sans-serif;

  --header-h:      72px;
  --container:     1120px;
  --radius:        4px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--col-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p > a:not(.btn) { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--light {
  background: #fff;
  color: var(--col-blue);
  border-color: #fff;
}
.btn--light:hover {
  background: transparent;
  color: #fff;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--col-blue);
  border-color: var(--col-blue);
}
.btn--outline:hover {
  background: var(--col-blue);
  color: #fff;
  text-decoration: none;
}
.btn--primary {
  background: var(--col-blue);
  color: #fff;
  border-color: var(--col-blue);
}
.btn--primary:hover {
  background: var(--col-blue-mid);
  border-color: var(--col-blue-mid);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--col-surface);
  border-bottom: 1px solid var(--col-border);
  height: var(--header-h);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo img { height: 36px; width: auto; }

/* NAV */
.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--col-text);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-item > a:hover {
  color: var(--col-blue);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--col-text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: calc(88vh - var(--header-h));
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-wrap {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,40,70,0.72) 0%,
    rgba(20,40,70,0.42) 55%,
    rgba(20,40,70,0.2) 100%
  );
}

.hero__text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 760px;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.hero__text h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero__text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.hero__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HOME SECTIONS
   ============================================ */
.home-section {
  padding: 5rem 0;
}

.home-section--alt {
  background: var(--col-light);
}

/* HOME INTRO (2-kolumn bild + text) */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--col-blue);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}
.intro-text p {
  color: var(--col-muted);
  margin-bottom: 1rem;
}
.intro-text .btn { margin-top: 0.5rem; }

.intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.intro-image--with-btn {
  display: flex;
  flex-direction: column;
}
.intro-image--with-btn img {
  height: 380px;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.intro-image__btn-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
}

/* VÄXTHUS — bildpar sida vid sida */
.vaxthus-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.vaxthus-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* VÅRDIDEOLOGI — 2-kolumn text */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  color: var(--col-muted);
  line-height: 1.8;
}
.two-col-text p { margin-bottom: 1rem; }

.vard-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--col-muted);
}
.vard-list li {
  margin-bottom: 0.6rem;
}

/* AKTIVITETER — header rad med titel + knapp */
.aktiviteter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.aktiviteter-header__text h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--col-blue);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.aktiviteter-header__text p {
  color: var(--col-muted);
  margin: 0;
}

.aktiviteter-header__btn {
  flex-shrink: 0;
  padding-top: 0.25rem;
}

/* AKTIVITETER — bred bild */
.aktiviteter-img-wrap {
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.aktiviteter-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* AKTIVITETER — grid med kort */
.aktiviteter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0;
}

.aktiviteter-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.aktivitet-item {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.aktivitet-item h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--col-blue);
  margin-bottom: 0.5rem;
}

.aktivitet-item p {
  font-size: 0.875rem;
  color: var(--col-muted);
  line-height: 1.6;
  margin: 0;
}

/* PERSONUPPGIFTER */
.pu-home-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pu-home-block h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--col-blue);
  margin-bottom: 1rem;
}

.pu-home-block p {
  color: var(--col-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.pu-home-block a { color: var(--col-blue); }

/* PDF download button */
.btn--pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--col-blue-lt);
  color: var(--col-blue);
  border: 2px solid var(--col-blue);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.75rem;
}
.btn--pdf:hover {
  background: var(--col-blue);
  color: #fff;
  text-decoration: none;
}
.btn--pdf svg {
  flex-shrink: 0;
}

/* Contact PU button — ensure text is always visible */
.btn--contact-pu {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--col-blue);
  color: #fff !important;
  border-color: var(--col-blue);
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}
.btn--contact-pu:hover {
  background: var(--col-blue-mid);
  border-color: var(--col-blue-mid);
  color: #fff !important;
  text-decoration: none;
}

/* KONTAKT */
.kontakt-home-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-home-info p {
  color: var(--col-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.kontakt-home-info a { color: var(--col-blue); }

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--col-blue);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--col-border);
}

/* ============================================
   CONTACT CARD
   ============================================ */
.contact-card {
  background: var(--col-blue-lt);
  border-left: 3px solid var(--col-blue);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.contact-card p {
  color: var(--col-text);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--col-blue); }

/* ============================================
   MAP
   ============================================ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; }

/* ============================================
   GALLERY ALBUM CARDS
   ============================================ */
.gallery-intro {
  color: var(--col-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.gallery-album-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-album-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
  text-align: left;
}
.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-album-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--col-blue-lt);
}
.gallery-album-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.gallery-album-card:hover .gallery-album-card__img img {
  transform: scale(1.06);
}

.gallery-album-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--col-blue);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.gallery-album-card__label svg {
  opacity: 0.75;
  flex-shrink: 0;
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.gallery-modal.is-open {
  display: flex;
}

.gallery-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--col-surface);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 4rem);
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gallery-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--col-border);
  flex-shrink: 0;
  background: var(--col-surface);
}

.gallery-modal__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--col-blue);
  margin: 0;
}

.gallery-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--col-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.gallery-modal__close:hover {
  color: var(--col-blue);
  background: var(--col-blue-lt);
}

.gallery-modal__body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.gallery-modal__panel-content {
  display: none;
}
.gallery-modal__panel-content.active {
  display: block;
}

@media (max-width: 860px) {
  .gallery-album-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-album-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gallery-modal {
    padding: 0;
    align-items: flex-end;
  }
  .gallery-modal__panel {
    border-radius: 12px 12px 0 0;
    max-height: 92dvh;
  }
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--col-border);
  background: var(--col-blue-lt);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
  z-index: 9001;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  line-height: 1;
}
.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}
.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

/* ============================================
   PARTNERS
   ============================================ */
.home-partners {
  background: var(--col-blue);
  padding: 3.5rem 0;
  text-align: center;
}

.partners-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  opacity: .85;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.partner-link {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: .9rem 2rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.partner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.partner-link img {
  display: block;
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--col-blue);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.5rem 0;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-inner--2col {
  grid-template-columns: 1fr 1fr;
}
.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.site-footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.footer-orgnr { color: rgba(255,255,255,0.72); font-size: 0.8rem; }
.site-footer h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--col-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 2rem;
  box-shadow: 0 -3px 16px rgba(0,0,0,.2);
  transform: translateY(0);
  transition: transform .35s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(110%);
}
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}
.cookie-banner__text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.cookie-banner__text p {
  font-size: .875rem;
  opacity: .85;
  margin: 0;
  line-height: 1.5;
}
.cookie-banner__btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--col-blue);
  border: none;
  border-radius: 6px;
  padding: .7rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.cookie-banner__btn:hover {
  background: var(--col-blue-lt);
  transform: translateY(-1px);
}

/* ============================================
   FAB (Floating Action Button)
   ============================================ */
.fab-home {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--col-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  text-decoration: none;
}
.fab-home--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.fab-home:hover {
  background: var(--col-blue-mid);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  text-decoration: none;
}
.fab-home svg {
  display: block;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-item > a {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 860px) {
  .home-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .intro-image { order: 1; }
  .intro-text  { order: 0; }
  .intro-image img { height: 260px; }
  .intro-image--with-btn img { height: 260px; }
  .vaxthus-images img { height: 180px; }

  .two-col-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .aktiviteter-grid,
  .aktiviteter-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .aktiviteter-header {
    flex-direction: column;
    gap: 1rem;
  }

  .aktiviteter-img-wrap img {
    height: 280px;
  }

  .kontakt-home-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pu-home-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner--2col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--col-surface);
    border-bottom: 1px solid var(--col-border);
    padding: 0;
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    gap: 0.5rem;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item > a {
    padding: 0.9rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--col-blue);
    color: #fff;
    display: block;
    box-sizing: border-box;
    border: 2px solid var(--col-blue);
  }

  .nav-item > a:hover {
    background: var(--col-blue-mid);
    border-color: var(--col-blue-mid);
    text-decoration: none;
  }

  .aktiviteter-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner--2col { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .partners-logos { gap: 1.5rem; }
  .partner-link { padding: .7rem 1.5rem; }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .cookie-banner__btn {
    align-self: flex-end;
  }

  .fab-home {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .lightbox__prev { left: 0.25rem; }
  .lightbox__next { right: 0.25rem; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tab-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
}
