/* ATM top notification bar (homepage) */
.atm-top-bar {
  background: linear-gradient(90deg, #5a3f2e 0%, #714e39 50%, #5a3f2e 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.atm-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.atm-top-bar__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.atm-top-bar__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.atm-top-bar__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.88;
}

.atm-top-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #714e39 !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.atm-top-bar__cta:hover {
  background: #f5ebe4;
  color: #5a3f2e !important;
  transform: translateY(-1px);
}

/* Homepage ATM section */
.atm-home-section {
  padding: 80px 0 70px;
}

.atm-home-section__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #714e39;
  margin-bottom: 10px;
}

.atm-home-section__title {
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.25;
  margin-bottom: 16px;
}

.atm-home-section__text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 28px;
  max-width: 640px;
}

.atm-home-section__text.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.atm-home-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.atm-feature-card {
  height: 100%;
  padding: 24px 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(113, 78, 57, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.atm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(61, 42, 31, 0.1);
}

.atm-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(113, 78, 57, 0.1);
  color: #714e39;
}

.atm-feature-card__icon i {
  font-size: 22px;
}

.atm-feature-card__title {
  font-size: 17px;
  margin: 0 0 8px;
  color: #252525;
}

.atm-feature-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #666;
}

.atm-home-section__features {
  margin-top: 48px;
}

/* Floating ATM quick access — stacked above scroll-to-top (same side) */
.atm-fab {
  position: fixed;
  right: 20px;
  bottom: calc(30px + 45px + 14px);
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #714e39 0%, #5a3f2e 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(61, 42, 31, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.atm-fab:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(61, 42, 31, 0.35);
}

.atm-fab__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.atm-fab__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.45);
  animation: atm-fab-pulse 1.8s ease-out infinite;
}

.atm-fab__label {
  line-height: 1.2;
}

.atm-fab--rtl {
  right: auto;
  left: 20px;
}

@keyframes atm-fab-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Dark theme */
.theme-dark .atm-home-section__text,
.theme-dark .atm-feature-card__text {
  color: rgba(255, 255, 255, 0.72);
}

.theme-dark .atm-feature-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .atm-feature-card__title {
  color: #fff;
}

/* RTL homepage section */
[dir="rtl"] .atm-home-section__text {
  max-width: none;
}

@media only screen and (max-width: 991px) {
  .atm-home-section {
    padding: 60px 0 50px;
  }
}

@media only screen and (max-width: 767px) {
  .atm-top-bar__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .atm-top-bar__cta {
    justify-content: center;
    width: 100%;
  }

  .atm-home-section__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .atm-fab {
    right: 10px;
    bottom: calc(30px + 35px + 14px);
    padding: 11px 16px;
    font-size: 13px;
  }

  .atm-fab--rtl {
    left: 10px;
    right: auto;
  }
}
