/* =========================================================================
   HesseLab B2B — Global Styles
   Structure:
   1. Design Tokens (CSS variables)
   2. Fonts
   3. Reset / Base
   4. Header (mobile-first)
   ========================================================================= */

/* ============================ 1. DESIGN TOKENS ============================ */
:root {
  /* Colors */
  --color-brand: #3f5a49;
  --color-text: #000000;
  --color-brand-dark: #33493b;
  --color-heading: #1a1a1a;
  --color-body: #666666;
  --color-white: #ffffff;
  --color-header-bg: #f5f5f5;
  --color-cream: #efe8dc; /* NOTE: estimated from screenshot — swap for exact Figma value */
  --color-hero-bg: #dedede;
  --color-line: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-primary:
    "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --fs-nav: 16px;
  --fs-body: 16px;

  /* Fluid heading scale */
  --fs-hero: clamp(2.125rem, 4.6vw, 4.5rem); /* 34 → 72 */
  --fs-h2: clamp(1.75rem, 2.6vw, 2.5rem); /* 28 → 40 */
  --fs-h3: clamp(1.5rem, 2vw, 2rem); /* 24 → 32 */
  --fs-card: clamp(1.25rem, 1.4vw, 1.5rem); /* 20 → 24 */

  /* Layout */
  --header-height: 90px;
  --page-x: 20px; /* horizontal page gutter — scales up per breakpoint */
  --content-max: 1320px; /* section content width (300px gutters @1920) */

  /* Radius & elevation */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-menu: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.12);

  /* Motion */
  --transition-base: 200ms ease;
  --transition-fast: 150ms ease;

  /* Layering */
  --z-header: 1000;
}

/* ================================ 2. FONTS =============================== */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700.woff2") format("woff2");
}

/* ============================= 3. RESET / BASE ========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Horizontal scrolling is governed by the documentElement, so the guard
     must live here (not only on <body>). `clip` prevents sideways overflow
     WITHOUT turning the element into a scroll container, so it does not
     break `position: sticky` used by the pinned Production section. */
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ================================ 4. HEADER ============================== */
.header {
  position: relative;
  background: var(--color-header-bg);
  z-index: var(--z-header);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--page-x);
}

/* --- Logo --- */
.header__logo {
  flex: 1 0 auto;
  display: inline-flex;
}

.header__logo-img {
  width: 120px;
  height: auto;
}

/* --- Drawer: off-canvas panel on mobile ------------------------------- */
.header__drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-header) + 2);
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  height: 100%;
  padding-bottom: 32px;
  background: var(--color-white);
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 340ms linear;
}

.header.is-open .header__drawer {
  transform: translateX(0);
  visibility: visible;
}

.header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--page-x);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
}

.header__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  border-radius: 50%;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

.header__close:hover {
  background: var(--color-header-bg);
  color: var(--color-brand);
}

/* --- Backdrop --- */
.header__backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) + 1);
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.header.is-open .header__backdrop {
  opacity: 1;
  visibility: visible;
}

/* --- Nav --- */
.header__nav {
  padding-inline: var(--page-x);
}

.header__nav-list {
  display: flex;
  flex-direction: column;
}

.header__nav-item {
  border-bottom: 1px solid var(--color-line);
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 14px 0;
  font-size: var(--fs-nav);
  line-height: normal;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition-base);
}

.header__menu-toggle {
  justify-content: space-between;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--color-brand);
}

.header__nav-link--active,
.header__nav-link--active:hover,
.header__nav-link--active:focus-visible {
  color: #3f5a49;
}

.header__menu-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.header__has-menu.is-open > .header__menu-toggle .header__menu-arrow {
  transform: rotate(180deg);
}

/* --- Sub-menu (Company + language) : accordion on mobile --- */
.header__menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}

.header__has-menu.is-open > .header__menu {
  max-height: 280px;
}

.header__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0 12px 16px;
  font-size: 16px;
  color: var(--color-body);
  text-align: left;
  transition:
    color var(--transition-base),
    background-color var(--transition-base);
}

.header__menu-link:hover,
.header__menu-link:focus-visible {
  color: var(--color-brand);
}

