:root {
  --site-bg: #f7f4ef;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --surface: #fffdfa;
  --ink: #171412;
  --muted: #645c55;
  --line: rgba(23, 20, 18, 0.12);
  --accent: #bc5a2b;
  --accent-deep: #8a3f18;
  --sand: #d8c3a4;
  --stone: #6b655e;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 50px rgba(48, 35, 24, 0.12);
  --shadow-card: 0 18px 38px rgba(31, 24, 19, 0.08);
  --section-pad-desktop: 5rem;
  --section-pad-mobile: 3.75rem;
  --stack-xl: 3.5rem;
  --stack-lg: 2.5rem;
  --stack-md: 1.5rem;
  --stack-sm: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(188, 90, 43, 0.12), transparent 24rem),
    radial-gradient(circle at right 20%, rgba(216, 195, 164, 0.2), transparent 28rem),
    linear-gradient(180deg, #fbfaf8 0%, var(--site-bg) 100%);
}

a {
  color: inherit;
}

.section-space {
  padding: var(--section-pad-desktop) 0;
}

.site-header .navbar {
  padding: 1rem 0;
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header .navbar.is-scrolled {
  background: rgba(255, 253, 250, 0.92);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(38, 29, 22, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 3rem;
  max-width: min(220px, 42vw);
}

.nav-link {
  color: var(--ink);
  font-weight: 500;
  margin-left: 1rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.68);
}

.nav-link.active {
  background: rgba(23, 20, 18, 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(23, 20, 18, 0.08);
}

.nav-languages {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 1.2rem;
}

.lang-link {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}

.lang-link.active,
.lang-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.hero-section.section-space {
  padding-top: 8.5rem;
  padding-bottom: 2.5rem;
}

.products-section.section-space {
  padding-top: 3.5rem;
}

.gallery-section.section-space,
.contact-section.section-space {
  padding-top: 4.75rem;
}

.eyebrow,
.section-kicker,
.category-label,
.map-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.35rem, 3.55vw, 4.35rem);
  line-height: 0.96;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

.hero-copy,
.section-copy,
.category-copy,
.intro-copy,
.contact-panel p,
.map-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #000;
  border-color: #000;
}

.btn-outline-dark {
  border-width: 1.5px;
}

.hero-visual {
  position: relative;
  min-height: 28rem;
}

.hero-panel,
.hero-floating,
.product-card,
.stone-card,
.contact-panel,
.map-panel,
.gallery-tile {
  border: 0;
  box-shadow: var(--shadow-card);
}

.hero-panel-large {
  position: absolute;
  inset: 2rem 0 0 2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.18), rgba(12, 10, 9, 0.44)),
    url("../img/stone/stone-1.jpg") center/cover no-repeat;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
}

.hero-panel-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 20%);
}

.visual-kicker,
.floating-label {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.visual-title {
  position: relative;
  color: white;
  font-size: clamp(1.32rem, 1.45vw, 1.55rem);
  line-height: 1.08;
  max-width: 13ch;
  margin-top: 0;
}

.hero-panel-copy {
  position: absolute;
  top: 2rem;
  left: -1.6rem;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  max-width: 18rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 22px 44px rgba(31, 24, 19, 0.1);
}

.hero-panel-copy .visual-kicker {
  color: rgba(23, 20, 18, 0.32);
}

.hero-panel-copy .visual-title {
  color: var(--ink);
}

.hero-floating {
  position: absolute;
  width: min(19rem, 58%);
  background: rgba(255, 253, 250, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 44px rgba(31, 24, 19, 0.1);
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.hero-floating strong,
.hero-floating small {
  display: block;
  margin: 0;
}

.hero-floating strong {
  font-size: 1.15rem;
  line-height: 1.05;
}

.hero-floating small {
  color: var(--muted);
  line-height: 1.45;
}

.hero-floating .floating-label {
  color: rgba(23, 20, 18, 0.32);
  line-height: 1;
}

.hero-floating-top {
  top: 0;
  right: -1.4rem;
}

.hero-floating-bottom {
  right: 1.6rem;
  bottom: -1.55rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: var(--stack-lg);
}

.section-title {
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.product-category {
  margin-top: var(--stack-lg);
}

.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.category-title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.product-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.product-card:hover,
.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(31, 24, 19, 0.12);
}

.product-card-media {
  position: relative;
  height: 5.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.18)),
    center/cover no-repeat;
}

.product-card-media::before,
.product-card-media::after {
  display: none;
}

.media-aventos {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.24)),
    url("../img/blum/aventos-hf.jpg") center/cover no-repeat;
}

