/* FPLP — Shared Styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #121212;       /* Material Dark — minskar halation */
  --dark: #1a1a1a;
  --mid: #1c1c1c;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --white: #f4f0ea;
  --grey: #a0a0a0;        /* upp från #888 för bättre läsbarhet med Barlow 300 */
  --link: #d8b864;        /* inline body-länkar */
  --link-hover: #e8c97a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* === GLOBAL A11Y === */
/* Synlig fokusmarkering på alla länkar (tangentbordsanvändare) */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Inline body-länkar — för framtida prosa-länkar */
.content p a:not([class]),
.content li a:not([class]),
.content-box p a:not([class]) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(216, 184, 100, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.content p a:not([class]):hover,
.content li a:not([class]):hover,
.content-box p a:not([class]):hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
  padding: 0.5rem;
  border-radius: 2px;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-links a.active { opacity: 1; color: var(--gold); }

/* === NAV TEL (desktop only) === */
.nav-tel {
  color: var(--white);
  opacity: 0.7;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(244, 240, 234, 0.35);
  border-radius: 2px;
  transition: opacity 0.3s, color 0.3s, border-color 0.3s;
  font-weight: 400;
  white-space: nowrap;
}

.nav-tel:hover { opacity: 1; color: var(--gold); border-color: var(--gold); }
.nav-tel:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* === HAMBURGERKNAPP (mobil) — dold på desktop === */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;            /* över mobilmeny-panelen så X alltid går att klicka */
  width: 44px;             /* touch target ≥ 44x44 ✓ WCAG 2.5.5 */
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Morfa till X när menyn är öppen */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* === MOBILMENY-PANEL === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 5rem 1.5rem 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.mobile-menu-links a {
  display: block;
  padding: 1rem;           /* stor touch target */
  color: var(--white);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--gold); }
.mobile-menu-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.mobile-menu-tel {
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}

.mobile-menu-tel:hover { background: var(--gold); color: var(--black); }
.mobile-menu-tel:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Lås bakgrundsscroll när menyn är öppen */
body.menu-open { overflow: hidden; }

/* Lyft navet (med hamburger-X:et) ovanför mobilmeny-panelen när den är öppen.
   Navet är en egen stacking-kontext, så knappens egna z-index räcker inte. */
body.menu-open nav { z-index: 300; }

/* === LOGO-BILD === */
/* Loggan är svart; invert() gör den vit mot den mörka bakgrunden. */
.nav-logo .logo-img {
  display: block;
  height: 44px;
  width: auto;
  filter: invert(1);
}
.footer-logo .footer-logo-img {
  display: inline-block;
  height: 54px;
  width: auto;
  filter: invert(1);
}
@media (max-width: 768px) {
  .nav-logo .logo-img { height: 36px; }
}

/* === BILDBÄLTE (eventbilder) === */
.belt-label {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  padding: 3.5rem 1.5rem 1.5rem;
}
.photo-belt {
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--black);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* äldre Edge/IE */
}
.photo-belt::-webkit-scrollbar { display: none; }  /* Chrome, Safari */
.photo-belt-track {
  display: flex;
  gap: 6px;
  width: max-content;
  padding: 6px;
}
.photo-belt-track img {
  height: 240px;
  width: auto;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .photo-belt-track img { height: 170px; }
  .belt-label { padding: 2.5rem 1.5rem 1rem; }
}

/* === REDUCED MOTION — respektera systeminställning (WCAG 2.3.3, EAA) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === STICKY MOBILE CTA === */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--gold);
    color: var(--black);
    text-align: center;
    padding: 1.1rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.4);
  }
  body { padding-bottom: 60px; }
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 3rem;
  overflow: hidden;
}

.hero.short { height: 70vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.6) 100%),
              linear-gradient(135deg, #1a0a00 0%, #0a0a1a 40%, #000510 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 80% 20%, rgba(80,120,200,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 50% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
  animation: lightshift 8s ease-in-out infinite alternate;
}

@keyframes lightshift { from { opacity: 0.6; } to { opacity: 1; } }

.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  top: -10%;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, rgba(201,168,76,0.3), transparent);
  transform-origin: top center;
  animation: beamSway 6s ease-in-out infinite alternate;
}