.header__menu-link--active,
.header__menu-link--active:hover,
.header__menu-link--active:focus-visible {
  color: #3f5a49;
}

.header__lang-option img {
  width: 24px;
  height: 24px;
}

.header__lang-option.is-selected {
  color: var(--color-brand);
}

.header__lang-option {
  cursor: pointer;
}

/* --- Utility (language + account) --- */
.header__utility {
  display: flex;
  flex-direction: column;
  padding-inline: var(--page-x);
  margin-top: 8px;
}

.header__lang {
  border-bottom: 1px solid var(--color-line);
}

.header__lang-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
}

.header__lang-flag {
  width: 25px;
  height: 25px;
}

.header__account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--color-text);
  transition: color var(--transition-base);
}

.header__account::after {
  content: "Account";
  font-size: var(--fs-nav);
}

.header__account:hover {
  color: var(--color-brand);
}

.header__account img {
  width: 25px;
  height: 25px;
}

/* --- Burger --- */
.header__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 auto;
}

.header__burger-bar {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.header.is-open .header__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header__burger-bar:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Lock page scroll while the mobile drawer is open */
body.is-nav-open {
  overflow: hidden;
}

/* =========================================================================
   5. SHARED COMPONENTS
   ========================================================================= */

/* --- Primary button (design-system component, reused across sections) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: normal;
  color: var(--color-white);
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* --- Shared section title + lead (grouped to avoid duplicate styles) --- */
.arrivals__title,
.benefits__title,
.categories__title,
.tradition__title,
.catalogues__title,
.events__title,
.instagram__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.3;
  color: var(--color-heading);
}

.benefits__subtitle,
.categories__subtitle,
.tradition__text,
.catalogues__subtitle,
.events__subtitle,
.instagram__subtitle {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-body);
}

/* --- Entrance animation primitive --- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   6. HERO
   ========================================================================= */
.hero {
  display: flex;
  flex-direction: column;
  background: var(--color-hero-bg);
  overflow: hidden;
}

.hero__media {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px var(--page-x) 48px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1;
  color: var(--color-text);
}

.hero__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.3;
  color: var(--color-text);
}

.hero__text {
  margin-top: 10px;
  max-width: 500px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-body);
}

.hero__cta {
  margin-top: 32px;
}

/* =========================================================================
   6b. NEW ARRIVALS (custom centre-focus carousel)
   Desktop Figma (node 1072:6864 / 1684:2889):
     track 1320×280 | side 240 | centre 280 | gap 20
     240+20+240+20+280+20+240+20+240 = 1320
   ========================================================================= */
.arrivals {
  --arrivals-side: 160px;
  --arrivals-center: 220px;
  --arrivals-gap: 12px;
  --arrivals-arrow: 40px;
  background: #f2ebe3;
  padding: 56px 0;
  overflow: hidden;
}