.media-clip {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.26)),
    url("../img/blum/clip-top-blumotion.jpg") center/cover no-repeat;
}

.media-legrabox {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.04), rgba(12, 10, 9, 0.22)),
    url("../img/blum/legrabox.jpg") center/cover no-repeat;
}

.media-merivobox {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.28)),
    url("../img/blum/merivobox.jpg") center/cover no-repeat;
}

.media-tandembox {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.04), rgba(12, 10, 9, 0.22)),
    url("../img/blum/legrabox.jpg") center/cover no-repeat;
}

.media-movento {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.26)),
    url("../img/blum/movento.jpg") center/cover no-repeat;
}

.media-tipon {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.28)),
    url("../img/blum/tip-on.jpg") center/cover no-repeat;
}

.media-ambia {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.24)),
    url("../img/blum/ambia-line.jpg") center/cover no-repeat;
}

.product-type,
.stone-badge,
.gallery-tag,
.contact-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h4,
.stone-card h4,
.gallery-tile h3,
.map-copy h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.product-card p,
.stone-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.stone-category {
  margin-top: var(--stack-xl);
}

.stone-card {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  border: 0;
  box-shadow: none;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.stone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.02) 18%, rgba(12, 10, 9, 0.46) 100%);
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.stone-card > * {
  position: relative;
  z-index: 1;
}

.tone-sand {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.02), rgba(12, 10, 9, 0.48)),
    url("../img/stone/stone-1.jpg") center/cover no-repeat;
}

.tone-graphite {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.04), rgba(12, 10, 9, 0.58)),
    url("../img/stone/stone-2.jpg") center/cover no-repeat;
}

.tone-ivory {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.02), rgba(12, 10, 9, 0.42)),
    url("../img/stone/stone-3.jpg") center/cover no-repeat;
}

.tone-rust {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.03), rgba(12, 10, 9, 0.54)),
    url("../img/stone/stone-4.jpg") center/cover no-repeat;
}

.stone-badge {
  color: rgba(255, 255, 255, 0.92);
}

.stone-card h4 {
  color: rgba(255, 255, 255, 0.98);
}

.stone-card p,
.stone-card:hover p {
  color: rgba(255, 255, 255, 0.76);
}

.gallery-grid-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, minmax(2.3rem, 1fr));
  gap: 1.25rem;
  min-height: 43rem;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 1.75rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 13rem;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.1), rgba(12, 10, 9, 0.42)),
    center/cover no-repeat;
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, transparent 35%, rgba(12, 10, 9, 0.28) 100%);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.gallery-tile > * {
  position: relative;
  z-index: 1;
}

.stone-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.stone-card:hover,
.gallery-tile:hover {
  filter: saturate(1.04);
}

.stone-card:hover::before,
.gallery-tile:hover::before {
  opacity: 0.88;
}

.gallery-tile:hover::before {
  transform: scale(1.02);
}

.gallery-tile-portrait,
.gallery-tile-compact {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.58)),
    center/cover no-repeat;
}

.gallery-tile-feature {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.42)),
    url("../img/blum/merivobox.jpg");
}

.gallery-tile-portrait {
  grid-column: 8 / span 5;
  grid-row: 1 / span 6;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.58)),
    url("../img/stone/stone-2.jpg");
}

.gallery-tile-medium {
  grid-column: 1 / span 4;
  grid-row: 4 / span 3;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.06), rgba(12, 10, 9, 0.46)),
    url("../img/blum/aventos-hf.jpg");
}

.gallery-tile-compact {
  grid-column: 5 / span 3;
  grid-row: 4 / span 3;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.56)),
    url("../img/blum/clip-top-blumotion.jpg");
}

.gallery-tile-landscape {
  grid-column: 1 / span 12;
  grid-row: 7 / span 4;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.44)),
    url("../img/stone/stone-3.jpg");
  background-position: center 62%;
}

.gallery-tile h3 {
  max-width: 16ch;
  font-size: clamp(1.15rem, 1.5vw, 1.9rem);
  line-height: 1.08;
}

