/* =========================
   BASE
   ========================= */

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow-x: hidden;   /* only block horizontal */
  overflow-y: auto;     /* allow vertical scroll */
}

/* =========================
   ACCORDION CONTAINER
   ========================= */

.accordion {
  display: flex;
  height: 100vh;   /* fallback */
  height: 100svh;  /* mobile fix */
  width: 100vw;
}

/* =========================
   PANELS
   ========================= */

.panel {
  display: flex;
  height: 100%;
  width: 80px;
  min-width: 80px;
  overflow: hidden;              /* CRITICAL FIX */
  transition: all 0.5s ease;
}

.panel.active {
  width: calc(100vw - 240px);
}

/* Hide label when first panel is open */
.panel:first-child.active .label {
  transform: translateX(-80px);
  opacity: 0;
  pointer-events: none;
}

/* =========================
   LABEL
   ========================= */

.label {
  width: 80px;
  background: white;
  color: black;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.label span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Oswald', sans-serif;
  font-size: 70px;
  font-weight: 700;
}

/* Hover + active */
.label:hover,
.panel.active .label {
  background: black;
}

.label:hover span,
.panel.active .label span {
  color: white;
}

/* =========================
   CONTENT
   ========================= */

/* CONTENT */
.content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: none;
  background: white;
  color: black;
}

/* HOMEPAGE CONTENT — NO WHITE BACKGROUND */
.home-panel .content {
  background: transparent;
  color: white;
  position: relative;
  z-index: 2;
}

/* IMPORTANT: default = block */
.panel.active .content {
  display: block;
  animation: fadeIn 0.4s ease;
}


/* =========================
   NON-HOMEPAGE PANEL BACKGROUND
   ========================= */

/* Apply background image to all panels except the homepage */
.panel:not(.home-panel) .content {
  position: relative; /* required for overlay */
  background: url('/images/Background_grey.png') center/cover no-repeat;
  background-size: cover;   /* fill the panel */
  color: white;             /* ensure text is readable */
  padding: 40px;            /* same as before */
  overflow-y: auto;         /* scrollable content */
  display: none;            /* accordion default behavior */
  transition: all 0.3s ease;
}

/* Dark overlay for better text contrast */
.panel:not(.home-panel) .content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* semi-transparent black overlay */
  z-index: 0;
}

/* Ensure panel content is above overlay */
.panel:not(.home-panel) .content > * {
  position: relative;
  z-index: 1;
}

/* Show content when panel is active */
.panel.active .content {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* =========================
  HOMEPANEL: Chaos background
  ========================= */

/* DISTORTED FLICKER */

@keyframes flicker-distort {
  0%   { transform: scale(1) translate(0,0) skew(0deg); filter: brightness(1) contrast(1); opacity: 1; }

  10%  { transform: scale(1.05) translate(-15px, 8px) skew(-2deg); filter: brightness(0.6) contrast(1.6); opacity: 0.8; }
  12%  { transform: scale(1) translate(0,0) skew(0deg); filter: brightness(1); opacity: 1; }

  20%  { transform: scale(1.08) translate(20px, -10px) skew(3deg); filter: brightness(1.4) contrast(0.8); }
  22%  { transform: scale(1) translate(0,0) skew(0deg); }

  35%  { transform: scale(1.1) translate(-25px, 15px) skew(-4deg); filter: brightness(0.5) contrast(1.8) blur(2px); opacity: 0.7; }
  36%  { transform: scale(1) translate(0,0) skew(0deg); filter: brightness(1); opacity: 1; }

  50%  { transform: scale(1.06) translate(10px, -20px) skew(2deg); }

  70%  { transform: scale(1.12) translate(-30px, 10px) skew(-3deg); filter: brightness(0.7) contrast(1.5); }
  72%  { transform: scale(1) translate(0,0) skew(0deg); }

  85%  { transform: scale(1.05) translate(15px, 5px) skew(1deg); }

  100% { transform: scale(1) translate(0,0) skew(0deg); filter: brightness(1); opacity: 1; }
}

.home-panel {
  position: relative;
  overflow: hidden;
}

.home-panel::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  top: -10%;
  left: -10%;
  background: url('/images/Color_img.png') center/cover no-repeat;
  z-index: 0;
  animation: flicker-distort 0.8s infinite;
  pointer-events: none;
}

