/* ============================================
   Dansk Flettelaug – Premium Artisan Design
   ============================================ */

:root {
  --color-bg: #0d0d0d;
  --color-bg-elevated: #161616;
  --color-bg-card: #1a1a1a;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-accent: #c9a962;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* ============================================
   Announcement Bar
   ============================================ */

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: #000;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 2.75rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.nav-list a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.icon-btn:hover {
  opacity: 0.8;
}

.nav-toggle {
  display: none;
}

.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
  }

  .header.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header.open .hamburger:nth-child(2) {
    opacity: 0;
  }

  .header.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .icon-btn-desk {
    display: none;
  }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    padding: 2rem;
    border-top: 1px solid var(--color-border);
  }

  .header.open .nav-mobile {
    display: block;
  }

  .nav-mobile .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-mobile .nav-list a {
    font-size: 1.125rem;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-trust .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-text {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 560px;
}

.section-header {
  margin-bottom: 3rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-grid.reverse .section-content {
  order: 2;
}

.section-grid.reverse .section-image {
  order: 1;
}

.section-image img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Section variants */
.section-dark {
  background: var(--color-bg);
}

.section-light {
  background: var(--color-bg-elevated);
}

/* ============================================
   Flet Cards (Flettetyper)
   ============================================ */

.flet-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.flet-card:last-child {
  margin-bottom: 0;
}

.flet-card.reverse {
  direction: rtl;
}

.flet-card.reverse > * {
  direction: ltr;
}

.flet-card-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.flet-card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.flet-card:hover .flet-card-image img {
  transform: scale(1.03);
}

.flet-card-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.flet-card-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.flet-card-content .cta-btn {
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .flet-card,
  .flet-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
}

/* ============================================
   Members
   ============================================ */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.member-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), border-color var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.3);
}

.member-card.featured {
  /* Single featured member card */
}

.member-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.member-card:hover .member-image img {
  transform: scale(1.05);
}

.member-logo {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-content {
  padding: 1.5rem;
}

.member-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.member-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ============================================
   Feature List
   ============================================ */

.feature-list {
  margin: 1.5rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Gallery
   ============================================ */

.gallery-section {
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 2px;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ============================================
   CTA Section
   ============================================ */

.section-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-members h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-grid.reverse .section-content,
  .section-grid.reverse .section-image {
    order: unset;
  }

  .flet-card,
  .flet-card.reverse {
    direction: ltr;
  }

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

  .member-card.featured {
    grid-column: span 1;
  }

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

  .gallery-item.wide {
    grid-column: span 2;
  }

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