.arrivals__container {
  width: min(100% - 2 * var(--page-x), 1500px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.arrivals__intro {
  width: 100%;
  text-align: center;
}

.arrivals__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: normal;
  color: var(--color-text);
  text-align: center;
}

.arrivals__slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Figma desktop band: arrow(50) + 40 + stage(1320) + 40 + arrow(50) = 1500 */
.arrivals__viewport {
  width: 100%;
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.arrivals__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  height: var(--arrivals-center);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.arrivals__stage:active {
  cursor: grabbing;
}

.arrivals__rail {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--arrivals-gap);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.arrivals__rail.is-dragging {
  transition: none;
}

.arrivals__slide {
  flex: 0 0 var(--arrivals-side);
  width: var(--arrivals-side);
  height: var(--arrivals-side);
  transition:
    width 0.35s ease,
    height 0.35s ease,
    flex-basis 0.35s ease;
}

/* Instant size swap during loop normalize (clone ↔ original) — avoids a
   visible grow/shrink flicker on the centre card after the seamless jump. */
.arrivals.is-snap .arrivals__slide,
.arrivals__rail.is-dragging .arrivals__slide {
  transition: none;
}

.arrivals__slide.is-active {
  flex-basis: var(--arrivals-center);
  width: var(--arrivals-center);
  height: var(--arrivals-center);
  z-index: 2;
}

.arrivals__card {
  width: 100%;
  height: 100%;
  background: var(--color-white);
  overflow: hidden;
}

.arrivals__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.arrivals__arrow {
  flex: 0 0 var(--arrivals-arrow);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--arrivals-arrow);
  height: var(--arrivals-arrow);
  background: var(--color-brand);
  transition: background-color var(--transition-base);
}

.arrivals__arrow:hover {
  background: var(--color-brand-dark);
}

.arrivals__arrow img {
  width: 20px;
  height: 20px;
  display: block;
}

.arrivals__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.arrivals__bullet {
  display: block;
  width: 16px;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--color-brand);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.arrivals__bullet.is-active {
  opacity: 1;
}

.arrivals__action {
  display: flex;
  justify-content: center;
}

/* =========================================================================
   7. BENEFITS ("Why choose HesseLab")
   ========================================================================= */
.benefits {
  background: var(--color-white);
  padding: 56px 0;
}

.benefits__container {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
}

.benefits__intro {
  text-align: center;
  max-width: 832px;
  margin-inline: auto;
}

.benefits__subtitle {
  margin-top: 16px;
}

.benefits__panel {
  margin-top: 48px;
  padding: 30px;
  background: var(--color-cream);
}

.benefits__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--color-heading);
  text-align: center;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 32px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 30px;
}

.benefit-card__icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  color: var(--color-brand);
}

.benefit-card__icon img {
  width: 100%;
  height: 100%;
}

.benefit-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-card);
  line-height: 1.3;
  color: var(--color-heading);
}

.benefit-card__text {
  max-width: 340px;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--color-body);
}

/* Mobile-only carousel for the benefit cards. Hidden by default so the
   tablet/desktop grid above is untouched; revealed at <768px in responsive.css. */
.benefits__slider {
  display: none;
  margin-top: 32px;
}

.benefits__swiper {
  overflow: hidden;
}

.benefits__track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits__slider .benefit-card {
  height: auto;
  padding: 0 20px;
}

.benefits__slider .benefits__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.benefits__pagination .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--color-brand);
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.benefits__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* =========================================================================
   8. CATEGORIES ("Dazzling Lab-Grown Diamonds")
   ========================================================================= */
.categories {
  background: var(--color-white);
  padding: 40px 0 64px;
}

.categories__container {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
}

.categories__intro {
  text-align: center;
}

.categories__subtitle {
  margin-top: 16px;
}

.categories__grid {
  display: grid;
  gap: 15px;
  margin-top: 40px;
  grid-template-columns: repeat(2, 1fr);
}

.category-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.category-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 420 / 480;
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  transform: scale(1.05);
}

.category-card__link:hover .category-card__media img,
.category-card__link:focus-visible .category-card__media img {
  transform: scale(1);
}

.category-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-card);
  line-height: 1.3;
  color: var(--color-heading);
}

.category-card__cta {
  font-size: var(--fs-body);
  color: var(--color-brand);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.category-card__link:hover .category-card__cta,
.category-card__link:focus-visible .category-card__cta {
  border-bottom-color: var(--color-brand);
}

.categories__action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================================
   9. TRADITION ("Tradition meets innovation")
   ========================================================================= */
.tradition {
  background: var(--color-cream);
  padding: 64px 0;
}

.tradition__container {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
}

.tradition__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 1096px;
  margin-inline: auto;
}

.tradition__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.tradition__img {
  object-fit: cover;
  aspect-ratio: 1;
  height: auto;
}

.tradition__img--sm {
  width: 28vw;
  max-width: 140px;
}

.tradition__img--md {
  width: 34vw;
  max-width: 170px;
}

.tradition__img--lg {
  width: 60vw;
  max-width: 280px;
}

/* Mobile / tablet image carousel — hidden on desktop, where the cluster shows.
   Responsive.css swaps the cluster for this slider below 1025px. */
.tradition__slider {
  display: none;
  margin-top: 40px;
}

