/* =============================================
   Custom Properties
   ============================================= */
:root {
  --bg: #1a1a1a;
  --bg-dark: #131313;
  --text: #f0ece4;
  --text-muted: rgba(240, 236, 228, 0.55);
  --accent: #c8763a;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-content: 1200px;
  --max-text: 680px;
  --transition-fade: 0.85s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

/* =============================================
   Language Toggle
   ============================================= */
.lang-toggle {
  position: fixed;
  top: 20px;
  left: 20px;   /* <- ændret fra right til left */
  z-index: 1000;

  font-size: 14px;
  text-decoration: none;
  color: #111;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lang-toggle:hover {
  opacity: 1;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 13vh;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 19, 19, 0.0) 0%,
    rgba(19, 19, 19, 0.0) 40%,
    rgba(19, 19, 19, 0.3) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: rgba(240, 236, 228, 0.2);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-muted);
  animation: scroll-drop 2s ease infinite;
}

@keyframes scroll-drop {
  0%   { top: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* =============================================
   Space Section
   ============================================= */
.space-section {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.space-item {
  margin-bottom: 0;
}

.photo-wrap {
  width: 100%;
  overflow: hidden;
  background: #242424;
}

.photo-wrap.standard {
  aspect-ratio: 4/3;
}

.photo-wrap.wide {
  aspect-ratio: 16/9;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Billedgrid (4 mindre billeder i stedet for 1 stort) --- */

/* Fjern den faste billedformat-ramme, når wrapperen indeholder et grid.
   Ellers bliver de fire billeder klemt ind i 4:3 / 16:9 og klippet af. */
.photo-wrap:has(.photo-grid) {
  aspect-ratio: auto;
  background: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.photo-wrap .photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #242424;
}


/* =============================================
   People Section
   ============================================= */
.people-wrapper {
  padding: 5rem 0 0;
}

.people-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.people-intro {
  max-width: var(--max-text);
  margin-bottom: 4rem;
}

.people-intro p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--text-muted);
}

/* Member cards grid — ready for content */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.member-photo {
  aspect-ratio: 1 / 1;
  background: #2a2a2a;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.member-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Full-bleed people photo */
.people-photo {
  width: 100%;
  aspect-ratio: 3/2;
  background: #242424;
  overflow: hidden;
}

@media (min-width: 768px) {
  .people-photo {
    aspect-ratio: 21/9;
  }
}

.people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   Location Section
   ============================================= */
.location-section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .location-section {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 6rem;
  }
}

.location-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: #242424;
  overflow: hidden;
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.location-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.location-address {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.map-link {
  display: block;
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 4/2;
  background: #242424;
  overflow: hidden;
}

.map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.map-link:hover img {
  opacity: 0.85;
}

.map-label {
  position: absolute;
  bottom: 0.9rem;
  right: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.map-link:hover .map-label {
  color: var(--accent);
}

/* Empty map placeholder (shown when image missing) */
.map-placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(240, 236, 228, 0.08);
  pointer-events: none;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
  background: var(--bg-dark);
  padding: 9rem 1.5rem 7rem;
  text-align: center;
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2.75rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.05rem, 3vw, 1.9rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  margin-bottom: 1rem;
}

.contact-email:hover {
  color: #d98844;
}

.contact-instagram {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.contact-instagram:hover {
  color: var(--text);
}

.site-footer {
  margin-top: 6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(240, 236, 228, 0.25);
}

/* =============================================
   Scroll Animations
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-fade), transform var(--transition-fade);
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.26s; }
.fade-in.delay-3 { transition-delay: 0.4s; }

/* =============================================
   Accessibility
   ============================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =============================================
   Custom
   ============================================= */

.lang-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;

  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;

  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.photo-wrap .photo-grid.photo-grid--3x2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 4 / 3;
}

.photo-wrap .photo-grid.photo-grid--3x2 img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
}

.top-contact {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;

  font-size: 14px;
  text-decoration: none;
  color: #111;

  opacity: 0.8;
}

.space-caption {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
@media (min-width: 900px) {
  .location-section {
    align-items: stretch;
  }

  .location-photo {
    aspect-ratio: auto;
    position: relative;
  }

  .location-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .location-text {
    display: flex;
    flex-direction: column;
  }

  .location-address {
    margin-bottom: 2rem;
  }

  .map-link {
    margin-top: auto;
  }
}