/* ============================================
   WILMA FORSBERG AB — Global Stylesheet
   Dark luxury meets Nordic mysticism
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-accent: #1a1a1a;
  --color-text-primary: #e8e0d4;
  --color-text-secondary: #9a9088;
  --color-accent-gold: #c4a265;
  --color-accent-gold-light: #d4b87a;
  --color-accent-warm: #8b6f4e;
  --color-border: rgba(196, 162, 101, 0.15);
  --color-glow: rgba(196, 162, 101, 0.08);

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lora', serif;
  --font-accent: 'Cinzel', serif;

  --nav-height: 72px;
  --max-width: 1200px;
  --max-width-narrow: 800px;

  --z-grain: 1;
  --z-content: 10;
  --z-nav: 50;
  --z-overlay: 60;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.text-center {
  text-align: center;
}

.accent-label {
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent-gold);
}

.section-padding {
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
}

/* --- Decorative Elements --- */
.ornament {
  display: block;
  text-align: center;
  color: var(--color-accent-gold);
  font-size: 1rem;
  letter-spacing: 0.75em;
  opacity: 0.6;
  margin: 1.5rem 0;
  user-select: none;
}

.gold-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent-gold);
  border: none;
  margin: 1.5rem auto;
  opacity: 0.5;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background-color: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
  font-family: var(--font-accent);
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent-gold);
  text-decoration: none;
  white-space: nowrap;
}

.nav__logo:hover {
  color: var(--color-accent-gold-light);
}

/* Desktop Nav Links */
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  cursor: pointer;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
  left: 0;
}

.nav__link:hover {
  color: var(--color-accent-gold);
}

.nav__link.active {
  color: var(--color-accent-gold);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
}

.nav__dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__dropdown-toggle:hover::after {
  width: 100%;
  left: 0;
}

.nav__dropdown-toggle:hover {
  color: var(--color-accent-gold);
}

.nav__dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}

.nav__dropdown.open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  list-style: none;
}

.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__dropdown-menu a:hover {
  color: var(--color-accent-gold);
  background-color: var(--color-glow);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--z-overlay) + 1);
}

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

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

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

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

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.97);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.mobile-menu__link:hover {
  color: var(--color-accent-gold);
}

.mobile-menu__link.active {
  color: var(--color-accent-gold);
}

.mobile-menu__sublabel {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent-gold);
  opacity: 0.5;
  margin-top: 1.5rem;
  margin-bottom: -0.5rem;
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__hamburger {
    display: none;
  }
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero--short {
  min-height: 50vh;
}

.hero--medium {
  min-height: 60vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.5);
}

.hero__bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 50%, #0a0a0a 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.1) 40%,
    rgba(10, 10, 10, 0.6) 75%,
    var(--color-bg-primary) 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.65rem, 0.6rem + 0.25vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent-gold);
  margin-top: 0.5rem;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent-gold);
  stroke-width: 1.5;
  fill: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-indicator {
    animation: none;
  }
}

/* ============================================
   ABOUT / TWO COLUMN SECTION
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about__image-wrapper {
  position: relative;
  overflow: hidden;
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--color-accent-gold);
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
}

.about__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1a1510 0%, #0a0a0a 60%, #1a1510 100%);
  position: relative;
  z-index: 1;
}

.about__content h2 {
  margin-bottom: 1.5rem;
}

.about__pullquote {
  border-left: 2px solid var(--color-accent-gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-primary);
  font-size: 1.05em;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.card {
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(196, 162, 101, 0.35);
  box-shadow: 0 0 30px var(--color-glow);
}

.card__icon {
  font-size: 1.5rem;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
  display: block;
}

.card__title {
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Event / Schedule Card */
.schedule-card {
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border);
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.schedule-card:hover {
  border-color: rgba(196, 162, 101, 0.35);
}

.schedule-card__date {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
}

.schedule-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.schedule-card__content {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   PRICING BLOCK
   ============================================ */
.pricing-block {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-accent-gold);
  text-align: center;
  background: var(--color-bg-accent);
}

.pricing-block__label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}

.pricing-block__price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 300;
  color: var(--color-accent-gold);
  margin-bottom: 0.5rem;
}

.pricing-block__note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ============================================
   GOLD BULLET LIST
   ============================================ */
.gold-list {
  list-style: none;
  padding: 0;
}

.gold-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  line-height: 1.7;
}

.gold-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-size: 0.7rem;
  top: 0.65rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 1rem 2.5rem;
  border: 1px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-gold-light);
  outline-offset: 3px;
}

/* ============================================
   FORMS
   ============================================ */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(154, 144, 136, 0.4);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px var(--color-accent-gold);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer__ornament {
  margin-bottom: 1.5rem;
}

.footer__ornament svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-accent-gold);
  stroke-width: 1;
  opacity: 0.5;
}

.footer__text {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--color-accent-gold);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.footer__link:hover {
  opacity: 1;
}

/* ============================================
   SECTIONS / CONTENT BLOCK
   ============================================ */
.content-section {
  padding: clamp(4rem, 3rem + 5vw, 8rem) 1.5rem;
}

.content-section--dark {
  background-color: var(--color-bg-secondary);
}

.content-section__heading {
  margin-bottom: 2rem;
}

.content-section p + p {
  margin-top: 0;
}

/* Booking terms / fine print */
.fine-print {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.fine-print h3 {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  margin: 2.5rem 0 1rem;
}

/* ============================================
   PLACEHOLDER CARDS (Kommande seanser)
   ============================================ */
.placeholder-card {
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.placeholder-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #1a1510 0%, #0a0a0a 60%, #1a1510 100%);
}

.placeholder-card__body {
  padding: 1.5rem;
}

.placeholder-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.placeholder-card__date {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 0.75rem;
}

.placeholder-card__text {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   HÄXAN (PAGE-SPECIFIC)
   Slightly cooler, noir tones
   ============================================ */
.page-haxan {
  --color-bg-primary: #090a0d;
  --color-bg-secondary: #0e1014;
  --color-bg-accent: #151820;
}

.page-haxan .hero__bg-placeholder {
  background: linear-gradient(135deg, #090a0d 0%, #10131a 50%, #090a0d 100%);
}

/* ============================================
   PHOTO GALLERY (Retreat)
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.gallery__item {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery__item:hover .gallery__img {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767px) {
  .about__image-wrapper::after {
    display: none;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: rgba(196, 162, 101, 0.25);
  color: var(--color-text-primary);
}