.contact-panel,
.map-panel {
  height: 100%;
  background: rgba(255, 253, 250, 0.88);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.contact-item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-item a {
  display: block;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
}

.map-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background:
    linear-gradient(135deg, rgba(216, 195, 164, 0.5), rgba(255, 255, 255, 0.84));
}

.map-grid {
  display: none;
}

.map-copy {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  padding-top: 0;
}

.map-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.site-footer {
  padding: 2rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .site-header .navbar {
    background: rgba(255, 253, 250, 0.94);
    border-color: var(--line);
  }

  .navbar-nav {
    margin-top: 1rem;
    align-items: flex-start !important;
  }

  .nav-link {
    margin-left: 0;
  }

  .nav-languages {
    margin-left: 0;
    margin-top: 1rem;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .products-section.section-space,
  .gallery-section.section-space,
  .contact-section.section-space {
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 24rem;
  }

  .hero-panel-large {
    inset: 1rem 0 0 0;
  }

  .hero-panel-copy {
    top: 1.35rem;
    left: -0.75rem;
    max-width: 15rem;
    padding: 1rem 1.05rem 1.1rem;
  }

  .hero-floating-bottom {
    right: 0;
    bottom: -1rem;
  }

  .category-header {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid-masonry {
    min-height: 0;
  }

  .gallery-tile-feature,
  .gallery-tile-portrait,
  .gallery-tile-medium,
  .gallery-tile-compact,
  .gallery-tile-landscape {
    grid-column: span 1;
    grid-row: span 1;
  }

  .map-copy {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: var(--section-pad-mobile) 0;
  }

  .hero-section.section-space {
    padding-top: 7.5rem;
    padding-bottom: 2rem;
  }

  .products-section.section-space,
  .gallery-section.section-space,
  .contact-section.section-space {
    padding-top: 3.25rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .product-category {
    margin-top: 2rem;
  }

  .stone-category {
    margin-top: 2.75rem;
  }

  .mobile-card-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    padding: 0.7rem 0.75rem 0.95rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-card-slider > [class*="col-"] {
    flex: 0 0 84%;
    max-width: 84%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-top: 0;
    padding-bottom: 0;
    scroll-snap-align: start;
    overflow: visible;
  }

  .mobile-card-slider::-webkit-scrollbar {
    display: none;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    min-height: 21rem;
  }

  .hero-floating {
    width: auto;
    max-width: 72%;
  }

  .hero-panel-copy {
    top: 1rem;
    left: 0.35rem;
    max-width: 12.5rem;
    padding: 0.9rem 0.95rem 1rem;
  }

  .hero-floating-top {
    top: -0.5rem;
  }

  .hero-floating-bottom {
    bottom: -1rem;
    right: 0.5rem;
  }

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

  .contact-panel,
  .map-panel {
    padding: 1.5rem;
  }

  .map-embed {
    height: 260px;
  }

  .gallery-grid-masonry {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-tile-feature,
  .gallery-tile-portrait,
  .gallery-tile-medium,
  .gallery-tile-compact,
  .gallery-tile-landscape {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}


@media (max-width: 575.98px) {
  .hero-section.section-space {
    padding-top: 7rem;
    padding-bottom: 1.5rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    display: grid;
    gap: 0.9rem;
    min-height: 0;
    margin-top: 0.5rem;
  }

  .hero-panel-large {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 1rem;
    overflow: hidden;
    display: grid;
    gap: 0.85rem;
  }

  .hero-panel-copy {
    position: relative;
    top: auto;
    left: auto;
    max-width: none;
    padding: 0.95rem 1rem 1rem;
    width: 100%;
  }

  .hero-floating {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    max-width: none;
    padding: 1.05rem 1.1rem;
    display: grid;
    gap: 0.45rem;
  }

  .hero-floating-top {
    justify-self: stretch;
    width: auto;
    margin-top: 0;
  }

  .hero-floating-bottom {
    justify-self: stretch;
    width: auto;
    margin-top: 0;
  }

  .visual-title {
    font-size: 1.05rem;
    line-height: 1.06;
    max-width: 11ch;
  }

  .hero-floating strong {
    font-size: 1rem;
  }

  .hero-floating small {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}
