/* === Theme, spacing, sizing === */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;600&display=swap");

:root {
  --font-scale: 1;

  --page-bg: #ffffff;
  --text: #000000;

  --bar-dark: #4c9139;
  --bar-upper: #3a352f;
  --bar-lower: #4c9139;
  --bar-hover: #1a4c04;

  --center-max: 760px;
  --center-max-tablet: 540px;

  --logo-left-desktop: 70px;
  --logo-left-tablet: 15px;

  --icon-gap-desktop: 40px;
  --icon-gap-tablet: 28px;
  --icon-gap-phone: 18px;

  --access-gutter-desktop: 20px;
}

/* === High contrast === */
.high-contrast {
  --page-bg: #000 !important;
  --text: #ffd800 !important;
  --bar-dark: #000 !important;
  --bar-upper: #000 !important;
  --bar-lower: #000 !important;
  --bar-hover: #000 !important;
}

.high-contrast,
.high-contrast * {
  background-color: #000 !important;
  color: #ffd800 !important;
  border-color: #ffd80033 !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
}

.high-contrast .access-btn {
  background: transparent !important;
  color: #ffd800 !important;
}

.high-contrast .access-contrast {
  background: #ffd800 !important;
  color: #000 !important;
  border-color: #ffd800 !important;
}

.high-contrast img.hc-keep {
  filter: none !important;
  background-color: transparent !important;
}

/* === Base === */
html,
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  max-width: 100vw;
  overflow-x: clip;
  font-family: "Montserrat", sans-serif;
}

.app-root {
  font-size: calc(16px * var(--font-scale));
}

/* ======= HEADER (two full-width bars) ======= */
.site-header {
  /* Comment (EN): Now a vertical stack of two bars */
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bar-dark);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Comment (EN): Shared bar look */
.site-bar {
  width: 100%;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--bar-upper);
  /* Comment (EN): 3-column grid to keep center perfectly centered regardless of right width */
  display: grid;
  grid-template-columns: 1fr minmax(auto, var(--center-max)) 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  position: relative;
}

/* Comment (EN): Centered primary nav (keeps original class name) */
.topbar .upper-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: transparent;
  /* original bar color already on .topbar */
  padding: 0;
}