.home-panel::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('/images/Color_img.png') center/cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.15;
  animation: glitch-shift 3s infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes glitch-shift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3px, 1px); }
  40%  { transform: translate(3px, -1px); }
  60%  { transform: translate(-2px, 0); }
  80%  { transform: translate(2px, 1px); }
  100% { transform: translate(0,0); }
}

.home-panel .content {
  position: relative;
  z-index: 2;
  background: transparent;
  color: white;
  padding: 0;
}

.panel.active .home-content {
  position: absolute;
  top: 0;
  left: 80px; /* width of the label */
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1vh;
}

.home-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  transition: 0.3s;
}

.home-link:hover .home-image {
  transform: scale(1.03);
  opacity: 1;
}

/* =========================
   HOMEPANEL: Ride deep background
   ========================= */

.home-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1vh;
  height: 100%;
}

.home-image {
  max-height: 18vh;
  width: auto;
  height: auto;
}

/* =========================
   FOLLOW US BUTTON
   ========================= */

/* Make link wrapping h2 not underlined */
.follow-us-link {
  text-decoration: none; /* remove underline */
}

.follow-us-link h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  color: white;        /* normal text color */
  transition: color 0.3s;
}

/* Hover effect */
.follow-us-link:hover h2 {
  color: black;      /* hover color */
  cursor: pointer;
}

/* =========================
   EVENTS
   ========================= */

/* Make event blocks clickable */
.event-link {
  text-decoration: none;   /* remove underline */
  color: inherit;          /* keep black text */
  display: block;          /* ensures full clickable area */
}

.event {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid black;
  transition: background 0.3s, color 0.3s;  /* smooth hover */
}

.event:last-child {
  border-bottom: none;
}

.event-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.event-date,
.event-location {
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.806);
}

/* Hover effect: make everything white */
.event-link:hover .event {
  background: black;
  color: white;
  cursor: pointer;
}

.event-link:hover .event-date,
.event-link:hover .event-location {
  color: white;
}

/* Smooth color transitions */
.event,
.event-date,
.event-location {
  transition: color 0.3s ease, background 0.3s ease;
}


/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
  font-size: 32px;
  font-weight: 400;
  margin-top: 0;
}

h2 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 30px;
}

p {
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

h1, h2 {
  text-transform: uppercase;
}

/* =========================
   CONTACT
   ========================= */

.contact-info {
  margin-bottom: 40px;
}

.contact-block {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid black;
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-title {
  font-weight: 700;
  font-size: 16px;
  margin: 25px 0 10px;
}

.contact-line {
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
}

/* =========================
   FORM
   ========================= */

.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 2px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  border: 1px solid black;
  background: white;
  font-family: 'Space Grotesk', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: black;
  color: white;
}

.contact-form button { 
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 5px;
  border: none;
  background: white;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block; /* makes button take full width */
  width: 100%; /* matches the form width */
  box-sizing: border-box; /* ensures padding + border stay inside width */ 
} 

.contact-form button:hover { 
  background: black;
  color: white;
  border-color: white; }

/* =========================
   ANIMATION
   ========================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   WEBSHOP
   ========================= */

.shop-page {
  background: black;
  color: white;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px;
  font-family: 'Space Grotesk', sans-serif;
}

/* Header */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.shop-header h1 {
  font-size: 40px;
  margin: 0;
}

/* Grid layout */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* Items */
.shop-item {
  border: 1px solid white;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.shop-item:hover {
  background: white;
  color: black;
}

/* Images */
.shop-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Buttons */
.button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.button:hover {
  background: currentColor;
  color: black;
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  .accordion {
    flex-direction: column;
    height: auto;
  }

  .panel {
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .panel.active {
    width: 100%;
  }

  .label {
    width: 100%;
    height: 60px;
  }

  .label span {
    writing-mode: horizontal-tb;
    transform: none;
    position: static;
    font-size: 24px;
    display: block;
    text-align: center;
    line-height: 60px;
  }

  .content {
    display: block;       /* avoid animation glitches */
    padding: 20px;
  }

}

/* =========================
   INSTAGRAM
   ========================= */

.instagram-row {
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.snapwidget-widget {
  width: 100%;
  height: 180px; /* controls row height */
  border: none;
}