.tradition__swiper {
  overflow: hidden;
}

.tradition__swiper-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
  /* Let slides size to their own height so the active (centre) slide can be
     taller than the smaller neighbours, all vertically centred. */
  align-items: center;
}

.tradition__slide {
  height: auto;
}

.tradition__slide img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: height var(--transition-base);
}

/* Centre (active) slide is larger; the left/right neighbours stay smaller. */
.tradition__slide.swiper-slide-active img {
  height: 400px;
}

.tradition__slider .tradition__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.tradition__pagination .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--color-brand);
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.tradition__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* =========================================================================
   10. CATALOGUES
   ========================================================================= */
.catalogues {
  background: var(--color-white);
  padding: 60px 0;
}

.catalogues__container {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
}

.catalogues__intro {
  text-align: center;
}

.catalogues__subtitle {
  margin-top: 16px;
}

.catalogues__feature {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 40px;
}

.catalogues__media {
  overflow: hidden;
}

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

.catalogues__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px;
  background: var(--color-cream);
  height: 100%;
  justify-content: center;
}

.catalogues__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--color-heading);
}

.catalogues__panel-text {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--color-text);
}

.catalogues__panel-text--muted {
  color: var(--color-body);
}

.catalogues__panel .btn-primary {
  margin-top: 8px;
}

/* =========================================================================
   11. EVENTS (Swiper carousel)
   ========================================================================= */
.events {
  background: var(--color-cream);
  padding: 64px 0;
}

.events__container {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
}

.events__intro {
  text-align: center;
}

.events__subtitle {
  margin-top: 16px;
}

.events__slider {
  margin-top: 40px;
}

.events__viewport {
  position: relative;
}

.events__swiper {
  overflow: hidden;
}

.events__wrapper {
  margin: 0;
  padding: 0;
}

/* Fixed height (wrapper specificity beats Swiper's `.swiper-slide{height:100%}`,
   which is loaded after this file) so every card is exactly equal, regardless
   of how much content it holds. */
.events__wrapper .event-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  color: var(--color-white);
  object-fit: cover;
}

.event-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card__bg {
  transform: scale(1.05);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.3) 42%,
    rgba(0, 0, 0, 0.82) 100%
  );
  z-index: 1;
}

.event-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  justify-content: space-between;
}

/* Date badge (top-left) */
.event-card__date {
  display: inline-flex;
  flex-direction: column;
  width: 72px;
  overflow: hidden;
  text-align: center;
  border-radius: 4px;
}

.event-card__year {
  padding: 5px 0;
  background: var(--color-white);
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.event-card__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px 10px;
  background: var(--color-brand);
}

.event-card__day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.event-card__month {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Centered event logo / wordmark */
.event-card__logo {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.event-card__logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

/* Footer: name + divider + location */
.event-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 50px;
}

.event-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}

.event-card__divider {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.event-card__location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.event-card__pin {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  filter: brightness(0) invert(1);
}

/* Arrows — flex items sitting outside the cards (revealed at >=768px) */
.events__arrow {
  flex: 0 0 auto;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-brand);
  transition:
    background-color var(--transition-base),
    opacity var(--transition-base);
}

.events__arrow:hover {
  background: var(--color-brand-dark);
}

.events__arrow img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.events__arrow--prev img {
  transform: rotate(90deg);
}

.events__arrow--next img {
  transform: rotate(-90deg);
}

.events__arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

/* Pagination — higher specificity to override Swiper's absolute default */
.events__slider .events__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.events__pagination .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--color-brand);
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.events__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* =========================================================================
   12. INSTAGRAM (full-bleed marquee)
   ========================================================================= */
.instagram {
  background: var(--color-white);
  padding: 60px 0;
  overflow: hidden;
}

.instagram__intro {
  text-align: center;
  padding-inline: var(--page-x);
}

.instagram__subtitle {
  margin-top: 12px;
}

.instagram__marquee {
  margin-top: 40px;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.instagram__track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: instagram-scroll 40s linear infinite;
}

.instagram__marquee:hover .instagram__track {
  animation-play-state: paused;
}