/* Comment (EN): Right-side access group (keeps original containers) */
.topbar .access-block {
  grid-column: 3;
  position: static;
  /* override legacy absolute */
  right: auto;
  top: auto;
  bottom: auto;
  display: flex;
  flex-direction: row;
  /* single row on the top bar */
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar .access-top {
  background: transparent;
  /* topbar already has background */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}

/* Comment (EN): Primary links look */
.primary-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.primary-link:hover,
.primary-link:focus {
  background: var(--bar-hover);
  text-decoration: none;
}

/* ===== BOTTOM BAR ===== */
.bottombar {
  background: var(--bar-lower);
  /* Comment (EN): 3-column grid to align left logo, centered icons, right socials */
  display: grid;
  grid-template-columns: 1fr minmax(auto, var(--center-max)) 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 12px;
  position: relative;
}

/* --- left: logo --- */
.bottombar .logo-block {
  grid-column: 1;
  flex: 0 0 auto;
  padding-left: var(--logo-left-desktop);
  display: flex;
  align-items: center;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}

/* --- center: icon nav (keeps original wrapper/class names) --- */
.bottombar .center-stack {
  /* Comment (EN): No longer absolute; sits in center column */
  grid-column: 2;
  position: static;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Comment (EN): The icon row uses original 'lower-icons' */
.lower-icons {
  background: transparent;
  /* bottombar already has color */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--icon-gap-desktop);
  padding: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.iconlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
}

/* .iconlink:hover,
.iconlink:focus {
  background: #1a4c04;
} */
.icon-emoji {
  font-size: 26px;
  line-height: 1;
}

.icon-label {
  font-size: 0.9em;
  font-weight: 600;
}

/* --- right: socials (reuse original 'access-bottom') --- */
.bottombar .access-bottom {
  grid-column: 3;
  background: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 0;
}

.social-link {
  font-size: 22px;
  color: #fff;
  text-decoration: none;
}

.social-link:hover {
  color: #ffd800;
}

/* === Access buttons === */
.access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  width: 24px;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

.access-btn.access-big {
  font-size: 16px;
}

.access-btn.access-reset {
  font-size: 10px;
}

.access-contrast {
  background: #ffd800;
  color: #000;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ===== Hamburger (mobile toggle scaffold) ===== */
.hamburger {
  /* Comment (EN): Visible on small screens; hidden on desktop below */
  grid-column: 1;
  justify-self: start;
  appearance: none;
  border: none;
  background: transparent;
  width: 38px;
  height: 32px;
  display: none;
  align-items: center;
  cursor: pointer;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  /* Comment (EN): Simple 3-line icon */
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger-lines::before {
  position: absolute;
  top: -7px;
}

.hamburger-lines::after {
  position: absolute;
  top: 7px;
}

/* ===== Content + footer ===== */
.content-wrap {
  /* max-width: 1860px; */
  margin: 0px;
  /* padding: 22px 18px 40px; */
  color: var(--text);
}

.site-footer {
  background: #3d0b14;
  color: #fff;
  padding: 22px 18px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.top-section-text {
  margin-left: 170px;
  z-index: 100;
}

h1 {
  font-family: "Bodoni Moda", Arial;
  font-size: 3em;
}

.top-section-text h1 {
  font-family: "Bodoni Moda", Arial;
  margin-top: 80px;
  font-size: 3rem;
}

.top-section-text p {
  margin-top: 150px;
}

/* === Zielona sekcja === */
.hero-section {
  background-color: #4c9139;
  width: 100vw;
  margin: 0;
}

/* === Nagłówek === */
.hero-title {
  font-size: 2.8em;
  font-weight: 600;
  color: white;
  margin-top: 80px;
}

/* === Paragraf === */
.intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: white;
}

/* === Karta z ikoną i tekstem === */
.transparent-card {
  background-color: transparent !important;
  /* no background */
  color: white;
}

/* === SVG === */
.icon-img {
  width: 80px;
  height: 80px;
}

.icon-green-frame {
  height: 200px;

  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  width: 100%;
}

.icon-img-green {
  height: 120px;
}

.icon-img-green-1 {
  height: 220px;
}

/* === Nagłówki kart === */
.bodoni-title {
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

/* === Tekst w kartach === */
.desc-text {
  color: #ffffffcc;
  /* slightly transparent white */
  font-size: 1em;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 80%;
}

.carousel-wrap {
  margin: 40px 20px;
}

/* === Ogólny kontener === */
.carousel-wrapper {
  text-align: center;
  margin-top: 2em;
  /* margin-bottom: 2em; */
}

/* === Obrazki w karuzeli === */
.carousel-image {
  max-height: 350px;
  min-height: 350px;
  border-radius: 1rem;
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.8;
}

.dropdowns-wrapper {
  display: flex;
  justify-content: center;
  /* centers horizontally */
  align-items: center;
  /* aligns vertically */
  gap: 40px;
  /* distance between dropdowns */
  margin-top: 20px;
}

/* Dropdown appearance and sizing */
.custom-dropdown {
  width: 200px !important;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Optional: fine-tune Dash default dropdown height */
.Select-control {
  height: 36px !important;
  min-height: 36px !important;
}

/* === Sekcja z informacjami === */
.wine-info-container {
  margin-top: 1.5rem;
  transition: opacity 0.5s ease;
}

.wine-info-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.wine-title {
  font-family: "Bodoni Moda", serif;
  font-size: 1.6em;
  margin-bottom: 0.5rem;
}

.wine-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  color: #555;
  margin-bottom: 1rem;
}

/* === Ikonki i podpisy === */
.icons-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1em;
  transition: transform 0.3s ease;
}

.icon-box:hover {
  transform: scale(1.1);
}

.icon-label {
  margin-top: 0.25rem;
  font-size: 0.9em;
}

.see-all-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
}

.see-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 14px;
  /* you can adjust if needed */
  color: #ffffff;
  /* background: linear-gradient(180deg, #5fb04a 0%, #3e8b2e 100%); */
  background: #4bad33;
  padding: 10px 28px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06) inset, 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 0;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* EN: neutralize slide container */
.scaled-carousel .mantine-Carousel-slide {
  overflow: visible;
  /* allow scaled inner to exceed bounds */
  border-radius: 0;
}

/* EN: controllable inner wrapper */
.scaled-carousel .mantine-Carousel-slide .slide-inner {
  border-radius: 14px;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
  transform: scale(0.62);
  opacity: 0.6;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
  contain: paint;
}

/* EN: when slide is active/centered */
.scaled-carousel .mantine-Carousel-slide.is-center .slide-inner {
  transform: scale(1.0) !important;
  opacity: 1;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* EN: ensure inner contents respect radius */
.scaled-carousel .mantine-Carousel-slide .slide-inner>* {
  width: 100%;
  height: 380px;
  /* border-radius: inherit; */
  overflow: hidden;
  display: block;
}

.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: #999999;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 30px auto;
  gap: 6px;
}

.breadcrumb a {
  color: #999999;
  text-decoration: none;
}

.breadcrumb span {
  color: #999999;
}

/* === Responsywność === */
@media (max-width: 50rem) {
  .mantine-Carousel-slide[data-active="true"] .carousel-image {
    transform: scale(1.2);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1390px) {

  /* Comment (EN): Let center max shrink a bit earlier */
  :root {
    --center-max: 900px;
  }

  .hide-on-small {
    display: none !important;
  }

  .top-section-text {
    margin-left: 20px;
  }

  .top-section-text p {
    margin-top: 50px;
  }
}

@media (max-width: 992px) {
  .bottombar .logo-block {
    padding-left: var(--logo-left-tablet);
  }

  .lower-icons {
    gap: var(--icon-gap-tablet);
  }
}

@media (max-width: 860px) {

  /* Comment (EN): Mobile behavior: show hamburger, hide topbar content; optional mobile menu can be shown via a class toggle */
  .hamburger {
    display: inline-flex;
  }

  .hero-title {
    font-size: 2em;
  }

  .icon-img {
    width: 60px;
    height: 60px;
  }

  .access-bottom {
    display: none !important;
  }

  /* Comment (EN): Right-side access group (keeps original containers) */
  .topbar .access-block {
    grid-column: 3;
    position: static;
    /* override legacy absolute */
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    flex-direction: row;
    /* single row on the top bar */
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
  }

  .topbar .access-top {
    background: transparent;
    /* topbar already has background */
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
  }

  /* Comment (EN): Primary links look */
  .primary-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
  }

  .primary-link:hover,
  .primary-link:focus {
    background: var(--bar-hover);
    text-decoration: none;
  }

  /* ===== BOTTOM BAR ===== */
  .bottombar {
    background: var(--bar-lower);
    /* Comment (EN): 3-column grid to align left logo, centered icons, right socials */
    display: grid;
    grid-template-columns: 1fr minmax(auto, var(--center-max)) 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 12px;
    position: relative;
  }

  /* --- left: logo --- */
  .bottombar .logo-block {
    grid-column: 1;
    flex: 0 0 auto;
    padding-left: var(--logo-left-desktop);
    display: flex;
    align-items: center;
    z-index: 2;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
  }

  .brand-logo {
    height: 112px;
    width: auto;
    display: block;
  }

  /* --- center: icon nav (keeps original wrapper/class names) --- */
  .bottombar .center-stack {
    /* Comment (EN): No longer absolute; sits in center column */
    grid-column: 2;
    position: static;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
  }

  /* Comment (EN): The icon row uses original 'lower-icons' */
  .lower-icons {
    background: transparent;
    /* bottombar already has color */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--icon-gap-desktop);
    padding: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .iconlink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .iconlink:hover,
  .iconlink:focus {
    background: #3d0b14;
  }

  .icon-emoji {
    font-size: 26px;
    line-height: 1;
  }

  .icon-label {
    font-size: 0.9em;
    font-weight: 600;
  }

  /* --- right: socials (reuse original 'access-bottom') --- */
  .bottombar .access-bottom {
    grid-column: 3;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 0;
  }

  .social-link {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
  }

  .social-link:hover {
    color: #ffd800;
  }

  /* === Access buttons === */
  .access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 24px;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .access-btn.access-big {
    font-size: 16px;
  }

  .access-btn.access-reset {
    font-size: 10px;
  }

  .access-contrast {
    background: #ffd800;
    color: #000;
    border-radius: 4px;
    padding: 2px 6px;
  }

  /* ===== Hamburger (mobile toggle scaffold) ===== */
  .hamburger {
    /* Comment (EN): Visible on small screens; hidden on desktop below */
    grid-column: 1;
    justify-self: start;
    appearance: none;
    border: none;
    background: transparent;
    width: 38px;
    height: 32px;
    display: none;
    align-items: center;
    cursor: pointer;
  }

  .hamburger-lines,
  .hamburger-lines::before,
  .hamburger-lines::after {
    /* Comment (EN): Simple 3-line icon */
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    position: relative;
  }

  .hamburger-lines::before {
    position: absolute;
    top: -7px;
  }

  .hamburger-lines::after {
    position: absolute;
    top: 7px;
  }

  /* ===== Content + footer ===== */
  .content-wrap {
    max-width: 1160px;
    margin: 0;
    /* padding: 22px 18px 40px; */
    color: var(--text);
  }

  .site-footer {
    background: #3d0b14;
    color: #fff;
    padding: 22px 18px;
  }

  .footer-inner {
    max-width: 1160px;
    margin: 0 auto;
  }

  .hc-row,
  .hc-col {
    min-height: 82px !important;
    /* enforce height inside bootstrap grid */
    padding: 0;
    /* remove default paddings */
  }

  /* ===== Responsive ===== */
  @media (max-width: 1160px) {

    /* Comment (EN): Let center max shrink a bit earlier */
    :root {
      --center-max: 900px;
    }
  }

  @media (max-width: 992px) {
    .bottombar .logo-block {
      padding-left: var(--logo-left-tablet);
    }

    .lower-icons {
      gap: var(--icon-gap-tablet);
    }
  }

  @media (max-width: 860px) {

    /* Comment (EN): Mobile behavior: show hamburger, hide topbar content; optional mobile menu can be shown via a class toggle */
    .hamburger {
      display: inline-flex;
    }

    .topbar .upper-nav,
    .topbar .access-block {
      display: none;
    }

    /* Comment (EN): Center icons smaller gaps */
    .lower-icons {
      gap: var(--icon-gap-phone);
    }

    /* Comment (EN): Make logo centered on small screens */
    .bottombar .logo-block {
      padding-left: 0;
      justify-content: center;
    }

    /* Comment (EN): Optional full-width icon row for phones (if you render a phone-only bar) */
    .lower-icons-phone {
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      gap: var(--icon-gap-phone);
      background: var(--bar-lower);
      padding: 8px 10px 10px;
      width: 100%;
    }
  }

  @media (min-width: 861px) {
    .lower-icons-phone {
      display: none !important;
    }
  }

  /* ===== Scale-aware tightening ===== */
  .app-root.typescale-animated :where(h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    small,
    em,
    strong,
    li,
    a,
    button,
    label,
    input,
    textarea,
    blockquote,
    figcaption,
    dd,
    dt) {
    transition: font-size 0.3s ease, line-height 0.3s ease,
      letter-spacing 0.2s ease;
  }

  .app-root.typescale-animated :where(.site-header,
    .bottombar,
    .topbar,
    .logo-block,
    .upper-nav,
    .lower-icons,
    .access-block,
    .content-wrap) {
    transition: padding 0.3s ease, gap 0.3s ease;
  }

  .app-root.typescale-animated {
    transition: font-size 0.3s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .app-root.typescale-animated * {
      transition: none !important;
    }
  }

  /* ===== Legacy overrides removed ===== */
  /* Comment (EN): The old absolute positioning is neutralized by scoping the new layout to .topbar/.bottombar.
   If any stray rules remain in your project, make sure they don't reapply absolute positioning globally:
   - .center-stack and .access-block are now static inside their respective bars. */

  .topbar .upper-nav,
  .topbar .access-block {
    display: none;
  }

  /* Comment (EN): Center icons smaller gaps */
  .lower-icons {
    gap: var(--icon-gap-phone);
  }

  /* Comment (EN): Make logo centered on small screens */
  .bottombar .logo-block {
    padding-left: 0;
    justify-content: center;
  }

  /* Comment (EN): Optional full-width icon row for phones (if you render a phone-only bar) */
  .lower-icons-phone {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: var(--icon-gap-phone);
    background: var(--bar-lower);
    padding: 8px 10px 10px;
    width: 100%;
  }
}

@media (min-width: 861px) {
  .lower-icons-phone {
    display: none !important;
  }
}

/* ===== Scale-aware tightening ===== */
.app-root.typescale-animated :where(h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  small,
  em,
  strong,
  li,
  a,
  button,
  label,
  input,
  textarea,
  blockquote,
  figcaption,
  dd,
  dt) {
  transition: font-size 0.3s ease, line-height 0.3s ease,
    letter-spacing 0.2s ease;
}

.app-root.typescale-animated :where(.site-header,
  .bottombar,
  .topbar,
  .logo-block,
  .upper-nav,
  .lower-icons,
  .access-block,
  .content-wrap) {
  transition: padding 0.3s ease, gap 0.3s ease;
}

.app-root.typescale-animated {
  transition: font-size 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .app-root.typescale-animated * {
    transition: none !important;
  }
}

/* ===== Legacy overrides removed ===== */
/* Comment (EN): The old absolute positioning is neutralized by scoping the new layout to .topbar/.bottombar.
   If any stray rules remain in your project, make sure they don't reapply absolute positioning globally:
   - .center-stack and .access-block are now static inside their respective bars. */

/* ===== Mobile menu layout (vertical links + one row of 4 access buttons) ===== */
/* Comment (EN): Make the mobile menu blocky and full-width, stacked under the top bar. */
.mobile-menu {
  display: block;
  /* will be overridden by [hidden] when needed */
  background: var(--bar-upper);
  color: #fff;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Comment (EN): Honor the 'hidden' attribute controlled by Dash callback. */
.mobile-menu[hidden] {
  display: none !important;
}

/* Comment (EN): Vertical list of primary links, centered, with nice spacing. */
.mobile-menu .mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
}

/* Comment (EN): Reuse .primary-link look but make it full-tap targets on mobile. */
.mobile-menu .mobile-menu-nav .primary-link {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Comment (EN): One-row access group (your 4 buttons from desktop right side). */
.mobile-menu .mobile-access-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  /* ~7px requested earlier, but 12px feels better for tap — adjust if needed */
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Comment (EN): Make sure buttons look consistent on dark bar. */
.mobile-menu .mobile-access-group .access-btn {
  background: transparent;
  color: #fff;
}

/* Comment (EN): Show hamburger + hide desktop pieces only on small screens. */
@media (max-width: 860px) {
  .hamburger {
    display: inline-flex;
  }

  .topbar .upper-nav,
  .topbar .access-block {
    display: none !important;
  }
}

/* Comment (EN): On larger screens, ensure mobile menu never shows even if state says so. */
@media (min-width: 861px) {
  #mobile-menu {
    display: none !important;
  }
}

/* ===== <= 680px: logo centered on its own row; icons in a row below ===== */
/* Comment (EN): Stack the bottom bar into two rows: row 1 = logo, row 2 = icon nav */
@media (max-width: 770px) {
  .bottombar {
    /* Comment (EN): Single column, two rows (logo above, icons below) */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 8px 10px 12px;
  }

  /* Comment (EN): Center the logo and remove left padding on small screens */
  .bottombar .logo-block {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    padding-left: 0;
  }

  /* Comment (EN): Optionally reduce logo height a bit for better fit */
  .brand-logo {
    height: 88px;
  }

  /* Comment (EN): Icons container goes to second row and stays centered */
  .bottombar .center-stack {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
  }

  /* Comment (EN): Keep icons in one row, centered, with compact gaps */
  .lower-icons {
    flex-wrap: nowrap;
    /* all four in one line */
    gap: var(--icon-gap-phone);
  }

  /* Comment (EN): Ensure vertical icon layout (emoji over label) and comfy tap area */
  .iconlink {
    flex-direction: column;
    min-width: 56px;
    /* better tap target */
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
  }

  .icon-emoji {
    font-size: 28px;
    /* a touch larger on small screens */
    line-height: 1;
  }

  .icon-label {
    font-size: 0.9em;
    font-weight: 600;
  }

  /* Comment (EN): Socials are already hidden under 860px; keep it that way */
  .bottombar .access-bottom {
    display: none !important;
  }
}

/* ===== <= 500px: hide labels under icons (icons only) ===== */
/* Comment (EN): Collapse to emoji-only while keeping good spacing */
@media (max-width: 500px) {
  .icon-label {
    display: none !important;
  }

  .iconlink {
    min-width: 48px;
    /* still finger-friendly */
    padding: 8px 8px;
  }

  .icon-emoji {
    font-size: 30px;
    /* slightly bigger since labels are hidden */
  }

  /* Comment (EN): Optionally shrink the logo a bit more for very small screens */
  .brand-logo {
    height: 76px;
  }
}

/* ===== SVG icons as images ===== */
/* Comment (EN): Size and align the SVGs used in icon links. */
.icon-svg {
  width: 38px;
  height: 38px;
  display: block;
}

/* Comment (EN): Make the icons adopt a light/white look on colored bars when SVGs are black. */
.site-header .iconlink .icon-svg {
  /* If your source SVGs are black paths, this filter flips them to white */
  filter: brightness(0) invert(1);
}

/* Comment (EN): When hovering/focusing, keep icon visible; optional subtle scale */
.iconlink:hover .icon-svg,
.iconlink:focus .icon-svg {
  transform: translateZ(0);
  /* GPU hint */
}

/* Comment (EN): In high-contrast mode, let icons follow the text color by disabling inversion. */
.high-contrast .icon-svg {
  filter: none !important;
}

/* ===== Small screens adjustments (keep from your previous rules) ===== */
@media (max-width: 680px) {
  .icon-svg {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 500px) {
  .icon-svg {
    width: 40px;
    height: 40px;
  }
}

/* === FOOTER STYLES (final version) === */
.site-footer {
  background-color: #2b2622;
  color: #ffffff;
  padding: 60px 40px 0;
  font-family: "Montserrat", sans-serif;
}

/* Outer container centers inner grid */
.footer-content {
  text-align: center;
  /* centers the inner grid as inline-block */
}

/* Main grid behaves like an inline block centered on page */
.footer-inner-wrap {
  display: inline-grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  /* first column slightly wider */
  gap: 80px;
  /* spacing between columns */
  align-items: start;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  /* text inside columns stays left-aligned */
}

/* General column layout */
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical centering of column content */
  gap: 10px;
  padding: 0 10px;
}

/* First column divider (desktop only) */
.footer-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding-right: 40px;
}

/* Logo and text */
.footer-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d9d9d9;
}

/* Headings and lists */
.footer-heading {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

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

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.footer-list a:hover {
  color: #a4d37f;
  text-decoration: underline;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-link {
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: #a4d37f;
}

/* Bottom copyright bar */
.footer-bottom {
  background-color: #25201d;
  text-align: center;
  padding: 14px 0;
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 40px;
}

/* === RESPONSIVE === */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .footer-inner-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .footer-col:first-child {
    border-right: none;
    padding-right: 0;
  }
}

/* Mobile: 1 column */
@media (max-width: 680px) {
  .footer-inner-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .footer-logo {
    margin: 0 auto 10px;
  }

  .footer-socials {
    justify-content: center;
  }
}