.beam:nth-child(1) { left: 20%; transform: rotate(-15deg); animation-delay: 0s; }
.beam:nth-child(2) { left: 35%; transform: rotate(-5deg); animation-delay: 1s; opacity: 0.5; }
.beam:nth-child(3) { left: 55%; transform: rotate(8deg); animation-delay: 2s; }
.beam:nth-child(4) { left: 70%; transform: rotate(20deg); animation-delay: 0.5s; opacity: 0.7; }
.beam:nth-child(5) { left: 85%; transform: rotate(30deg); animation-delay: 1.5s; opacity: 0.4; }

@keyframes beamSway { from { transform: rotate(var(--r, -15deg)) scaleX(1); } to { transform: rotate(calc(var(--r, -15deg) + 5deg)) scaleX(1.5); } }

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

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s forwards 0.3s;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s forwards 0.5s;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: rgba(244,240,234,0.85);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1s forwards 0.7s;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s forwards 0.9s;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  border-radius: 2px;
  background: transparent;
}

.hero-cta.primary { background: var(--gold); color: var(--black); }
.hero-cta:hover { background: var(--gold); color: var(--black); }
.hero-cta.primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.hero-cta:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* === CONTENT === */
.content {
  background: var(--black);
  color: var(--white);
  padding: 6rem 3rem;
}

.content.alt { background: rgba(201,168,76,0.02); border-top: 1px solid rgba(201,168,76,0.1); border-bottom: 1px solid rgba(201,168,76,0.1); }
.content.center { text-align: center; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.content.center h2 { margin-left: auto; margin-right: auto; }

.content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(244, 240, 234, 0.85);
  margin-bottom: 1.2rem;
}

.content p.lead {
  font-size: 1.1rem;
  color: var(--grey);
  margin-bottom: 3rem;
  max-width: 800px;
}

.content.center p.lead { margin-left: auto; margin-right: auto; }

.content ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.content ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: rgba(244, 240, 234, 0.85);
  line-height: 1.6;
}

.content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* === GRID === */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.content-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.content-box {
  padding: 2rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.02);
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s;
}

.content-box:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.04);
}

.content-box p { margin-bottom: 1.2rem; }
.content-box p:last-child { margin-bottom: 0; }

.content-box.linked {
  text-decoration: none;
  display: block;
  color: inherit;
}

.content-box.linked h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-box.linked h3::after {
  content: '→';
  color: var(--gold);
  opacity: 0.6;
  transition: transform 0.3s;
}

.content-box.linked:hover h3::after {
  transform: translateX(5px);
  opacity: 1;
}

/* === CTA === */
.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.cta-button.primary {
  background: var(--gold);
  color: var(--black);
}

.cta-button:hover { background: var(--gold); color: var(--black); }
.cta-button.primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.cta-button:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.content.center .cta-group { justify-content: center; }

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* === BREADCRUMBS (diskret — flyter över hero) — inaktiverad just nu === */
/* Kontraster höjda till WCAG AA för framtida återanvändning */
.breadcrumbs {
  position: absolute;
  top: 5.5rem;
  left: 3rem;
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(244,240,234,0.65);  /* var 0.3 — nu 5.5:1 ✓ AA */
  font-weight: 300;
}

.breadcrumbs a {
  color: rgba(244,240,234,0.75);  /* var 0.4 — nu 7:1 ✓ AAA */
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumbs .current { color: rgba(244,240,234,0.9); }

/* === FOOTER === */
footer {
  background: var(--dark);
  text-align: center;
  padding: 4rem 3rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  text-align: left;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(244,240,234,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
  display: inline-block;
  padding: 0.35rem 0;          /* touch target ≥ 24x24 CSS px ✓ WCAG 2.5.8 */
  min-height: 24px;
  line-height: 1.4;
}

.footer-col a:hover { color: var(--gold); }
.footer-col a:focus-visible { color: var(--gold); }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin: 1rem 0;
  letter-spacing: 0.15em;
}

footer p {
  margin: 0.5rem 0;
  color: rgba(244, 240, 234, 0.7);
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo { font-size: 0.9rem; }
  .nav-links { display: none; }
  .nav-tel { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 5rem 1.5rem; height: 100svh; }
  .hero.short { height: 70svh; }
  .hero-title { font-size: 2.2rem; }

  .content { padding: 3rem 1.5rem; }
  .content-grid,
  .content-grid.two-col { grid-template-columns: 1fr; }

  .breadcrumbs { top: 4.5rem; left: 1.5rem; font-size: 0.65rem; }

  .footer-grid { text-align: center; }
  footer { padding: 3rem 1.5rem; }
}
