@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #9E1B1E;
  /* Premium Red */
  --secondary: #D4AF37;
  /* Radiant Gold */
  --bg-main: #FFFFFF;
  /* White */
  --bg-surface: #FAFAFA;
  /* Off-white for alternating sections */
  --text-main: #2A2A2A;
  /* Dark Gray for high contrast */
  --text-muted: #555555;
  /* Medium Gray */

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

/* Sommerstengt Topbar */
.krystall-topbar {
  position: relative;
  background-color: #8B1A1A !important;
  color: #ffffff !important;
  z-index: 1001;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.krystall-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.krystall-topbar__tag {
  background-color: #ffffff !important;
  color: #8B1A1A !important;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  /* Sticks below topbar initially, then sticks to top of viewport when scrolling */
  left: 0;
  width: 100%;
  background: var(--bg-main);
  padding: 1rem 0;
  z-index: 1002;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  top: 0;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO IS NOT INVERTED */
.logo {
  position: relative;
  z-index: 2000;
}

.logo img {
  height: 65px;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 55px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  position: relative;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Typography */
.text-gold {
  color: var(--secondary);
}

.text-red {
  color: var(--primary);
}

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

.section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  /* slightly reduced padding for better flow */
  position: relative;
}

/* Premium Red Button */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-glow {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(158, 27, 30, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(158, 27, 30, 0.5);
  background: #B31F22;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
  z-index: 2000;
}

/* Hero Section */
.hero {
  height: calc(100vh - 130px);
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 120%;
  /* For parallax */
  object-fit: cover;
  transform: translateY(0);
}

/* REMOVED OVERLAY TO MAKE IMAGES JUICY AND COLORFUL */
.hero-overlay {
  display: none;
}

/* Adding a subtle white gradient from bottom only to make text readable if necessary */
.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-content {
  max-width: 850px;
  padding: 5rem 4rem;
  z-index: 2;
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  /* Ultra-premium frosted glass */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Very subtle white border */
  border-radius: 4px;
  /* Elegant sharp corners */
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 5rem;
  /* Larger, more cinematic */
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 400;
  /* Lighter font weight for elegance */
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 3.5rem;
  color: #ffffff;
  /* Brighter white */
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
  /* Stronger shadow for contrast */
}

.hero-content .section-subtitle {
  color: var(--secondary) !important;
  letter-spacing: 6px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Image formatting & Hover Effects - NO GRAYSCALE OR DIMMING */
.img-wrapper {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grid-4 .img-wrapper {
  aspect-ratio: 1 / 1;
  /* Makes all grid items perfectly square! */
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  /* Force fill */
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.grid-4 .img-wrapper img {
  transform: scale(1.15);
  /* Zoom in by 15% to hide baked-in black bars */
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.grid-4 .img-wrapper:hover img {
  transform: scale(1.25);
}

.crop-letterbox {
  transform: scale(1.35) !important;
}

.img-wrapper:hover .crop-letterbox {
  transform: scale(1.45) !important;
}

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

/* Cards */
.card {
  background: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 4rem;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* Review Cards / Elfsight Customization */
.reviews-section {
  background: var(--bg-surface);
  position: relative;
}

/* Fix static TrustIndex widget on mobile */
@media (max-width: 768px) {
  .ti-widget.ti-goog .ti-reviews-container-wrapper {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .ti-widget.ti-goog .ti-review-item {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    min-width: 250px !important;
    scroll-snap-align: center;
    margin: 0 !important;
  }
}

/* Premium 3D Cinematic Coverflow Styles */
.menu-carousel {
    width: 100%;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    overflow: visible !important; 
}

/* Ensure smooth linear continuous scrolling */
.menu-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.menu-carousel .swiper-slide {
    width: 320px;
    height: 420px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    background: #fff;
}

.menu-carousel .swiper-slide .img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.menu-carousel .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    text-align: center;
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.menu-carousel .swiper-slide-active .menu-item-title {
    transform: translateY(0);
    opacity: 1;
}

.menu-carousel .swiper-slide-active {
    box-shadow: 0 0 0 3px var(--secondary), 0 25px 50px rgba(0,0,0,0.15) !important;
    z-index: 2;
}

.menu-carousel .swiper-slide:not(.swiper-slide-active) {
    filter: brightness(0.6) opacity(0.85); 
}

/* Footer */
.footer {
  background: #111;
  color: #fff;
  padding: 5rem 0 3rem;
}

.footer-logo {
  height: 80px;
  margin-bottom: 2rem;
  background: #fff;
  padding: 10px 20px;
  border-radius: 4px;
}

/* Animations Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .krystall-topbar {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    padding-top: 90px;
    background: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--text-main);
  }

  .nav-link::after {
    display: none;
  }

  .hero-title {
    font-size: 2.8rem;
  }

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

  .card {
    padding: 2rem;
  }
}