/* ============= STIHL 100 Years menu button ============= */
.stihl-100-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: #f47321;
  color: #fff !important;
  font-family: 'Inter Tight', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.2px;
  text-decoration: none !important;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1;
}

.stihl-100-btn:hover,
.stihl-100-btn:focus {
  transform: translateY(-1px);
  background: #e2691c;
  color: #fff !important;
  text-decoration: none !important;
}

.stihl-100-btn .stihl-100-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.stihl-100-btn .stihl-100-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}

.stihl-100-btn .stihl-100-badge .num {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.stihl-100-btn .stihl-100-badge .yrs {
  font-size: 7px;
  letter-spacing: 1.8px;
  margin-top: 2px;
}

/* When sitting inside the navbar brand area */
.stihl-100-btn--inline {
  margin-left: 14px;
  align-self: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Fallback: floating top-right (only used when no navbar found) */
.stihl-100-btn--floating {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 99990;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Make the navbar-brand a flex row so the STIHL button sits next to the logo */
.navbar .navbar-brand {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
}

/* Tighter sizing on tablets/phones so it never wraps the menu */
@media (max-width: 991px) {
  .stihl-100-btn {
    font-size: 13px;
    padding: 5px 8px;
    gap: 6px;
    letter-spacing: 1px;
  }
  .stihl-100-btn .stihl-100-divider { height: 16px; }
  .stihl-100-btn .stihl-100-badge .num { font-size: 13px; }
  .stihl-100-btn .stihl-100-badge .yrs { font-size: 6px; letter-spacing: 1.4px; }
  .stihl-100-btn--inline { margin-left: 8px; }
  .stihl-100-btn--floating { top: 14px; right: 14px; }
}

@media (max-width: 480px) {
  .stihl-100-btn {
    font-size: 11px;
    padding: 4px 6px;
    gap: 5px;
  }
  .stihl-100-btn .stihl-100-divider { height: 13px; }
  .stihl-100-btn .stihl-100-badge .num { font-size: 11px; }
  .stihl-100-btn .stihl-100-badge .yrs { font-size: 5px; }
}

/* ============= STIHL 100 Years popup ============= */
.stihl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter Tight', Arial, sans-serif;
}

.stihl-overlay.stihl-show {
  display: flex;
  animation: stihl-fade 0.3s ease;
}

@keyframes stihl-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stihl-modal {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  animation: stihl-pop 0.35s ease;
}

@keyframes stihl-pop {
  from { transform: scale(0.96) translateY(15px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.stihl-modal-left {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(135deg, rgba(20, 35, 20, 0.55), rgba(0, 0, 0, 0.35)),
    url('../images/stihl-100-years.webp') center/cover no-repeat,
    linear-gradient(160deg, #1d3a1d 0%, #0c1a0c 60%, #f47321 100%);
  background-blend-mode: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stihl-100-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stihl-100-overlay .num-100 {
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  background:
    repeating-radial-gradient(circle at center,
      transparent 0,
      transparent 8px,
      rgba(255, 255, 255, 0.18) 8px,
      rgba(255, 255, 255, 0.18) 9px);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255, 255, 255, 0.95);
}

.stihl-100-overlay .yrs-100 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 14px;
  margin-top: 10px;
  padding-left: 14px;
}

.stihl-modal-right {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stihl-headline {
  font-size: 28px;
  font-weight: 900;
  color: #111;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.stihl-rule {
  width: 50px;
  height: 3px;
  background: #111;
  border: 0;
  margin: 0 0 20px;
}

.stihl-body {
  font-size: 15px;
  font-weight: 400;
  color: #2b2b2b;
  line-height: 1.55;
  margin: 0;
}

.stihl-body strong {
  font-weight: 700;
}

.stihl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.stihl-close:hover { background: #fff; }

@media (max-width: 900px) {
  .stihl-modal {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .stihl-modal-left { min-height: 240px; }
  .stihl-100-overlay .num-100 { font-size: 90px; }
  .stihl-100-overlay .yrs-100 { font-size: 16px; letter-spacing: 8px; }
  .stihl-modal-right { padding: 32px 24px; }
  .stihl-headline { font-size: 22px; }
  .stihl-body { font-size: 14px; }
}