.instagram__item {
  flex: 0 0 auto;
  width: 280px;
  height: 260px;
  overflow: hidden;
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram__item:hover img {
  transform: scale(1.06);
}

.instagram__action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-inline: var(--page-x);
}

@keyframes instagram-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 15px));
  }
}

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

/* =========================================================================
   13. FOOTER
   ========================================================================= */
.footer {
  background: var(--color-brand);
  color: var(--color-white);
}

.footer__inner {
  width: min(100% - 2 * var(--page-x), var(--content-max));
  margin-inline: auto;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo img {
  width: 172px;
  height: auto;
}

.footer__tagline {
  max-width: 273px;
  font-size: var(--fs-body);
  line-height: 1.4;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-base);
  padding: 10px 14px;
}

.footer__social-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__social-link {
  display: inline-flex;
  transition: opacity var(--transition-base);
}

.footer__social-link:hover {
  opacity: 0.7;
}

.footer__social-icon {
  width: 26px;
  height: 26px;
}

.footer__social-handle {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--color-white);
  transition: opacity var(--transition-base);
}

.footer__social-handle:hover {
  opacity: 0.75;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  margin-bottom: 20px;
}

.footer__col--stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__link {
  font-size: var(--fs-body);
  line-height: normal;
  color: var(--color-white);
  transition: opacity var(--transition-base);
}

.footer__link:hover {
  opacity: 0.75;
}

.footer__dhl {
  width: 91px;
  height: 20px;
}

.footer__contact {
  font-style: normal;
}

.footer__contact-line {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__divider {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer__lang-field {
  position: relative;
  display: inline-block;
}

.footer__lang {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 130px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--color-white);
  border-radius: 0;
  background: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.footer__lang:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__lang:focus-visible {
  outline: 0px solid var(--color-white);
  outline-offset: 0px;
}

/* Native option list is rendered on a light system background */
.footer__lang option {
  color: var(--color-heading);
}

.footer__lang-caret {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__legal-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.6);
}

.footer__copyright {
  text-align: center;
  font-size: var(--fs-body);
  line-height: normal;
}
.instagram-elfight {
  padding: 40px 0px 0px 0px;
}
.logout-part {
  position: relative;
}
.login-mobile p {
  font-size: clamp(1rem, 1vw, 1rem);
  line-height: 1.8;
  color: #353334;
  margin-bottom: 0px;
  margin-top: 10px;
}
.login-mobile p a {
  font-weight: 700;
}
.logout {
  position: absolute;
  width: 120px;
  text-align: center;
  background: #222222;
  padding: 10px 20px;
  left: 50%;
  margin-left: -60px;
  bottom: -45px;
  color: #ffffff;
  display: none;
  border-radius: 50px;
  z-index: 999;
}
.logout-part:hover .logout {
  display: block;
}
.logout p {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  cursor: pointer;
  font-family: "Gilroy-Bold", sans-serif;
  text-transform: uppercase;
  margin-bottom: 0px;
}
.breadcum-fluid1 {
  padding: 10px 15px;
  background: rgb(255, 255, 255);
  display: none;
}

.breadcum-fluid1 .main-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcum-fluid1 .main-section .left-part ul {
  display: flex;
  align-items: center;
  justify-content: start;
}

.breadcum-fluid1 .main-section .left-part ul li {
  margin-right: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: rgb(0, 0, 0);
}

.breadcum-fluid1 .main-section .left-part ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 30px; /* comfortable touch target on the mobile back bar */
  padding-block: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(0, 0, 0);
  text-decoration: none;
}

/* Decorative left chevron — CSS-only, ignored by screen readers */
.breadcum-fluid1 .main-section .left-part ul li a::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 0.45em;
  height: 0.45em;
  margin-top: -0.05em; /* optical vertical alignment with the text cap-height */
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.breadcum-fluid1 .main-section .left-part ul li a:hover,
.breadcum-fluid1 .main-section .left-part ul li a:focus-visible {
  color: var(--color-brand);
}

.breadcum-fluid1 .main-section .right-part h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  color: rgb(2, 2, 2);
  display: inline-block;
  position: relative;
}
