/* =========================================================================
   HesseLab B2B — Responsive Overrides (mobile-first, min-width queries)
   Breakpoints:
     - Tablet:  >= 768px
     - Laptop:  >= 1025px  (desktop nav appears, hamburger hidden)
     - Desktop: >= 1441px  (full Figma gutter of 150px)
   ========================================================================= */

/* ============================ MOBILE (<=767px) ========================= */
/* Footer only: centered brand block, then two 2-column rows
   (Company | Information and Billing | Shipping Method), with Contact spanning
   full width — matching the mobile Figma. Scoped with max-width so the tablet
   and desktop footer layouts stay exactly as approved. */
@media (max-width: 767px) {
  /* New Arrivals — mobile Figma: full-bleed 3-up (side peek / larger centre / side peek), no arrows */
  .arrivals {
    --arrivals-side: 168px;
    --arrivals-center: 204px;
    --arrivals-gap: 10px;
    padding: 48px 0;
  }

  .arrivals__container {
    width: 100%;
    gap: 28px;
  }

  .arrivals__intro,
  .arrivals__action,
  .arrivals__pagination {
    padding-inline: var(--page-x);
  }

  .arrivals__slider {
    width: 100%;
    gap: 20px;
  }

  .arrivals__viewport {
    width: 100%;
    max-width: none;
    gap: 0;
  }

  .arrivals__arrow {
    display: none;
  }

  .arrivals__stage {
    width: 100%;
    max-width: none;
  }

  /* Benefits: swap the stacked grid for a one-card carousel on mobile. */
  .benefits__grid {
    display: none;
  }
  .benefits__slider {
    display: block;
  }
  .benefits__container {
    width: 100%;
  }
  .about-page
    :where(.about-journey, .about-team, .about-promise, .about-partners)
    > [class$="__container"] {
    width: 100% !important;
  }
  .benefits__intro {
    padding: 0px 20px;
  }
  .tradition__intro {
    padding: 0px 20px;
  }
  .catalogues__intro {
    padding: 0px 20px;
  }
  .about-team__content {
    padding: 0px 20px;
  }
  .about-promise {
    padding: 48px 20px !important;
  }
  .about-team {
    padding: 0px 0 48px 0px;
  }
  .events,
  .instagram,
  .catalogues,
  .tradition,
  .benefits,
  .categories {
    padding: 40px 0;
  }
  .footer__inner {
    padding: 40px 0px;
  }
  /* Categories: the "Discover All Products" CTA sits between the intro and
     the card grid on mobile (per Figma). Reorder via flex so the desktop
     DOM order — and its bottom-placed button — stays unchanged. */
  .categories__container {
    display: flex;
    flex-direction: column;
  }
  .categories__grid {
    order: 1;
    margin-top: 8px;
  }
  .categories__action {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .catalogues__container {
    width: 100%;
  }
  .tradition__container {
    width: 100%;
  }

  /* Brand spans the full width and is centered */
  .footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    max-width: 340px;
    margin-inline: auto;
  }

  /* Social becomes a full-width, centered band */
  .footer__social {
    align-self: stretch;
    justify-content: center;
  }

  /* Billing | Shipping Method sit side by side, aligned to the columns above */
  .footer__col--stack {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 24px;
  }

  .footer__col--stack > div {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Contact spans the full width */
  .footer__contact {
    grid-column: 1 / -1;
  }

  /* Upcoming Events: single card with the prev/next arrows overlaying the
     card's left/right edges, vertically centred (per the mobile Figma). */
  .events__arrow {
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  .events__arrow--prev {
    left: 0;
  }

  .events__arrow--next {
    right: 0;
  }
}

/* ============================ TABLET (>=768px) ========================== */
@media (min-width: 768px) {
  :root {
    --page-x: 40px;
  }

  .header__inner {
    padding: 16px var(--page-x);
  }

  /* Benefits */
  .benefits {
    padding: 72px 0;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits__panel {
    padding: 40px;
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tradition: proportional single-row cluster (matches Figma ratios) */
  .tradition__gallery {
    flex-wrap: nowrap;
    gap: 2.27%; /* 30 / 1320 */
  }

  .tradition__img--sm {
    width: 13.63%; /* 180 / 1320 */
    max-width: 180px;
  }

  .tradition__img--md {
    width: 16.66%; /* 220 / 1320 */
    max-width: 220px;
  }

  .tradition__img--lg {
    width: 30.3%; /* 400 / 1320 */
    max-width: 400px;
  }

  /* Catalogues: image + panel side by side */
  .catalogues__feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .catalogues__panel {
    padding: 40px;
  }

  /* Events: arrows become flex items outside the cards with a clear gap */
  .events__viewport {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .events__swiper {
    flex: 1 1 auto;
    min-width: 0;
  }

  .events__arrow {
    display: inline-flex;
  }

  /* New Arrivals — tablet: 3 visible (side / larger centre / side) */
  .arrivals {
    --arrivals-side: 200px;
    --arrivals-center: 240px;
    --arrivals-gap: 16px;
    --arrivals-arrow: 44px;
    padding: 72px 0;
  }

  .arrivals__container {
    gap: 40px;
  }

  .arrivals__slider {
    gap: 28px;
  }

  .arrivals__viewport {
    gap: 16px;
  }

  .arrivals__arrow img {
    width: 22px;
    height: 22px;
  }
}

/* ===== Hero — MOBILE + TABLET (<1025px) =====
   Overlay layout: the content is absolutely positioned over the light top
   area of the image (the model sits in the lower half), matching the Figma.
   Bounded so the desktop overlay hero (>=1025px) stays unchanged. */
@media (max-width: 1024px) {
  .hero {
    position: relative;
  }

  .hero__media {
    /* Near-square hero image keeps the empty top space for the text. */
    aspect-ratio: 1 / 1;
  }

  .hero__img {
    object-position: 50% 50%;
  }

  .hero__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    text-align: center;
    padding: 28px var(--page-x) 0;
  }

  .hero__text {
    margin-inline: auto;
  }
}

/* ===== Tradition — MOBILE + TABLET (<1025px) =====
   Below the desktop breakpoint the static image cluster is replaced by a
   centered carousel (peeking neighbours + pagination dots) per the Figma.
   Bounded so the approved desktop cluster (>=1025px) stays untouched. */
@media (max-width: 1024px) {
  .tradition__gallery {
    display: none;
  }

  .tradition__slider {
    display: block;
  }
  .tradition__container {
    width: 100%;
  }
}

/* ===== Footer — TABLET ONLY (>=768px and <=1024px) =====
   Row 1: Brand (spans two columns) | Company | Information.
   Row 2: Billing/Shipping (left) | wide Contact block.
   Bounded so the desktop 5-column footer (>=1025px) stays exactly as approved. */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    row-gap: 44px;
  }

  .footer__brand {
    grid-column: 1 / span 2;
  }

  .footer__contact {
    grid-column: 2 / -1;
  }

  /* Tradition carousel: prominent centre slide with smaller peeking
     neighbours on tablet, matching the Figma proportions. */
  .tradition__slide img {
    height: 360px;
  }

  .tradition__slide.swiper-slide-active img {
    height: 540px;
  }

  /* Catalogues: stack the image over the cream panel on tablet (per Figma).
     The desktop (>=1025px) side-by-side layout is untouched. */
  .catalogues__feature {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .catalogues__panel {
    padding: 36px 40px 44px;
  }
}

/* =========================== LAPTOP (>=1025px) ========================= */
@media (min-width: 1025px) {
  :root {
    --page-x: 80px;
  }

  /* New Arrivals — desktop Figma:
     arrow(50) + 40 + stage(1320) + 40 + arrow(50) = 1500
     stage: 240+20+240+20+280+20+240+20+240 = 1320 */
  .arrivals {
    --arrivals-side: 240px;
    --arrivals-center: 280px;
    --arrivals-gap: 20px;
    --arrivals-arrow: 50px;
    padding: 80px 0;
  }

  .arrivals__container {
    width: min(100% - 2 * var(--page-x), 1500px);
    gap: 48px;
  }

  .arrivals__slider {
    gap: 48px;
  }

  .arrivals__viewport {
    gap: 40px;
    max-width: 1500px;
  }

  .arrivals__stage {
    flex: 1 1 1320px;
    width: 100%;
    max-width: 1320px;
  }

  .arrivals__arrow img {
    width: 24px;
    height: 24px;
  }

  /* ---- Header: horizontal desktop layout ---- */
  .header__inner {
    gap: 6px;
    padding: 20px var(--page-x);
  }

  /* Equal flex on both sides keeps the nav optically centered */
  .header__logo {
    flex: 1 1 0;
  }

  .header__logo-img {
    width: 144px;
    height: 50px;
  }

  /* Drawer dissolves so nav + utility become direct flex items */
  .header__drawer {
    position: static;
    display: contents;
    transform: none;
    visibility: visible;
    overflow: visible;
    box-shadow: none;
  }

  .header__drawer-head,
  .header__backdrop,
  .header__burger {
    display: none;
  }

  .header__nav {
    display: flex;
    justify-content: center;
    padding-inline: 0;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .header__nav-item {
    border-bottom: 0;
  }

  .header__nav-link {
    width: auto;
    padding: 0;
  }

  .header__utility {
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-inline: 0;
    margin-top: 0;
  }

  .header__lang {
    border-bottom: 0;
  }

  .header__lang-toggle {
    width: auto;
    gap: 6px;
    padding: 0;
  }

  .header__account {
    width: auto;
    padding: 0;
  }

  .header__account::after {
    content: none; /* icon-only on desktop */
  }

  /* Company + language dropdown as floating cards (hover / focus / click) */
  .header__has-menu {
    position: relative;
  }

  .header__menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 210px;
    max-height: none;
    padding: 10px 10px;
    background: #f5f5f5;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transform: translateY(8px);
    transition:
      opacity var(--transition-base),
      transform var(--transition-base),
      visibility var(--transition-base);
  }
  .header__menu li:nth-child(1) {
    border-bottom: 1px solid var(--color-line);
  }
  .header__menu--lang {
    left: auto;
    right: 0;
    min-width: 180px;
  }

  /* Invisible hover bridge across the gap */
  .header__menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }

  .header__has-menu:hover > .header__menu,
  .header__has-menu:focus-within > .header__menu,
  .header__has-menu.is-open > .header__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__has-menu:hover > .header__menu-toggle .header__menu-arrow,
  .header__has-menu:focus-within > .header__menu-toggle .header__menu-arrow {
    transform: rotate(180deg);
  }

  .header__menu-link {
    padding: 12px 20px;
    color: var(--color-text);
  }

  .header__menu-link:not(:last-child) {
    border-bottom: 1px solid var(--color-line);
  }

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

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

  /* ---- Hero: split layout, text overlay left + image right ---- */
  .hero {
    display: block;
    position: relative;
    height: clamp(620px, 41.6vw, 800px);
  }

  .hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    aspect-ratio: auto;
  }

  .hero__img {
    object-position: 50% 25%;
  }

  .hero__content {
    position: absolute;
    top: 50%;
    left: var(--page-x);
    transform: translateY(-50%);
    width: 575px;
    max-width: 46%;
    padding: 0;
  }

  .hero__cta {
    margin-top: 48px;
  }

  /* ---- Section vertical rhythm ---- */
  .benefits {
    padding: 80px 0;
  }

  .categories {
    padding: 40px 0 80px;
  }

  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .tradition {
    padding: 80px 0;
  }

  .events {
    padding: 80px 0;
  }

  .events__viewport {
    gap: 20px;
  }

  /* ---- Footer: 5 columns ---- */
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 15px;
  }

  .footer__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ========================== DESKTOP (>=1441px) ======================== */
@media (min-width: 1441px) {
  :root {
    --page-x: 150px;
  }
}

@media (max-width: 1180px) {
  /* header {
    display: none !important;
  } */
  .breadcum-fluid1 {
    display: block;
  }
}
